mime-types 3.4.0 → 3.4.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: 95c7231323b94e19e07e031375caa2a86929b89c39758f1e275f7c45173e305a
4
- data.tar.gz: 3c2bfd451b5e04dbb675c2341e9917a9900998a7ce85d7f3532f53d173985888
3
+ metadata.gz: 443bfcc0047c25a8ac7cc9e7a2fea95f8d4707e8fa3a98d0b99bee421e168708
4
+ data.tar.gz: 39756d60550165df9787a4967c376faac32179fd442d176766893b7454ed977d
5
5
  SHA512:
6
- metadata.gz: 11732903d8ad42251e2913d0663f96c7c208818d7d446662be7da8abcb6d1b45ff028d030ee83e1e2eedc87ae5a333f82225b74580f5e7449338093865fbbccb
7
- data.tar.gz: dce1385da430c768e232daf3c263a89473356889dedcb0f19b7ea2da1d6a494d590d06b0d49d24d3366132855fb6d3b39d45c24a3f7550920306f0587d6375d6
6
+ metadata.gz: d711882ac22adb5a8ab3e4953a508c06e870990ad0d41d0256679bcb66c7953686ba4b23ac1470ea6ee07d6026d793f57fb7d377d321fb972252365c8fd22622
7
+ data.tar.gz: 3d20e16be727ee9b62ab599a939524148577b54281a63705b0b75a9eea7c6f51df169bc6979ce8b616c3b707921c1021ac06b226bb8df28f5337d1f76107a293
data/History.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.4.1 / 2021-11-16
4
+
5
+ - 1 bugfix:
6
+
7
+ - Fixed a Ruby < 2.3 incompatibility introduced by the use of standardrb,
8
+ where `<<-` heredocs were converted to `<<~` heredocs. These have been
9
+ reverted back to `<<-` with the indentation kept and a `.strip` call
10
+ to prevent excess whitespace.
11
+
3
12
  ## 3.4.0 / 2021-11-15
4
13
 
5
14
  - 1 minor enhancement:
data/lib/mime/type.rb CHANGED
@@ -93,7 +93,7 @@ class MIME::Type
93
93
  end
94
94
 
95
95
  # The released version of the mime-types library.
96
- VERSION = "3.4.0"
96
+ VERSION = "3.4.1"
97
97
 
98
98
  include Comparable
99
99
 
@@ -22,13 +22,13 @@ class << MIME::Types::Cache
22
22
  if cache.version == MIME::Types::Data::VERSION
23
23
  Marshal.load(cache.data)
24
24
  else
25
- MIME::Types.logger.warn <<~WARNING.chomp
25
+ MIME::Types.logger.warn <<-WARNING.chomp.strip
26
26
  Could not load MIME::Types cache: invalid version
27
27
  WARNING
28
28
  nil
29
29
  end
30
30
  rescue => e
31
- MIME::Types.logger.warn <<~WARNING.chomp
31
+ MIME::Types.logger.warn <<-WARNING.chomp.strip
32
32
  Could not load MIME::Types cache: #{e}
33
33
  WARNING
34
34
  nil
@@ -25,7 +25,7 @@ module MIME
25
25
  else
26
26
  message
27
27
  end
28
- MIME::Types.logger.warn <<~WARNING.chomp
28
+ MIME::Types.logger.warn <<-WARNING.chomp.strip
29
29
  #{caller(2..2).first}: #{klass}#{level}#{sym} is deprecated #{message}.
30
30
  WARNING
31
31
 
@@ -45,7 +45,7 @@ class << MIME::Types
45
45
  def lazy_load?
46
46
  return unless ENV.key?("RUBY_MIME_TYPES_LAZY_LOAD")
47
47
 
48
- MIME::Types.logger.warn <<~WARNING.chomp
48
+ MIME::Types.logger.warn <<-WARNING.chomp.strip
49
49
  Lazy loading ($RUBY_MIME_TYPES_LAZY_LOAD) is deprecated and will be removed.
50
50
  WARNING
51
51
 
data/lib/mime/types.rb CHANGED
@@ -187,7 +187,7 @@ class MIME::Types
187
187
  # truthy value to suppress that warning.
188
188
  def add_type(type, quiet = false)
189
189
  if !quiet && @type_variants[type.simplified].include?(type)
190
- MIME::Types.logger.warn <<~WARNING
190
+ MIME::Types.logger.warn <<-WARNING.chomp.strip
191
191
  Type #{type} is already registered as a variant of #{type.simplified}.
192
192
  WARNING
193
193
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mime-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types-data