dependabot-maven 0.281.0 → 0.283.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: 4a44d4272c31da7ad1e781ed686c35dd031cb24b1643c3d6c71fd6ba7e18ac93
4
- data.tar.gz: fd49944b79de242686a9fcdd941fb44cb32adc9eb67ce7c4933780f916dae344
3
+ metadata.gz: e2576dfeaff886b7c2cc86fcd9bac85c13cb198ab55d957513bb49937d4f9ff0
4
+ data.tar.gz: '049dd58048e840129685bca632460022dff6f6d60c29cc65cc877fbe53e8f5d1'
5
5
  SHA512:
6
- metadata.gz: 681caa5965266aad2fd805953ab1d3e9042ca2f451c88affca3db5d817a28da54855b5d20bb44736677e70eb44097081e3861bcda327397da2d9533a86da1de0
7
- data.tar.gz: 148c789d2a6bf72c93c4c0179828e37c07a99003b71962e92240fb5e36395d06936bec7325051b0d3388c1bbe08a8dd89c5d24fd5ea4271aa11978edd8d68bfe
6
+ metadata.gz: da98f3cc2e66eae49813bfa0227f9098315b97c948ae7977d238105d12c824085cf6a091dcc8633facb21eebf34e79194ed1e7d282eebca6e340e4b5c4e8ce6b
7
+ data.tar.gz: e89928411e60ac70d50f6e963ba3ac88c748ec1c2235503e9b7dce949e4895f46a07adbc2a24a02c73dcf3b97c661c8f2276585b34ebd7d20c4e962b557268c6
@@ -65,6 +65,11 @@ module Dependabot
65
65
  end
66
66
  end
67
67
 
68
+ sig { returns(String) }
69
+ def lowest_prerelease_suffix
70
+ "a0"
71
+ end
72
+
68
73
  sig { params(other: VersionParameter).returns(Integer) }
69
74
  def <=>(other)
70
75
  other = Dependabot::Maven::Version.new(other.to_s) unless other.is_a? Dependabot::Maven::Version
@@ -78,7 +83,7 @@ module Dependabot
78
83
 
79
84
  version_parts = parts.fill("0", parts.length...2)
80
85
  # the a0 is so we can get the next earliest prerelease patch version
81
- upper_parts = version_parts.first(1) + [version_parts[1].to_i + 1] + ["a0"]
86
+ upper_parts = version_parts.first(1) + [version_parts[1].to_i + 1] + [lowest_prerelease_suffix]
82
87
  lower_bound = "> #{to_semver}"
83
88
  upper_bound = "< #{upper_parts.join('.')}"
84
89
 
@@ -91,8 +96,8 @@ module Dependabot
91
96
  return [] if parts.empty? # for non-semver versions
92
97
 
93
98
  version_parts = parts.fill("0", parts.length...2)
94
- lower_parts = version_parts.first(1) + [version_parts[1].to_i + 1] + ["a0"]
95
- upper_parts = version_parts.first(0) + [version_parts[0].to_i + 1] + ["a0"]
99
+ lower_parts = version_parts.first(1) + [version_parts[1].to_i + 1] + [lowest_prerelease_suffix]
100
+ upper_parts = version_parts.first(0) + [version_parts[0].to_i + 1] + [lowest_prerelease_suffix]
96
101
  lower_bound = ">= #{lower_parts.join('.')}"
97
102
  upper_bound = "< #{upper_parts.join('.')}"
98
103
 
@@ -104,7 +109,7 @@ module Dependabot
104
109
  version_parts = token_bucket.tokens # e.g [1,2,3] if version is 1.2.3-alpha3
105
110
  return [] if version_parts.empty? # for non-semver versions
106
111
 
107
- lower_parts = [version_parts[0].to_i + 1] + ["a0"] # earliest next major version prerelease
112
+ lower_parts = [version_parts[0].to_i + 1] + [lowest_prerelease_suffix] # earliest next major version prerelease
108
113
  lower_bound = ">= #{lower_parts.join('.')}"
109
114
 
110
115
  [lower_bound]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-maven
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.281.0
4
+ version: 0.283.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-10-17 00:00:00.000000000 Z
11
+ date: 2024-10-31 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.281.0
19
+ version: 0.283.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.281.0
26
+ version: 0.283.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.65.0
117
+ version: 1.67.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.65.0
124
+ version: 1.67.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.21.0
131
+ version: 1.22.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.21.0
138
+ version: 1.22.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop-rspec
141
141
  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.281.0
269
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.283.0
270
270
  post_install_message:
271
271
  rdoc_options: []
272
272
  require_paths: