dependabot-common 0.112.32 → 0.112.33
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac006571cc7c40e2da038138a014dcf7a394c97a76d1dd9c28358e6ae0557d42
|
4
|
+
data.tar.gz: 13eeb7b46922b245154afb44eaebcc0c53ee8a7b0c056bf6b37932bee06ff4d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ac4f6d9c1e8f1ee5d09bc2d1d63d06c944642f515047ffc823c1bcb93fe767dd0c5769577024471c315793c31cd6dfb6fdb10729e9297050c81581fd6be84b
|
7
|
+
data.tar.gz: 0ffe152a85341a0d0a2ab1f291f7ea5fa781622d3179591fb17ed97c05d2d083cb19d30567daf28b976d966aa1861f7bf962c995c0b39dfdef812234b7317cf3
|
data/lib/dependabot/errors.rb
CHANGED
@@ -98,7 +98,7 @@ module Dependabot
|
|
98
98
|
attr_reader :source
|
99
99
|
|
100
100
|
def initialize(source)
|
101
|
-
@source = source
|
101
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
102
102
|
msg = "The following source could not be reached as it requires "\
|
103
103
|
"authentication (and any provided details were invalid or lacked "\
|
104
104
|
"the required permissions): #{source}"
|
@@ -110,7 +110,7 @@ module Dependabot
|
|
110
110
|
attr_reader :source
|
111
111
|
|
112
112
|
def initialize(source)
|
113
|
-
@source = source
|
113
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
114
114
|
super("The following source timed out: #{source}")
|
115
115
|
end
|
116
116
|
end
|
@@ -119,7 +119,7 @@ module Dependabot
|
|
119
119
|
attr_reader :source
|
120
120
|
|
121
121
|
def initialize(source)
|
122
|
-
@source = source
|
122
|
+
@source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
|
123
123
|
super("Could not verify the SSL certificate for #{source}")
|
124
124
|
end
|
125
125
|
end
|
@@ -18,7 +18,7 @@ module Dependabot
|
|
18
18
|
require_relative "commits_finder"
|
19
19
|
|
20
20
|
# Earlier entries are preferred
|
21
|
-
CHANGELOG_NAMES = %w(changelog
|
21
|
+
CHANGELOG_NAMES = %w(changelog news changes history release).freeze
|
22
22
|
|
23
23
|
attr_reader :source, :dependency, :credentials, :suggested_changelog_url
|
24
24
|
|
@@ -168,23 +168,28 @@ module Dependabot
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def commit_message
|
171
|
-
|
171
|
+
# Take the commit message from the old commit
|
172
|
+
commit_being_updated.message
|
173
|
+
end
|
174
|
+
|
175
|
+
def commit_being_updated
|
176
|
+
@commit_being_updated ||=
|
172
177
|
if pull_request.commits == 1
|
173
178
|
github_client_for_source.
|
174
|
-
git_commit(source.repo, pull_request.head.sha)
|
175
|
-
message
|
179
|
+
git_commit(source.repo, pull_request.head.sha)
|
176
180
|
else
|
177
181
|
author_name = author_details&.fetch(:name, nil) || "dependabot"
|
178
182
|
commits =
|
179
183
|
github_client_for_source.
|
180
|
-
pull_request_commits(source.repo, pull_request_number)
|
184
|
+
pull_request_commits(source.repo, pull_request_number).
|
185
|
+
reverse
|
181
186
|
|
182
187
|
commit =
|
183
188
|
commits.find { |c| c.sha == old_commit } ||
|
184
189
|
commits.find { |c| c.commit.author.name.include?(author_name) } ||
|
185
190
|
commits.first
|
186
191
|
|
187
|
-
commit.commit
|
192
|
+
commit.commit
|
188
193
|
end
|
189
194
|
end
|
190
195
|
|
data/lib/dependabot/version.rb
CHANGED
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.112.
|
4
|
+
version: 0.112.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ecr
|