dependabot-pub 0.231.0 → 0.233.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: c286c55f3a88dbdaa62845ed87bd49c021d771d00e11df9a1d0f156d1e88557b
4
- data.tar.gz: 554db6c7d53f5c5bbc44756c6ab0933a5c44d1703e854e90fcf4f10ac967ddfa
3
+ metadata.gz: def5e23c2ff00042501ee74cacc3891ebaf57bc4c1762cc0eabd295ec71fed94
4
+ data.tar.gz: 3ab46ef6e1ebf1ef55585f77ede23c85686e63b76ab4dd12966e717f1e5e139e
5
5
  SHA512:
6
- metadata.gz: f9fe8d7c918393476b2c87133bdb9bb392d4c3d9fb3388889ea695493b6d4a492d34b4899452608eee3f43af75d680f6c3b0c8700c479b2b7165ec2671b43811
7
- data.tar.gz: 2849d7b7b6e8e1b2981b4296db98f43c6ede513716b3a2c52a318e8f6d7ee5eca885105a4ca5561efe764f51adc9c9812f4da39599501c6de650f8b9d135bf2f
6
+ metadata.gz: d0a1d3ff6dc7e4b07cdf06db176a2a3f19e0bfebe0adb70560e6efc532b0d763bec2e316a4db8dd4f9a2c91823b622746da2034a6c714980a5e3c2795e1e940e
7
+ data.tar.gz: 31c75630e98199e28c0b346f223fdf0138a0f9ab32ab458986c08a516ce1507b0fa1f407e511eaf9186d3dd317248de0e80af8c8a613ba145b2529a8d723a0af
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/file_fetchers"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/file_parsers"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/file_updaters"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "excon"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # For details on pub version constraints see:
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/update_checkers"
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "dependabot/version"
@@ -17,26 +17,33 @@ require "dependabot/utils"
17
17
  module Dependabot
18
18
  module Pub
19
19
  class Version < Dependabot::Version
20
- VERSION_PATTERN = Gem::Version::VERSION_PATTERN + "(\\+[0-9a-zA-Z\\-.]+)?"
20
+ extend T::Sig
21
+
22
+ VERSION_PATTERN = T.let(Gem::Version::VERSION_PATTERN + "(\\+[0-9a-zA-Z\\-.]+)?", String)
21
23
  ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/
22
24
 
25
+ sig { returns(String) }
23
26
  attr_reader :build_info
24
27
 
28
+ sig { override.params(version: T.any(String, Gem::Version)).void }
25
29
  def initialize(version)
26
- @version_string = version.to_s
30
+ @version_string = T.let(version.to_s, String)
27
31
  version, @build_info = version.to_s.split("+") if version.to_s.include?("+")
28
32
 
29
33
  super
30
34
  end
31
35
 
36
+ sig { override.returns(String) }
32
37
  def to_s
33
38
  @version_string
34
39
  end
35
40
 
41
+ sig { override.returns(String) }
36
42
  def inspect # :nodoc:
37
43
  "#<#{self.class} #{@version_string}>"
38
44
  end
39
45
 
46
+ sig { override.params(version: T.any(String, Gem::Version)).returns(T::Boolean) }
40
47
  def self.correct?(version)
41
48
  return false if version.nil?
42
49
 
@@ -1,4 +1,4 @@
1
- # typed: false
1
+ # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # These all need to be required so the various classes can be registered in a
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.231.0
4
+ version: 0.233.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-09-12 00:00:00.000000000 Z
11
+ date: 2023-10-06 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.231.0
19
+ version: 0.233.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.231.0
26
+ version: 0.233.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webrick
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.0'
69
- - !ruby/object:Gem::Dependency
70
- name: parallel_tests
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 4.2.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 4.2.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +164,20 @@ dependencies:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
166
  version: 0.2.16
167
+ - !ruby/object:Gem::Dependency
168
+ name: turbo_tests
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 2.2.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 2.2.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: vcr
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -228,7 +228,7 @@ licenses:
228
228
  - Nonstandard
229
229
  metadata:
230
230
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
231
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.231.0
231
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.233.0
232
232
  post_install_message:
233
233
  rdoc_options: []
234
234
  require_paths: