bibliothecary 6.9.7 → 6.9.8

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: 127bb145341b9464e7c551a835ce172f3791a065081940de00e9cdddd5a16aec
4
- data.tar.gz: 12db3fb6e30ee437182d56768428b51b0f7c3473bb818922fb1310865b3c4f40
3
+ metadata.gz: 103fbc1356cfb20fcf31abf8af5394c2edce750cb6dae48a8f58f43071c16498
4
+ data.tar.gz: 1a4c95071bd3c9b43b2a8a2ca969ce24ca8e616910b70ca324abb4763a881f74
5
5
  SHA512:
6
- metadata.gz: ba78060a9d3793cd2251181404d1d354b3e1c968c77b470201cdb5e94a1bc1a13f7c68d9b4ecc460c43f06550e3e9d433b3206569bf188d9acf1a1191e095c13
7
- data.tar.gz: d8e20b2df9b305570f252cd1c403248e178c0a489b8180a10dbfc13a2a6e0e31af588508671c9c4286589c2e560d84b59a168c40e427ea3751433e0c4e9f8901
6
+ metadata.gz: edfc0874faab4c9bdb4cb5e91aa01a291eede73eba388369dac1ea6a992db20e1767f1305d8bcc3d6019405c4bc8608e519c6ce67eaa52ddc481e60e7a53eb79
7
+ data.tar.gz: 0c366ea34c210a4f5ee8c8c7eb2154a8a6a1ecb103c248314a8f0af3b9cfa5d903d0f26d840733db9208e88db6b9509cc860d9b79a2f7f31283fecd368d1bfb0
@@ -93,10 +93,16 @@ module Bibliothecary
93
93
 
94
94
  def self.parse_csproj(file_contents)
95
95
  manifest = Ox.parse file_contents
96
+
96
97
  packages = manifest.locate('ItemGroup/PackageReference').map do |dependency|
98
+ requirement = (dependency.Version if dependency.respond_to? "Version") || "*"
99
+ if requirement.is_a?(Ox::Element)
100
+ requirement = dependency.nodes.detect{ |n| n.value == "Version" }&.text
101
+ end
102
+
97
103
  {
98
104
  name: dependency.Include,
99
- requirement: (dependency.Version if dependency.respond_to? "Version") || "*",
105
+ requirement: requirement,
100
106
  type: 'runtime'
101
107
  }
102
108
  end
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "6.9.7"
2
+ VERSION = "6.9.8"
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.9.7
4
+ version: 6.9.8
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-01-29 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml-rb