dependabot-maven 0.156.6 → 0.157.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: 88e3be2ac7690410113f5e6c59b2f0e62d33ef5f38bf2402ae988f772088f528
4
- data.tar.gz: 46f62ecb11d3cbee0b2f4542600568dd7cf0db8f42b45f331c70dd0fb4be65c6
3
+ metadata.gz: 6ebfa534653784ae64b951837ea5d4ca9e4c9fcfd7b090121429e53a4232490c
4
+ data.tar.gz: 9b9306f41bee81a5a9ab5fe6cc50feb9861ac6df95124ee92ffd44a4c5404367
5
5
  SHA512:
6
- metadata.gz: 3d4b254db6c5279b7d0cd3f57c7bfb660519ef99f4c3bb9467a9dadd5db07248a5d5249dcb2e54dd73d9fe6019faf7aa962127cf1b7f46e59a0f1020e113be08
7
- data.tar.gz: e58247f73ac453da815c339996bc48202596c752b557664821cb0626cc93139d52bdb1b85b9b840de8addf75a6d0a0160c91ba1ee62bf4b0afffaa256a10df9c
6
+ metadata.gz: 36054076f05f3f6a1d73ed25faf67a84048c217b3e52b935bd954e8d876beed33ea9667745bf8d9622c8b7416cc923efd95c19b9f28aa5b3b51905f62e86deb6
7
+ data.tar.gz: 62bd36224e24386cda4f39a27bf2174f9acb640ce4dd8e3e87bfbb65e8d0889e41d3540394323119ff510c3b9fb16e67b0e4692f4283e92aa51d9f0365a45daf
@@ -13,7 +13,7 @@ module Dependabot
13
13
  module Maven
14
14
  class UpdateChecker
15
15
  class VersionFinder
16
- TYPE_SUFFICES = %w(jre android java).freeze
16
+ TYPE_SUFFICES = %w(jre android java native_mt agp).freeze
17
17
 
18
18
  def initialize(dependency:, dependency_files:, credentials:,
19
19
  ignored_versions:, security_advisories:,
@@ -221,13 +221,19 @@ module Dependabot
221
221
  def matches_dependency_version_type?(comparison_version)
222
222
  return true unless dependency.version
223
223
 
224
- current_type =
225
- TYPE_SUFFICES.
226
- find { |t| dependency.version.split(/[.\-]/).include?(t) }
227
-
228
- version_type =
229
- TYPE_SUFFICES.
230
- find { |t| comparison_version.to_s.split(/[.\-]/).include?(t) }
224
+ current_type = dependency.version.
225
+ gsub("native-mt", "native_mt").
226
+ split(/[.\-]/).
227
+ find do |type|
228
+ TYPE_SUFFICES.find { |s| type.include?(s) }
229
+ end
230
+
231
+ version_type = comparison_version.to_s.
232
+ gsub("native-mt", "native_mt").
233
+ split(/[.\-]/).
234
+ find do |type|
235
+ TYPE_SUFFICES.find { |s| type.include?(s) }
236
+ end
231
237
 
232
238
  current_type == version_type
233
239
  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.156.6
4
+ version: 0.157.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-07-13 00:00:00.000000000 Z
11
+ date: 2021-07-26 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.156.6
19
+ version: 0.157.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.156.6
26
+ version: 0.157.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  - !ruby/object:Gem::Version
221
221
  version: 2.5.0
222
222
  requirements: []
223
- rubygems_version: 3.2.15
223
+ rubygems_version: 3.2.22
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: Maven support for dependabot