Class: Bibliothecary::Parsers::Dub
Class Method Summary
collapse
parse_json_runtime_manifest
Methods included from Analyser
create_analysis, create_error_analysis, included
Class Method Details
.mapping ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/bibliothecary/parsers/dub.rb', line 12
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(file_contents, options: {}) ⇒ Object
27
28
29
|
# File 'lib/bibliothecary/parsers/dub.rb', line 27
def self.parse_sdl_manifest(file_contents, options: {})
SdlParser.new(:runtime, file_contents, options.fetch(:filename, nil)).dependencies
end
|