bibliothecary 8.4.1 → 8.4.2

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: 88bb227529774df01fff8b890d9a2ef3d4c211ff8cf7ddb012c0b0da83e867ad
4
- data.tar.gz: 596d991826e48b1b42f00f795a8ab2e8da831b3dabf358c00c47fcd0e55a9daa
3
+ metadata.gz: c21d1063a79efb1b133d650ba0d24754c26a9487341cc9e711f5387d22912602
4
+ data.tar.gz: f75fd37ef4c6262b3c23e908b6a044187ac048c96398eb8e7312b020e259ca6d
5
5
  SHA512:
6
- metadata.gz: c126388716f2676a601f6b59119f15471bc4c124cccebf15cde1149d25604d45abc9a338ada17785ac572a31871f495567e2a71b8ac7363f383b2f8ee05e2e76
7
- data.tar.gz: 2bf471a522a8822646c28f481ad61dd805b682756ae8cf7017138cb0cd086157bec0aaa6885e349c60979d3d9ced4c6734e0e9e97c3c3fe52675246c2db2e344
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 :pie2-testing`,
166
- # so we treat these projects as internal deps themselves (["internal:foo","0.0.0"])
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
- project_name = project_match[1] || current_project
169
- line = line.sub(GRADLE_PROJECT_REGEX, "__PROJECT_GROUP__:__PROJECT_NAME__:__PROJECT_REQUIREMENT__") # project names can have colons, which breaks our split(":") below, so sub it out until after we've parsed the line.
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)
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "8.4.1"
2
+ VERSION = "8.4.2"
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: 8.4.1
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-19 00:00:00.000000000 Z
11
+ date: 2022-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb