dependabot-docker 0.231.0 → 0.232.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: cb3d1b7715971fb63f8b1b713987da24f5c2aebbdbdcb216657146292e2f5146
4
- data.tar.gz: f5b3ff175503a7ddbcbee37af8a2b387dc4e60c91689f80af04f25d92d1494dc
3
+ metadata.gz: f7ec65c65ca477422b595797fb972fe21b52c3682ff698eb288a390c202711fa
4
+ data.tar.gz: 19059ec95f6e3736c32e399baa981fa6383f0c89d3a479081a892b89fad97d75
5
5
  SHA512:
6
- metadata.gz: e23120d2344c090f4dee22bc8086d8021365296caf864ab1fd8477326839353e77f6b2da5ce4bb0932a4ef5fdeac894ba2ee58fef0e7ccf121bb6e48a6119134
7
- data.tar.gz: 3ddb555334b80e5d34491036070645abcb8ece0ae4a6149943d56b0020b44e767eeabf85fab2882dfc0aed29880b5c74c4d1477ac093b990439075161aae6ddc
6
+ metadata.gz: 15d29aefbd1242ef3cddbd26b4d6621b9291b21ca5eaef7e56753db4efec6bca471b164db686af3194618893d3c7a41f63c5183cc42bda1789245311d331f1ff
7
+ data.tar.gz: 249371addc50a8d769162c3cb9de62d7919da568a0221b6d438f18606deede62f5d6883f8351693ac6d11cc83eb5e7f19b1ee930f447114a6985d88d3e2840f3
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/docker/utils/helpers"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/metadata_finders"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/utils"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/docker/file_parser"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "docker_registry2"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "aws-sdk-ecr"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Dependabot
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/version"
@@ -22,6 +22,19 @@ module Dependabot
22
22
  super(@release_part)
23
23
  end
24
24
 
25
+ def self.correct?(version)
26
+ return true if version.is_a?(Gem::Version)
27
+
28
+ # We can't call new here because Gem::Version calls self.correct? in its initialize method
29
+ # causing an infinite loop, so instead we check if the release_part of the version is correct
30
+ release_part, = version.split("_", 2)
31
+ release_part = release_part.sub("v", "").tr("-", ".")
32
+ super(release_part)
33
+ rescue ArgumentError
34
+ # if we can't instantiate a version, it can't be correct
35
+ false
36
+ end
37
+
25
38
  def to_semver
26
39
  @release_part.to_semver
27
40
  end
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # These all need to be required so the various classes can be registered in a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.231.0
4
+ version: 0.232.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2023-09-14 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.231.0
19
+ version: 0.232.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.231.0
26
+ version: 0.232.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -216,7 +216,7 @@ licenses:
216
216
  - Nonstandard
217
217
  metadata:
218
218
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
219
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.231.0
219
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.232.0
220
220
  post_install_message:
221
221
  rdoc_options: []
222
222
  require_paths: