Jean Boussier
811bc15c75
[ruby/json] Release 2.9.0
...
e1f6456499
2024-12-05 09:16:22 +01:00
Jean Boussier
1510d72bec
[ruby/json] Fix generate(script_safe: true) to not confuse unrelated characters
...
Fix: https://github.com/ruby/json/issues/715
The first byte check was missing.
93a7f8717d
2024-12-05 09:16:22 +01:00
git
4b850ea058
Update bundled gems list at 0ef4a7d745
[ci skip]
2024-12-05 05:59:54 +00:00
Soutaro Matsumoto
0ef4a7d745
Bundle RBS 3.7 ( #12265 )
2024-12-05 05:59:18 +00:00
Jean Boussier
bf225feb26
Fix an off by one in rb_ary_resize
...
When setting len to X we only need to grow the array
if len is bigger than capa. If they're equal we don't need to
increase capacity.
2024-12-04 22:46:02 +01:00
Maximillian Polhill
1c4dbb133e
YJIT: Generate specialized code for Symbol for objtostring ( #12247 )
...
* YJIT: Generate specialized code for Symbol for objtostring
Co-authored-by: John Hawthorn <john@hawthorn.email>
* Update yjit/src/codegen.rs
---------
Co-authored-by: John Hawthorn <john@hawthorn.email>
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
2024-12-04 21:34:16 +00:00
Alan Wu
c0e12bf8d2
Fix typos in public headers [ci skip]
2024-12-04 16:26:31 -05:00
Maxime Chevalier-Boisvert
4b4d52ef50
YJIT: track time since initialization ( #12263 )
2024-12-04 21:24:36 +00:00
Peter Zhu
3c91a1e5fd
Fix ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS for MSAN
...
There's no case for when RUBY_MSAN_ENABLED, so the macro ends up doing
nothing when it should instead have __attribute__((__no_sanitize__("memory"))).
2024-12-04 14:29:24 -05:00
ydah
5898abd084
[ruby/prism] Add document CapturePatternNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
1ffd693f9b
2024-12-04 17:31:21 +00:00
ydah
8a228f297e
[ruby/prism] Add document CaseMatchNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
a78da01ef6
2024-12-04 17:22:17 +00:00
ydah
f88ebb4ad7
[ruby/prism] Add document CaseNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
2f473b0713
2024-12-04 17:22:00 +00:00
ydah
932897af0e
[ruby/prism] Add document ClassVariableAndWriteNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
7be164e0b7
2024-12-04 17:21:44 +00:00
Peter Zhu
62b51d9ad7
Use BUILDING_SHARED_GC instead of RB_AMALGAMATED_DEFAULT_GC
...
We can use the BUILDING_SHARED_GC flag to check if we're building gc_impl.h
as a shared GC or building the default GC.
2024-12-04 10:25:43 -05:00
git
f43585b02c
Update default gems list at 834d68238c
[ci skip]
2024-12-04 12:33:02 +00:00
Yuki Nishijima
834d68238c
[ruby/did_you_mean] Bump version to 2.0.0
...
1cce337962
2024-12-04 12:32:02 +00:00
Hiroshi SHIBATA
ef5dfcef3d
[ruby/did_you_mean] Removed deprecated constants for Ruby 3.4
...
e11bf81438
2024-12-04 12:07:11 +00:00
Nobuyoshi Nakada
86c01b6aa0
[Bug #20928 ] Fix build when malloc_usable_size
is available
...
Copy from gc/default/default.c and revert the part of 51bd816517
.
2024-12-04 17:49:55 +09:00
sodacris
4d460944c7
[rubygems/rubygems] Rework Bundler.which
tests
...
Refactor to use real test cases rather than mock.
Add relative path tests wich `Dir.chdir`.
ed556a0a53
2024-12-04 08:35:00 +00:00
sodacris
55f2917cfd
[rubygems/rubygems] allow bat
files to be created alongside with script files on Windows
...
ed5b847f03
2024-12-04 08:35:00 +00:00
sodacris
e18fb1281a
[rubygems/rubygems] add relative path support for bundle exec
...
c982085f86
2024-12-04 08:34:57 +00:00
Yusuke Endoh
d2c55e33fb
Remove meaningless NULL checks
...
The functions dereference `*dead_entry` without a NULL check
2024-12-04 17:12:26 +09:00
Nobuyoshi Nakada
3b27818062
[ruby/shellwords] NUL char cannot be in shell words
...
2c7ae1b76c
2024-12-04 07:48:59 +00:00
Nobuyoshi Nakada
edd3977b40
[ruby/logger] Enable log file rotation on Windows
...
Since ruby 2.3, a file opened with `File::SHARE_DELETE` and
`File::BINARY` can be renamed or removed.
7b6146fee6
2024-12-04 07:45:39 +00:00
Nobuyoshi Nakada
ed47b6b324
[ruby/logger] Extract Logger::LogDevice#handle_write_errors
...
f904ad2f7c
2024-12-04 07:45:37 +00:00
git
c516669f26
Update bundled gems list as of 2024-12-04
2024-12-04 07:02:11 +00:00
Hiroshi SHIBATA
f76a4cda86
Added Bug #19266 , Bug #20795 and net-http changes about removing deprecated constants to NEWS
2024-12-04 14:34:01 +09:00
Yusuke Endoh
c0454abdee
Remove meaningless comma expression
...
Coverity Scan alerts `for(i, j=0;...)` as a misuse of comma expression.
2024-12-04 13:59:54 +09:00
Hiroshi SHIBATA
56576b6cce
Removed needless RSpec option
2024-12-04 13:09:40 +09:00
Hiroshi SHIBATA
b532662d2d
Use same RSPECOPTS for test-bundler and test-bundler-parallel
2024-12-04 13:09:40 +09:00
Nobuyoshi Nakada
239c30798a
Simplify test-bundler-parallel
...
Get rid of repeated exec XRUBY recursively.
2024-12-04 13:09:40 +09:00
Yusuke Endoh
59f7a5d336
Remove meaningless NULL checks
...
In this context, `th` must not be NULL
2024-12-04 12:15:23 +09:00
dependabot[bot]
200f93b064
Bump github/codeql-action from 3.27.5 to 3.27.6
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.27.5 to 3.27.6.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](f09c1c0a94...aa57810251
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 12:06:54 +09:00
Yusuke Endoh
a0eb541e52
[ruby/psych] Do not depend on the evaluation order of C arguments
...
The evaluation order of C arguments is unspecified.
`RSTRING_LEN(value)` would fail if the conversion to a String by
`StringValuePtr(value)` is not done yet.
Coverity Scan found this issue.
d1e6bf323a
2024-12-04 01:35:29 +00:00
tomoya ishida
e539342f65
[ruby/irb] Don't show 'Maybe IRB bug!' in show_source and ls command
...
(https://github.com/ruby/irb/pull/1039 )
9eb14a3a0b
2024-12-03 21:55:33 +00:00
Peter Zhu
3a90663776
Move external_gc_loaded_p to gc_functions
2024-12-03 16:16:13 -05:00
Yusuke Endoh
6adc69c41c
Do not depend on the evaluation order of C arguments
...
The evaluation order of C arguments is unspecified.
`RSTRING_LEN(str)` would fails if the conversion to a String by
`StringValuePtr` is not done yet.
Coverity Scan found this issue.
2024-12-04 05:43:08 +09:00
ydah
5d156007f6
[ruby/prism] Add document CallOperatorWriteNode fields
...
Partially fixes: https://github.com/ruby/prism/issues/2123
f1f8776973
2024-12-03 19:30:17 +00:00
ydah
917f348a0c
[ruby/prism] Add document CallOrWriteNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
3c01cc7c77
2024-12-03 19:29:56 +00:00
ydah
0f921cf41d
[ruby/prism] Add document CallTargetNode fields
...
Partially: https://github.com/ruby/prism/issues/2123
649ef29c29
2024-12-03 19:29:38 +00:00
Peter Zhu
8fd65cd870
[DOC] Rename "GC module" to "GC library" in NEWS.md
2024-12-03 13:44:17 -05:00
John Hawthorn
e20904d7cf
Fix use of getaddrinfo_shared->lock
...
In some locations we were using shared->lock and in others
&shared->lock, and we were leaking the allocated memory.
2024-12-03 10:03:59 -08:00
Yusuke Endoh
757303fe8d
Use the edge version of typeprof
...
It should work on Windows, hopefully
2024-12-03 21:43:58 +09:00
Hiroshi SHIBATA
b4481a6b8b
Fixed wrong instruction with mswin build
2024-12-03 17:43:56 +09:00
Cosmic Oppai
f6b62d001a
[ruby/timeout] removed the non numeric check
...
7d2af46a00
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2024-12-03 06:49:57 +00:00
Cosmic Oppai
7dc7aab4e9
[ruby/timeout] updated doc string
...
4be6423de4
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2024-12-03 06:49:56 +00:00
CosmicOppai
e97225b182
[ruby/timeout] updated tests
...
c6d121aa18
2024-12-03 06:49:56 +00:00
CosmicOppai
b156efc2a6
[ruby/timeout] updated doc and kept the nil compatiability
...
f992632cf3
2024-12-03 06:49:55 +00:00
CosmicOppai
e7dd185e21
[ruby/timeout] refactor the change to raise for nil and type-errror and added tests
...
ffc8d7c003
2024-12-03 06:49:55 +00:00
CosmicOppai
0839eae2d3
[ruby/timeout] refactor the change to keep the compatability with nil and type-errror and added tests
...
e8a7dbdb87
2024-12-03 06:49:54 +00:00