summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-06[ruby/json] Categorize deprecated warningNobuyoshi Nakada
https://github.com/ruby/json/commit/1acce7aceb
2024-11-06Update to ruby/spec@54c391eBenoit Daloze
2024-11-06Update to ruby/mspec@6499325Benoit Daloze
2024-11-06io_buffer.c: Allow copies between overlapping buffers with #copy and ↵Kasumi Hanazuki
#set_string (#11640) The current implementation of `IO::Buffer#copy` and `#set_string` has an undefined behavior when the source and destination memory overlaps, due to the underlying use of the `memcpy` C function. This patch guarantees the methods to be safe even when copying between overlapping buffers by replacing `memcpy` with `memmove`, Fixes: [Bug #20745] Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2024-11-06[Bug #20868] Fix Method#hash to not change after compactionPeter Zhu
The hash value of a Method must remain constant after a compaction, otherwise it may not work as the key in a hash table. For example: def a; end # Need this method here because otherwise the iseq may be on the C stack # which would get pinned and not move during compaction def get_hash method(:a).hash end puts get_hash # => 2993401401091578131 GC.verify_compaction_references(expand_heap: true, toward: :empty) puts get_hash # => -2162775864511574135 Notes: Merged: https://github.com/ruby/ruby/pull/12004
2024-11-06Fix flakiness in TestGc#test_thrashing_for_young_objectsKJ Tsanaktsidis
I caught a reproduction of this test failing under rr, and was able to replay it to isolate the failure. The call to `before_stat_heap = GC.stat_heap` is itself allocating a hash, which in unlucky circumstances can result in a new page being allocated and thus `before_stats[:heap_allocated_pages]` no longer equals `after_stats[:heap_allocated_pages]`. The solution is to use the form of GC.stat/stat_heap which takes a hash as an argument, and thus needs to perform no Ruby allocations itself. Notes: Merged: https://github.com/ruby/ruby/pull/11997
2024-11-06[rubygems/rubygems] Add naive infinite loop detection when fixing lockfile ↵David Rodríguez
dependencies https://github.com/rubygems/rubygems/commit/5e933968a2
2024-11-06[rubygems/rubygems] Note about why we don't fix lockfile dependencies backed ↵David Rodríguez
by installed specs https://github.com/rubygems/rubygems/commit/6fa94b5d72
2024-11-06[rubygems/rubygems] This is not about the lockfile anymoreDavid Rodríguez
https://github.com/rubygems/rubygems/commit/f2e0a72291
2024-11-06[rubygems/rubygems] Automatically fix lockfile when the API reveals missing depsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/92196ccfdb
2024-11-06[rubygems/rubygems] Add missing spec for materializing lockfiles with only ↵David Rodríguez
"ruby" platform https://github.com/rubygems/rubygems/commit/4168a7f488
2024-11-06[rubygems/rubygems] Check for `EndpointSpecification` exactlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/8fac200ded
2024-11-06[rubygems/rubygems] Simplify code structureDavid Rodríguez
https://github.com/rubygems/rubygems/commit/a4dd06f095
2024-11-06Update ext/openssl/dependKazuki Yamaguchi
This is a follow-up to commit e5860e565467cb330f2c7b9ae140a1e4b89c0b71.
2024-11-06Store precomputed hash when there's capacityÉtienne Barrié
Co-authored-by: Jean Boussier <byroot@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/11990
2024-11-06[rubygems/rubygems] Fix manifest in gem package using incorrect platform ↵David Rodríguez
sometimes If a gem package is built from a specification whose platform has been modified, it will include metadata using the old platform. This change should fix the problem by making sure `original_platform` is always properly set. https://github.com/rubygems/rubygems/commit/ecd5cd4547
2024-11-06[rubygems/rubygems] Fix some JRuby warnings when using `bundler/setup` with ↵David Rodríguez
Ruby's -w flag When using the `bundler/setup` entrypoint, Bundler prints the following warnings in JRuby in `-w` is passed to Ruby. ``` /path/to/bundler/shared_helpers.rb:10: warning: constant Bundler::WINDOWS is deprecated /path/to/bundler/shared_helpers.rb:11: warning: constant Bundler::FREEBSD is deprecated /path/to/bundler/lib/bundler/shared_helpers.rb:12: warning: constant Bundler::NULL is deprecated ``` This does not happen in CRuby. This seems like a JRuby bug but we can skip it by autoloading the constants. https://github.com/rubygems/rubygems/commit/761ca29fa2
2024-11-06[ruby/openssl] move ractor safe macro to ossl.hHoneyryderChuck
in order to import or define the RUBY_TYPED_FROZEN_SHAREABLE macro. https://github.com/ruby/openssl/commit/b8504c2215
2024-11-06Revert "Introduce Fiber Scheduler `blocking_region` hook. (#11963)" (#12013)Samuel Williams
This reverts some of commit 87fb44dff6409a19d12052cf0fc07ba80a4c45ac. We will rename and propose a slightly different interface. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2024-11-06Update default gems list at 82008d38e01f8b0b3f808a91841b8d [ci skip]git
2024-11-06[ruby/shellwords] Bump up v0.2.1Hiroshi SHIBATA
https://github.com/ruby/shellwords/commit/ee08b981ac
2024-11-06Update default gems list at 8f4227b664d8e74fc81adf0b31b295 [ci skip]git
2024-11-06[ruby/open-uri] Bump up v0.5.0Hiroshi SHIBATA
https://github.com/ruby/open-uri/commit/8f5a4ef6f9
2024-11-06Update default gems list at 0c59048b3a981a80d57d2318c37b36 [ci skip]git
2024-11-06[ruby/timeout] Bump up v0.4.2Hiroshi SHIBATA
https://github.com/ruby/timeout/commit/2f52522994
2024-11-06Update default gems list at 7d9e9eabe7d6c53f5a24297b6275d8 [ci skip]git
2024-11-06[ruby/tmpdir] Bump up v0.3.0Hiroshi SHIBATA
https://github.com/ruby/tmpdir/commit/ef9ca591cf
2024-11-06Update default gems list at 7e167b3225312410dcd8c303aa1ca9 [ci skip]git
2024-11-06[ruby/tempfile] Bump up v0.3.0Hiroshi SHIBATA
https://github.com/ruby/tempfile/commit/2ff9b3ccef
2024-11-06Update default gems list at a3a0c675c1e701d88b5d0cbcea54f1 [ci skip]git
2024-11-06[ruby/yaml] Bump up v0.4.0Hiroshi SHIBATA
https://github.com/ruby/yaml/commit/5e9bfff132
2024-11-06Update default gems list at 0949c586c05e7513497fd2e84edb03 [ci skip]git
2024-11-06[ruby/pathname] Bump up v0.4.0Hiroshi SHIBATA
https://github.com/ruby/pathname/commit/b020cbde46
2024-11-06macOS 15 is the stable version todayHiroshi SHIBATA
2024-11-06[Bug #20873] Consider `-FIXNUM_MIN` overflowNobuyoshi Nakada
`-FIXNUM_MIN` is usually greater than `FIXNUM_MAX` on platforms using two's complement representation. Notes: Merged: https://github.com/ruby/ruby/pull/12011
2024-11-06Assert newly added warning in `JSON.load`Nobuyoshi Nakada
2024-11-06Ignore return value of `into_raw_fd`Nobuyoshi Nakada
Fix as the compiler orders: ``` warning: unused return value of `into_raw_fd` that must be used --> ../src/yjit/src/disasm.rs:123:21 | 123 | file.into_raw_fd(); // keep the fd open | ^^^^^^^^^^^^^^^^^^ | = note: losing the raw file descriptor may leak resources = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 123 | let _ = file.into_raw_fd(); // keep the fd open | +++++++ warning: unused return value of `into_raw_fd` that must be used --> ../src/yjit/src/log.rs:84:21 | 84 | file.into_raw_fd(); // keep the fd open | ^^^^^^^^^^^^^^^^^^ | = note: losing the raw file descriptor may leak resources help: use `let _ = ...` to ignore the resulting value | 84 | let _ = file.into_raw_fd(); // keep the fd open | +++++++ ``` Notes: Merged: https://github.com/ruby/ruby/pull/12009
2024-11-06`Warning[:strict_unused_block]`Koichi Sasada
to show unused block warning strictly. ```ruby class C def f = nil end class D def f = yield end [C.new, D.new].each{|obj| obj.f{}} ``` In this case, `D#f` accepts a block. However `C#f` doesn't accept a block. There are some cases passing a block with `obj.f{}` where `obj` is `C` or `D`. To avoid warnings on such cases, "unused block warning" will be warned only if there is not same name which accepts a block. On the above example, `C.new.f{}` doesn't show any warnings because there is a same name `D#f` which accepts a block. We call this default behavior as "relax mode". `strict_unused_block` new warning category changes from "relax mode" to "strict mode", we don't check same name methods and `C.new.f{}` will be warned. [Feature #15554] Notes: Merged: https://github.com/ruby/ruby/pull/12005
2024-11-05Allow eval to see top scopeKevin Newton
Fixes [Bug #20856] Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/11993
2024-11-05[ruby/json] Appease ruby/ruby CIJean Boussier
https://github.com/ruby/json/commit/bc2c970ce4 Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Strip whitespacesJean Boussier
https://github.com/ruby/json/commit/e85107197b Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05Update depend filesJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] ResyncJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Re-enable passing testBenoit Daloze
https://github.com/ruby/json/commit/82d21f01c5 Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Add tests for the behavior of JSON.generate with base types ↵Jean Boussier
subclasses Ref: https://github.com/ruby/json/pull/674 Ref: https://github.com/ruby/json/pull/668 The behavior on such case it quite unclear, the goal here is to figure out whatever was the behavior on Cext version of `json 2.7.0` and get all implementations to converge. We can then decide to make them all behave differently if we so wish. https://github.com/ruby/json/commit/614921dcef Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] Use rb_str_new_frozenJean Boussier
https://github.com/ruby/json/commit/90c8aaaa6a Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[ruby/json] JSON::Ext::Parser mark the name cache entries when not on the heapJean Boussier
This is somewhat dead code as unless you are using `JSON::Parser.new` direcltly we never allocate `JSON::Ext::Parser` anymore. But still, we should mark all its reference in case some code out there uses that. Followup: #675 https://github.com/ruby/json/commit/8bf74a977b Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05Update json gem syncing logicJean Boussier
Notes: Merged: https://github.com/ruby/ruby/pull/12003
2024-11-05[rubygems/rubygems] Test with JRuby 9.4.9.0David Rodríguez
https://github.com/rubygems/rubygems/commit/b282668d9d
2024-11-05Remove RGENGC_FORCE_MAJOR_GC flagMatt Valentine-House
[Bug #20762] Notes: Merged: https://github.com/ruby/ruby/pull/12002