| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Use valid tokens as cookie names
---
spec/ruby/library/cgi/cookie/name_spec.rb | 12 ++++++------
spec/ruby/library/cgi/cookie/parse_spec.rb | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rb_provide_feature: Prevent $LOADED_FEATURES from being copied
[Bug #18599]
`vm->loaded_features` and `vm->loaded_features_snapshot` both share the
same root. When a feature is pushed into `loaded_features`, the sharing
is broken and `loaded_features` is copied.
So an application requiring 1000 files, will allocate 1000 arrays of
increasing size, which is very wasteful.
To avoid this, we first clear the snapshot, so that `loaded_features`
can directly be pushed into.
Co-Authored-By: Peter Zhu <peter.zhu@shopify.com>
---
load.c | 4 ++++
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Bug #19081] Show the caller location in warning for Ractor
The internal location in ractor.rb is not usefull at all.
```
$ ruby -e 'Ractor.new {}'
<internal:ractor>:267: warning: Ractor is experimental, ...
```
---
bootstraptest/test_ractor.rb | 6 ++++++
ractor.c | 6 ------
ractor.rb | 4 ++++
3 files changed, 10 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
|
| |
[Bug #19106] Normalize time at 24:00:00 with a timezone object
---
test/ruby/test_time_tz.rb | 5 +++++
time.c | 24 ++++++++++++++++--------
2 files changed, 21 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mutex: Raise a ThreadError when detecting a fiber deadlock (#6680)
[Bug #19105]
If no fiber scheduler is registered and the fiber that
owns the lock and the one that try to acquire it
both belong to the same thread, we're in a deadlock case.
Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
---
test/fiber/test_mutex.rb | 22 +++++++++++++++++++++-
thread_sync.c | 4 ++++
2 files changed, 25 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
|
| |
Fix bug in array pack with shared strings
If string literals are long and they become shared, we need to make them
independent before we can write to them. [Bug #19116]
---
pack.c | 1 +
test/ruby/test_array.rb | 6 ++++++
2 files changed, 7 insertions(+)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Lower priority of `POSIX_MADV_DONTNEED`. (#6671)
---
cont.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
|
| |
We don't care about actual hostname resolution. (#6652)
https://bugs.ruby-lang.org/issues/18380
---
test/fiber/test_address_resolve.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
35c794b26d406c39f90e188e3884003fe6aca532,725626d8905fe1ac4a2cf1c3e2db6412bf8f381f,b32a3f1275a8c7748f2134492ce3c532f277d261: [Backport #18964]
Fixed by [Bug #18964]
---
file.c | 3 ---
1 file changed, 3 deletions(-)
[Bug #18964] Update the code range of appended portion
---
ext/-test-/econv/append.c | 15 +++++++++++++++
ext/-test-/econv/extconf.rb | 3 +++
ext/-test-/econv/init.c | 11 +++++++++++
transcode.c | 34 ++++++++++++++++++++++++++++++----
4 files changed, 59 insertions(+), 4 deletions(-)
create mode 100644 ext/-test-/econv/append.c
create mode 100644 ext/-test-/econv/extconf.rb
create mode 100644 ext/-test-/econv/init.c
[Bug #18964] Add test for `rb_econv_append`
---
test/-ext-/econv/test_append.rb | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 test/-ext-/econv/test_append.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Bug #19004] `Complex.polar` handles complex singular `abs` argument
`Complex.polar` accepts Complex values as arguments for the polar form as long
as the value of the complex has no imaginary part (ie it is 'real'). In
`f_complex_polar` this is handled by extracting the real part of the arguments.
However in the case `polar` is called with only a single argument, the absolute
value (abs), then the Complex is created without applying a check on the type
of abs, meaning it is possible to create a Complex where the real part is itself
an instance of a Complex. This change removes the short circuit for the single
argument case meaning the real part extraction is performed correctly
(by f_complex_polar).
Also adds an example to `spec/ruby/core/complex/polar_spec.rb` to check that
the real part of a complex argument is correctly extracted and used in the
resulting Complex real and imaginary parts.
---
complex.c | 13 ++++++-------
spec/ruby/core/complex/polar_spec.rb | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 7 deletions(-)
|
| |
|
|
|
|
|
|
|
|
|
| |
Update bundled gems list at 2022-10-24
---
NEWS.md | 2 +-
gems/bundled_gems | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
| |
Added assert_true and assert_false same as test-unit gem
---
tool/lib/test/unit/assertions.rb | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Bug #19042] Fix Dir.glob brace with '/'
Dir.glob brace pattern with '/' after '**' does not match
paths in recursive expansion process.
We expand braces with '/' before expanding a recursive.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
---
dir.c | 2 +-
test/ruby/test_dir.rb | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
| |
rb_int_range_last: properly handle non-exclusive range
[Bug #18994]
---
range.c | 8 ++++----
spec/ruby/core/range/last_spec.rb | 6 ++++++
2 files changed, 10 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
| |
[DOC] Fix documentation for ARGF#readlines
[Bug #18909]
---
io.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
| |
[ruby/net-http] Revert "Replace Timeout.timeout in Net:HTTP#connect"
This reverts commit https://github.com/ruby/net-http/commit/753cae3bbccc.
https://github.com/ruby/net-http/commit/98caa38204
---
lib/net/http.rb | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[ruby/net-http] Rename `D` to `debug` in `Net::HTTP`
Renames `D` to `debug` in `Net::HTTP` and introduces an alias for
backwards compatibility. This was done for readability reasons, in that
`D` did not clearly reflect what the method was doing and can cause some
confusion.
https://github.com/ruby/net-http/commit/582d6e87d6
---
lib/net/http.rb | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
|
|
|
|
| |
This reverts commit 97e50a056e795f6551cae2f07a9996f4adf73a1f.
|
|
|
|
|
|
|
|
| |
Disable msystem: MINGW64 job on GitHub Actions (#6545)
---
.github/workflows/mingw.yml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Skip running a DRb test on MinGW
It hangs even after a retry
https://github.com/ruby/ruby/runs/7966439530?check_suite_focus=true
We contacted GitHub Suppport about this before, and we concluded that
the problem is on our end. Unfortunately we don't have a bandwidth to
fix this MinGW problem, so until we get to work on it, this should be
just skipped to avoid a sporadic CI timeout.
---
test/drb/drbtest.rb | 1 +
test/drb/test_drbssl.rb | 4 ++++
test/rinda/test_rinda.rb | 2 +-
3 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
|
| |
Skip TupleSpaceProxyTest on MINGW64 too
It wasn't specific to UCRT64
https://github.com/ruby/ruby/runs/7062992464
---
test/rinda/test_rinda.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix Rinda test teardown for omitted tests
New test failures on MINGW appeared after
c2e37c8ff7da395f33fae546d9ae9e2408fc9236.
1) Error:
Rinda::TupleSpaceProxyTest#test_00_template:
NoMethodError: undefined method `stop_service' for nil:NilClass
D:/a/ruby/ruby/src/test/rinda/test_rinda.rb:516:in `teardown'
2) Error:
Rinda::TupleSpaceProxyTest#test_ruby_talk_264062:
NoMethodError: undefined method `stop_service' for nil:NilClass
D:/a/ruby/ruby/src/test/rinda/test_rinda.rb:516:in `teardown'
Teardown happens even when the test is omitted.
See: https://github.com/ruby/ruby/runs/7058984522
---
test/rinda/test_rinda.rb | 4 ++++
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Try skipping TupleSpaceProxyTest on MinGW UCRT64
As you all know, MinGW UCRT64 CI has randomly got stuck despite its
"Finished tests" output.
Looking at the logs closely, it seems like all of the recent such
reproductions end with the following output:
```
Retrying hung up testcases...
[ 1/14] Rinda::TupleSpaceProxyTest#test_ruby_talk_264062 = 0.21 s
[ 2/14] Rinda::TupleSpaceProxyTest#test_00_template = 0.01 s
[ 3/14] Rinda::TupleSpaceProxyTest#test_inp_rdp = 0.00 s
[ 4/14] Rinda::TupleSpaceProxyTest#test_core_03_notify = 0.01 s
[ 5/14] Rinda::TupleSpaceProxyTest#test_00_renewer = 0.01 s
[ 6/14] Rinda::TupleSpaceProxyTest#test_cancel_02 = 0.11 s
[ 7/14] Rinda::TupleSpaceProxyTest#test_00_DRbObject = 0.00 s
[ 8/14] Rinda::TupleSpaceProxyTest#test_core_02 = 0.11 s
[ 9/14] Rinda::TupleSpaceProxyTest#test_core_01 = 0.11 s
[10/14] Rinda::TupleSpaceProxyTest#test_remote_array_and_hash = 0.01 s
[11/14] Rinda::TupleSpaceProxyTest#test_00_tuple = 0.00 s
[12/14] Rinda::TupleSpaceProxyTest#test_take_bug_8215 = 0.41 s
[13/14] Rinda::TupleSpaceProxyTest#test_cancel_01 = 0.11 s
[14/14] Rinda::TupleSpaceProxyTest#test_symbol_tuple = 0.01 s
Finished tests in 719.252845s, 29.4292 tests/s, 3838.7154 assertions/s.
21167 tests, 2761007 assertions, 0 failures, 0 errors, 708 skips
```
https://github.com/ruby/ruby/runs/7057789554
While it seems to be retried successfully, given that it hungs up once
and this appears all the time, this test class seems a bit suspicious.
To check if it's related, let me try disabling this for now.
---
test/rinda/test_rinda.rb | 3 +++
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
---
.github/workflows/baseruby.yml | 2 +-
.github/workflows/bundled_gems.yml | 2 +-
.github/workflows/check_dependencies.yml | 2 +-
.github/workflows/check_misc.yml | 2 +-
.github/workflows/codeql-analysis.yml | 2 +-
.github/workflows/compilers.yml | 2 +-
.github/workflows/mingw.yml | 2 +-
.github/workflows/mjit.yml | 2 +-
.github/workflows/spec_guards.yml | 2 +-
.github/workflows/ubuntu.yml | 2 +-
.github/workflows/wasm.yml | 2 +-
.github/workflows/windows.yml | 2 +-
.github/workflows/yjit-ubuntu.yml | 2 +-
.github/workflows/yjit_asm_tests.yml | 2 +-
14 files changed, 14 insertions(+), 14 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
---
.github/workflows/baseruby.yml | 2 +-
.github/workflows/bundled_gems.yml | 2 +-
.github/workflows/check_dependencies.yml | 2 +-
.github/workflows/check_misc.yml | 2 +-
.github/workflows/codeql-analysis.yml | 2 +-
.github/workflows/compilers.yml | 2 +-
.github/workflows/mingw.yml | 2 +-
.github/workflows/mjit.yml | 2 +-
.github/workflows/ubuntu.yml | 2 +-
.github/workflows/windows.yml | 8 ++++----
.github/workflows/yjit-ubuntu.yml | 2 +-
11 files changed, 14 insertions(+), 14 deletions(-)
|
|
|
|
|
|
|
|
| |
[MSWin] Cache installed vcpkg packages
---
.github/workflows/windows.yml | 7 +++++++
1 file changed, 7 insertions(+)
|
|
|
|
|
|
|
|
|
| |
Fold command line items
---
.appveyor.yml | 28 +++++++++++++++++++++++++---
.github/workflows/windows.yml | 7 +++++--
2 files changed, 30 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
| |
Show tool versions
---
.github/workflows/mingw.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Extract bundled gems by BASERUBY
---
common.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bundled gems test needs `prepare-gems`
`prepare-gems` downloads and extracts the bundled gems, and these gems
are built by `build-exts` now.
---
.github/workflows/bundled_gems.yml | 5 +++++
.github/workflows/compilers.yml | 2 --
.github/workflows/macos.yml | 4 ++--
.github/workflows/ubuntu.yml | 4 ++--
.github/workflows/yjit-ubuntu.yml | 4 ++--
5 files changed, 11 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move to tool/lib/bundled_gem.rb
---
common.mk | 6 +++---
defs/gmake.mk | 4 ++--
tool/gem-unpack.rb | 53 -----------------------------------------------
tool/lib/bundled_gem.rb | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 60 insertions(+), 58 deletions(-)
delete mode 100644 tool/gem-unpack.rb
create mode 100644 tool/lib/bundled_gem.rb
|
|
|
|
|
|
|
|
|
| |
Remove github and git related files from extracted bundled gems
---
common.mk | 3 ++-
defs/gmake.mk | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
| |
Also the tests should use the configured pkg-config
---
test/mkmf/test_pkg_config.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix parallel build on MINGW
When the build is running with a base ruby then generating `x64-ucrt-ruby320.rc`
could fail due to a missing dependency to `x64-mingw-ucrt-fake.rb`.
This commit adds this dependency.
A failing build looks like so:
```
generating x64-mingw-ucrt-fake.rb
generating x64-ucrt-ruby320.rc
../snapshot-master/win32/resource.rb:in `require': cannot load such file -- ./x64-mingw-ucrt-fake (LoadError)
make: *** [GNUmakefile:57: x64-ucrt-ruby320.rc] Error 1
make: *** Waiting for unfinished jobs....
linking miniruby.exe
x64-mingw-ucrt-fake.rb updated
```
---
cygwin/GNUmakefile.in | 4 ++--
template/Makefile.in | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
|
|
| |
Exclude LIBPATHENV wrapper from PREP
---
common.mk | 4 ++--
configure.ac | 2 +-
template/Makefile.in | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
|
|
| |
Move duplicate dependencies
---
common.mk | 2 ++
template/Makefile.in | 5 -----
win32/Makefile.sub | 2 --
3 files changed, 2 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
| |
Run find in PATH [ci skip]
---
template/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
| |
Clean intermediate files for update-deps [ci skip]
---
template/Makefile.in | 1 +
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Load fake.rb at `BTESTRUBY`
So that `mkmf` checks work from `make run`, and also remove
duplicate `$(MINIRUBYOPT)` which is used in `$(MINIRUBY)`.
---
common.mk | 8 ++++----
template/Makefile.in | 3 +--
template/fake.rb.in | 2 ++
win32/Makefile.sub | 2 +-
4 files changed, 8 insertions(+), 7 deletions(-)
|
|
|
|
|
|
|
|
|
| |
Quiet if the target is already linked the same source
---
ext/extmk.rb | 2 +-
tool/ln_sr.rb | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
|