Misc #21834
openExtract `yaml/store` into it's own gem that depends on the `pstore` gem
Description
Ruby 4.0.0 removed the pstore gem from the set of default stdlib libraries. However, yaml/store is still available from the yaml library, but relies on the pstore gem which is now no longer part of stdlib. It is odd that a file which is still part of stdlib requires another gem that is not part of stdlib. Perhaps yaml/store could be extracted into it's own gem called yaml-store which would have an explicit dependency on the pstore gem. This would reduce the need to explicitly list pstore as a gem dependency in the Gemfile or gemspec, if code requires yaml/store for YAML::Store.
Updated by postmodern (Hal Brodigan) about 4 hours ago
Note, while pstore is still available in Ruby 4.0.0 as a bundled gem, Bundler will refuse to load it unless it is explicitly listed in the Gemfile or gemspec. This means that if one's project uses any other gem which requires yaml/store, then pstore must be listed in the Gemfile or in one of the gem's gemspecs. Having an explicit yaml-store gem could reduce confusion.