aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move the logic to test bundled gems to Ruby codeBenoit Daloze2019-09-292-9/+27
| | | | | * Writing shell scripts in a Makefile is very error-prone. * TEST_BUNDLED_GEMS_ALLOW_FAILURES seemed to not work before.
* Exclude the test-unit bundled gem tests since they also fail since the ↵Benoit Daloze2019-09-292-4/+6
| | | | | | Time#inspect change * See https://github.com/test-unit/test-unit/issues/165
* Remove continue-on-error for test-bundled-gemsBenoit Daloze2019-09-292-4/+0
| | | | * Otherwise, it takes a very long time to notice those tests broke.
* [ruby/stringio] Bump up the versionNobuyoshi Nakada2019-09-291-1/+1
| | | | https://github.com/ruby/stringio/commit/f0e5027279
* [ruby/stringio] Use rb_funcallv_kw when delegating argumentsNobuyoshi Nakada2019-09-291-2/+7
| | | | https://github.com/ruby/stringio/commit/5892663e32
* [ruby/stringio] Replaced rb_funcall2 with rb_funcallvNobuyoshi Nakada2019-09-291-4/+4
| | | | https://github.com/ruby/stringio/commit/a37ab7c419
* [ruby/stringio] Dropped older ruby versionsNobuyoshi Nakada2019-09-291-1/+1
| | | | https://github.com/ruby/stringio/commit/e8065153b8
* [ruby/stringio] Get rid of String#undump for ruby 2.4 or earlierNobuyoshi Nakada2019-09-291-1/+1
| | | | https://github.com/ruby/stringio/commit/4dfd997e0a
* [ruby/zlib] Fix for older ruby 2.6 or earlierNobuyoshi Nakada2019-09-291-0/+9
| | | | https://github.com/ruby/zlib/commit/00ead8cb2c
* [ruby/zlib] Search zlib.c as a gemNobuyoshi Nakada2019-09-291-4/+11
| | | | https://github.com/ruby/zlib/commit/8f43b264cd
* [DOC] Fix typos in Array#{to_s,inspect} doc [ci skip]Benoit Daloze2019-09-291-1/+1
|
* [DOC] stated that Array#to_s calls #inspect [ci skip]Nobuyoshi Nakada2019-09-291-1/+2
| | | | [ruby-list:50826]
* * 2019-09-29 [ci skip]git2019-09-291-1/+1
|
* Upgrade to the latest did_you_mean 1.3.1Yuki Nishijima2019-09-291-1/+1
|
* NEWS: marked up `**nil` [ci skip]Nobuyoshi Nakada2019-09-281-3/+3
|
* NEWS: Added module name to proc and lambda [ci skip]Nobuyoshi Nakada2019-09-281-3/+3
| | | | RDoc cannot know if bare words are method name or not.
* Fix warning when doing Struct.new(:x, keyword_init: true){}Jeremy Evans2019-09-272-1/+11
| | | | | | | | | | This is due to calling rb_mod_module_eval directly instead of using rb_funcall_passing_block. The problem with calling directly is it does not create a new VM frame, so rb_mod_module_eval was called with no arguments, but with the keyword given VM frame flag set, which causes problems internally.
* Correctly issue ArgumentError when calling method that accepts no keywordsJeremy Evans2019-09-272-0/+15
| | | | | | | If a method accepts no keywords and was called with a keyword, an ArgumentError was not always issued previously. Force methods that accept no keywords to go through setup_parameters_complex so that an ArgumentError is raised if keywords are provided.
* Update NEWS section on keyword argument separation [ci skip]Jeremy Evans2019-09-271-10/+57
| | | | | This may be too verbose, if so, maybe it should be moved lower in the document, or to a separate document.
* * 2019-09-28 [ci skip]git2019-09-281-1/+1
|
* Optimize Array#flatten and flatten! for already flattened arrays (#2495)Dylan Thacker-Smith2019-09-282-10/+52
| | | | | | | * Optimize Array#flatten and flatten! for already flattened arrays * Add benchmark for Array#flatten and Array#flatten! [Bug #16119]
* Warn for URI.{,un}{escape,encode}, even if not in verbose modeJeremy Evans2019-09-271-2/+2
| | | | | | | | The verbose mode warning has been present for almost 10 years. If we ever plan to remove these methods, we should make the warning a regular deprecation warning so that people are aware. Implements [Feature #15961]
* Fix fallback in URI.encode_www_form_component to include #Jeremy Evans2019-09-272-1/+3
| | | | | | Patch from Matthew Kerwin. Fixes [Bug #14358]
* Do not escape + in Shellwords.escapeJeremy Evans2019-09-272-1/+6
| | | | | | + is not a character that requires escaping in Bourne sh. Fixes [Bug #14429]
* Ignore Errno::EPIPE when sending requests in net/httpJeremy Evans2019-09-272-1/+18
| | | | | | | | An EPIPE when sending the request should be ignored. Even if you cannot write more data, you may still be able to read the server's response. Fixes [Bug #14466]
* Updated bundled_gemsNobuyoshi Nakada2019-09-271-2/+2
|
* Drop eliminated catch-entriesNobuyoshi Nakada2019-09-272-0/+27
| | | | | Drop catch table entries used in eliminated block, as well as call_infos. [Bug #16184]
* assert_in_out_err should use FailDesc tooNobuyoshi Nakada2019-09-271-4/+2
|
* Adjusted spaces [ci skip]Nobuyoshi Nakada2019-09-273-40/+41
|
* More tests for [Feature #16150]Nobuyoshi Nakada2019-09-271-0/+21
|
* [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return ↵Jean Boussier2019-09-275-3/+51
| | | | | | | | a frozen String * Always the same frozen String for each of these values. * Avoids extra allocations whenever calling these 3 methods. * See [Feature #16150]
* [ruby/fileutils] Bump version to 1.3.0.Hiroshi SHIBATA2019-09-271-1/+1
| | | | https://github.com/ruby/fileutils/commit/ba3bd6fdfd
* [ruby/fileutils] Use Gemfile instead of ↵Hiroshi SHIBATA2019-09-271-2/+0
| | | | | | Gem::Specification#add_development_dependency. https://github.com/ruby/fileutils/commit/17a9de6d9b
* [ruby/fileutils] Reduce global variablesKazuhiro NISHIYAMA2019-09-271-8/+8
| | | | https://github.com/ruby/fileutils/commit/ba81f024cf
* [ruby/fileutils] Fix cp_r with symlink root on WindowsJeremy Evans2019-09-271-1/+5
| | | | | | | | | | Previously this would copy the symlink root as a symlink instead of creating a new root directory. This modifies the source to expand it using File.realpath before starting the copy. Fixes Ruby Bug 12123 https://github.com/ruby/fileutils/commit/7359cef359
* [ruby/fileutils] Fix test_cp_r_dev on Windows or other systems without ↵Jeremy Evans2019-09-271-4/+4
| | | | | | | | | | | | | character/block device in /dev Previously this would give an error such as: TestFileUtils#test_cp_r_dev [c:/fileutils/test/fileutils/test_fileutils.rb:455]: [RuntimeError] exception expected, not. Class: <TypeError> Message: <"no implicit conversion of nil into String"> https://github.com/ruby/fileutils/commit/0ce0fefbeb
* [ruby/fileutils] Do not break in verbose mode if using FileUtils with a ↵Jeremy Evans2019-09-272-12/+30
| | | | | | | | | | | | | frozen object If FileUtils is included into another object, and verbose mode is used, a FrozenError is currently raised unless the object has the @fileutils_output and @fileutils_label instance variables. This fixes things so that it does not attempt to set the instance variables, but it still uses them if they are present. https://github.com/ruby/fileutils/commit/689cb9c56a
* [ruby/fileutils] Skip test_cp_r_socket on JRubyJeremy Evans2019-09-271-0/+1
| | | | https://github.com/ruby/fileutils/commit/20bb9ec789
* [ruby/fileutils] Make copy methods handle FIFOs and UNIX socketsJeremy Evans2019-09-272-9/+40
| | | | | | | | | | | | | | | | | | Previously, this was broken. Trying to copy a FIFO would raise a NoMethodError if File.mkfifo was defined. Trying to copy a UNIX socket would raise a RuntimeError as File.mknod is not something Ruby defines. Handle the FIFO issue using File.mkfifo instead of mkfifo. Handle the UNIX Socket issue by creating a unix socket. Continue to not support character or block devices, raising a RuntimeError for both. Add tests for FIFO, UNIX Socket, and character/block devices. https://github.com/ruby/fileutils/commit/123903532d
* [ruby/fileutils] Update the documentation content and formattingzverok2019-09-271-74/+93
| | | | https://github.com/ruby/fileutils/commit/b701353c53
* Fix more keyword separation issuesJeremy Evans2019-09-269-32/+707
| | | | | | | | | | | | | | | | | | | | | This fixes instance_exec and similar methods. It also fixes Enumerator::Yielder#yield, rb_yield_block, and a couple of cases with Proc#{<<,>>}. This support requires the addition of rb_yield_values_kw, similar to rb_yield_values2, for passing the keyword flag. Unlike earlier attempts at this, this does not modify the rb_block_call_func type or add a separate function type. The functions of type rb_block_call_func are called by Ruby with a separate VM frame, and we can get the keyword flag information from the VM frame flags, so it doesn't need to be passed as a function argument. These changes require the following VM functions accept a keyword flag: * vm_yield_with_cref * vm_yield * vm_yield_with_block
* Adjusted spaces [ci skip]Nobuyoshi Nakada2019-09-2712-72/+78
|
* Add compaction support to `rb_ast_t`Aaron Patterson2019-09-264-4/+70
| | | | This commit adds compaction support to `rb_ast_t`.
* Fix keyword argument separation issues in Enumerator::Generator#eachJeremy Evans2019-09-264-1/+97
| | | | This requires adding rb_proc_call_kw to pass the keyword flag.
* Add rb_adjust_argv_kw_splat to internal.hJeremy Evans2019-09-265-6/+1
| | | | | We are calling this in a few other files, it is better to have it in a header than adding prototypes to the other files.
* Honor Syslog::Logger#level overridesGeorge Claghorn2019-09-262-2/+17
|
* Fix clang errors when pendantic errors enabledAaron Patterson2019-09-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | I've been compiling with: ``` set -lx cflags '-std=c99 -Werror=pedantic -pedantic-errors' ``` But compilation would fail with the following: ``` cont.c:296:90: error: format specifies type 'void *' but the argument has type 'struct fiber_pool_stack *' [-Werror,-Wformat-pedantic] if (DEBUG) fprintf(stderr, "fiber_pool_stack_alloca(%p): %"PRIuSIZE"/%"PRIuSIZE"\n", stack, offset, stack->available); ~~ ^~~~~ cont.c:467:24: error: format specifies type 'void *' but the argument has type 'struct fiber_pool *' [-Werror,-Wformat-pedantic] count, fiber_pool, fiber_pool->used, fiber_pool->count, size, fiber_pool->vm_stack_size); ^~~~~~~~~~ cont.c:588:83: error: format specifies type 'void *' but the argument has type 'struct fiber_pool_vacancy *' [-Werror,-Wformat-pedantic] if (DEBUG) fprintf(stderr, "fiber_pool_stack_acquire: %p used=%"PRIuSIZE"\n", fiber_pool->vacancies, fiber_pool->used); ~~ ^~~~~~~~~~~~~~~~~~~~~ cont.c:736:76: error: format specifies type 'void *' but the argument has type 'rb_fiber_t *' (aka 'struct rb_fiber_struct *') [-Werror,-Wformat-pedantic] if (DEBUG) fprintf(stderr, "fiber_stack_release: %p, stack.base=%p\n", fiber, fiber->stack.base); ``` This commit just fixes the pedantic errors
* Replace `freeze_string` with `rb_fstring`Aaron Patterson2019-09-261-14/+8
|
* Remove `iseq_add_mark_object_compile_time`Aaron Patterson2019-09-261-37/+28
| | | | | This function is just a synonym for RB_OBJ_WRITTEN, so we can just directly call that.
* Remove mark arrayAaron Patterson2019-09-262-5/+0
| | | | We don't use this array anymore so we can remove it