dependabot-common 0.187.0 → 0.188.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/dependency_file.rb +6 -0
- data/lib/dependabot/git_commit_checker.rb +1 -0
- data/lib/dependabot/metadata_finders/base/changelog_finder.rb +2 -0
- data/lib/dependabot/metadata_finders/base/commits_finder.rb +2 -0
- data/lib/dependabot/metadata_finders/base/release_finder.rb +3 -2
- data/lib/dependabot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 593f43c5e622caf3c10259a53e3c74b5912060fa0954616f5c579e9701d947e0
|
4
|
+
data.tar.gz: 724fde3aa5684da3eab762f040f5cae6421b9d0886bbdd40fd71f9bbba4d5d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d66e45102760ce66dc119f6d75586934d0f8703985f5d965f8c2f2729cb7170d889607b099b84f34550c2142405a99f2a4ae5f2955144f314654bf8278a7925
|
7
|
+
data.tar.gz: b572f18d7685bfbf3c2b095fa5911358aaf6ab38e1df888000942747315cfb3918e7e0e3cc49a4a00f35445cdb11c484a75f8351af4670fafbc5bef732953efb
|
@@ -4,6 +4,9 @@ require "pathname"
|
|
4
4
|
|
5
5
|
module Dependabot
|
6
6
|
class DependencyFile
|
7
|
+
# See https://www.unicode.org/faq/utf_bom.html#BOM
|
8
|
+
UTF_8_BOM = [0xEF, 0xBB, 0xBF].pack("C*").force_encoding("UTF-8").freeze
|
9
|
+
|
7
10
|
attr_accessor :name, :content, :directory, :type, :support_file,
|
8
11
|
:symlink_target, :content_encoding, :operation
|
9
12
|
|
@@ -21,6 +24,9 @@ module Dependabot
|
|
21
24
|
def initialize(name:, content:, directory: "/", type: "file",
|
22
25
|
support_file: false, symlink_target: nil,
|
23
26
|
content_encoding: ContentEncoding::UTF_8, deleted: false, operation: Operation::UPDATE)
|
27
|
+
# Remove UTF-8 byte order mark (BOM) from content, if present
|
28
|
+
content = content.delete_prefix(UTF_8_BOM) if content && content_encoding == ContentEncoding::UTF_8
|
29
|
+
|
24
30
|
@name = name
|
25
31
|
@content = content
|
26
32
|
@directory = clean_directory(directory)
|
@@ -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
|
198
|
-
|
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
|
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.
|
4
|
+
version: 0.188.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-
|
11
|
+
date: 2022-05-16 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.
|
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.
|
336
|
+
version: 1.29.1
|
337
337
|
- !ruby/object:Gem::Dependency
|
338
338
|
name: ruby-debug-ide
|
339
339
|
requirement: !ruby/object:Gem::Requirement
|