dependabot-common 0.188.0 → 0.189.0

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: 390399dd3b8e97978cb4afdbf9944a44d340b31023feba4b61a5b7f1505be53c
4
+ data.tar.gz: b492637ad11614a576951a960039eddd7434c9ca685fe65bc413bf89b07d48cc
5
5
  SHA512:
6
- metadata.gz: 1d66e45102760ce66dc119f6d75586934d0f8703985f5d965f8c2f2729cb7170d889607b099b84f34550c2142405a99f2a4ae5f2955144f314654bf8278a7925
7
- data.tar.gz: b572f18d7685bfbf3c2b095fa5911358aaf6ab38e1df888000942747315cfb3918e7e0e3cc49a4a00f35445cdb11c484a75f8351af4670fafbc5bef732953efb
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.188.0"
4
+ VERSION = "0.189.0"
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.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-16 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport