Skip to content

Commit

Permalink
Merge pull request #837 from jrafanie/psych4_support
Browse files Browse the repository at this point in the history
Update safe_load calls to work with psych 3/4
  • Loading branch information
Fryguy authored Nov 14, 2023
2 parents cb67b23 + 44d5263 commit 2a0b7be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def self.display_name(number = 1)

def parse
return JSON.parse(content) if format == :json
YAML.safe_load(content, [Date])
YAML.safe_load(content, :permitted_classes => [Date])
end

def validate_format_yaml
Expand Down

0 comments on commit 2a0b7be

Please sign in to comment.