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 +4 -4
- data/lib/bibliothecary/parsers/nuget.rb +7 -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: 103fbc1356cfb20fcf31abf8af5394c2edce750cb6dae48a8f58f43071c16498
|
4
|
+
data.tar.gz: 1a4c95071bd3c9b43b2a8a2ca969ce24ca8e616910b70ca324abb4763a881f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
105
|
+
requirement: requirement,
|
100
106
|
type: 'runtime'
|
101
107
|
}
|
102
108
|
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.
|
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-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml-rb
|