dependabot-pub 0.239.0 → 0.241.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: 0bc019561f5004668c6403b99242034de561bf3b2fb83c2764116272e9bb633d
4
+ data.tar.gz: f98d76811e67c6d28c3c8345cf0b9dffcbd79b64d33199221c3316a909d8f292
5
5
  SHA512:
6
- metadata.gz: 976733d47811afd159ba88b8035642c3ebbe99f0a5e002959a21d4ea287392a26b988b73dade8afd9ba53715c755cd8d968ea8e0f1fd3c1d8578183734260753
7
- data.tar.gz: 238308a5411664ea47dd365b5fb8b514b33ebcf8885408e2571a6dd8987013b8994ce5251717d201a6f9014cd6bc9ea128ca1446a114cadb564cac78a6dc600f
6
+ metadata.gz: 7fbb01fbc6426265917e295c18d64e46865c2162e859585ede71bc9e75854f13d0eb2391fdfbae32c69f5b994c4fa1568407c0f1348c92efc4fc8a8b1c86bc30
7
+ data.tar.gz: 5f8ddf5ae24189b1c3e81c5dc29bcc048766dfa1e2a64b1b650974dafdffd02d656aa0e5685c68c96e3597609117e031f47540312dcfa4ddfbd579006ee2776e
@@ -15,7 +15,7 @@ module Dependabot
15
15
  private
16
16
 
17
17
  def look_up_source
18
- source = dependency.requirements&.first&.dig(:source)
18
+ source = dependency.requirements.first&.dig(:source)
19
19
  if source&.dig("type") == "git"
20
20
  result = T.must(Source.from_url(source.dig("description", "url")))
21
21
  result.directory = source.dig("description", "path")
@@ -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.241.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-18 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.241.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.241.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.241.0
246
246
  post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths: