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 +4 -4
- data/History.md +9 -0
- data/lib/mime/type.rb +1 -1
- data/lib/mime/types/cache.rb +2 -2
- data/lib/mime/types/deprecations.rb +1 -1
- data/lib/mime/types/registry.rb +1 -1
- data/lib/mime/types.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: 443bfcc0047c25a8ac7cc9e7a2fea95f8d4707e8fa3a98d0b99bee421e168708
|
4
|
+
data.tar.gz: 39756d60550165df9787a4967c376faac32179fd442d176766893b7454ed977d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/mime/types/cache.rb
CHANGED
@@ -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
|
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
|
31
|
+
MIME::Types.logger.warn <<-WARNING.chomp.strip
|
32
32
|
Could not load MIME::Types cache: #{e}
|
33
33
|
WARNING
|
34
34
|
nil
|
data/lib/mime/types/registry.rb
CHANGED
@@ -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
|
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
|
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.
|
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-
|
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
|