Commit graph

64552 commits

Author SHA1 Message Date
git
a451648b21 * 2020-06-14 [ci skip] 2020-06-14 08:34:13 +09:00
Takashi Kokubun
1583c743d5
Skip test_getbinaryfile_command_injection on --jit-wait
Timeout-based test often fails with --jit-wait as a false positive.
Like other tests in the TestFTP, let me skip this as well.

http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3001181
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3000134
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2999923
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2998857
2020-06-13 16:33:46 -07:00
Nobuyoshi Nakada
2496bdb28f
Extracted argument forwarding staffs 2020-06-13 23:33:40 +09:00
Nobuyoshi Nakada
8e5352569b
[ripper] use Ripper DSL 2020-06-13 23:33:40 +09:00
Burdette Lamar
8b58f1d8c7
[ci skip] Enhanced RDoc for Array (#3219)
Methods:

    #join
    #inspect/#to_s
    #to_a
2020-06-13 09:14:17 -05:00
Nobuyoshi Nakada
1efc3d6d65
Suppress warnings [Feature #15973] 2020-06-13 22:57:31 +09:00
Nobuyoshi Nakada
1f1b62fb7b
Added install-dbg
Scripts to run the interpreter via debugger.
2020-06-13 08:22:06 +09:00
Burdette Lamar
eabdad5e2f
[ci skip] Enhanced Rdoc for Array (#3216)
Methods:

    #insert
    #each
    #each_index
    #reverse_each
    #length
    #empty?
2020-06-12 11:32:31 -05:00
git
90412d7a63 * 2020-06-13 [ci skip] 2020-06-13 01:13:53 +09:00
Jeremy Evans
b212c7c7d1 Update example code in Enumerator#chunk documentation [ci skip]
The code assumed that /usr/share/dict/words did not use mixed
case, and it does at least on a few operating systems.

From CryptoRAT (Luke Elliot)

Fixes [Bug #16957]
2020-06-12 09:11:43 -07:00
Nobuyoshi Nakada
510df47f5f
Revert "[ruby/fileutils] Make verbose output go to stdout instead of stderr"
This reverts commit 7cddb844e6,
because the test of rake 13.0.1 is depending on the previous
behavior.
2020-06-12 19:02:50 +09:00
Nobuyoshi Nakada
cc9ca468fe [ruby/fileutils] Fix #install with "X" mode option
`FileUtils#install` methed raises an unexpected `TypeError`, when
called with `mode:` option which has `"X"`.

```
$ ruby -rfileutils -e 'FileUtils.install("tmp/a", "tmp/b", mode: "o+X")'
/opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `directory?': no implicit conversion of File::Stat into String (TypeError)
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `block (3 levels) in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each_char'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `inject'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `block (2 levels) in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each_slice'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `block in symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `each'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `inject'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `symbolic_modes_to_i'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:973:in `fu_mode'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:883:in `block in install'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1588:in `block in fu_each_src_dest'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1604:in `fu_each_src_dest0'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1586:in `fu_each_src_dest'
	from /opt/local/lib/ruby/2.7.0/fileutils.rb:877:in `install'
	from -e:1:in `<main>'
```

In spite of that `symbolic_modes_to_i` considers the `File::Stat`
`path` case at the beginning, in `"X"` case, `path` is passed to
`FileTest.directory?` method which requires a `String`.  In such
case, the mode in `path` should be examined instead.

af675af6b2
2020-06-12 18:38:49 +09:00
Jeremy Evans
7cddb844e6 [ruby/fileutils] Make verbose output go to stdout instead of stderr
Verbose output is not error output, and should be sent to
stdout and not stderr.

Fixes Ruby bug 4436

563a383025
2020-06-12 18:38:47 +09:00
Koichi Sasada
e2678781c7 prevent memory allocation for GC tests
We observed test failures on test_latest_gc_info with random
order CI.
http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/2998078l0ll

To solve it, use a pre-allocated hash object and rehearsal.
2020-06-12 17:32:49 +09:00
卜部昌平
1f4db23ac1 .gdbinit: struct RHash::basic is not a pointer 2020-06-12 10:35:44 +09:00
卜部昌平
c74b044aab .gdbinit: as.heap.aux.shared no longer exist
Maybe 182ae1407b missed it.
2020-06-12 10:23:15 +09:00
Jeremy Evans
a6cf2f3d22 Make mutating the result of SortedSet#to_a not affect the set
Fixes [Bug #15834]
2020-06-11 14:02:00 -07:00
Alan Wu
e100fcbdd1 Prohibit setting class variable on frozen module through inheritance
Setting class varibles goes through the ancestor list which can
contain iclasses. Iclasses share a lot of information with the
module they are made from, but not the frozen status.

Check the frozen status of the module instead of the iclass.
2020-06-11 14:46:08 -04:00
git
631c01f5ae * 2020-06-12 [ci skip] 2020-06-12 00:55:31 +09:00
Burdette Lamar
eb5ecc2ea8
Enhanced Rdoc for Array#rindex and Array#[]= (#3204)
* Enhanced Rdoc for Array#rindex and Array#[]=

* Enhanced Rdoc for Array#rindex and Array#[]=
2020-06-11 10:55:11 -05:00
Jeremy Evans
2188d6d160 Warn when passing a non-literal block to Kernel#lambda
Implements [Feature #15973]
2020-06-11 07:30:48 -07:00
Nobuyoshi Nakada
5349506eb4
Updated autogenerated dependencies
Sorted the lines asnd added mjit_build_dir.o dependencies.
2020-06-11 18:06:29 +09:00
Kazuhiro NISHIYAMA
2dd61df69f
Revert encoding to ::Encoding::UTF_8 if fu_windows? 2020-06-11 17:12:11 +09:00
Kazuhiro NISHIYAMA
59646e8e29
Fix error in remove_entry
When `LANG=C`, dir is `UTF-8` and `base` is 'ASCII-8BIT` in `FileUtils::Entry_#join`.
So `Encoding::CompatibilityError` occurred and files are not removed.

20200611T060002Z.fail.html.gz
```
  1) Error:
WEBrick::TestFileHandler#test_cjk_in_path:
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/tmp/???20200611-1887828-3nn72a
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1460:in `rmdir'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1460:in `block in remove_dir1'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1471:in `platform_support'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1459:in `remove_dir1'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1452:in `remove'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:780:in `block in remove_entry'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1509:in `ensure in postorder_traverse'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:1509:in `postorder_traverse'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/fileutils.rb:778:in `remove_entry'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/lib/tmpdir.rb:97:in `mktmpdir'
    /home/chkbuild/chkbuild/tmp/build/20200611T060002Z/ruby/test/webrick/test_filehandler.rb:292:in `test_cjk_in_path'
```
2020-06-11 16:29:31 +09:00
Nobuyoshi Nakada
a6713a5758
Refined ioctl error description 2020-06-11 14:31:39 +09:00
Masataka Pocke Kuwabara
c1d1f92e8a [ruby/logger] Mention File::Null in Logger#new document
2e772770be
2020-06-11 14:22:32 +09:00
Masataka Pocke Kuwabara
c7da0fcb39 [ruby/logger] Mention behavior when logdev is a nil in the document
8dc270ee23
2020-06-11 14:22:19 +09:00
Lourens Naudé
ae93ebae67 [ruby/logger] Let Logger#reopen not raise on nil log devices
da7bf844e5
2020-06-11 13:54:04 +09:00
Lourens Naudé
f3e12caa08 [ruby/logger] Let File::NULL ("/dev/null", "NUL" etc.) be considered a nil log device
b42a1b99aa
2020-06-11 13:53:50 +09:00
Hiroshi SHIBATA
13baa2b5a5 [ruby/matrix] Drop to Ruby 2.4 and 2.5
3244d82804
2020-06-11 13:48:17 +09:00
Kazuhiro NISHIYAMA
e698bf1a7f [ruby/webrick] Fix httpd error in CJK directory
[Bug #16753]

83cf440858
2020-06-11 13:38:32 +09:00
John W Higgins
6742fcf553 [ruby/webrick] Extract creation of Net::HTTP in httpproxy
e58195faf8
2020-06-11 13:37:24 +09:00
Hiroshi SHIBATA
fdd475386d
Gem::Specification#date is set automatically by RubyGems.org. 2020-06-11 13:29:06 +09:00
Hiroshi SHIBATA
3b3a9edf48
Drop to Ruby 2.4 2020-06-11 13:06:59 +09:00
Hiroshi SHIBATA
44581d98bb [ruby/net-imap] Drop to Ruby 2.4
c3256e3848
2020-06-11 12:39:31 +09:00
Hiroshi SHIBATA
aa8ca03f39
[ruby/delegate] Fixed superclass missmatch
3ab3add800
2020-06-11 12:24:57 +09:00
Nobuyoshi Nakada
1fb16dbb6e
Adjusted indents [ci skip] 2020-06-11 10:20:08 +09:00
Jeremy Evans
f3e927b0cc Make proc/Proc.new without block an error instead of warning
The warning for these was added in 2.7.
2020-06-10 17:49:54 -07:00
Jean byroot Boussier
f48fce4981 Fix a typo in instance_variable_set documentation 2020-06-10 17:49:11 -07:00
Peter Zhu
0213f5b08a Fix ASan crash 2020-06-10 16:36:44 -07:00
Nobuyoshi Nakada
04fddf3573 ENV.delete should return the result of block on non-existing key
Fixes [Bug #16173]

Co-Authored-By: Burdette Lamar <burdettelamar@yahoo.com>
Co-Authored-By: Jeremy Evans <code@jeremyevans.net>
2020-06-10 12:49:27 -07:00
git
aab2a7cfce * 2020-06-11 [ci skip] 2020-06-11 02:54:05 +09:00
Jeremy Evans
573e8d7736 Change language used in instance_variable_set documentation [ci skip]
This uses less harsh language recommended by duerst.

Fixes [Misc #15265]
Fixes [Misc #15748]
2020-06-10 10:49:28 -07:00
Nobuyoshi Nakada
96d184aa49
Run spec/bundler without a sub-make 2020-06-10 23:30:13 +09:00
Nobuyoshi Nakada
73ca989a81
spec/bundler must not be run by mspec 2020-06-10 21:56:36 +09:00
Benoit Daloze
998ccb0831 [rubygems/rubygems] Use parenthesis for clarity for ternary condition
d1247472b9
2020-06-10 21:33:46 +09:00
Benoit Daloze
b62e9c912d [rubygems/rubygems] Increase timeouts in test_gem_stream_ui.rb
* 0.1s is really short and fails in CI: #3622
d8495ae1c1
2020-06-10 21:33:14 +09:00
Burdette Lamar
8d4b259408
Enhanced Rdoc for Array#fetch and Array#index (#3202)
* Enhanced Rdoc for Array#fetch and Array#index
* Couple of tweaks (per review) in Rdoc for Hash
2020-06-10 06:45:29 -05:00
Nobuyoshi Nakada
21df4dce53
Skip updating exts in test-all to reduce the turnaround time 2020-06-10 19:42:27 +09:00
卜部昌平
5648976c3c vm_call_method: avoid marking on-stack object
This callcache is on stack, must not be GCed.  However its contents are
copied from other materials, which can be an ordinal object.  Should
set a flag to make sure it is properly skipped by the GC.
2020-06-10 10:22:39 +09:00