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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2069ae9ebc8043003befa27dca84ff27d7fa693a4acb954b3f25989ad0d8bd85
4
- data.tar.gz: 624af9ee05fd3c218feae6e97b90413d8f2b18c26c4d22ae5242aee3df4b13aa
3
+ metadata.gz: ef4babc39a950bb7babd698d6b6de3022003aa6e6e112a0065d9b104adfcef13
4
+ data.tar.gz: 55fdb8f2a96a88d1d4810baccd74a5a0e0a753e91d68594325952610ade584c2
5
5
  SHA512:
6
- metadata.gz: 95c98a02c2f0791386b442096c3d0d755064ca7260e13c334af1bc37f4c0654331238fc20a9a5195fe2f08f05d3d350df9dbf716d578bdb0e371252fc3f8a4d5
7
- data.tar.gz: 50b89d1c78aed8ae87d141f2429e9d9a03b1ddf731524ccb1c90dcefaeb8e3c094a7090e42bfd32250a085a1a133276e1add9b70b13f4fcdcb0a213c397b5807
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: requirement["version"],
63
+ requirement: version,
55
64
  type: type
56
65
  }
57
66
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "6.12.2"
2
+ VERSION = "6.12.3"
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: 6.12.2
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-05-24 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb