dependabot-bazel 0.352.0 → 0.353.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/bazel/update_checker.rb +2 -4
- data/lib/dependabot/bazel/version.rb +10 -6
- 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: c8294f3071a2ddeab419612e7210c7902151dcffc369730cb1c7808b650aa073
|
|
4
|
+
data.tar.gz: bd9c4cb47ef64d64a392d76f3f8fe76df94c9829f996a5c460a6065eec1fef1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc8d6dc22736847e649f879dc0a41cf2d9260f5249b8688060373d6e6c5b29674fa6a3bc7643348239050a0568fb5da50f1df88b68305af60a2348299cacd180
|
|
7
|
+
data.tar.gz: 4201907839a568e89b61034bbb313c7faca116e61b23804730db5979fabe71692b0c530323ee767de974bb2bff4af9cfb9f7d4e65d4947c5e737c90480e2aa7c
|
|
@@ -201,11 +201,9 @@ module Dependabot
|
|
|
201
201
|
true
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
sig { params(version: String).returns(
|
|
204
|
+
sig { params(version: String).returns(Dependabot::Bazel::Version) }
|
|
205
205
|
def version_sort_key(version)
|
|
206
|
-
|
|
207
|
-
parts = cleaned.split(".")
|
|
208
|
-
parts.map { |part| part.match?(/^\d+$/) ? part.to_i : 0 }
|
|
206
|
+
T.cast(version_class.new(version), Dependabot::Bazel::Version)
|
|
209
207
|
end
|
|
210
208
|
end
|
|
211
209
|
end
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
require "dependabot/version"
|
|
5
5
|
require "dependabot/utils"
|
|
6
6
|
|
|
7
|
+
# Bazel pre-release versions use 1.0.1-rc1 syntax, which Gem::Version
|
|
8
|
+
# converts into 1.0.1.pre.rc1. We override the `to_s` method to stop that
|
|
9
|
+
# alteration.
|
|
10
|
+
|
|
7
11
|
module Dependabot
|
|
8
12
|
module Bazel
|
|
9
13
|
class Version < Dependabot::Version
|
|
@@ -11,18 +15,18 @@ module Dependabot
|
|
|
11
15
|
|
|
12
16
|
sig { override.params(version: VersionParameter).void }
|
|
13
17
|
def initialize(version)
|
|
14
|
-
@
|
|
15
|
-
@bcr_suffix = T.let(parse_bcr_suffix(@
|
|
18
|
+
@version_string = T.let(version.to_s, String)
|
|
19
|
+
@bcr_suffix = T.let(parse_bcr_suffix(@version_string), T.nilable(Integer))
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
# Remove the .bcr.X suffix for comparison, and strip leading 'v' if present
|
|
22
|
+
base_version = remove_bcr_suffix(@version_string)
|
|
23
|
+
base_version = base_version.sub(/^v/i, "")
|
|
18
24
|
super(base_version)
|
|
19
|
-
|
|
20
|
-
@original_version = version.to_s
|
|
21
25
|
end
|
|
22
26
|
|
|
23
27
|
sig { override.returns(String) }
|
|
24
28
|
def to_s
|
|
25
|
-
@
|
|
29
|
+
@version_string
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
sig { returns(T.nilable(Integer)) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-bazel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.353.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.353.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.353.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -269,7 +269,7 @@ licenses:
|
|
|
269
269
|
- MIT
|
|
270
270
|
metadata:
|
|
271
271
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
272
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
272
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.353.0
|
|
273
273
|
rdoc_options: []
|
|
274
274
|
require_paths:
|
|
275
275
|
- lib
|