Nobuyoshi Nakada
e9974a466a
Get rid of sporadic WSAEACCES on Windows [ruby-dev:42661]
2021-05-21 18:26:07 +09:00
Koichi Sasada
817764bd82
simple rescue+while+break should not use `throw`
...
609de71f04
fixes the issue by using
`throw` insn if `ensure` is used. However, that patch introduce
additional `throw` even if it is not needed. This patch solves
the issue.
This issue is pointed by @mame.
2021-05-21 18:12:14 +09:00
Nobuyoshi Nakada
59b327aa58
[ruby/rdoc] Drop support for Ruby 2.4
...
https://github.com/ruby/rdoc/commit/f480b970cc
2021-05-21 15:53:34 +09:00
Nobuyoshi Nakada
f18a0b7654
[ruby/rdoc] Follow-up rubygems
...
Use test-unit assertions instead of minitest.
https://github.com/ruby/rdoc/commit/d6a6209d7f
2021-05-21 15:53:34 +09:00
Nobuyoshi Nakada
10e63f3f56
[ruby/rdoc] Vertical-bar is disallowed in path names on Windows
...
No risk of remote code execution, when the file cannot be created.
https://github.com/ruby/rdoc/runs/2565343916?check_suite_focus=true#step:5:58
```
Error: test_remove_unparseable_CVE_2021_31799(TestRDocRDoc): Errno::EINVAL: Invalid argument @ utime_failed - | touch evil.txt && echo tags
D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1142:in `utime'
D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1142:in `block in touch'
D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1139:in `each'
D:/rubyinstaller-head-x64/lib/ruby/3.1.0/fileutils.rb:1139:in `touch'
D:/a/rdoc/rdoc/test/rdoc/test_rdoc_rdoc.rb:463:in `block (2 levels) in test_remove_unparseable_CVE_2021_31799'
460: temp_dir do
461: file_list = ['| touch evil.txt && echo tags']
462: file_list.each do |f|
=> 463: FileUtils.touch f
464: end
465:
466: assert_equal file_list, @rdoc.remove_unparseable(file_list)
```
https://github.com/ruby/rdoc/commit/a7df7dc8fa
2021-05-21 15:53:34 +09:00
Nobuyoshi Nakada
a298bdf860
[ruby/rdoc] Dir.children is 2.5+
...
RDoc seems still supporting outdated 2.4.
https://github.com/ruby/rdoc/runs/2565344070?check_suite_focus=true#step:5:64
```
Error: test_remove_unparseable_CVE_2021_31799(TestRDocRDoc): NoMethodError: undefined method `children' for Dir:Class
/home/runner/work/rdoc/rdoc/test/rdoc/test_rdoc_rdoc.rb:467:in `block in test_remove_unparseable_CVE_2021_31799'
464: end
465:
466: assert_equal file_list, @rdoc.remove_unparseable(file_list)
=> 467: assert_equal file_list, Dir.children('.')
468: end
469: end
470:
```
https://github.com/ruby/rdoc/commit/5a4a64dc0f
2021-05-21 15:53:34 +09:00
Yusuke Endoh
21d24767e8
[ruby/rdoc] Update rdoc.gemspec by adding lib/rdoc/markup/table.rb
...
Fixes ruby/rdoc#808
https://github.com/ruby/rdoc/commit/80766fd389
2021-05-21 15:51:53 +09:00
aycabta
0ee24b4fab
[ruby/rdoc] Version 6.3.1
...
https://github.com/ruby/rdoc/commit/9307f932b7
2021-05-21 13:42:24 +09:00
aycabta
b1c73f239f
[ruby/rdoc] Use File.open to fix the OS Command Injection vulnerability in CVE-2021-31799
...
https://github.com/ruby/rdoc/commit/a7f5d6ab88
2021-05-21 13:42:24 +09:00
Nobuyoshi Nakada
9edad0df74
Remove short options with argument [Bug #17870 ]
...
Remove GNU make `-O` and `-W` options which are short but followed
by an argument, so that `$mflags.set?(?n)` does not return `true`
wrongly.
2021-05-21 10:34:28 +09:00
Nobuyoshi Nakada
a35d137a37
[DOC] Moved `File.fnmatch?` to dir.rb
...
So that no longer disturbed by C comment delimiters.
2021-05-21 09:01:01 +09:00
git
a7fae2af72
* 2021-05-21 [ci skip]
2021-05-21 04:25:55 +09:00
Jeremy Evans
2e919e4a64
Remove extra word in heredoc documentation
...
From Thibault Jouan
Fixes [Misc #17872 ]
2021-05-20 12:24:41 -07:00
Nobuyoshi Nakada
c711093559
Get rid of sporadic WSAEACCES on Windows [ruby-dev:42661]
2021-05-20 21:56:58 +09:00
Takashi Kokubun
dfe21ef7a1
Do not block JIT with pending_stale_p
...
Because we want to flush pending stale units before unloading units, the
pending_stale_p check is implemented in this waiting loop.
However, once all methods are called more than --jit-min-calls,
mjit_worker_wakeup will not be signaled again. As a result, when
mjit_recompile is called after that and pending_stale_p becomes true,
MJIT stops processing methods in the unit queue even if the queue is
very long and MJIT does nothing, waiting for the signal.
There should be a better way to handle this, but as a fix to be
backported to Ruby 3.0, let me make an obvious simple commit here.
2021-05-20 03:33:29 -07:00
Yusuke Endoh
5026f9a5d5
compile.c: stop the jump-jump optimization if the second has any event
...
Fixes [Bug #17868 ]
2021-05-20 19:13:39 +09:00
git
821e3c128f
* 2021-05-20 [ci skip]
2021-05-20 14:35:14 +09:00
Nobuyoshi Nakada
63663bb459
Rename nucomp_false s nucomp_real_p_m
2021-05-20 14:31:49 +09:00
Hiroshi SHIBATA
adcbae8d49
Removed minitest/mock
2021-05-19 14:24:01 +09:00
Nobuyoshi Nakada
1d170fdc6d
ext/json/parser/parser.h: Add fallback MAYBE_UNUSED
...
e2ad91fc20
2021-05-19 10:16:22 +09:00
git
637683c9f4
* 2021-05-19 [ci skip]
2021-05-19 06:53:29 +09:00
Aaron Patterson
e4e416380d
Revert any references that are on the machine stack after compacting
...
Since compaction can be concurrent, the machine stack is allowed to
change while compaction is happening. When compaction finishes, there
may be references on the machine stack that need to be reverted so that
we can remove the read barrier.
2021-05-18 14:53:07 -07:00
Nobuyoshi Nakada
7c716b686c
ext/json/parser/prereq.mk: fix warnings for code generated by ragel
...
* type-limits when plain-char is unsigned
* unused-const-variable for NFA constants
2021-05-18 23:26:03 +09:00
Burdette Lamar
6b32f1f338
Object whats here ( #4503 )
...
What's Here section for class Object.
2021-05-18 08:16:29 -05:00
Yusuke Endoh
6d6391bf67
Update bundled_gems
2021-05-18 19:21:41 +09:00
Yusuke Endoh
ceea1ea8af
test/rubygems/test_gem_commands_open_command.rb: prevent a warning
...
http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20210518T093002Z.log.html.gz
```
[ 9396/21186] TestGemCommandsOpenCommand#test_execute-e:1: warning: possibly useless use of a literal in void context
= 0.06 s
```
2021-05-18 19:06:48 +09:00
Yusuke Endoh
837cbea64b
test/psych/test_coder.rb: Suppress non-parenthesis warnings
...
http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20210518T093002Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210518T093002Z/ruby/test/psych/test_coder.rb:277: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
```
2021-05-18 19:01:27 +09:00
Kazuhiro NISHIYAMA
6674dd61fd
Remove ubuntu-16.04 (already commented out)
...
https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021
2021-05-18 18:51:15 +09:00
Hiroshi SHIBATA
9bd79c2cef
Removed minitest/benchmark
2021-05-18 17:31:43 +09:00
Hiroshi SHIBATA
5a0b89de32
Removed minitest/autorun
2021-05-18 17:31:42 +09:00
Hiroshi SHIBATA
8ab2afb20b
Use Test::Unit instead of Minitest::Unit
2021-05-18 17:31:42 +09:00
Yusuke Endoh
0d343bf823
Update bundled_gems
2021-05-18 17:00:26 +09:00
Nobuyoshi Nakada
34bc8210ed
test/irb/test_raise_no_backtrace_exception.rb: fix test file path
...
Create a file for test under the temporary directory.
2021-05-18 16:04:37 +09:00
Sutou Kouhei
79717f81f8
[ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()
...
https://github.com/ruby/fiddle/commit/e9955d74ae
2021-05-18 12:48:40 +09:00
Sutou Kouhei
71d4a493b8
[ruby/fiddle] windows: add Fiddle.win32_last_socket_error{,=}
...
GitHub: fix GH-72
Users can't use WSAGetLastError() with Ruby 3.0 or later because
rb_funcall() resets the last socket error internally.
Users can get the last socket error by Fiddle.win32_last_socket_error.
Reported by Kentaro Hayashi. Thanks!!!
https://github.com/ruby/fiddle/commit/76158db00a
2021-05-18 12:48:40 +09:00
Jeremy Evans
2579593a56
[ruby/fiddle] Do not use a libdir for glibc, it breaks Linux PPC64 ( #70 )
...
Fixes [Bug #12666 ]
https://github.com/ruby/fiddle/commit/a267a40be7
2021-05-18 12:48:40 +09:00
Sutou Kouhei
ab5212b3c9
[ruby/fiddle] Add support for "const" in type
...
GitHub: fix #68
Reported by kojix2. Thanks!!!
https://github.com/ruby/fiddle/commit/d7322c234a
2021-05-18 12:48:40 +09:00
Sutou Kouhei
4d1bb460f6
[ruby/fiddle] Add --enable-debug-build option to extconf.rb
...
https://github.com/ruby/fiddle/commit/e0498e60ea
2021-05-18 12:48:40 +09:00
Sutou Kouhei
791e8eec66
[ruby/fiddle] win32types: sort
...
https://github.com/ruby/fiddle/commit/35dec6c5a5
2021-05-18 12:48:40 +09:00
Sutou Kouhei
8758b07b1e
[ruby/fiddle] Fix more Win32Types definitions
...
https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
https://github.com/ruby/fiddle/commit/805c1a595a
2021-05-18 12:48:40 +09:00
Orgad Shaneh
25e56fe374
[ruby/fiddle] Fix Win32Types for Windows 64-bit ( #63 )
...
https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
https://github.com/ruby/fiddle/commit/28ee5b1608
2021-05-18 12:48:40 +09:00
Sutou Kouhei
8d63b1dc75
[ruby/fiddle] Bump version
...
https://github.com/ruby/fiddle/commit/0cbd370fd6
2021-05-18 12:48:40 +09:00
Sutou Kouhei
881b2dc898
[ruby/fiddle] closure: add support for const char *
...
GitHub: fix GH-62
Reported by Cody Krieger. Thanks!!!
https://github.com/ruby/fiddle/commit/284b820f2d
2021-05-18 12:48:40 +09:00
Sutou Kouhei
b2de5999d8
[ruby/fiddle] closure: accept symbol as type
...
https://github.com/ruby/fiddle/commit/dc2da6633e
2021-05-18 12:48:40 +09:00
Sutou Kouhei
212d836cd7
[ruby/fiddle] Remove wrong comment
...
https://github.com/ruby/fiddle/commit/831522e768
2021-05-18 12:48:40 +09:00
Kenta Murata
7bd3d6d23e
[ruby/fiddle] Bump version
...
https://github.com/ruby/fiddle/commit/63e5f98412
2021-05-18 12:48:40 +09:00
git
4ba97c6ffc
* 2021-05-18 [ci skip]
2021-05-18 03:19:16 +09:00
Benoit Daloze
725b666076
Use a shared spec for YAML.load and YAML.unsafe_load
2021-05-17 20:17:52 +02:00
Benoit Daloze
2321ade41d
Prefer respond_to? to defined? in MSpec
2021-05-17 20:12:39 +02:00
Hiroshi SHIBATA
ee611341c9
Bump version of required_ruby_version to 2.3. Fixes #464
2021-05-17 19:51:51 +09:00