dependabot-rust_toolchain 0.386.0 → 0.387.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 887bc55f4bc983a3546f60a72073706fd7ee6fa37c8d356b31ec3c1a1149fc67
|
|
4
|
+
data.tar.gz: 2ed4285499e41e1c5a8159d8d6c2fb1041c8cd504d7e09a7b67f58eebbb8e942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc600406d1b305f9af83ccfc028a95b90d854fcb848f34e0cbdd33be7c1ef7db248d0eaec77f4d99f23aeaedc592c0e819591e281d4110d2a0dda421234ed582
|
|
7
|
+
data.tar.gz: 733bf2b8e50a8ab8683c52004adcc9cd591f8c9fdd62262a82ad1ea9bc98e1654407c2eea3ff44f2a6a1f95343e15faeadc3f2b18d30ebb88e80a7fcbb9126d5
|
|
@@ -17,7 +17,7 @@ module Dependabot
|
|
|
17
17
|
const :channel, String
|
|
18
18
|
|
|
19
19
|
# Creates a RustToolchainConfig from a hash representation
|
|
20
|
-
sig { params(data: T::Hash[String,
|
|
20
|
+
sig { params(data: T::Hash[String, Object]).returns(RustToolchainConfig) }
|
|
21
21
|
def self.from_hash(data)
|
|
22
22
|
new(
|
|
23
23
|
channel: T.cast(data["channel"], String)
|
|
@@ -22,9 +22,9 @@ module Dependabot
|
|
|
22
22
|
sig { params(toml_string: String).returns(RustToolchainToml) }
|
|
23
23
|
def self.from_toml(toml_string)
|
|
24
24
|
parsed_data = TomlRB.parse(toml_string)
|
|
25
|
-
data = T.cast(parsed_data, T::Hash[String,
|
|
25
|
+
data = T.cast(parsed_data, T::Hash[String, Object])
|
|
26
26
|
|
|
27
|
-
toolchain_data = T.cast(data["toolchain"], T::Hash[String,
|
|
27
|
+
toolchain_data = T.cast(data["toolchain"], T::Hash[String, Object])
|
|
28
28
|
new(
|
|
29
29
|
toolchain: RustToolchainConfig.from_hash(toolchain_data)
|
|
30
30
|
)
|
|
@@ -68,12 +68,11 @@ module Dependabot
|
|
|
68
68
|
super(requirements)
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
# rubocop:disable Metrics/AbcSize
|
|
72
71
|
sig { override.params(version: T.any(Gem::Version, String)).returns(T::Boolean) }
|
|
73
72
|
def satisfied_by?(version)
|
|
74
73
|
version = RustToolchain::Version.new(version.to_s) unless version.is_a?(RustToolchain::Version)
|
|
75
74
|
|
|
76
|
-
T.cast(requirements, T::Array[T::Array[
|
|
75
|
+
T.cast(requirements, T::Array[T::Array[Object]]).all? do |req|
|
|
77
76
|
op = T.cast(req[0], String)
|
|
78
77
|
rv = T.cast(req[1], RustToolchain::Version)
|
|
79
78
|
|
|
@@ -90,13 +89,12 @@ module Dependabot
|
|
|
90
89
|
satisfy_less_than_requirement?(version, rv)
|
|
91
90
|
else
|
|
92
91
|
# Fall back to default behavior for other operators
|
|
93
|
-
ops_method = T.let(OPS[op], T.nilable(T.proc.params(arg0:
|
|
94
|
-
ops_method ||= T.cast(OPS["="], T.proc.params(arg0:
|
|
92
|
+
ops_method = T.let(OPS[op], T.nilable(T.proc.params(arg0: Object, arg1: Object).returns(T::Boolean)))
|
|
93
|
+
ops_method ||= T.cast(OPS["="], T.proc.params(arg0: Object, arg1: Object).returns(T::Boolean))
|
|
95
94
|
ops_method.call(version, rv)
|
|
96
95
|
end
|
|
97
96
|
end
|
|
98
97
|
end
|
|
99
|
-
# rubocop:enable Metrics/AbcSize
|
|
100
98
|
|
|
101
99
|
private
|
|
102
100
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-rust_toolchain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.387.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.387.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.387.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -261,7 +261,7 @@ licenses:
|
|
|
261
261
|
- MIT
|
|
262
262
|
metadata:
|
|
263
263
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
264
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
264
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.387.0
|
|
265
265
|
rdoc_options: []
|
|
266
266
|
require_paths:
|
|
267
267
|
- lib
|