gc/default: make stress GC honor gc_allowed in TRY_WITH_GC
TRY_WITH_GC guards its retry-GC branch with gc_allowed (which reflects the current ractor's malloc_gc_disabled, set while a ractor lock is held), but called objspace_malloc_gc_stress() unconditionally. Under...
[ruby/rubygems] Adapt the plugin index to Gem::YAMLSerializer semantics
The stub serializer dumped an empty hash as a bare "key:" line and loaded such a line back as an empty hash. Gem::YAMLSerializer dumps it as "key: {}" and correctly loads a bare key as nil, so index files written...
[ruby/rubygems] Drop Bundler's stub YAML serializer
Bundler::YAMLSerializer is no longer referenced anywhere now that Bundler uses Gem::YAMLSerializer everywhere.
https://github.com/ruby/rubygems/commit/b74a1987db
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
[ruby/rubygems] Port Bundler's YAML serializer specs to the RubyGems test suite
The RubyGems test suite already covers almost all of the Bundler yaml_serializer spec through test_gem_safe_yaml.rb. Port the two missing cases (URL mapping keys as used by mirror settings, and Psych...
[ruby/rubygems] Use RubyGems' YAML serializer in Bundler
Bundler now uses Gem::YAMLSerializer unconditionally for settings and the plugin index instead of falling back to its own stub serializer. The fallback is no longer reachable because the Bundler gem ships a copy of...
[ruby/rubygems] Ship RubyGems' YAML serializer in the Bundler gem
Add lib/rubygems/yaml_serializer.rb to the gem's file list so the Bundler gem carries its own copy of Gem::YAMLSerializer. This keeps Bundler self-contained on RubyGems versions that predate it, the same way the...
[ruby/rubygems] Guard RubyGems' YAML serializer against double loading
When the same Gem::YAMLSerializer copy is shipped in two gems (RubyGems and Bundler) and required from different paths, the second load redefines its constants and emits "already initialized constant" warnings. Add an...
[ruby/rubygems] Remove #private? check from open_private_key and check in Gem::Security.sign
Remove the OpenSSL::PKey::{RSA,DSA,EC}#private? check in open_private_key. This makes the code ML-DSA compatible since OpenSSL::PKey::PKey used for ML-DSA doesn't have #private?....
[ruby/rubygems] Remove hardcoded key-dependent values from tests
Because these hardcoded values make the tests fail when recreating the keys. This is not convenient.
[ruby/rubygems] Recreated testing .pem files.
As I modified logic related to output format in tool/create_certs.rb and tool/create_encrypted_key.rb at the last commit, I ran these scripts to recreate the testing .pem files as follows. Now the private .pem files are...
View all revisions | View revisions
Also available in: Atom