Skip to content

Commit

Permalink
Add psych as dependency and fix schema load on psych >= 4.0.1
Browse files Browse the repository at this point in the history
From version 4 psych, has changed the API for load_safe.

Resolves neo4jrb#1684
  • Loading branch information
chytreg committed Feb 7, 2023
1 parent 203f272 commit 503720c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions activegraph.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ DESCRIPTION
s.add_dependency('neo4j-ruby-driver', '>= 4.4.1')
s.add_dependency('orm_adapter', '~> 0.5.0')
s.add_dependency('sorted_set')
s.add_dependency('psych', '>= 4.0.1')
s.add_development_dependency('guard')
s.add_development_dependency('guard-rspec')
s.add_development_dependency('guard-rubocop')
Expand Down
2 changes: 1 addition & 1 deletion lib/active_graph/tasks/migration.rake
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ COMMENT

args.with_defaults(remove_missing: false)

schema_data = YAML.safe_load(File.read(SCHEMA_YAML_PATH), [Symbol])
schema_data = YAML.safe_load(File.read(SCHEMA_YAML_PATH), permitted_classes: [Symbol])

ActiveGraph::Base.subscribe_to_query(&method(:puts))

Expand Down

0 comments on commit 503720c

Please sign in to comment.