dependabot-cargo 0.119.2 → 0.120.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6db9d27da406b0f858a0ede33ea9a7a38851a6a6cbd601ae478782eae7c5d24
4
- data.tar.gz: acf54cbb23c668553acf737386f61db9c6aa66f42fab02b61657118560801635
3
+ metadata.gz: 6ac2f8fb1e7b41db6b376b69af74112254e1e0120e83f0d2b4d60031c012512f
4
+ data.tar.gz: d8d9304f58c9dfa79c50b73dd96d1e0acdc0cc629cc2e6f35e6b6c1bce730dd2
5
5
  SHA512:
6
- metadata.gz: e95b2f3be7f37502c675ff8482962adee676dc8973adbcd75a04bc9ce22dd2b85dc8f3c26691b57da48a86c98fb2be179979b11f869620b3997b253d156ef608
7
- data.tar.gz: 648a3ef662e91f7a0b38df2fa1c88dc2a2a059b5d3d946847deaee1a120e25dbf13bfc76cd24f3be3f5f11b0ca632458b480534c49d384170a66b8feced2d053
6
+ metadata.gz: f8f032e919c87a107391a9de2f6f249a9477daa652986c9c2bc368f2b34f787ad67058eebed4856303fc8094052e5bed64437f487783b15514d8968a15c72714
7
+ data.tar.gz: dba86c4d197882adef6c421e7d3f606a10d433f8e225a7fff0b5259870ae0be9365ac3231301c4562e0efd643057481de99c3c8df1e7443efba252eb26414f88
@@ -218,6 +218,7 @@ module Dependabot
218
218
  # an alternative source (i.e., a git source) is also specified
219
219
  # rubocop:disable Metrics/CyclomaticComplexity
220
220
  # rubocop:disable Metrics/PerceivedComplexity
221
+ # rubocop:disable Metrics/AbcSize
221
222
  def required_path?(file, path)
222
223
  # Paths specified in dependency declaration
223
224
  Cargo::FileParser::DEPENDENCY_TYPES.each do |type|
@@ -254,9 +255,9 @@ module Dependabot
254
255
 
255
256
  false
256
257
  end
257
-
258
- # rubocop:enable Metrics/CyclomaticComplexity
258
+ # rubocop:enable Metrics/AbcSize
259
259
  # rubocop:enable Metrics/PerceivedComplexity
260
+ # rubocop:enable Metrics/CyclomaticComplexity
260
261
 
261
262
  def expand_workspaces(path)
262
263
  path = Pathname.new(path).cleanpath.to_path
@@ -56,6 +56,7 @@ module Dependabot
56
56
  raise Dependabot::DependencyFileNotEvaluatable, msg
57
57
  end
58
58
 
59
+ # rubocop:disable Metrics/PerceivedComplexity
59
60
  def manifest_dependencies
60
61
  dependency_set = DependencySet.new
61
62
 
@@ -82,6 +83,7 @@ module Dependabot
82
83
 
83
84
  dependency_set
84
85
  end
86
+ # rubocop:enable Metrics/PerceivedComplexity
85
87
 
86
88
  def build_dependency(name, requirement, type, file)
87
89
  Dependency.new(
@@ -68,6 +68,7 @@ module Dependabot
68
68
 
69
69
  # rubocop:disable Metrics/PerceivedComplexity
70
70
  # rubocop:disable Metrics/CyclomaticComplexity
71
+ # rubocop:disable Metrics/AbcSize
71
72
  def better_specification_needed?(error)
72
73
  return false if @custom_specification
73
74
  return false unless error.message.match?(/specification .* is ambigu/)
@@ -96,6 +97,7 @@ module Dependabot
96
97
  @custom_specification = spec_options.first
97
98
  true
98
99
  end
100
+ # rubocop:enable Metrics/AbcSize
99
101
  # rubocop:enable Metrics/CyclomaticComplexity
100
102
  # rubocop:enable Metrics/PerceivedComplexity
101
103
 
@@ -53,8 +53,6 @@ module Dependabot
53
53
  private
54
54
 
55
55
  def convert_rust_constraint_to_ruby_constraint(req_string)
56
- req_string = req_string
57
-
58
56
  if req_string.include?("*")
59
57
  ruby_range(req_string.gsub(/(?:\.|^)[*]/, "").gsub(/^[^\d]/, ""))
60
58
  elsif req_string.match?(/^~[^>]/) then convert_tilde_req(req_string)
@@ -201,6 +201,7 @@ module Dependabot
201
201
  lower_bound_req + ", <= #{latest_allowable_version}"
202
202
  end
203
203
 
204
+ # rubocop:disable Metrics/PerceivedComplexity
204
205
  def lower_bound_version
205
206
  @lower_bound_version ||=
206
207
  if git_dependency? && git_dependency_version
@@ -220,6 +221,7 @@ module Dependabot
220
221
  version_from_requirement || 0
221
222
  end
222
223
  end
224
+ # rubocop:enable Metrics/PerceivedComplexity
223
225
 
224
226
  def git_dependency_version
225
227
  return unless lockfile
@@ -82,6 +82,7 @@ module Dependabot
82
82
 
83
83
  # rubocop:disable Metrics/PerceivedComplexity
84
84
  # rubocop:disable Metrics/CyclomaticComplexity
85
+ # rubocop:disable Metrics/AbcSize
85
86
  def better_specification_needed?(error)
86
87
  return false if @custom_specification
87
88
  return false unless error.message.match?(/specification .* is ambigu/)
@@ -110,6 +111,7 @@ module Dependabot
110
111
  @custom_specification = spec_options.first
111
112
  true
112
113
  end
114
+ # rubocop:enable Metrics/AbcSize
113
115
  # rubocop:enable Metrics/CyclomaticComplexity
114
116
  # rubocop:enable Metrics/PerceivedComplexity
115
117
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-cargo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.119.2
4
+ version: 0.120.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2020-09-24 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.119.2
19
+ version: 0.120.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.119.2
26
+ version: 0.120.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.88.0
103
+ version: 0.91.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.88.0
110
+ version: 0.91.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement