YAML::Store dependency for pstore is required and fails on Ruby 4.0
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 37
- Forks
- 13
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
YAML::Store has this require statement:
https://github.com/ruby/yaml/blob/79b6b15f4ac762464d5ccb9d743fa0451ced70a5/lib/yaml/store.rb#L7-L10
But really it directly inherits from PStore:
https://github.com/ruby/yaml/blob/79b6b15f4ac762464d5ccb9d743fa0451ced70a5/lib/yaml/store.rb#L43
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/yaml/store.rb, especially the require statements around lines 7-10 and the PStore inheritance near line 43. Check how the gemspec handles dependencies and how the Ruby 4.0 bundled-gem change affects loading. Done means the dependency is handled explicitly and a LoadError is no longer silently suppressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, yaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100