dependabot-pub 0.239.0 → 0.240.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: 27c545d7cbbee279a3be39328875de74645d283257f144eb0322be46899a819b
4
- data.tar.gz: cbd7a64fc8877de379708619cc7f94f8c837e06e2f3137dd28b7ebdcba7ddd13
3
+ metadata.gz: fc98a9dfc12997e84afecb99bb25b668d3eef393ab9152e57f5e3eea51aedc3a
4
+ data.tar.gz: 1eb0c0cbcc5bc3877ad7f1508fa912af233a952f7efbba9feb78c6141c000296
5
5
  SHA512:
6
- metadata.gz: 976733d47811afd159ba88b8035642c3ebbe99f0a5e002959a21d4ea287392a26b988b73dade8afd9ba53715c755cd8d968ea8e0f1fd3c1d8578183734260753
7
- data.tar.gz: 238308a5411664ea47dd365b5fb8b514b33ebcf8885408e2571a6dd8987013b8994ce5251717d201a6f9014cd6bc9ea128ca1446a114cadb564cac78a6dc600f
6
+ metadata.gz: 7101e474a89d5217f81479ef87d2ae7a2a9495a37bf703ca349d367a08fab521d38a0d7e3489ce2b67f3c74099822cf84bb27eab6cc38e97cabef1bb5d1e210b
7
+ data.tar.gz: 434404bb6ba95f2c8a65382eeb933540a52af12ce534c7b886ec1894945f1ff886278888db6d3961768e977252f806ffcc3ecad7b1608e6fcda0d8a499953298
@@ -35,7 +35,7 @@ module Dependabot
35
35
 
36
36
  return DefaultRequirement if matches[1] == ">=" && matches[2] == "0"
37
37
 
38
- [matches[1] || "=", Pub::Version.new(matches[2])]
38
+ [matches[1] || "=", Pub::Version.new(T.must(matches[2]))]
39
39
  end
40
40
 
41
41
  # For consistency with other languages, we define a requirements array.
@@ -25,12 +25,25 @@ module Dependabot
25
25
  sig { returns(String) }
26
26
  attr_reader :build_info
27
27
 
28
- sig { override.params(version: T.any(String, Gem::Version)).void }
28
+ sig do
29
+ override
30
+ .overridable
31
+ .params(
32
+ version: T.any(
33
+ String,
34
+ Integer,
35
+ Float,
36
+ Gem::Version,
37
+ NilClass
38
+ )
39
+ )
40
+ .void
41
+ end
29
42
  def initialize(version)
30
43
  @version_string = T.let(version.to_s, String)
31
44
  version, @build_info = version.to_s.split("+") if version.to_s.include?("+")
32
45
 
33
- super
46
+ super(T.must(version))
34
47
  end
35
48
 
36
49
  sig { override.returns(String) }
@@ -43,7 +56,20 @@ module Dependabot
43
56
  "#<#{self.class} #{@version_string}>"
44
57
  end
45
58
 
46
- sig { override.params(version: T.any(String, Gem::Version)).returns(T::Boolean) }
59
+ sig do
60
+ override
61
+ .overridable
62
+ .params(
63
+ version: T.any(
64
+ String,
65
+ Integer,
66
+ Float,
67
+ Gem::Version,
68
+ NilClass
69
+ )
70
+ )
71
+ .returns(T::Boolean)
72
+ end
47
73
  def self.correct?(version)
48
74
  return false if version.nil?
49
75
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.239.0
4
+ version: 0.240.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.239.0
19
+ version: 0.240.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.239.0
27
- - !ruby/object:Gem::Dependency
28
- name: webrick
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '1.7'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '1.7'
26
+ version: 0.240.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: debug
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +206,20 @@ dependencies:
220
206
  - - "~>"
221
207
  - !ruby/object:Gem::Version
222
208
  version: '3.18'
209
+ - !ruby/object:Gem::Dependency
210
+ name: webrick
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '1.7'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '1.7'
223
223
  description: Dependabot-Pub provides support for bumping Dart (pub) packages via Dependabot.
224
224
  If you want support for multiple package managers, you probably want the meta-gem
225
225
  dependabot-omnibus.
@@ -242,7 +242,7 @@ licenses:
242
242
  - Nonstandard
243
243
  metadata:
244
244
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
245
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.239.0
245
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.240.0
246
246
  post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths: