lib/bibliothecary/multi_parsers/json_runtime.rb in bibliothecary-9.1.0 vs lib/bibliothecary/multi_parsers/json_runtime.rb in bibliothecary-10.0.0

- old
+ new

@@ -2,14 +2,14 @@ module MultiParsers # Provide JSON Runtime Manifest parsing module JSONRuntime def parse_json_runtime_manifest(file_contents, options: {}) # rubocop:disable Lint/UnusedMethodArgument JSON.parse(file_contents).fetch("dependencies",[]).map do |name, requirement| - { + Dependency.new( name: name, requirement: requirement, type: "runtime", - } + ) end end end end end