Sha256: 6cc5ce5245126f6151f103805cdb14e7441c67a02c59c7151756bf4ba1b60de2

Contents?: true

Size: 566 Bytes

Versions: 56

Compression:

Stored size: 566 Bytes

Contents

require 'json'
require 'sdl_parser'

module Bibliothecary
  module Parsers
    class Dub
      include Bibliothecary::Analyser

      def self.mapping
        {
          match_filename("dub.json") => {
            kind: 'manifest',
            parser: :parse_json_runtime_manifest
          },
          match_filename("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

56 entries across 56 versions & 1 rubygems

Version Path
bibliothecary-7.3.6 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.5 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.4 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.3 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.2 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.3.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.2.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.2.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.5 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.4 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.3 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.2 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.1.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.0.2 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.0.1 lib/bibliothecary/parsers/dub.rb
bibliothecary-7.0.0 lib/bibliothecary/parsers/dub.rb
bibliothecary-6.12.3 lib/bibliothecary/parsers/dub.rb
bibliothecary-6.12.2 lib/bibliothecary/parsers/dub.rb