Skip to content

Commit

Permalink
Stop testing YAML capabilities with empty.json
Browse files Browse the repository at this point in the history
This can cause issues with older versions of Bootsnap

Ref: Shopify/bootsnap#392 (comment)
  • Loading branch information
byroot committed Jan 26, 2022
1 parent 5b15f6a commit 6b1a54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/frozen_record/backends/empty..yml
@@ -0,0 +1 @@
true
2 changes: 1 addition & 1 deletion lib/frozen_record/backends/yaml.rb
Expand Up @@ -49,7 +49,7 @@ def load(file_path)
private

supports_freeze = begin
YAML.load_file(File.expand_path('../empty.json', __FILE__), freeze: true)
YAML.load_file(File.expand_path('../empty.yml', __FILE__), freeze: true)
rescue ArgumentError
false
end
Expand Down

0 comments on commit 6b1a54a

Please sign in to comment.