mirror of
https://github.com/ruby/ruby.git
synced 2026-08-12 08:20:37 +08:00
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
by older Bundler versions would crash load_index with a TypeError. Treat
nil sections as empty when loading, and update the index spec to the new
dump format for hook arrays.
https://github.com/ruby/rubygems/commit/720cc8ac56
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>