Commit graph

67695 commits

Author SHA1 Message Date
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
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
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()
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!!!

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]

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!!!

d7322c234a
2021-05-18 12:48:40 +09:00
Sutou Kouhei
4d1bb460f6 [ruby/fiddle] Add --enable-debug-build option to extconf.rb
e0498e60ea
2021-05-18 12:48:40 +09:00
Sutou Kouhei
791e8eec66 [ruby/fiddle] win32types: sort
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

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

28ee5b1608
2021-05-18 12:48:40 +09:00
Sutou Kouhei
8d63b1dc75 [ruby/fiddle] Bump version
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!!!

284b820f2d
2021-05-18 12:48:40 +09:00
Sutou Kouhei
b2de5999d8 [ruby/fiddle] closure: accept symbol as type
dc2da6633e
2021-05-18 12:48:40 +09:00
Sutou Kouhei
212d836cd7 [ruby/fiddle] Remove wrong comment
831522e768
2021-05-18 12:48:40 +09:00
Kenta Murata
7bd3d6d23e [ruby/fiddle] Bump version
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
Jean Boussier
2de594ca98
[flori/json] Deduplicate strings inside json_string_unescape
[ci 2]

1982070cb8
2021-05-17 19:51:51 +09:00
Jean Boussier
1d2b4ccaf2
[flori/json] Refactor json_string_unescape
f398769332
2021-05-17 19:51:50 +09:00
Masafumi Koba
8a974dc83c [flori/json] Fix incorrect # position in API doc
This change fixes an incorrect `#` position in the API documentation of the `JSON` module.

dc4b62424f
2021-05-17 19:26:03 +09:00
Hiroshi SHIBATA
1f91627c8e
Removed EOL version from .github/workflows/spec_guards.yml 2021-05-17 19:22:52 +09:00
Yusuke Endoh
93fb186dd0 spec/ruby/library/yaml: Test YAML.unsafe_load instead of YAML.load in 3.1 2021-05-17 15:42:22 +09:00
Yusuke Endoh
008a63c477 Revert "Use YAML.unsafe_load instead of YAML.load."
This reverts commit a0e97b0e2e.
2021-05-17 15:32:41 +09:00
Hiroshi SHIBATA
e36da7ba18
Revert an accidentally commits at df86a13cc1 2021-05-17 15:28:47 +09:00
Yusuke Endoh
31a757a442 Make the test pass with the old libyaml
I have no idea what result is right, but it fails with libyaml 0.1.7
(bundled with Ubuntu 18.04) anyway.
2021-05-17 14:31:34 +09:00
Yusuke Endoh
f367b4ffe7 assert_equal accepts an expected value as the first argument 2021-05-17 14:31:34 +09:00
Hiroshi SHIBATA
a0e97b0e2e
Use YAML.unsafe_load instead of YAML.load.
This is a temporary workaround. We should rewrite the examples with
  permitted_classes.
2021-05-17 13:36:55 +09:00