aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Documentation improvements for Ruby corezverok2019-10-268-25/+118
| | | | | | | | | | | * Top-level `return`; * Documentation for comments syntax; * `rescue` inside blocks; * Enhance `Object#to_enum` docs; * Make `chomp:` option more obvious for `String#each_line` and `#lines`; * Enhance `Proc#>>` and `#<<` docs; * Enhance `Processs` class docs.
* Raise on end-exclusive ranges [Feature #14784]Nobuyoshi Nakada2019-10-262-12/+15
| | | | | Raises an error on end-exclusive ranges unless endless, regardless the receiver.
* [ruby/forwardable] Use Gemfile instead of ↵Hiroshi SHIBATA2019-10-261-3/+0
| | | | | | Gem::Specification#add_development_dependency. https://github.com/ruby/forwardable/commit/1e7123a81b
* [ruby/forwardable] Fix NoMethodError on ruby 2.4 or earlierKazuhiro NISHIYAMA2019-10-261-1/+1
| | | | | | | | | https://github.com/ruby/forwardable/runs/242918994#step:5:12 ``` Error: test_obj_single_delegators_send_id(TestForwardable): NoMethodError: private method `attr_reader' called for #<Class:#<Object:0x00005605af501f58>> ``` https://github.com/ruby/forwardable/commit/711bbb2466
* [ruby/forwardable] Remove string allocation in def_{instance,single}_delegatorsJeremy Evans2019-10-261-2/+2
| | | | https://github.com/ruby/forwardable/commit/1a994c90e1
* [ruby/forwardable] Make def_{instance,single}_delegators skip :__send__ and ↵Jeremy Evans2019-10-262-6/+28
| | | | | | | | | | | :__id__ Previously, __send__ and __id__ were skipped if provided as strings, but not skipped if provided as symbols. Fixes Ruby Bug 8855. https://github.com/ruby/forwardable/commit/2e61c8c66c
* [ruby/forwardable] Update spec.filesHiroshi SHIBATA2019-10-261-1/+1
| | | | https://github.com/ruby/forwardable/commit/1b6991e589
* [ruby/forwardable] Extracted VERSION constant for gemspecHiroshi SHIBATA2019-10-263-6/+8
| | | | https://github.com/ruby/forwardable/commit/387758d45a
* [ruby/dbm] Remove taint supportJeremy Evans2019-10-262-23/+21
| | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. https://github.com/ruby/dbm/commit/1f0ff0bce1
* * 2019-10-26 [ci skip]git2019-10-261-1/+1
|
* Edit vm_opts.h for VM optionsNobuyoshi Nakada2019-10-261-1/+1
| | | | | | Revert 46f175ed5c8560b3c9da5ab7b4fa73287f1eb1c5 partially. Also tool/ruby_vm scripts refer the options in vm_opts.h.
* Fixed range argument condition [Feature #14784]Nobuyoshi Nakada2019-10-252-26/+51
| | | | | Allows a beginless/endless range, and an end-exclusive range unless the receiver is smaller than its end.
* enable assertion for debug.Koichi Sasada2019-10-251-1/+2
| | | | http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2340856
* skip tests that do not work on GC.stress卜部昌平2019-10-251-0/+9
| | | | | These tests rely on GC.stat and GC.last_gc_info, which are not stable when GC.stress is true. Skip them for that case.
* more on struct rb_call_data卜部昌平2019-10-255-173/+199
| | | | | Replacing adjacent struct rb_call_info and struct rb_call_cache into a struct rb_call_data.
* Add `shell: cmd`Kazuhiro NISHIYAMA2019-10-251-0/+3
| | | | | | | | | | Use cmd instead of new default shell for `call`. https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/ https://github.com/ruby/ruby/commit/7bcc639c720b59eb2199601963bcfa720168185b/checks#step:6:5 ``` call : The term 'call' is not recognized as the name of a cmdlet, function, script file, or operable program. ```
* Rename old var name with new nameaycabta2019-10-251-1/+1
|
* [ruby/tracer] Use Gemfile instead of ↵Hiroshi SHIBATA2019-10-251-3/+0
| | | | | | Gem::Specification#add_development_dependency. https://github.com/ruby/tracer/commit/9df7d7937b
* Handle case where ruby2_keywords method splats to ruby2_keywords methodJeremy Evans2019-10-242-0/+29
| | | | | | Previously, the keyword hash was duped (which results in a regular hash), but the dup was not marked as a keyword hash, causing the hash not to be marked as keyword hash even though it should be.
* Do not show progress at chocolateyNobuyoshi Nakada2019-10-251-1/+1
|
* retry tailcall optimization (#2529)wanabe2019-10-252-3/+49
| | | Sorry, f62f90367fc3bce6714e7c34cbd040e14e43fe07 is push miss.
* respect `param.flags.ruby2_keywords` at to_binary.Koichi Sasada2019-10-251-1/+3
| | | | | `param.flags.ruby2_keywords` is not store/load correctly at to_binary so restore this flag correctly.
* Duplicate hash when converting keyword hash to keywordsJeremy Evans2019-10-242-2/+12
| | | | | | | This mirrors the behavior when manually splatting a hash. This mirrors the changes made in setup_parameters_complex in 6081ddd6e6f2297862b3c7e898d28a76b8f9240b, so that splatting to a non-iseq method works the same as splatting to an iseq method.
* Update date specsJeremy Evans2019-10-243-13/+26
| | | | | | | Allow Date.new spec to run on 2.7. Separate Date.valid_jd? specs, since 2.7 is now stricter and requires numeric value for the first argument.
* Fix typo causing Date.new(year, month) to failJeremy Evans2019-10-242-1/+5
| | | | Add a test for this case.
* check T_ICLASS for Method#inspect.Koichi Sasada2019-10-251-0/+8
| | | | METHOD::klass can contain T_ICLASS so inspect should respect it.
* Install openssl with chocolateyNobuyoshi Nakada2019-10-251-2/+2
| | | | OpenSSL in chocolatey is 1.1.1d but outdated 1.0.2s is in vcpkg.
* Split by `&&`Nobuyoshi Nakada2019-10-251-2/+6
|
* Expanded an environment variableNobuyoshi Nakada2019-10-251-3/+1
| | | | PowerShell does not expand by `%varname%` syntax.
* Get rid of control flow by cmd.exeNobuyoshi Nakada2019-10-251-10/+2
| | | | | Github workflow stopped using cmd.exe suddenly, and `||` and `&&` seem not working in PowerShell.
* Define arguments forwarding as `ruby2_keywords` styleNobuyoshi Nakada2019-10-254-6/+37
| | | | | | | | | | | | Get rid of these redundant and useless warnings. ``` $ ruby -e 'def bar(a) a; end; def foo(...) bar(...) end; foo({})' -e:1: warning: The last argument is used as the keyword parameter -e:1: warning: for `foo' defined here -e:1: warning: The keyword argument is passed as the last hash parameter -e:1: warning: for `bar' defined here ```
* Assert no-kwrest caseNobuyoshi Nakada2019-10-251-1/+16
|
* Assert no-block caseNobuyoshi Nakada2019-10-251-2/+11
|
* Set method locationsNobuyoshi Nakada2019-10-251-2/+2
|
* * 2019-10-25 [ci skip]git2019-10-251-1/+1
|
* Arguments forwarding is not allowed in lambda [Feature #16253]Nobuyoshi Nakada2019-10-252-11/+15
|
* Remove unsused output_method argumentJeremy Evans2019-10-242-9/+3
| | | | Fixes Ruby Bug 9876.
* Refined `rp` output [ci skip]Nobuyoshi Nakada2019-10-241-14/+15
| | | | | So that the result structure can be accessed as `$number` variables, not a mere `VALUE`.
* Revert "[ruby/fiddle] Fix a failing test (#13)"Hiroshi SHIBATA2019-10-241-11/+0
| | | | This reverts commit 5ebb0d50f6560b35bc03deb79341a115c5f782ee.
* Revert "[ruby/fiddle] test: use env Hash"Hiroshi SHIBATA2019-10-241-13/+10
| | | | This reverts commit 4d844cbaed518743776594fa5ae33b86fe176ad1.
* Revert "[ruby/fiddle] Use ffi_closure_free by default. (#20)"Hiroshi SHIBATA2019-10-242-6/+42
| | | | This reverts commit ce6caade7c57a505f73086ccd7b33c14f7715f22.
* [ruby/webrick] Don't check tainting in access log escapingJeremy Evans2019-10-241-5/+3
| | | | | | | Only untaint result on Ruby <2.7, as taint support is deprecated in Ruby 2.7+ and no longer has an effect. https://github.com/ruby/webrick/commit/4c430f9410
* [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-HostJeremy Evans2019-10-242-1/+50
| | | | https://github.com/ruby/webrick/commit/6b6990ec81
* [ruby/webrick] Remove the squishing of whitespace in header valuesJeremy Evans2019-10-242-5/+2
| | | | | | | | | | While the stripping of header values is required by RFC 2616 4.2 and RFC 7230 3.2.4, the squishing is not and can break things, such as when one header contains an HMAC of another header. Fixes Ruby Bug 7021. https://github.com/ruby/webrick/commit/8b96088a86
* [ruby/webrick] bump version to 1.5.0Hiroshi SHIBATA2019-10-241-1/+1
| | | | https://github.com/ruby/webrick/commit/00c281caa7
* [ruby/webrick] Remove Webrick::HTTPResponse#to_sJeremy Evans2019-10-241-6/+0
| | | | | | | It is currently broken, and even if it worked, it can cause problems when debugging. See Ruby Bug 10715. https://github.com/ruby/webrick/commit/575dea8656
* [ruby/webrick] after ruby-2.6.0, set Net::HTTP#write_timeoutthekuwayama2019-10-241-1/+1
| | | | https://github.com/ruby/webrick/commit/3b51f6b4d2
* [ruby/fiddle] Remove taint support (#21)Jeremy Evans2019-10-247-58/+9
| | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. https://github.com/ruby/fiddle/commit/18d6fb6915
* [ruby/fiddle] Use ffi_closure_free by default. (#20)Vít Ondruch2019-10-242-42/+6
| | | | | | | | | | | | | | | | | | | | | * Use ffi_closure_free unconditionally. The current conditionals reflect historic heritage of FFI. Usage of ffi_closure_free should be better default nowadays, because libffi 3.0.5 fixing issues of ffi_closure_free should be widely available. * RUBY_LIBFFI_MODVERSION is not used anymore. Because `ffi_closure_free()` is not used unconditionally, there is no other use for RUBY_LIBFFI_MODVERSION define, so drop its usage. * Use more meaningful variable name. `ver` variable used to be used to pupulate RUBY_LIBFFI_MODVERSION define. Since the define was removed, the `libffi_dir` variable name should better describe the remaining usage of the variable. https://github.com/ruby/fiddle/commit/c49cc79eb8
* [ruby/fiddle] Use RbConfig::SIZEOF (#19)Nobuyoshi Nakada2019-10-241-2/+2
| | | | https://github.com/ruby/fiddle/commit/ea06b28db8