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

60034 Коммитов

Автор SHA1 Сообщение Дата
卜部昌平 31fc34c969 delete unreachable branch
Case of __cplusplus is handled in cxxanyargs.hpp now.  These deleted
codes no longer reachable.
2020-01-28 15:42:57 +09:00
卜部昌平 01825e8bff template metaprogramming instead of macros
C++ (and myself) hates macros.  If we could do the same thing in both
preprocessor and template, we shall choose template.  This particular
part of the ruby header is one of such situations.
2020-01-28 15:42:57 +09:00
卜部昌平 ab33b3d691 move macros around
Would like to edit them in forthcoming commit.
2020-01-28 15:42:57 +09:00
Koichi Sasada 9552262bb2 support multi-run for test/ruby/test_struct.rb
Remove Structs to avoid redefinition warnings.
2020-01-28 15:23:52 +09:00
Koichi Sasada 4df0819c5d support multi-run for test/ruby/test_settracefunc.rb
need to remove Constants.
2020-01-28 15:23:51 +09:00
Koichi Sasada 0f03c1433e support multi-run for test/ruby/test_primitive.rb
need to redefine some classes.
2020-01-28 15:23:51 +09:00
Koichi Sasada 9b65bfdc9e support multi-run for test/ruby/test_refinement.rb
Give up to support multi-run:
* test_method_should_use_refinements
* test_instance_method_should_use_refinements

