Sha256: dd1af01b5ed83561be299553999a1718967ca3ccd2c7ee1a13a83751b1d0c15f

Contents?: true

Size: 540 Bytes

Versions: 14

Compression:

Stored size: 540 Bytes

Contents

require 'json'
require 'sdl_parser'

module Bibliothecary
  module Parsers
    class Dub
      include Bibliothecary::Analyser

      def self.mapping
        {
          /^dub\.json$/ => {
            kind: 'manifest',
            parser: :parse_json_runtime_manifest
          },
          /^dub\.sdl$/ => {
            kind: 'manifest',
            parser: :parse_sdl_manifest
          }
        }
      end

      def self.parse_sdl_manifest(manifest)
        SdlParser.new(:runtime, manifest).dependencies
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bibliothecary-6.2.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-6.2.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-6.1.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-6.0.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.6.2 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.6.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.6.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.5 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.4 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.3 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.2 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.5.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-5.4.0 lib/bibliothecary/parsers/dub.rb