bibliothecary 6.12.2 → 6.12.3
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/npm.rb +10 -1
- data/lib/bibliothecary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef4babc39a950bb7babd698d6b6de3022003aa6e6e112a0065d9b104adfcef13
|
4
|
+
data.tar.gz: 55fdb8f2a96a88d1d4810baccd74a5a0e0a753e91d68594325952610ade584c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad94c2c9e51aadbe003721deaf0d853269f04ff2730319256910283f15dd49517b9b4178747796d2c1c7bd4442c55d9ff411f95641a77d6fc6fed2e4c0f87bf8
|
7
|
+
data.tar.gz: 0220eeddcae84c0f2a6d7c0cb34bab3fdcd517a1da3c6e266913b6bc9729b285283dbe3cb771766b8efcee4f024320181ea42d7265b4e436ba3d261f8e42f203
|
@@ -49,9 +49,18 @@ module Bibliothecary
|
|
49
49
|
else
|
50
50
|
type = 'runtime'
|
51
51
|
end
|
52
|
+
|
53
|
+
version = nil
|
54
|
+
|
55
|
+
if requirement.key?("from")
|
56
|
+
version = requirement["from"][/#(?:semver:)?v?(.*)/, 1]
|
57
|
+
end
|
58
|
+
|
59
|
+
version ||= requirement["version"].split("#").last
|
60
|
+
|
52
61
|
{
|
53
62
|
name: name,
|
54
|
-
requirement:
|
63
|
+
requirement: version,
|
55
64
|
type: type
|
56
65
|
}
|
57
66
|
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: 6.12.
|
4
|
+
version: 6.12.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: 2021-
|
11
|
+
date: 2021-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|