From 6eae09cef46a9e13ebc96618fb8295f79d3079ee Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Sun, 28 Dec 2025 17:17:53 +0100 Subject: [PATCH] Don't suppress the pstore LoadError Since Ruby 4.0 pstore is a bundled gem instead of a default gem. YAML::Store inherits from PStore so it's a hard requirement. Supressing the LoadError makes it hard to understand why it's not working. Link: https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/#stdlib-updates Link: https://stdgems.org/pstore/ --- lib/yaml/store.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb index 27c823b..1d2e7cf 100644 --- a/lib/yaml/store.rb +++ b/lib/yaml/store.rb @@ -4,10 +4,7 @@ # require 'yaml' -begin - require 'pstore' -rescue LoadError -end +require 'pstore' # YAML::Store provides the same functionality as PStore, except it uses YAML # to dump objects instead of Marshal.