dependabot-pub 0.238.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: 186c0aa77bf1dbe6bc0ebf456d8cb9d5e774ee787cc48ad1884d18285c1492eb
4
- data.tar.gz: 279ca04029a999dab50241c9eae902ee543af9f72e2603f28d4cc851bef32590
3
+ metadata.gz: fc98a9dfc12997e84afecb99bb25b668d3eef393ab9152e57f5e3eea51aedc3a
4
+ data.tar.gz: 1eb0c0cbcc5bc3877ad7f1508fa912af233a952f7efbba9feb78c6141c000296
5
5
  SHA512:
6
- metadata.gz: df61230a024f390c62dd5a4e54d11a0b88afe6c7f8ca92d250f13453954785e13f5feed0b35dcac506a0371b6032632c77b9475b04dfbfb58a8cf2b7b702d544
7
- data.tar.gz: 9771f3df0581edc9942d60884e1e1d220658824c0ab0a4419bdca713eaa76102f9133e5df031cc54528a77ea4ce7d6238cdf3984cfa7dd868a9db00f6d391380
6
+ metadata.gz: 7101e474a89d5217f81479ef87d2ae7a2a9495a37bf703ca349d367a08fab521d38a0d7e3489ce2b67f3c74099822cf84bb27eab6cc38e97cabef1bb5d1e210b
7
+ data.tar.gz: 434404bb6ba95f2c8a65382eeb933540a52af12ce534c7b886ec1894945f1ff886278888db6d3961768e977252f806ffcc3ecad7b1608e6fcda0d8a499953298
@@ -6,12 +6,17 @@
6
6
 
7
7
  ###################################################################
8
8
 
9
+ require "sorbet-runtime"
10
+
11
+ require "dependabot/requirement"
9
12
  require "dependabot/utils"
10
13
  require "dependabot/pub/version"
11
14
 
12
15
  module Dependabot
13
16
  module Pub
14
- class Requirement < Gem::Requirement
17
+ class Requirement < Dependabot::Requirement
18
+ extend T::Sig
19
+
15
20
  quoted = OPS.keys.map { |k| Regexp.quote(k) }.join("|")
16
21
  version_pattern = Pub::Version::VERSION_PATTERN
17
22
 
@@ -30,12 +35,13 @@ module Dependabot
30
35
 
31
36
  return DefaultRequirement if matches[1] == ">=" && matches[2] == "0"
32
37
 
33
- [matches[1] || "=", Pub::Version.new(matches[2])]
38
+ [matches[1] || "=", Pub::Version.new(T.must(matches[2]))]
34
39
  end
35
40
 
36
41
  # For consistency with other languages, we define a requirements array.
37
42
  # Dart doesn't have an `OR` separator for requirements, so it always
38
43
  # contains a single element.
44
+ sig { override.params(requirement_string: T.nilable(String)).returns(T::Array[Requirement]) }
39
45
  def self.requirements_array(requirement_string)
40
46
  [new(requirement_string)]
41
47
  end
@@ -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.238.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-07 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.238.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.238.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
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 1.57.2
117
+ version: 1.58.0
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: 1.57.2
124
+ version: 1.58.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rubocop-performance
141
127
  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.238.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: