dependabot-cargo 0.392.0 → 0.393.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 +4 -4
- data/lib/dependabot/cargo/update_checker.rb +18 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3c076cf3eff1666f3013fb1f14527a0fc2ee7ebbbb1c5c39f44ea14791c238b
|
|
4
|
+
data.tar.gz: 3355e45e2e4b29238b096f1e9b171d22d267a2ebdcffe0d38e08250eca79aa1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 505c1c3c0e9a33b2bb85ea8a0512f0d3cf769c017a35f9de4d34efdd673acadd92c029b192c4a9ff3abc15940d1724db795aae3cebbcbb74373bb068be1ee0b1
|
|
7
|
+
data.tar.gz: a8f142ebf3dd3f37fb2421e8efe9e807a9141fa70ea1c1cf1effd919af5cee3da0533901d549780cc18441125824a79a088d189f3283b7c5e8aec6906e2033a4
|
|
@@ -221,7 +221,7 @@ module Dependabot
|
|
|
221
221
|
# of the latest tag that looks like a version.
|
|
222
222
|
if git_commit_checker.pinned_ref_looks_like_version?
|
|
223
223
|
latest_tag = git_commit_checker.local_tag_for_latest_version(update_cooldown)
|
|
224
|
-
commit_sha =
|
|
224
|
+
commit_sha = latest_tag && tag_commit_sha(latest_tag)
|
|
225
225
|
return commit_sha || dependency.version
|
|
226
226
|
end
|
|
227
227
|
|
|
@@ -242,7 +242,7 @@ module Dependabot
|
|
|
242
242
|
if git_commit_checker.pinned_ref_looks_like_version? &&
|
|
243
243
|
latest_git_tag_is_resolvable?
|
|
244
244
|
new_tag = git_commit_checker.local_tag_for_latest_version(update_cooldown)
|
|
245
|
-
return T.
|
|
245
|
+
return T.must(tag_commit_sha(T.must(new_tag)))
|
|
246
246
|
end
|
|
247
247
|
|
|
248
248
|
# If the dependency is pinned then there's nothing we can do.
|
|
@@ -271,7 +271,7 @@ module Dependabot
|
|
|
271
271
|
dependency_files: dependency_files,
|
|
272
272
|
dependency: dependency,
|
|
273
273
|
unlock_requirement: true,
|
|
274
|
-
replacement_git_pin:
|
|
274
|
+
replacement_git_pin: tag_name(replacement_tag)
|
|
275
275
|
).prepared_dependency_files
|
|
276
276
|
|
|
277
277
|
VersionResolver.new(
|
|
@@ -363,7 +363,7 @@ module Dependabot
|
|
|
363
363
|
if git_commit_checker.pinned_ref_looks_like_version? &&
|
|
364
364
|
latest_git_tag_is_resolvable?
|
|
365
365
|
new_tag = T.must(git_commit_checker.local_tag_for_latest_version(update_cooldown))
|
|
366
|
-
return source_with_ref(T.must(dependency_source_details),
|
|
366
|
+
return source_with_ref(T.must(dependency_source_details), tag_name(new_tag))
|
|
367
367
|
end
|
|
368
368
|
|
|
369
369
|
# Otherwise return the original source
|
|
@@ -396,6 +396,20 @@ module Dependabot
|
|
|
396
396
|
updated_source
|
|
397
397
|
end
|
|
398
398
|
|
|
399
|
+
sig { params(tag: T::Hash[Symbol, Object]).returns(String) }
|
|
400
|
+
def tag_name(tag)
|
|
401
|
+
return tag.tag if tag.is_a?(Dependabot::GitTagDetails)
|
|
402
|
+
|
|
403
|
+
T.cast(tag.fetch(:tag), String)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
sig { params(tag: T::Hash[Symbol, Object]).returns(T.nilable(String)) }
|
|
407
|
+
def tag_commit_sha(tag)
|
|
408
|
+
return tag.commit_sha if tag.is_a?(Dependabot::GitTagDetails)
|
|
409
|
+
|
|
410
|
+
T.cast(tag[:commit_sha], T.nilable(String))
|
|
411
|
+
end
|
|
412
|
+
|
|
399
413
|
sig { returns(T::Boolean) }
|
|
400
414
|
def git_dependency?
|
|
401
415
|
git_commit_checker.git_dependency?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-cargo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.393.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.393.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.393.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -266,7 +266,7 @@ licenses:
|
|
|
266
266
|
- MIT
|
|
267
267
|
metadata:
|
|
268
268
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
269
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
269
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.393.0
|
|
270
270
|
rdoc_options: []
|
|
271
271
|
require_paths:
|
|
272
272
|
- lib
|