I hope someone can revisit it.
2020-01-28 15:23:51 +09:00
Koichi Sasada 56b0300f24 support multi-run for test/ruby/test_proc.rb
Mysterious error:
`remove_method(:foo) if method_defined?(:foo)` raise an exception
`method `foo' not defined in #<Class:#<TestProc:0x000055d12ff154e0>>`
This patch rename the method name foo to foo_arity to solve it.
2020-01-28 15:23:51 +09:00
Koichi Sasada 1bc731cb65 support multi-run for test/ruby/test_module.rb
add cleanup code in some tests.
2020-01-28 15:23:51 +09:00
Koichi Sasada cc2fe6936c support multi-run for test/ruby/test_method.rb
need to restore a method.
2020-01-28 15:23:51 +09:00
Koichi Sasada ac2b945bc0 support multi-run for test/ruby/test_marshal.rb
need to remove Constants.
2020-01-28 15:23:51 +09:00
Koichi Sasada 251930cea0 support multi-run for test/ruby/test_iseq.rb
need to remove a Constant.
2020-01-28 15:23:51 +09:00
Koichi Sasada 962c7abb13 support multi-run for test/ruby/test_eval.rb
need to remove a Constant.
2020-01-28 15:23:51 +09:00
Koichi Sasada 5f7be6243a support multi-run for test/ruby/test_encoding.rb
Unique encoding name is required.
2020-01-28 15:23:51 +09:00
Koichi Sasada 14759e6907 support multi-run for ruby/test_const.rb
need to redef Constants.
2020-01-28 15:23:51 +09:00
Koichi Sasada 501e7f4959 support multi-run for ruby/test_basicinstructions.rb
cvar should be initialized at first.
2020-01-28 15:23:51 +09:00
Koichi Sasada b17bab7472 support multi-run for ruby/test_autoload.rb
It requires more cleanup.
2020-01-28 15:23:51 +09:00
Koichi Sasada 8dbd5c76a0 support multiple run for test/ruby/test_array.
test-all supports multiple run with option --repeat-count=2
but test_equal_resize doesn't support it.
2020-01-28 15:23:51 +09:00
git c9c0ae0593 * 2020-01-28 [ci skip] 2020-01-28 10:05:33 +09:00
Nobuyoshi Nakada 10842daeb5
Added RDoc files to parse [Bug #16596] 2020-01-28 10:04:25 +09:00
Nobuyoshi Nakada 33d02e6bc7
Skip empty directories to install [Bug #16596] 2020-01-28 10:04:25 +09:00
Kazuhiro NISHIYAMA 0b2c7473dd
Fix call-seq of GC.verify_compaction_references [ci skip] 2020-01-27 18:58:39 +09:00
Nobuyoshi Nakada bc8f28fbd0
Fixed a typo, missing "i" [ci skip] 2020-01-27 16:23:52 +09:00
Nobuyoshi Nakada 1ddc719a56
Check the encoding of `half:` option 2020-01-27 16:12:15 +09:00
Nobuyoshi Nakada af899503a6
Moved `GC.verify_compaction_references` to gc.rb
And fixed a segfault by coercion of `Qundef`, when any keyword
argument without `toward:` option is given.
2020-01-27 10:52:37 +09:00
Nobuyoshi Nakada 9b55a9649f
Removed useless "spec"s
It is not specific to particular methods that keyword option
arguments are coerced to `Hash`es using `to_hash` method.
2020-01-27 10:19:09 +09:00
Nobuyoshi Nakada e710e9e886
Fixed missing dependency on array.rb 2020-01-27 10:07:46 +09:00
git ef96981d6f * 2020-01-27 [ci skip] 2020-01-27 09:54:12 +09:00
Nobuyoshi Nakada b1eae5e15e
Cleaned an excess semicolon up [ci skip]
which has not been removed when translated from C.
2020-01-27 09:49:13 +09:00
Kazuhiro NISHIYAMA 838fa941f1
Add more debug print
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20200125T032406Z.fail.html.gz
```
IMAPTest#test_connection_closed_without_greeting [/export/home/rubyci/chkbuild-tmp/tmp/build/20200125T032406Z/ruby/test/net/imap/test_imap.rb:485]:
[Net::IMAP::Error] exception expected, not #<RuntimeError: {:"server before close"=>"#<TCPServer:fd 10, AF_INET6, ::1, 48515>", :sock_addr=>["AF_INET6", 48515, "::1", "::1"], :sock_peeraddr=>["AF_INET6", 35223, "::1", "::1"], :e=>#<Errno::EINVAL: Invalid argument - connect(2) for [::1]:48515>, :server=>#<TCPServer:(closed)>, :port=>48515, :server_addr=>"::1"}>.
```
2020-01-26 20:03:27 +09:00
Nobuyoshi Nakada d4e1d4e94e
Moved Array#sample to rbinc 2020-01-26 19:45:58 +09:00
Nobuyoshi Nakada 29eb1b1602
Moved Array#shuffle and Array#shuffle! to rbinc 2020-01-26 19:40:34 +09:00
aycabta 0aa5195262 Use test_mode on Reline::History::Test for encoding 2020-01-26 12:58:25 +09:00
aycabta c257d81186 Always use UTF-8 for Reline::GeneralIO on Windows 2020-01-26 12:57:13 +09:00
aycabta 8f4beec152 Always refer to Reline::IOGate.encoding 2020-01-26 12:50:11 +09:00
git af64d3bc6e * 2020-01-26 [ci skip] 2020-01-26 07:42:09 +09:00
Hiroshi SHIBATA aacd918340
Do not use `git pull` because origin/master was already fetched. 2020-01-26 07:40:56 +09:00
Hiroshi SHIBATA da2d6ca8f1
Show the repository name before update task 2020-01-26 07:38:20 +09:00
Yusuke Endoh 4396ced07d spec/ruby/core/process/times_spec.rb: add an output code for debugging 2020-01-25 19:48:10 +09:00
Yusuke Endoh b4711a0fa0 test/rinda/test_rinda.rb: Increase the timeout
Attempts to fix a occational failure on Solaris with sunc

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20200124T160008Z.fail.html.gz
```
  1) Error:
Rinda::TestRingServer#test_do_reply:
Timeout::Error: timeout
```
2020-01-25 14:14:05 +09:00
Nobuyoshi Nakada 0c436bbfbf
Recheck array length after `to_str` conversion
https://hackerone.com/reports/244787
2020-01-25 14:06:38 +09:00
Nobuyoshi Nakada 2b2821acd3
Recheck elements type after `to_str` conversion
https://hackerone.com/reports/244786
2020-01-25 13:57:33 +09:00
git 92a30acbfb * 2020-01-25 [ci skip] 2020-01-25 06:04:34 +09:00
Jeremy Evans c1d8829ef5 Do not autosplat when calling proc with empty keyword splat
With the removal of the splatted argument when using an empty
keyword splat, the autosplat code considered an empty keyword
splat the same as no argument at all.  However, that results
in autosplat behavior changing dependent on the content of
the splatted hash, which is not what anyone would expect or
want.  This change always skips an autosplat if keywords were
provided.

Fixes [Bug #16560]
2020-01-24 13:04:14 -08:00
Kazuhiro NISHIYAMA 9af7d048b6
Fix a typo [ci skip] 2020-01-24 15:59:45 +09:00
MSP-Greg 5bb1c81a33 rename make-cheetsheet.md [ci skip] 2020-01-24 15:27:21 +09:00
NARUSE, Yui 80bbc7f402 Add #verify_hostname= and #verify_hostname to skip hostname verification
[Feature #16555]
https://github.com/ruby/ruby/pull/2858
2020-01-24 15:17:02 +09:00
卜部昌平 a19228f878 brace the fact that lchmod(2) can EOPNOTSUPP
Musl libc has this function as a tiny wrapper of fchmodat(3posix).  On
the other hand Linux kernel does not support changing modes of a symlink.
The operation always fails with EOPNOTSUPP.  This fchmodat behaviour is
defined in POSIX.  We have to take care of such exceptions.
2020-01-24 10:49:35 +09:00
卜部昌平 50925b6409 reroute musl unistd.h weirdness
Musl is (of course) not glibc.  Its confstr(3) does not understand
_CS_GNU_LIBC_VERSION.  That's fair.  Problem is, its unistd.h has that
constant defined for unknown reason.  We cannot blindly say the libc is
glibc by looking at it.  Instead we have to kick it, then see if it
quacks like a duck.

See https://git.musl-libc.org/cgit/musl/tree/include/unistd.h
2020-01-24 10:49:35 +09:00
卜部昌平 3b9f36d6c6 pass appropriate libc path
The same as https://github.com/ruby/ruby/pull/2686, but for musl libc.
Musl is not named as libc.so.6 so the `ldd` hack implemented some lines
below does not work.
2020-01-24 10:49:35 +09:00