dependabot-common 0.186.1 → 0.189.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: 7aa607d4eb8b05e1773a2d7827071d00ec17123f2460d9c6f300559c9f8e555a
4
- data.tar.gz: 3c7ed5b1c9f67f98db127a54a89584f9da26f574509d06a635690ef9f7b1d31c
3
+ metadata.gz: 390399dd3b8e97978cb4afdbf9944a44d340b31023feba4b61a5b7f1505be53c
4
+ data.tar.gz: b492637ad11614a576951a960039eddd7434c9ca685fe65bc413bf89b07d48cc
5
5
  SHA512:
6
- metadata.gz: 3b0fcda24af49153516ac06d3b5da3708a3d5ee4c690b9db4eaf867aa4c629a02ab76ec59a1658c844423ed28d4afbc43a37d0e80751362d771c01dce578cc65
7
- data.tar.gz: dc6a243ea14322702d102625d2897615e26bb5e1ae363b431a1fae33e37bc59bea7ef6f3fcedaa9161692ffc48523bfe6aec062ea7961743a0c063ab7b5a1973
6
+ metadata.gz: 713b03d4c1013b182a5b3a19c0fcdf602aa656162f5d6b812617c2b81bc970fc03767c6396031a1d979c0f75ea882531e40065ccfce36000f6fc8b79946195e0
7
+ data.tar.gz: 2727a71de1c31fdd1b1e4a9b514c5c14e838f6af9b8b1b28be2fa6b712b345a5dab025cadcf316c97fe495ca04f942b19655ba9e8783ee6f47ab470e5bb7af64
@@ -240,6 +240,7 @@ module Dependabot
240
240
  when "github" then github_commit_comparison_status(tag, commit)
241
241
  when "gitlab" then gitlab_commit_comparison_status(tag, commit)
242
242
  when "bitbucket" then bitbucket_commit_comparison_status(tag, commit)
243
+ when "codecommit" then nil # TODO: get codecommit comparison status
243
244
  else raise "Unknown source"
244
245
  end
245
246
 
@@ -167,6 +167,7 @@ module Dependabot
167
167
  when "github" then fetch_github_file(file)
168
168
  when "gitlab" then fetch_gitlab_file(file)
169
169
  when "bitbucket" then fetch_bitbucket_file(file)
170
+ when "codecommit" then nil # TODO: git file from codecommit
170
171
  else raise "Unsupported provider '#{provider}'"
171
172
  end
172
173
  end
@@ -220,6 +221,7 @@ module Dependabot
220
221
  when "bitbucket" then fetch_bitbucket_file_list
221
222
  when "gitlab" then fetch_gitlab_file_list
222
223
  when "azure" then [] # TODO: Fetch files from Azure
224
+ when "codecommit" then [] # TODO: Fetch Files from Codecommit
223
225
  else raise "Unexpected repo provider '#{source.provider}'"
224
226
  end
225
227
  end
@@ -23,6 +23,7 @@ module Dependabot
23
23
  def commits_url
24
24
  return unless source
25
25
  return if source.provider == "azure" # TODO: Fetch Azure commits
26
+ return if source.provider == "codecommit" # TODO: Fetch Codecommit commits
26
27
 
27
28
  path =
28
29
  case source.provider
@@ -44,6 +45,7 @@ module Dependabot
44
45
  when "bitbucket" then fetch_bitbucket_commits
45
46
  when "gitlab" then fetch_gitlab_commits
46
47
  when "azure" then [] # TODO: Fetch Azure commits
48
+ when "codecommit" then [] # TODO: Fetch Codecommit commits
47
49
  else raise "Unexpected source provider '#{source.provider}'"
48
50
  end
49
51
  end
@@ -194,8 +194,9 @@ module Dependabot
194
194
 
195
195
  case source.provider
196
196
  when "github" then fetch_github_releases
197
- # Bitbucket doesn't support releases and Azure can't list API for annotated tags
198
- when "bitbucket", "azure" then []
197
+ # Bitbucket and CodeCommit don't support releases and
198
+ # Azure can't list API for annotated tags
199
+ when "bitbucket", "azure", "codecommit" then []
199
200
  when "gitlab" then fetch_gitlab_releases
200
201
  else raise "Unexpected repo provider '#{source.provider}'"
201
202
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/notifications"
3
4
  require "digest"
4
5
  require "English"
5
6
  require "excon"
@@ -150,9 +151,11 @@ module Dependabot
150
151
  options ||= {}
151
152
  headers = options.delete(:headers)
152
153
  {
154
+ instrumentor: ActiveSupport::Notifications,
153
155
  connect_timeout: 5,
154
156
  write_timeout: 5,
155
157
  read_timeout: 20,
158
+ retry_limit: 4, # Excon defaults to four retries, but let's set it explicitly for clarity
156
159
  omit_default_port: true,
157
160
  middlewares: excon_middleware,
158
161
  headers: excon_headers(headers)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.186.1"
4
+ VERSION = "0.189.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.186.1
4
+ version: 0.189.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-10 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -326,14 +326,14 @@ dependencies:
326
326
  requirements:
327
327
  - - "~>"
328
328
  - !ruby/object:Gem::Version
329
- version: 1.28.2
329
+ version: 1.29.1
330
330
  type: :development
331
331
  prerelease: false
332
332
  version_requirements: !ruby/object:Gem::Requirement
333
333
  requirements:
334
334
  - - "~>"
335
335
  - !ruby/object:Gem::Version
336
- version: 1.28.2
336
+ version: 1.29.1
337
337
  - !ruby/object:Gem::Dependency
338
338
  name: ruby-debug-ide
339
339
  requirement: !ruby/object:Gem::Requirement