dependabot-bundler 0.119.0 → 0.119.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f919e2701e7212b322c404cbaad0bd3f4e956701a24061e5f5221119b72dcb55
|
|
4
|
+
data.tar.gz: f25342c61a6084654e8430342b0cb1b2d9c24daa9e4dc6dff00611623edf95cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3e907de666befff04da6cf7114d3466bd44fdb5617da3566ed3f941aa0853b8894783b83c9c61e2f445b8db5bf3604d39babcf9f662b04ea0c7a866fcd9d25c
|
|
7
|
+
data.tar.gz: 624ca9a38656e9d9c6e1bc53b7affd15aef79fc9498694d6eff4a9885e9cae836d2826dd717f12ce3d9b49bdf78c715a5e2fa4c48e0ccbb7655350e5b6dc85e6
|
|
@@ -84,13 +84,17 @@ module Dependabot
|
|
|
84
84
|
Dir.chdir(repo_contents_path) do
|
|
85
85
|
relative_dir = vendor_cache_dir.sub("#{repo_contents_path}/", "")
|
|
86
86
|
status = SharedHelpers.run_shell_command(
|
|
87
|
-
"git status --porcelain=v1 #{relative_dir}"
|
|
87
|
+
"git status --untracked-files=all --porcelain=v1 #{relative_dir}"
|
|
88
88
|
)
|
|
89
89
|
changed_paths = status.split("\n").map { |l| l.split(" ") }
|
|
90
90
|
changed_paths.map do |type, path|
|
|
91
91
|
deleted = type == "D"
|
|
92
|
-
encoding =
|
|
93
|
-
encoded_content =
|
|
92
|
+
encoding = ""
|
|
93
|
+
encoded_content = File.read(path) unless deleted
|
|
94
|
+
if binary_file?(path)
|
|
95
|
+
encoding = Dependabot::DependencyFile::ContentEncoding::BASE64
|
|
96
|
+
encoded_content = Base64.encode64(encoded_content) unless deleted
|
|
97
|
+
end
|
|
94
98
|
Dependabot::DependencyFile.new(
|
|
95
99
|
name: path,
|
|
96
100
|
content: encoded_content,
|
|
@@ -102,6 +106,39 @@ module Dependabot
|
|
|
102
106
|
end
|
|
103
107
|
end
|
|
104
108
|
|
|
109
|
+
# notable filenames without a reliable extension:
|
|
110
|
+
TEXT_FILE_NAMES = [
|
|
111
|
+
"Gemfile",
|
|
112
|
+
"Gemfile.lock",
|
|
113
|
+
".bundlecache",
|
|
114
|
+
".gitignore"
|
|
115
|
+
].freeze
|
|
116
|
+
|
|
117
|
+
TEXT_FILE_EXTS = [
|
|
118
|
+
# code
|
|
119
|
+
".rb",
|
|
120
|
+
".erb",
|
|
121
|
+
".gemspec",
|
|
122
|
+
".js",
|
|
123
|
+
".html",
|
|
124
|
+
# config
|
|
125
|
+
".json",
|
|
126
|
+
".xml",
|
|
127
|
+
".toml",
|
|
128
|
+
".yaml",
|
|
129
|
+
".yml",
|
|
130
|
+
# docs
|
|
131
|
+
".md",
|
|
132
|
+
".txt"
|
|
133
|
+
].freeze
|
|
134
|
+
|
|
135
|
+
def binary_file?(path)
|
|
136
|
+
return false if TEXT_FILE_NAMES.include?(File.basename(path))
|
|
137
|
+
return false if TEXT_FILE_EXTS.include?(File.extname(path))
|
|
138
|
+
|
|
139
|
+
true
|
|
140
|
+
end
|
|
141
|
+
|
|
105
142
|
def check_required_files
|
|
106
143
|
file_names = dependency_files.map(&:name)
|
|
107
144
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-bundler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.119.
|
|
4
|
+
version: 0.119.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-08-
|
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dependabot-common
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.119.
|
|
19
|
+
version: 0.119.1
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.119.
|
|
26
|
+
version: 0.119.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: byebug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|