dependabot-core 0.87.13 → 0.87.14

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: c8f842a6d3120ef7b77543d322cb87078ae2ed4078ad278f62b6bf9f52aa5730
4
- data.tar.gz: 50f836032e6838360589df7ad1734e330c8e3dd4c1f46a08a47deda165a3ce58
3
+ metadata.gz: eca490dd775516474dc66c097dd8fccaf3b12d52caba9b6e765e0f53d98cd2b9
4
+ data.tar.gz: 4de660bffb7648ee244f67ef241bf167a74c4bdf8e2d96056ba286d89201b6e4
5
5
  SHA512:
6
- metadata.gz: 63782d53e56b0e7f23098305974b90380ec3010449dd2d263997b864da5732e595440c1bd42a6337aa73f3929f09e849c786f1f67925a5d8f5bc8ddeec922045
7
- data.tar.gz: d08dc6f52d23396aeaafec268396a6ca4dbd1cc26b4405f03031081c91c8312711cf3beafb87a3dc393436fbacbd98614373ffb7a714ec61640e9a47725a9c50
6
+ metadata.gz: 75d686d0b2f89b11334d0a9da7248af2845da2aa05cf2754ca4e364bf966dcb19f44ccb1b8c398dda119c44f2aa1a320162542f52a139b441ff0d989fd717dd5
7
+ data.tar.gz: 5693fcd4bc2631431f368d2ced7a39341c27545217a9930c1aa9416d4e69898a72ef9491c5cab301a555687aa18dc433fe9df3eba0d883f4c49a661beaeeab02
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.87.14, 9 January 2019
2
+
3
+ - Handle Bitbucket 401s during changelog lookup
4
+ - Handle Bitbucket 401s during commit lookup
5
+
1
6
  ## v0.87.13, 7 January 2019
2
7
 
3
8
  - Cargo: If a file is both a support_file and a dependency file, treat as a dependency file only
@@ -7,6 +7,7 @@ module Dependabot
7
7
  module Clients
8
8
  class Bitbucket
9
9
  class NotFound < StandardError; end
10
+ class Unauthorized < StandardError; end
10
11
 
11
12
  #######################
12
13
  # Constructor methods #
@@ -84,6 +85,7 @@ module Dependabot
84
85
  **SharedHelpers.excon_defaults
85
86
  )
86
87
  raise NotFound if response.status == 404
88
+ raise Unauthorized if response.status == 401
87
89
 
88
90
  response
89
91
  end
@@ -231,7 +231,8 @@ module Dependabot
231
231
  download_url: "#{source.url}/raw/#{branch}/#{file['path']}"
232
232
  )
233
233
  end
234
- rescue Dependabot::Clients::Bitbucket::NotFound
234
+ rescue Dependabot::Clients::Bitbucket::NotFound,
235
+ Dependabot::Clients::Bitbucket::Unauthorized
235
236
  []
236
237
  end
237
238
 
@@ -118,7 +118,8 @@ module Dependabot
118
118
  else raise "Unexpected source provider '#{source.provider}'"
119
119
  end
120
120
  rescue Octokit::NotFound, Gitlab::Error::NotFound,
121
- Dependabot::Clients::Bitbucket::NotFound
121
+ Dependabot::Clients::Bitbucket::NotFound,
122
+ Dependabot::Clients::Bitbucket::Unauthorized
122
123
  []
123
124
  end
124
125
 
@@ -178,7 +179,8 @@ module Dependabot
178
179
  html_url: commit.dig("links", "html", "href")
179
180
  }
180
181
  end
181
- rescue Dependabot::Clients::Bitbucket::NotFound
182
+ rescue Dependabot::Clients::Bitbucket::NotFound,
183
+ Dependabot::Clients::Bitbucket::Unauthorized
182
184
  []
183
185
  end
184
186
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.87.13"
4
+ VERSION = "0.87.14"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.87.13
4
+ version: 0.87.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr