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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc26c5ae4e7bb29db260ad0b4304621aa264a0e7
4
- data.tar.gz: d743087f4b3607102121342efc69e7c968444af4
3
+ metadata.gz: f2f7d00bb752b97f12952804e8966a2b6ba7d5c9
4
+ data.tar.gz: 726e2887924511a8ddfd36598396e01e523a475b
5
5
  SHA512:
6
- metadata.gz: a06639e229458266355d23992a1cc2a815d7103e413e7af2972064cb99bacd460e19b59c04ac14c8542421875d3ec5382ee130d8c507136c3aa9fa5191972767
7
- data.tar.gz: 5bda3864e0a845c48fe5ca8a55a091b9bd5e78e23d02bb6308f2e3147542ab7b579e7d35880aa5082bc4f5a28b6c1075e61922084a23886eb565252f0c7969f5
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
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  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.1
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-08 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb