dependabot-common 0.188.0 → 0.190.1
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 +0 -6
- data/lib/dependabot/metadata_finders/base.rb +1 -1
- 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: 47dfbff575c295d923b9b3ae6befd096088ae0d407b1af709df2724a4935a72b
|
4
|
+
data.tar.gz: 130db10467d98237a15b1d13026bc245b05c1dd1e16d277b8eb58307fbb0590b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b83ae56d1917e9076a33b9b4dbb04e2b29acd5a3743663a48a733e54e3fc64e10826c495c92906b6d1f0e83b5c41be1e443e4ba1cc755843c099b631cb83aab0
|
7
|
+
data.tar.gz: 9c63d8a6d3de6e1d165666ae527290fb341ef0da96628a6e79a758419f9b8602f3a1d18c3e5021935b3491a22895d7d1646391f6f5f32a9bf614633e10fd1ae2
|
@@ -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)
|
@@ -9,7 +9,7 @@ module Dependabot
|
|
9
9
|
require "dependabot/metadata_finders/base/release_finder"
|
10
10
|
require "dependabot/metadata_finders/base/commits_finder"
|
11
11
|
|
12
|
-
PACKAGE_MANAGERS_WITH_RELIABLE_DIRECTORIES = %w(npm_and_yarn).freeze
|
12
|
+
PACKAGE_MANAGERS_WITH_RELIABLE_DIRECTORIES = %w(npm_and_yarn pub).freeze
|
13
13
|
|
14
14
|
attr_reader :dependency, :credentials
|
15
15
|
|
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.190.1
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|