dependabot-devcontainers 0.288.0 → 0.290.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ac0176425867ce02aac4134465e0e7e94de92b3520560352253d3cc764a65c6
|
4
|
+
data.tar.gz: c19f46afd1ed60a034c260a6c980cc43c08cd0afcb64bd5904b6d5cb4d46a822
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd6718c7ff2ce76cea7b0c22220eaf51e3d7a6f4e8bbf90c4033d1dbd94de944178db2ae8b7a89f63f8a9771fa9092398afeef16cfb21ae1f1efdc84f151d620
|
7
|
+
data.tar.gz: c4dcb30ed08a9d55d8d80a67a2ee245ac55be0b0598bbbb9720326c8b1a4e85e325a5c0907eb701c43b7133cbef7f51a5d41202a15219610d2a1671b571535d5
|
@@ -6,6 +6,8 @@ require "sorbet-runtime"
|
|
6
6
|
require "dependabot/file_parsers"
|
7
7
|
require "dependabot/file_parsers/base"
|
8
8
|
require "dependabot/devcontainers/version"
|
9
|
+
require "dependabot/devcontainers/language"
|
10
|
+
require "dependabot/devcontainers/package_manager"
|
9
11
|
require "dependabot/devcontainers/file_parser/feature_dependency_parser"
|
10
12
|
|
11
13
|
module Dependabot
|
@@ -28,6 +30,17 @@ module Dependabot
|
|
28
30
|
dependency_set.dependencies
|
29
31
|
end
|
30
32
|
|
33
|
+
sig { returns(Ecosystem) }
|
34
|
+
def ecosystem
|
35
|
+
@ecosystem ||= T.let(begin
|
36
|
+
Ecosystem.new(
|
37
|
+
name: ECOSYSTEM,
|
38
|
+
package_manager: package_manager,
|
39
|
+
language: language
|
40
|
+
)
|
41
|
+
end, T.nilable(Dependabot::Ecosystem))
|
42
|
+
end
|
43
|
+
|
31
44
|
private
|
32
45
|
|
33
46
|
sig { override.void }
|
@@ -55,6 +68,44 @@ module Dependabot
|
|
55
68
|
T.nilable(T::Array[Dependabot::DependencyFile])
|
56
69
|
)
|
57
70
|
end
|
71
|
+
|
72
|
+
sig { returns(Ecosystem::VersionManager) }
|
73
|
+
def package_manager
|
74
|
+
@package_manager ||= T.let(
|
75
|
+
PackageManager.new(T.must(devcontainer_version)),
|
76
|
+
T.nilable(Dependabot::Devcontainers::PackageManager)
|
77
|
+
)
|
78
|
+
end
|
79
|
+
|
80
|
+
sig { returns(T.nilable(Ecosystem::VersionManager)) }
|
81
|
+
def language
|
82
|
+
@language ||= T.let(
|
83
|
+
Language.new(T.must(node_version)),
|
84
|
+
T.nilable(Dependabot::Devcontainers::Language)
|
85
|
+
)
|
86
|
+
end
|
87
|
+
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
def devcontainer_version
|
90
|
+
@devcontainer_version ||= T.let(
|
91
|
+
begin
|
92
|
+
version = SharedHelpers.run_shell_command("devcontainer --version")
|
93
|
+
version.match(Dependabot::Ecosystem::VersionManager::DEFAULT_VERSION_PATTERN)&.captures&.first
|
94
|
+
end,
|
95
|
+
T.nilable(String)
|
96
|
+
)
|
97
|
+
end
|
98
|
+
|
99
|
+
sig { returns(T.nilable(String)) }
|
100
|
+
def node_version
|
101
|
+
@node_version ||= T.let(
|
102
|
+
begin
|
103
|
+
version = SharedHelpers.run_shell_command("node --version")
|
104
|
+
version.match(Dependabot::Ecosystem::VersionManager::DEFAULT_VERSION_PATTERN)&.captures&.first
|
105
|
+
end,
|
106
|
+
T.nilable(String)
|
107
|
+
)
|
108
|
+
end
|
58
109
|
end
|
59
110
|
end
|
60
111
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "sorbet-runtime"
|
5
|
+
require "dependabot/ecosystem"
|
6
|
+
require "dependabot/devcontainers/version"
|
7
|
+
|
8
|
+
module Dependabot
|
9
|
+
module Devcontainers
|
10
|
+
LANGUAGE = "node"
|
11
|
+
|
12
|
+
class Language < Dependabot::Ecosystem::VersionManager
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
sig { params(raw_version: String).void }
|
16
|
+
def initialize(raw_version)
|
17
|
+
super(LANGUAGE, Version.new(raw_version))
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require "sorbet-runtime"
|
5
|
+
require "dependabot/ecosystem"
|
6
|
+
require "dependabot/devcontainers/version"
|
7
|
+
|
8
|
+
module Dependabot
|
9
|
+
module Devcontainers
|
10
|
+
ECOSYSTEM = "devcontainers"
|
11
|
+
PACKAGE_MANAGER = "devcontainers"
|
12
|
+
SUPPORTED_DEVCONTAINER_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
|
13
|
+
|
14
|
+
# When a version is going to be unsupported, it will be added here
|
15
|
+
DEPRECATED_DEVCONTAINER_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
|
16
|
+
|
17
|
+
class PackageManager < Dependabot::Ecosystem::VersionManager
|
18
|
+
extend T::Sig
|
19
|
+
|
20
|
+
sig { params(raw_version: String).void }
|
21
|
+
def initialize(raw_version)
|
22
|
+
super(
|
23
|
+
PACKAGE_MANAGER,
|
24
|
+
Version.new(raw_version),
|
25
|
+
DEPRECATED_DEVCONTAINER_VERSIONS,
|
26
|
+
SUPPORTED_DEVCONTAINER_VERSIONS
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
sig { returns(T::Boolean) }
|
31
|
+
def deprecated?
|
32
|
+
false
|
33
|
+
end
|
34
|
+
|
35
|
+
sig { returns(T::Boolean) }
|
36
|
+
def unsupported?
|
37
|
+
false
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-devcontainers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.290.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-12 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.
|
19
|
+
version: 0.290.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.
|
26
|
+
version: 0.290.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,7 +247,9 @@ files:
|
|
247
247
|
- lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb
|
248
248
|
- lib/dependabot/devcontainers/file_updater.rb
|
249
249
|
- lib/dependabot/devcontainers/file_updater/config_updater.rb
|
250
|
+
- lib/dependabot/devcontainers/language.rb
|
250
251
|
- lib/dependabot/devcontainers/metadata_finder.rb
|
252
|
+
- lib/dependabot/devcontainers/package_manager.rb
|
251
253
|
- lib/dependabot/devcontainers/requirement.rb
|
252
254
|
- lib/dependabot/devcontainers/update_checker.rb
|
253
255
|
- lib/dependabot/devcontainers/utils.rb
|
@@ -257,8 +259,8 @@ licenses:
|
|
257
259
|
- MIT
|
258
260
|
metadata:
|
259
261
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
260
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
261
|
-
post_install_message:
|
262
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.290.0
|
263
|
+
post_install_message:
|
262
264
|
rdoc_options: []
|
263
265
|
require_paths:
|
264
266
|
- lib
|
@@ -274,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
276
|
version: 3.1.0
|
275
277
|
requirements: []
|
276
278
|
rubygems_version: 3.5.9
|
277
|
-
signing_key:
|
279
|
+
signing_key:
|
278
280
|
specification_version: 4
|
279
281
|
summary: Provides Dependabot support for Dev Containers
|
280
282
|
test_files: []
|