bibliothecary 12.3.0 → 12.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bibliothecary/parsers/nuget.rb +12 -2
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8405e79b9449b0f4e1f1dc7940b54870ab0aafe7adb511a7d4876ecfca2798ed
|
4
|
+
data.tar.gz: 15ef48279642088fdbb57291c44a1faaf74c4c2a47e0ac4258e215dfe40e8197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7710e394463856a89913e95d49b525966a4b394c6be84c403d97a17bc0c8964df2293ab995164c65fdd9fb3f96d5b9cd1be114f03464d4fc9c1dd2fe269b0a48
|
7
|
+
data.tar.gz: 1a9e5a61ad6904934c85e324ffc66a5e7d8bdff592b5b0b63040db5431e6dd153e40b70f0d75c1d1a7a9652e3e8ef12fd9b4325b0b8acf31c9c128d4c61bea56
|
data/CHANGELOG.md
CHANGED
@@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
13
13
|
|
14
14
|
### Removed
|
15
15
|
|
16
|
+
## [12.3.1] - 2025-06-06
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- Handle .csproj files that begin with an <?xml> tag
|
21
|
+
|
16
22
|
## [12.3.0] - 2025-06-06
|
17
23
|
|
18
24
|
### Added
|
@@ -109,7 +109,17 @@ module Bibliothecary
|
|
109
109
|
|
110
110
|
def self.parse_csproj(file_contents, options: {})
|
111
111
|
manifest = Ox.parse file_contents
|
112
|
-
|
112
|
+
|
113
|
+
# The dotnet samples repo has examples with both of these cases, so both need to be handled:
|
114
|
+
project = if manifest.locate("Project").any?
|
115
|
+
# 1) If there's an <?xml> tag, we need to pick out the "Project" element
|
116
|
+
manifest.locate("Project").first
|
117
|
+
else
|
118
|
+
# 2) If there's no <?xml> tag, the root element is "Project"
|
119
|
+
manifest
|
120
|
+
end
|
121
|
+
|
122
|
+
packages = project
|
113
123
|
.locate("ItemGroup/PackageReference")
|
114
124
|
.select { |dep| dep.respond_to? "Include" }
|
115
125
|
.map do |dependency|
|
@@ -132,7 +142,7 @@ module Bibliothecary
|
|
132
142
|
)
|
133
143
|
end
|
134
144
|
|
135
|
-
packages +=
|
145
|
+
packages += project
|
136
146
|
.locate("ItemGroup/Reference")
|
137
147
|
.select { |dep| dep.respond_to? "Include" }
|
138
148
|
.map do |dependency|
|