Sha256: b3b3805f54648119356b1bcec7211d115bbfff72c243fea7d23ba1eedfc50bff

Contents?: true

Size: 416 Bytes

Versions: 40

Compression:

Stored size: 416 Bytes

Contents

module Bibliothecary
  module MultiParsers
    # Provide JSON Runtime Manifest parsing
    module JSONRuntime
      def parse_json_runtime_manifest(file_contents, options: {})
        JSON.parse(file_contents).fetch('dependencies',[]).map do |name, requirement|
          {
            name: name,
            requirement: requirement,
            type: 'runtime'
          }
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
bibliothecary-8.7.4 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.7.3 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.7.2 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.7.1 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.7.0 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.5 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.4 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.3 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.2 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.1 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.6.0 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.5.1 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.5.0 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.6 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.5 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.4 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.3 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.2 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.1 lib/bibliothecary/multi_parsers/json_runtime.rb
bibliothecary-8.4.0 lib/bibliothecary/multi_parsers/json_runtime.rb