dependabot-core 0.89.3 → 0.89.4

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: 68b24cb423c178ba9f593779aba15d90eb2c63608a4533526afd1715a62fdac3
4
- data.tar.gz: dfdc7b94a470329a808c01ea05e0412238c4596d16e22b540ea0e900e0847a62
3
+ metadata.gz: 768e02710b4c03fa4ef77c6180fa330b87a41eb099fd2868db578977d996d83e
4
+ data.tar.gz: 7fca6335004ac0f914175ee8c7cb28358431ecd28f4550f1962073c7758bdc1d
5
5
  SHA512:
6
- metadata.gz: 9cc690016b52d4f1586c894f5e57e51184c5c7c1c09ff8968079caec11ca9f647850642418885c95e5ada945ac692e2eaf0ef28727160bb752006076072ccc67
7
- data.tar.gz: 28de24c17cc0f5c66c02b2130a389e8426a1450d1842b1edb4e17832169442813f38975c17115221eaa42abd567df3579e6b9ab4f40cf1d76d6d277e02aace14
6
+ metadata.gz: 68e3d993733e94c661acaf94dcf674d560fa47c52d4c7c2f90818470f3343189406cca0e3741ef31d44cefdf4b323ede42d5a569a0904413a94e9c768c029ad8
7
+ data.tar.gz: 6d1bdb4a95f8dbf243005329d104d4e971fbdaaf9903b49b2f940ffc3a1006fb88ea3f185946cdecf55610da41099746cdb5b96c21b1824bc2c4b28ed3669d5c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.89.4, 12 January 2019
2
+
3
+ - Handle 403 forbidden responses from GitHub
4
+
1
5
  ## v0.89.3, 12 January 2019
2
6
 
3
7
  - Ruby: Handle fetching gemspecs which specify a path
@@ -8,6 +8,7 @@ module Dependabot
8
8
  class Bitbucket
9
9
  class NotFound < StandardError; end
10
10
  class Unauthorized < StandardError; end
11
+ class Forbidden < StandardError; end
11
12
 
12
13
  #######################
13
14
  # Constructor methods #
@@ -82,10 +83,11 @@ module Dependabot
82
83
  user: credentials&.fetch("username"),
83
84
  password: credentials&.fetch("password"),
84
85
  idempotent: true,
85
- **SharedHelpers.excon_defaults
86
+ **Dependabot::SharedHelpers.excon_defaults
86
87
  )
87
- raise NotFound if response.status == 404
88
88
  raise Unauthorized if response.status == 401
89
+ raise Forbidden if response.status == 403
90
+ raise NotFound if response.status == 404
89
91
 
90
92
  response
91
93
  end
@@ -233,7 +233,8 @@ module Dependabot
233
233
  )
234
234
  end
235
235
  rescue Dependabot::Clients::Bitbucket::NotFound,
236
- Dependabot::Clients::Bitbucket::Unauthorized
236
+ Dependabot::Clients::Bitbucket::Unauthorized,
237
+ Dependabot::Clients::Bitbucket::Forbidden
237
238
  []
238
239
  end
239
240
 
@@ -119,7 +119,8 @@ module Dependabot
119
119
  end
120
120
  rescue Octokit::NotFound, Gitlab::Error::NotFound,
121
121
  Dependabot::Clients::Bitbucket::NotFound,
122
- Dependabot::Clients::Bitbucket::Unauthorized
122
+ Dependabot::Clients::Bitbucket::Unauthorized,
123
+ Dependabot::Clients::Bitbucket::Forbidden
123
124
  []
124
125
  end
125
126
 
@@ -180,7 +181,8 @@ module Dependabot
180
181
  }
181
182
  end
182
183
  rescue Dependabot::Clients::Bitbucket::NotFound,
183
- Dependabot::Clients::Bitbucket::Unauthorized
184
+ Dependabot::Clients::Bitbucket::Unauthorized,
185
+ Dependabot::Clients::Bitbucket::Forbidden
184
186
  []
185
187
  end
186
188
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.89.3"
4
+ VERSION = "0.89.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.89.3
4
+ version: 0.89.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot