bibliothecary 6.9.2 → 6.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +1 -0
- data/lib/bibliothecary/parsers/go.rb +11 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eddf54931d180a739e69e33150ff5b105994976ff9436eae7765a88d7a5d7169
|
4
|
+
data.tar.gz: 8f53292f1e7c7be586f9810dc723fb39dd145b8f436b6d82c6eb984cf7a726da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc54928770a24ef0214a11ca1cb9400875cf752ce28c907651cdc1ac879736e2e1c3860f71a5ebfda275d860dff4c495fcafb2f44cfd6c2b3f8f252b404dc7bc
|
7
|
+
data.tar.gz: 9886c713649ec7503b7106c91fb1b5242d898ccb1fbd65462494c4d80b56186f08b536fa321fba6658e4c7ba183d624cc974e20c29b7e4bd6ffd3e8c3756661d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/README.md
CHANGED
@@ -57,7 +57,11 @@ module Bibliothecary
|
|
57
57
|
match_filename("Gopkg.lock") => {
|
58
58
|
kind: 'lockfile',
|
59
59
|
parser: :parse_dep_lockfile
|
60
|
-
}
|
60
|
+
},
|
61
|
+
match_filename("go-resolved-dependencies.json") => {
|
62
|
+
kind: 'lockfile',
|
63
|
+
parser: :parse_go_resolved
|
64
|
+
},
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -140,6 +144,12 @@ module Bibliothecary
|
|
140
144
|
deps.uniq
|
141
145
|
end
|
142
146
|
|
147
|
+
def self.parse_go_resolved(file_contents)
|
148
|
+
JSON.parse(file_contents)
|
149
|
+
.select { |dep| dep["Main"] != "true" }
|
150
|
+
.map { |dep| { name: dep["Path"], requirement: dep["Version"], type: 'runtime' } }
|
151
|
+
end
|
152
|
+
|
143
153
|
def self.map_dependencies(manifest, attr_name, dep_attr_name, version_attr_name, type)
|
144
154
|
manifest.fetch(attr_name,[]).map do |dependency|
|
145
155
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliothecary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.9.
|
4
|
+
version: 6.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
- !ruby/object:Gem::Version
|
289
289
|
version: '0'
|
290
290
|
requirements: []
|
291
|
-
rubygems_version: 3.
|
291
|
+
rubygems_version: 3.1.2
|
292
292
|
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: Find and parse manifests
|