dependabot-docker 0.291.0 → 0.292.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: e9d40354c44fc0bebd57a0a708cecaee3202ae92a4dbe375b69702f59d8ee865
4
- data.tar.gz: 353eec248695139e105bf21a08e861d25a3f8fabf437ec67d9622761c691fabf
3
+ metadata.gz: c263fbe7f8f0e1c4ce27524f83a12c6f945d5bfdbd525412e55d6621f91ed4e1
4
+ data.tar.gz: 9a8990dbdf18c8b2a955f46f183821ba6b530886d4fd08c38139c9994f049666
5
5
  SHA512:
6
- metadata.gz: b15172a30d7bd6d95753a608ee79747883313db8bc9e06c16254349cdb13550423c19aca5da682798037c3e60ca0420d3f86e9398501fbcb008f91ab0bdf3236
7
- data.tar.gz: 7d73f8a846ee0286f83edec6a144a012c7328d589f544cbb8aaa9ebc4700cdfa6e320480b6c3699167222766755257874fe965e91a077866189d633d274ef846
6
+ metadata.gz: dde34d3ac59711277866a2e5b158171fac3b0395030d3570b0a9601e5e9df64c96a15790ed16c0bce70e22078595e9eb3b672af6fd100bee1dc39c745aebcd66
7
+ data.tar.gz: 82fc954aa85dcde32e428006189bbb2ab92d44325d713d5ccf5df62552dc3a3a9f7cd6a9ca238491fbdaa4e79c3ae0cd78b9314cb294195096847e97137e65ce
@@ -8,6 +8,7 @@ require "dependabot/file_parsers"
8
8
  require "dependabot/file_parsers/base"
9
9
  require "dependabot/errors"
10
10
  require "sorbet-runtime"
11
+ require "dependabot/docker/package_manager"
11
12
 
12
13
  module Dependabot
13
14
  module Docker
@@ -42,6 +43,17 @@ module Dependabot
42
43
 
43
44
  IMAGE_SPEC = %r{^(#{REGISTRY}/)?#{IMAGE}#{TAG}?(?:@sha256:#{DIGEST})?#{NAME}?}x
44
45
 
46
+ sig { returns(Ecosystem) }
47
+ def ecosystem
48
+ @ecosystem ||= T.let(
49
+ Ecosystem.new(
50
+ name: ECOSYSTEM,
51
+ package_manager: DockerPackageManager.new
52
+ ),
53
+ T.nilable(Ecosystem)
54
+ )
55
+ end
56
+
45
57
  # rubocop:disable Metrics/AbcSize
46
58
  sig { override.returns(T::Array[Dependabot::Dependency]) }
47
59
  def parse
@@ -0,0 +1,53 @@
1
+ # typed: strong
2
+ # frozen_string_literal: true
3
+
4
+ require "sorbet-runtime"
5
+ require "dependabot/docker/version"
6
+ require "dependabot/ecosystem"
7
+ require "dependabot/docker/requirement"
8
+
9
+ module Dependabot
10
+ module Docker
11
+ ECOSYSTEM = "docker"
12
+
13
+ SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
14
+
15
+ DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
16
+
17
+ class DockerPackageManager < Dependabot::Ecosystem::VersionManager
18
+ extend T::Sig
19
+
20
+ NAME = "docker"
21
+
22
+ # As dockerfile updater is a inhouse custom utility, We use a placeholder
23
+ # version number for dockerfile updater
24
+ VERSION = "1.0.0"
25
+
26
+ SUPPORTED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
27
+
28
+ DEPRECATED_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
29
+
30
+ sig do
31
+ void
32
+ end
33
+ def initialize
34
+ super(
35
+ name: NAME,
36
+ version: Version.new(VERSION),
37
+ deprecated_versions: DEPRECATED_VERSIONS,
38
+ supported_versions: SUPPORTED_VERSIONS
39
+ )
40
+ end
41
+
42
+ sig { override.returns(T::Boolean) }
43
+ def deprecated?
44
+ false
45
+ end
46
+
47
+ sig { override.returns(T::Boolean) }
48
+ def unsupported?
49
+ false
50
+ end
51
+ end
52
+ end
53
+ end
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.291.0
4
+ version: 0.292.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-19 00:00:00.000000000 Z
11
+ date: 2025-01-09 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.291.0
19
+ version: 0.292.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.291.0
26
+ version: 0.292.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -247,6 +247,7 @@ files:
247
247
  - lib/dependabot/docker/file_parser.rb
248
248
  - lib/dependabot/docker/file_updater.rb
249
249
  - lib/dependabot/docker/metadata_finder.rb
250
+ - lib/dependabot/docker/package_manager.rb
250
251
  - lib/dependabot/docker/requirement.rb
251
252
  - lib/dependabot/docker/tag.rb
252
253
  - lib/dependabot/docker/update_checker.rb
@@ -258,7 +259,7 @@ licenses:
258
259
  - MIT
259
260
  metadata:
260
261
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
261
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.291.0
262
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.292.0
262
263
  post_install_message:
263
264
  rdoc_options: []
264
265
  require_paths:
@@ -274,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
275
  - !ruby/object:Gem::Version
275
276
  version: 3.1.0
276
277
  requirements: []
277
- rubygems_version: 3.5.9
278
+ rubygems_version: 3.5.22
278
279
  signing_key:
279
280
  specification_version: 4
280
281
  summary: Provides Dependabot support for Docker