Project

General

Profile

Actions

Misc #21834

open

Extract `yaml/store` into it's own gem that depends on the `pstore` gem

Misc #21834: Extract `yaml/store` into it's own gem that depends on the `pstore` gem

Added by postmodern (Hal Brodigan) about 9 hours ago. Updated about 9 hours ago.

Status:
Open
Assignee:
-
[ruby-core:124479]

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 9 hours ago Actions #1 [ruby-core:124480]

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.

Actions

Also available in: PDF Atom