YAML::Store has this require statement:
|
begin |
|
require 'pstore' |
|
rescue LoadError |
|
end |
But really it directly inherits from PStore:
|
class YAML::Store < PStore |
Since Ruby 4.0 pstore is a bundled gem instead of a default gem: https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/#stdlib-updates
The following bundled gems are promoted from default gems.
pstore 0.2.0
0.1.4 to v0.2.0
Though I think https://stdgems.org/pstore/ provides a clearer overview.
I'm not sure what is best: make yaml depend on pstore in the gemspec or simply make it a soft dependency. In either case, the LoadError shouldn't be silently supressed.
YAML::Storehas this require statement:yaml/lib/yaml/store.rb
Lines 7 to 10 in 79b6b15
But really it directly inherits from
PStore:yaml/lib/yaml/store.rb
Line 43 in 79b6b15
Since Ruby 4.0
pstoreis a bundled gem instead of a default gem: https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/#stdlib-updatesThough I think https://stdgems.org/pstore/ provides a clearer overview.
I'm not sure what is best: make
yamldepend onpstorein thegemspecor simply make it a soft dependency. In either case, theLoadErrorshouldn't be silently supressed.