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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 593f43c5e622caf3c10259a53e3c74b5912060fa0954616f5c579e9701d947e0
4
- data.tar.gz: 724fde3aa5684da3eab762f040f5cae6421b9d0886bbdd40fd71f9bbba4d5d42
3
+ metadata.gz: 47dfbff575c295d923b9b3ae6befd096088ae0d407b1af709df2724a4935a72b
4
+ data.tar.gz: 130db10467d98237a15b1d13026bc245b05c1dd1e16d277b8eb58307fbb0590b
5
5
  SHA512:
6
- metadata.gz: 1d66e45102760ce66dc119f6d75586934d0f8703985f5d965f8c2f2729cb7170d889607b099b84f34550c2142405a99f2a4ae5f2955144f314654bf8278a7925
7
- data.tar.gz: b572f18d7685bfbf3c2b095fa5911358aaf6ab38e1df888000942747315cfb3918e7e0e3cc49a4a00f35445cdb11c484a75f8351af4670fafbc5bef732953efb
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.188.0"
4
+ VERSION = "0.190.1"
5
5
  end
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.188.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-16 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport