bibliothecary 8.4.1 → 8.4.2
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/lib/bibliothecary/parsers/maven.rb +5 -10
- 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: c21d1063a79efb1b133d650ba0d24754c26a9487341cc9e711f5387d22912602
|
|
4
|
+
data.tar.gz: f75fd37ef4c6262b3c23e908b6a044187ac048c96398eb8e7312b020e259ca6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d513694486a3af6bd68c654c022bf30e2ce601cf2f0150b41f824368ba5f826a47ec688c6a8e32adce516ac35bbe7baa234992d0d1cb24d4b630ba221ceaf92b
|
|
7
|
+
data.tar.gz: 63ae337f307b054c7b5c846c9847780a5a2f4a9d97502fd589ff35280acfd77f026a2abcb193dc2bb48ffb309c216561841d49b53cc985659ffbb72bc930dda1
|
|
@@ -162,11 +162,12 @@ module Bibliothecary
|
|
|
162
162
|
|
|
163
163
|
split = gradle_dep_match.captures[0]
|
|
164
164
|
|
|
165
|
-
# gradle can import on-disk projects and deps will be listed under them, e.g. `+--- project :
|
|
166
|
-
# so we treat these projects as internal deps
|
|
165
|
+
# gradle can import on-disk projects and deps will be listed under them, e.g. `+--- project :test:integration`,
|
|
166
|
+
# so we treat these projects as "internal" deps with requirement of "1.0.0"
|
|
167
167
|
if (project_match = line.match(GRADLE_PROJECT_REGEX))
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
# project names can have colons (e.g. for gradle projects in subfolders), which breaks maven artifact naming assumptions, so just replace them with hyphens.
|
|
169
|
+
project_name = (project_match[1] || current_project).gsub(/:/, "-")
|
|
170
|
+
line = line.sub(GRADLE_PROJECT_REGEX, "internal:#{project_name}:1.0.0")
|
|
170
171
|
else
|
|
171
172
|
project_name = ""
|
|
172
173
|
end
|
|
@@ -177,12 +178,6 @@ module Bibliothecary
|
|
|
177
178
|
.sub(" -> ", ":") # handle version arrow syntax
|
|
178
179
|
.strip
|
|
179
180
|
.split(":")
|
|
180
|
-
.map do |part|
|
|
181
|
-
part
|
|
182
|
-
.sub(/__PROJECT_GROUP__/, "internal") # give all projects a group namespace of "internal"
|
|
183
|
-
.sub(/__PROJECT_NAME__/, project_name)
|
|
184
|
-
.sub(/__PROJECT_REQUIREMENT__/, "1.0.0") # give all projects a requirement of "1.0.0".
|
|
185
|
-
end # replace placeholders after we've parsed the line
|
|
186
181
|
|
|
187
182
|
# A testImplementation line can look like this so just skip those
|
|
188
183
|
# \--- org.springframework.security:spring-security-test (n)
|
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: 8.4.
|
|
4
|
+
version: 8.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Nesbitt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tomlrb
|