Sha256: 78cda66a6471a16c9826626b3a2550f1aec8e03a53c3d43d05326301ad02b950
Contents?: true
Size: 737 Bytes
Versions: 14
Compression:
Stored size: 737 Bytes
Contents
require 'json' module Bibliothecary module Parsers class Elm include Bibliothecary::Analyser def self.mapping { /^elm-package\.json$|^elm_dependencies\.json$/ => { kind: 'manifest', parser: :parse_json_runtime_manifest }, /^elm-stuff\/exact-dependencies\.json$/ => { kind: 'lockfile', parser: :parse_json_lock } } end def self.parse_json_lock(file_contents) manifest = JSON.parse file_contents manifest.map do |name, requirement| { name: name, requirement: requirement, type: 'runtime' } end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems