dependabot-common 0.188.0 → 0.189.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/dependency_file.rb +0 -6
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 390399dd3b8e97978cb4afdbf9944a44d340b31023feba4b61a5b7f1505be53c
|
|
4
|
+
data.tar.gz: b492637ad11614a576951a960039eddd7434c9ca685fe65bc413bf89b07d48cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 713b03d4c1013b182a5b3a19c0fcdf602aa656162f5d6b812617c2b81bc970fc03767c6396031a1d979c0f75ea882531e40065ccfce36000f6fc8b79946195e0
|
|
7
|
+
data.tar.gz: 2727a71de1c31fdd1b1e4a9b514c5c14e838f6af9b8b1b28be2fa6b712b345a5dab025cadcf316c97fe495ca04f942b19655ba9e8783ee6f47ab470e5bb7af64
|
|
@@ -4,9 +4,6 @@ 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
|
-
|
|
10
7
|
attr_accessor :name, :content, :directory, :type, :support_file,
|
|
11
8
|
:symlink_target, :content_encoding, :operation
|
|
12
9
|
|
|
@@ -24,9 +21,6 @@ module Dependabot
|
|
|
24
21
|
def initialize(name:, content:, directory: "/", type: "file",
|
|
25
22
|
support_file: false, symlink_target: nil,
|
|
26
23
|
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
|
-
|
|
30
24
|
@name = name
|
|
31
25
|
@content = content
|
|
32
26
|
@directory = clean_directory(directory)
|
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.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-
|
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|