Граф коммитов

58601 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada cf9344131c Raise on end-exclusive ranges [Feature #14784]
Raises an error on end-exclusive ranges unless endless, regardless
the receiver.
2019-10-26 12:52:50 +09:00
Hiroshi SHIBATA f14b754151
[ruby/forwardable] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/forwardable/commit/1e7123a81b
2019-10-26 09:26:51 +09:00
Kazuhiro NISHIYAMA f625a4be3c [ruby/forwardable] Fix NoMethodError on ruby 2.4 or earlier
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
2019-10-26 09:25:17 +09:00
Jeremy Evans 0098977053 [ruby/forwardable] Remove string allocation in def_{instance,single}_delegators
https://github.com/ruby/forwardable/commit/1a994c90e1
2019-10-26 09:25:11 +09:00
Jeremy Evans d00551a7bb [ruby/forwardable] Make def_{instance,single}_delegators skip :__send__ and :__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
2019-10-26 09:25:06 +09:00
Hiroshi SHIBATA b15e0983f7 [ruby/forwardable] Update spec.files
https://github.com/ruby/forwardable/commit/1b6991e589
2019-10-26 09:25:01 +09:00
Hiroshi SHIBATA b25ab3832f [ruby/forwardable] Extracted VERSION constant for gemspec
https://github.com/ruby/forwardable/commit/387758d45a
2019-10-26 09:24:55 +09:00
Jeremy Evans 0c579b0a97 [ruby/dbm] Remove taint support
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 07:03:33 +09:00
git 41d5294506 * 2019-10-26 [ci skip] 2019-10-26 02:56:12 +09:00
Nobuyoshi Nakada 84b69c520e
Edit vm_opts.h for VM options
Revert 46f175ed5c partially.

Also tool/ruby_vm scripts refer the options in vm_opts.h.
2019-10-26 02:54:29 +09:00
Nobuyoshi Nakada 42c652d195 Fixed range argument condition [Feature #14784]
Allows a beginless/endless range, and an end-exclusive range
unless the receiver is smaller than its end.
2019-10-25 23:30:47 +09:00
Koichi Sasada 88135845f1 enable assertion for debug.
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2340856
2019-10-25 17:58:54 +09:00
卜部昌平 f3f1d89d46 skip tests that do not work on GC.stress
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.
2019-10-25 16:44:15 +09:00
卜部昌平 356e203a3a more on struct rb_call_data
Replacing adjacent struct rb_call_info and struct rb_call_cache
into a struct rb_call_data.
2019-10-25 12:24:22 +09:00
Kazuhiro NISHIYAMA a7ec88ad61
Add `shell: cmd`
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/

7bcc639c72/checks (step):6:5
```
call : The term 'call' is not recognized as the name of a cmdlet, function, script file, or operable program.
```
2019-10-25 10:45:46 +09:00
aycabta 7bcc639c72 Rename old var name with new name 2019-10-25 10:07:17 +09:00
Hiroshi SHIBATA 09936d1d74
[ruby/tracer] Use Gemfile instead of Gem::Specification#add_development_dependency.
https://github.com/ruby/tracer/commit/9df7d7937b
2019-10-25 09:29:10 +09:00
Jeremy Evans fb15e79403 Handle case where ruby2_keywords method splats to ruby2_keywords method
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.
2019-10-24 17:25:43 -07:00
Nobuyoshi Nakada 5040eea959
Do not show progress at chocolatey 2019-10-25 08:54:33 +09:00
wanabe 4ff2c58f91 retry tailcall optimization (#2529)
Sorry, f62f90367f is push miss.
2019-10-25 04:40:39 +09:00
Koichi Sasada 58b363bf0d respect `param.flags.ruby2_keywords` at to_binary.
`param.flags.ruby2_keywords` is not store/load correctly at to_binary
so restore this flag correctly.
2019-10-25 04:39:22 +09:00
Jeremy Evans d6a2507e49 Duplicate hash when converting keyword hash to keywords
This mirrors the behavior when manually splatting a hash.  This
mirrors the changes made in setup_parameters_complex in
6081ddd6e6, so that splatting to a
non-iseq method works the same as splatting to an iseq method.
2019-10-24 12:35:04 -07:00
Jeremy Evans 8c59b9250c Update date specs
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.
2019-10-24 12:34:51 -07:00
Jeremy Evans 5fe8943fda Fix typo causing Date.new(year, month) to fail
Add a test for this case.
2019-10-24 12:34:51 -07:00
Koichi Sasada e8f90e7397 check T_ICLASS for Method#inspect.
METHOD::klass can contain T_ICLASS so inspect should respect it.
2019-10-25 04:01:02 +09:00
Nobuyoshi Nakada b7c8874b62
Install openssl with chocolatey
OpenSSL in chocolatey is 1.1.1d but outdated 1.0.2s is in vcpkg.
2019-10-25 02:31:21 +09:00
Nobuyoshi Nakada 826bbf9837
Split by `&&` 2019-10-25 02:24:00 +09:00
Nobuyoshi Nakada 967b924aa0
Expanded an environment variable
PowerShell does not expand by `%varname%` syntax.
2019-10-25 02:08:03 +09:00
Nobuyoshi Nakada b86af95c5b
Get rid of control flow by cmd.exe
Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
2019-10-25 02:04:14 +09:00
Nobuyoshi Nakada b609bdeb53
Define arguments forwarding as `ruby2_keywords` style
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
```
2019-10-25 01:16:05 +09:00
Nobuyoshi Nakada 4b3e007e07
Assert no-kwrest case 2019-10-25 01:07:22 +09:00
Nobuyoshi Nakada ed65e2d5ae
Assert no-block case 2019-10-25 00:56:27 +09:00
Nobuyoshi Nakada 8d0c5eb805
Set method locations 2019-10-25 00:54:24 +09:00
git 2ea698969e * 2019-10-25 [ci skip] 2019-10-25 00:16:26 +09:00
Nobuyoshi Nakada 6279e45cde
Arguments forwarding is not allowed in lambda [Feature #16253] 2019-10-25 00:15:39 +09:00
Jeremy Evans 1fb4584825 Remove unsused output_method argument
Fixes Ruby Bug 9876.
2019-10-24 23:47:50 +09:00
Nobuyoshi Nakada 8439caab0a
Refined `rp` output [ci skip]
So that the result structure can be accessed as `$number`
variables, not a mere `VALUE`.
2019-10-24 23:38:27 +09:00
Hiroshi SHIBATA dc44ab2913 Revert "[ruby/fiddle] Fix a failing test (#13)"
This reverts commit 5ebb0d50f6.
2019-10-24 20:58:32 +09:00
Hiroshi SHIBATA de5ee47c3d Revert "[ruby/fiddle] test: use env Hash"
This reverts commit 4d844cbaed.
2019-10-24 20:58:32 +09:00
Hiroshi SHIBATA efd641ffab Revert "[ruby/fiddle] Use ffi_closure_free by default. (#20)"
This reverts commit ce6caade7c.
2019-10-24 20:58:32 +09:00
Jeremy Evans f126d80b1e [ruby/webrick] Don't check tainting in access log escaping
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
2019-10-24 19:47:29 +09:00
Jeremy Evans c28d50a753 [ruby/webrick] Support literal IPv6 addresses in X-Forwarded-Host
https://github.com/ruby/webrick/commit/6b6990ec81
2019-10-24 19:47:20 +09:00
Jeremy Evans 37c266aa57 [ruby/webrick] Remove the squishing of whitespace in header values
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
2019-10-24 19:47:10 +09:00
Hiroshi SHIBATA 84ed4c3d59 [ruby/webrick] bump version to 1.5.0
https://github.com/ruby/webrick/commit/00c281caa7
2019-10-24 19:47:01 +09:00
Jeremy Evans 8189d496df [ruby/webrick] Remove Webrick::HTTPResponse#to_s
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
2019-10-24 19:46:08 +09:00
thekuwayama f0452574b1 [ruby/webrick] after ruby-2.6.0, set Net::HTTP#write_timeout
https://github.com/ruby/webrick/commit/3b51f6b4d2
2019-10-24 19:46:01 +09:00
Jeremy Evans b809784817 [ruby/fiddle] Remove taint support (#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/fiddle/commit/18d6fb6915
2019-10-24 19:34:49 +09:00
Vít Ondruch ce6caade7c [ruby/fiddle] Use ffi_closure_free by default. (#20)
* 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
2019-10-24 19:34:43 +09:00
Nobuyoshi Nakada 30d46966a9 [ruby/fiddle] Use RbConfig::SIZEOF (#19)
https://github.com/ruby/fiddle/commit/ea06b28db8
2019-10-24 19:34:36 +09:00
Sutou Kouhei 4d844cbaed [ruby/fiddle] test: use env Hash
https://github.com/ruby/fiddle/commit/a01a962342
2019-10-24 19:34:29 +09:00