dependabot-maven 0.138.6 → 0.140.0

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: fdc3b16b2080476fe92f5457af1a09ade5858e3cf2393a3f316ee10b309417cf
4
- data.tar.gz: a281b61c7f6d73f7b9ed5483e3ec38ca26477c0c1dd1e26a43353c7a2720ad98
3
+ metadata.gz: 032f65402bd8c2354d1053333399b130b0752262df47fb6c40af8d0c8603d0f8
4
+ data.tar.gz: 19fc4b70b4d4d9127c56f0f56527333f03b4dbb26a4de8abbc52f6b04c317f7c
5
5
  SHA512:
6
- metadata.gz: be565756cf91621bf62b444f3c90e0f3c32e81ad44e6f1db38acf7f90c939eae6f6dba204cc33a530b6d807c87e4cb66fa8a0a2552ad1f114f8e04b4d78acd95
7
- data.tar.gz: fee0d11f5c4b593fe1a031b443c40406b8d6f97416704ac0bc4f1797725fb9ecabf0fd6bd462cd43244bc97e32a062d377844273723e479bf5a25ef7ef8ef5f0
6
+ metadata.gz: 0f5354f423db0616be3e944b5ae16e8f206d85d82b017565ab481007a6e4aea4ec4695d6b91b4791ca6ba71a1ae901757674317e1d3b9674900480a9e8bea673
7
+ data.tar.gz: 745c225b89beb7016ee2259f82402d1b7b61b5706d5fb6ec50aaadbfb73cb21d00e3ed35b88af843d33613a57909b1a4a3c38b2a152f6d880d59d82869803411
@@ -125,13 +125,11 @@ module Dependabot
125
125
  def declaration_finder(dependency, requirement)
126
126
  @declaration_finders ||= {}
127
127
  @declaration_finders[dependency.hash + requirement.hash] ||=
128
- begin
129
- DeclarationFinder.new(
130
- dependency: dependency,
131
- declaring_requirement: requirement,
132
- dependency_files: dependency_files
133
- )
134
- end
128
+ DeclarationFinder.new(
129
+ dependency: dependency,
130
+ declaring_requirement: requirement,
131
+ dependency_files: dependency_files
132
+ )
135
133
  end
136
134
 
137
135
  def updated_pom_declaration(old_declaration, previous_req, requirement)
@@ -175,8 +175,11 @@ module Dependabot
175
175
 
176
176
  return 1 if NAMED_QUALIFIERS_HIERARCHY[other_token]
177
177
 
178
- token = token.to_i if token.match?(/^\d+$/)
179
- other_token = other_token.to_i if other_token.match?(/^\d+$/)
178
+ if token.match?(/\A\d+\z/) && other_token.match?(/\A\d+\z/)
179
+ token = token.to_i
180
+ other_token = other_token.to_i
181
+ end
182
+
180
183
  token <=> other_token
181
184
  end
182
185
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-maven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.138.6
4
+ version: 0.140.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.138.6
19
+ version: 0.140.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.138.6
26
+ version: 0.140.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.11.0
103
+ version: 1.12.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.11.0
110
+ version: 1.12.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement