dependabot-common 0.266.0 → 0.267.0
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 +4 -4
- data/lib/dependabot/errors.rb +10 -4
- data/lib/dependabot/git_metadata_fetcher.rb +8 -0
- data/lib/dependabot.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 512f039f72af66c98e5211d2c8869364c65ea38055bbb88ac61ef32570d1d067
|
|
4
|
+
data.tar.gz: aedbac1ae18409d6ff6879aef2ee3ed0deb1fef070ee4ddb1c9ab36e54493755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88e88e819902db601884ab7d513c2cb67012d1c3fdc24537046b8772acff9a571869343877a152401d8583d05fa13f79bb04ba85573a2babaae43b2943a748d7
|
|
7
|
+
data.tar.gz: 2d420644f8c92e1586df0b15a217c46fd24fad89ddfed99e31213063cc40f59de01eec1bdbe52830d8238e6adeabe65d807c074f697129302df318086aeeed6f
|
data/lib/dependabot/errors.rb
CHANGED
|
@@ -213,7 +213,8 @@ module Dependabot
|
|
|
213
213
|
{
|
|
214
214
|
"error-type": "missing_environment_variable",
|
|
215
215
|
"error-detail": {
|
|
216
|
-
"environment-variable": error.environment_variable
|
|
216
|
+
"environment-variable": error.environment_variable,
|
|
217
|
+
"error-message": error.message
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
when Dependabot::GoModulePathMismatch
|
|
@@ -550,10 +551,15 @@ module Dependabot
|
|
|
550
551
|
sig { returns(String) }
|
|
551
552
|
attr_reader :environment_variable
|
|
552
553
|
|
|
553
|
-
sig {
|
|
554
|
-
|
|
554
|
+
sig { returns(String) }
|
|
555
|
+
attr_reader :message
|
|
556
|
+
|
|
557
|
+
sig { params(environment_variable: String, message: String).void }
|
|
558
|
+
def initialize(environment_variable, message = "")
|
|
555
559
|
@environment_variable = environment_variable
|
|
556
|
-
|
|
560
|
+
@message = message
|
|
561
|
+
|
|
562
|
+
super("Missing environment variable #{@environment_variable}. #{@message}")
|
|
557
563
|
end
|
|
558
564
|
end
|
|
559
565
|
|
|
@@ -198,6 +198,7 @@ module Dependabot
|
|
|
198
198
|
|
|
199
199
|
sig { params(uri: String).returns(String) }
|
|
200
200
|
def service_pack_uri(uri)
|
|
201
|
+
uri = uri_sanitize(uri)
|
|
201
202
|
service_pack_uri = uri_with_auth(uri)
|
|
202
203
|
service_pack_uri = service_pack_uri.gsub(%r{/$}, "")
|
|
203
204
|
service_pack_uri += ".git" unless service_pack_uri.end_with?(".git") || skip_git_suffix(uri)
|
|
@@ -216,6 +217,7 @@ module Dependabot
|
|
|
216
217
|
# (GitHub, GitLab, BitBucket) work with or without the suffix.
|
|
217
218
|
# That change has other ramifications, so it'd be better if Azure started supporting ".git"
|
|
218
219
|
# like all the other providers.
|
|
220
|
+
uri = uri_sanitize(uri)
|
|
219
221
|
uri = SharedHelpers.scp_to_standard(uri)
|
|
220
222
|
uri = URI(uri)
|
|
221
223
|
hostname = uri.hostname.to_s
|
|
@@ -242,6 +244,12 @@ module Dependabot
|
|
|
242
244
|
uri.to_s
|
|
243
245
|
end
|
|
244
246
|
|
|
247
|
+
sig { params(uri: String).returns(String) }
|
|
248
|
+
def uri_sanitize(uri)
|
|
249
|
+
uri = uri.strip
|
|
250
|
+
uri.to_s
|
|
251
|
+
end
|
|
252
|
+
|
|
245
253
|
sig { params(line: String).returns(String) }
|
|
246
254
|
def sha_for_update_pack_line(line)
|
|
247
255
|
T.must(line.split.first).chars.last(40).join
|
data/lib/dependabot.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.
|
|
4
|
+
version: 0.267.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-07-
|
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-codecommit
|
|
@@ -597,7 +597,7 @@ licenses:
|
|
|
597
597
|
- MIT
|
|
598
598
|
metadata:
|
|
599
599
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
600
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
600
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.267.0
|
|
601
601
|
post_install_message:
|
|
602
602
|
rdoc_options: []
|
|
603
603
|
require_paths:
|