dependabot-python 0.106.24 → 0.106.25

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: 3530c72de0fc5713daf52c446616fc4f18307a35186e04be289dae7b9a3f9ec8
4
- data.tar.gz: ac625bb1b8c3174626ca0154b415a39f2b2263e2aa7ada2497ee046587f32284
3
+ metadata.gz: 321e8e089b4374446ce4af8268dc95c0e3b7bc7e05e86748e6a57a145f7ca8ba
4
+ data.tar.gz: 88377d7138b2d0b2f7762227752c12739a6227951768d88432fbe26b4419d708
5
5
  SHA512:
6
- metadata.gz: d95037fdb0b111b12a64da1c5aad5a3f2e3fb3a6057bb294a89b9d37808312993713e8a41f03ee8b083600d1eaf481c83bfe68829d85d2b14f2c0ef0d7357a56
7
- data.tar.gz: db66903c9dd2f5d4c7a5af82c24dd24b6f6c4aaad25b702ebab72bff82077b43037c57da6b2fe8d1b43d28367f19519380f3320049b6284386e128858660e001
6
+ metadata.gz: 2cd2580a7ab84b8d812e730713b4b50353a861b700c0ec5700ab8e33b13d748fb586071147fa1b87daa7e3b237df032e2f6731e3d272096f3ea7e7653ad06b0f
7
+ data.tar.gz: 68a2946f618fd51dfaab9e15e2ff31d3b3230221bcc7215ceb182e5133b97dfd582a8325eeda28ad392074780436ee8e96b9b29fc101ec864cdb81dae83196aa
@@ -160,8 +160,8 @@ module Dependabot
160
160
  next unless dep["requirement"]
161
161
 
162
162
  Python::Requirement.new(dep["requirement"].split(","))
163
- rescue Gem::Requirement::BadRequirementError => error
164
- raise Dependabot::DependencyFileNotEvaluatable, error.message
163
+ rescue Gem::Requirement::BadRequirementError => e
164
+ raise Dependabot::DependencyFileNotEvaluatable, e.message
165
165
  end
166
166
  end
167
167
 
@@ -100,8 +100,8 @@ module Dependabot
100
100
  next unless dep["requirement"]
101
101
 
102
102
  Python::Requirement.new(dep["requirement"].split(","))
103
- rescue Gem::Requirement::BadRequirementError => error
104
- raise Dependabot::DependencyFileNotEvaluatable, error.message
103
+ rescue Gem::Requirement::BadRequirementError => e
104
+ raise Dependabot::DependencyFileNotEvaluatable, e.message
105
105
  end
106
106
  end
107
107
 
@@ -170,13 +170,13 @@ module Dependabot
170
170
  end
171
171
 
172
172
  true
173
- rescue SharedHelpers::HelperSubprocessFailed => error
174
- unless error.message.include?("Could not find a version") ||
175
- error.message.include?("UnsupportedConstraint")
173
+ rescue SharedHelpers::HelperSubprocessFailed => e
174
+ unless e.message.include?("Could not find a version") ||
175
+ e.message.include?("UnsupportedConstraint")
176
176
  raise
177
177
  end
178
178
 
179
- msg = clean_error_message(error.message)
179
+ msg = clean_error_message(e.message)
180
180
  raise if msg.empty?
181
181
 
182
182
  raise DependencyFileNotResolvable, msg
@@ -205,13 +205,13 @@ module Dependabot
205
205
  def run_pip_compile_command(command)
206
206
  run_command("pyenv local #{python_version}")
207
207
  run_command(command)
208
- rescue SharedHelpers::HelperSubprocessFailed => error
209
- original_error ||= error
210
- msg = error.message
208
+ rescue SharedHelpers::HelperSubprocessFailed => e
209
+ original_error ||= e
210
+ msg = e.message
211
211
 
212
212
  relevant_error =
213
213
  if error_suggests_bad_python_version?(msg) then original_error
214
- else error
214
+ else e
215
215
  end
216
216
 
217
217
  raise relevant_error unless error_suggests_bad_python_version?(msg)
@@ -199,8 +199,8 @@ module Dependabot
199
199
  run_pipenv_command("pyenv exec pipenv lock")
200
200
 
201
201
  true
202
- rescue SharedHelpers::HelperSubprocessFailed => error
203
- handle_pipenv_errors_resolving_original_reqs(error)
202
+ rescue SharedHelpers::HelperSubprocessFailed => e
203
+ handle_pipenv_errors_resolving_original_reqs(e)
204
204
  end
205
205
  end
206
206
  end
@@ -488,13 +488,13 @@ module Dependabot
488
488
  def run_pipenv_command(command, env: pipenv_env_variables)
489
489
  run_command("pyenv local #{python_version}")
490
490
  run_command(command, env: env)
491
- rescue SharedHelpers::HelperSubprocessFailed => error
492
- original_error ||= error
493
- msg = error.message
491
+ rescue SharedHelpers::HelperSubprocessFailed => e
492
+ original_error ||= e
493
+ msg = e.message
494
494
 
495
495
  relevant_error =
496
496
  if may_be_using_wrong_python_version?(msg) then original_error
497
- else error
497
+ else e
498
498
  end
499
499
 
500
500
  raise relevant_error unless may_be_using_wrong_python_version?(msg)
@@ -125,11 +125,11 @@ module Dependabot
125
125
  )
126
126
 
127
127
  @original_reqs_resolvable = true
128
- rescue SharedHelpers::HelperSubprocessFailed => error
129
- raise unless error.message.include?("SolverProblemError") ||
130
- error.message.include?("PackageNotFound")
128
+ rescue SharedHelpers::HelperSubprocessFailed => e
129
+ raise unless e.message.include?("SolverProblemError") ||
130
+ e.message.include?("PackageNotFound")
131
131
 
132
- msg = clean_error_message(error.message)
132
+ msg = clean_error_message(e.message)
133
133
  raise DependencyFileNotResolvable, msg
134
134
  end
135
135
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.106.24
4
+ version: 0.106.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-04-30 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.106.24
19
+ version: 0.106.25
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.106.24
26
+ version: 0.106.25
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.67.2
103
+ version: 0.68.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.67.2
110
+ version: 0.68.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement