bibliothecary 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary/parsers/cargo.rb +6 -0
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2f7d00bb752b97f12952804e8966a2b6ba7d5c9
|
4
|
+
data.tar.gz: 726e2887924511a8ddfd36598396e01e523a475b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dedb3ef80eb9de3a1596971ece2aacc625ef58e06e921402a25618a5e519340cce7c0d085446b6ef745ba7969d43a81d42657de503289359512b0e839f46653
|
7
|
+
data.tar.gz: 6f10dab796fdb15284473eba918e0b772c0627135b2df329cec31a24761b1ab32373cff35ede54feb2d8fdd4cdc4dfa16c8765a7c4c911ce4ab1da53fbdd78eb
|
@@ -21,12 +21,16 @@ module Bibliothecary
|
|
21
21
|
|
22
22
|
def self.parse_manifest(manifest)
|
23
23
|
manifest.fetch('dependencies', []).map do |name, requirement|
|
24
|
+
if requirement.respond_to?(:fetch)
|
25
|
+
requirement = requirement['version'] or next
|
26
|
+
end
|
24
27
|
{
|
25
28
|
name: name,
|
26
29
|
requirement: requirement,
|
27
30
|
type: 'runtime'
|
28
31
|
}
|
29
32
|
end
|
33
|
+
.compact
|
30
34
|
end
|
31
35
|
|
32
36
|
def self.analyse_cargo_lock(folder_path, file_list)
|
@@ -48,12 +52,14 @@ module Bibliothecary
|
|
48
52
|
|
49
53
|
def self.parse_lockfile(manifest)
|
50
54
|
manifest.fetch('package',[]).map do |dependency|
|
55
|
+
next if not dependency['source'] or not dependency['source'].start_with?('registry+')
|
51
56
|
{
|
52
57
|
name: dependency['name'],
|
53
58
|
requirement: dependency['version'],
|
54
59
|
type: 'runtime'
|
55
60
|
}
|
56
61
|
end
|
62
|
+
.compact
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
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: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Nesbitt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|