dependabot-maven 0.156.8 → 0.157.1

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: 2d446a0b66d96a6b0050445bf7bdce073e96d2d27547f5d1e9ca6976423028b9
4
- data.tar.gz: eaffe16ef30a33b98457bf53e4201902cc1aa17b509e54f72f624ca21bcf2872
3
+ metadata.gz: 331d66c015e07673be7f9485957e51c28a1f326bb5f607b9dbf5be2a811e29b5
4
+ data.tar.gz: 5dd4855f9b27d45c5dc7f078d7f1a3c6ad754d163c58c69fcbe16cc67749732c
5
5
  SHA512:
6
- metadata.gz: 7897b8295dbb2945db3e4a859b3e72a447d2d8cf9a54e7ea9e2b037a82abc61b5a59c024250122d468014b87189ddbf5d457a122c98d75cbc81622defaf6a311
7
- data.tar.gz: 2d3bc6914a25ef17736ce3f97b2741d5ff5481a5b34e7fdd98ead2e3b8d84f75d66679f308f5d196c13d001c9d1c2d3b64d1bde54785866434379ea99d99637c
6
+ metadata.gz: 39a006b3fb6587908a69b12d7d503f3d5420c6f5f9455ac6561bdb4372fd947660554737afa438c65bb1126b216957d21fd61310bd9fed68d4cfca0faf6556a5
7
+ data.tar.gz: 78690637856d5996b157a3ba2eb9b2d1c934641e402386e69b2dd321e84f3a94d94918618981184ef7e56c9335ab99debcb19d0e78bee6cce5482f3a631b0a3a
@@ -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.8
4
+ version: 0.157.1
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-15 00:00:00.000000000 Z
11
+ date: 2021-07-27 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.8
19
+ version: 0.157.1
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.8
26
+ version: 0.157.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement