bibliothecary 8.3.0 → 8.3.3

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: c551b8910bf1a2244fddcde8a12ab29d88816b61237b10c992a53d049b2ad661
4
- data.tar.gz: 55254294ffec08398bc658b117673ea2697d31ddc8ad9592d24225313b9803bb
3
+ metadata.gz: 137de2598a6dc8e47bbaea1e232bb1c46e6efd9986e7307846fb371dc89439a2
4
+ data.tar.gz: ca97f6776e335b52dfc5f9b97d8bf24d8271d22cfd87d3f82f0e9c683e1a3dd9
5
5
  SHA512:
6
- metadata.gz: 52966b0a1fa300c8115f413ebdc991b3856bb77f8098e5b19ed996b1f9bf3c46b54cc41ed2998f0a157f3544c54296b99437596b2666e8345c6285208f0bd46c
7
- data.tar.gz: e0c980d9065bfbc3c98100c0ebd92f7c0e16ab93f5e0a3f4a8178d8fb4a89ff032225737951486bf704d337d2bf9f2d18d60074e545ee6852297293c5e952b5b
6
+ metadata.gz: 209aed3d49a29f62078f56bbb9c5ff7192adfd3c3c5f432cdb6993901f53e68c01451b6f5965a57cd3cfb30d0a25a3bb3435e6c96e4a7e7f26e097d00596cd01
7
+ data.tar.gz: 562ba360db10d9864ab9d18a90c9a10f5acd8e408eaef5c69be5afa99e0229a3078ba35b6919b63a91f523a6c3c7619b26006a8e56b337e9f004d264e4dbbd83
@@ -23,9 +23,8 @@ module Bibliothecary
23
23
  GRADLE_VAR_INTERPOLATION_REGEX = /\$\w+/ # e.g. '$myVersion'
24
24
  GRADLE_CODE_INTERPOLATION_REGEX = /\$\{.*\}/ # e.g. '${my-project-settings["version"]}'
25
25
  GRADLE_GAV_REGEX = /([\w.-]+)\:([\w.-]+)(?:\:(#{GRADLE_VERSION_REGEX}|#{GRADLE_VAR_INTERPOLATION_REGEX}|#{GRADLE_CODE_INTERPOLATION_REGEX}))?/ # e.g. "group:artifactId:1.2.3"
26
- GRADLE_COMMENT_REGEX = /\/\/.*|\/\*.*\*\// # '// hello' or '/* hello */'
27
- GRADLE_GROOVY_SIMPLE_REGEX = /(#{GRADLE_DEPENDENCY_METHODS.join('|')})\s+['"]#{GRADLE_GAV_REGEX}['"]\s*(?:#{GRADLE_COMMENT_REGEX})*$/m
28
- GRADLE_KOTLIN_SIMPLE_REGEX = /(#{GRADLE_DEPENDENCY_METHODS.join('|')})\s*\(\s*"#{GRADLE_GAV_REGEX}"\s*\)\s*(?:#{GRADLE_COMMENT_REGEX})*$/m
26
+ GRADLE_GROOVY_SIMPLE_REGEX = /(#{GRADLE_DEPENDENCY_METHODS.join('|')})\s*\(?\s*['"]#{GRADLE_GAV_REGEX}['"]/m
27
+ GRADLE_KOTLIN_SIMPLE_REGEX = /(#{GRADLE_DEPENDENCY_METHODS.join('|')})\s*\(\s*"#{GRADLE_GAV_REGEX}"/m
29
28
 
30
29
  MAVEN_PROPERTY_REGEX = /\$\{(.+?)\}/
31
30
  MAX_DEPTH = 5
@@ -160,9 +159,17 @@ module Bibliothecary
160
159
  # \--- org.springframework.security:spring-security-test (n)
161
160
  next unless dep.length >= 3
162
161
 
162
+ dep_name = if dep.count == 6
163
+ # get name from renamed package resolution "org:name:version -> renamed_org:name:version"
164
+ dep[-3..-2]
165
+ else
166
+ # get name from version conflict resolution ("org:name:version -> version") and no-resolution ("org:name:version")
167
+ dep[0..1]
168
+ end
169
+
163
170
  version = dep[-1]
164
171
  {
165
- name: dep[0..1].join(":"),
172
+ name: dep_name.join(":"),
166
173
  requirement: version,
167
174
  type: type
168
175
  }
@@ -21,7 +21,7 @@ module Bibliothecary
21
21
  def results
22
22
  partition_file_entries!
23
23
 
24
- no_lockfile_results + single_file_results + multiple_file_results
24
+ (no_lockfile_results + single_file_results + multiple_file_results).uniq
25
25
  end
26
26
 
27
27
  def no_lockfile_results
@@ -1,3 +1,3 @@
1
1
  module Bibliothecary
2
- VERSION = "8.3.0"
2
+ VERSION = "8.3.3"
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.3.0
4
+ version: 8.3.3
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-05-19 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb