Class: Bibliothecary::Parsers::Dub

Inherits:
Object
  • Object
show all
Includes:
Analyser
Defined in:
lib/bibliothecary/parsers/dub.rb

Class Method Summary collapse

Methods included from Analyser

create_analysis, create_error_analysis, included

Class Method Details

.mappingObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/bibliothecary/parsers/dub.rb', line 9

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

.parse_sdl_manifest(manifest) ⇒ Object



22
23
24
# File 'lib/bibliothecary/parsers/dub.rb', line 22

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