mime-types 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/History.rdoc +9 -0
- data/README.rdoc +5 -6
- data/lib/mime/type.rb +7 -4
- data/lib/mime/types/loader.rb +2 -1
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjcwYmQxOTg1ZjdmOTI4Zjk3OTRlYzdlZWU1MWY5OTM4M2M5NzdlMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2IzN2QyZmUwMTJlNWI4ZjM3MzFjODYwNGI5NTgzYmQ3YmExN2ExMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQ3M2FkYWI3MDkyM2JlMTE1NDM2Y2Q2Y2Q1NGRlNTRlYmNlYTQ4MDZjODYy
|
10
|
+
YjRlZTNmYjZkYzE5ODA2YWJkZmU5MTE1ZGFkNjUxOTkzYjg4NmM0MGI5Nzcz
|
11
|
+
ZmVlNDM0MDExZDgwOWY4ZTA1ZmM2YTZlZjdjNmZhMzVlMzU0YTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmVlNjRjY2RhNjIxM2IwY2FiZTAwZjYzOWY1MjJkMGU1N2RiM2YyMzcxYTZh
|
14
|
+
YWZmYWI0ODBlM2JkOTg0M2RhMjVlOTc1Mzk3YjA2Y2Y5NzNjMWVjNzJlNDRi
|
15
|
+
N2E3NWViMzliZGJhOTI2OTg3NzkyNTEwODIwMWRiZDllNzc3Njc=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
|
data/History.rdoc
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 2.4.3 / 2014-10-21
|
2
|
+
|
3
|
+
* Bugs:
|
4
|
+
* Restored Ruby 1.9.2 support by using +private_constant+ conditionally.
|
5
|
+
Fixes {#77}[https://github.com/halostatue/mime-types/issues/77] found by
|
6
|
+
Kris Leech (@krisleech). The conditional use of +private_constant+ here
|
7
|
+
will be removed for mime-types 3.0, when Ruby 1.9.2 support will be
|
8
|
+
unconditionally removed.
|
9
|
+
|
1
10
|
== 2.4.2 / 2014-10-15
|
2
11
|
|
3
12
|
* Bugs:
|
data/README.rdoc
CHANGED
@@ -24,12 +24,11 @@ add additional type definitions (see Contributing.rdoc). The primary sources
|
|
24
24
|
for MIME type definitions found in mime-types is the IANA collection of
|
25
25
|
registrations (see below for the link), RFCs, and W3C recommendations.
|
26
26
|
|
27
|
-
This is release 2.4.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
previously sorted, such that
|
27
|
+
This is release 2.4.3, restoring full compatibility with Ruby 1.9.2 (which will
|
28
|
+
be dropped in mime-types 3.0). It also includes the performance improvements
|
29
|
+
from mime-types 2.4.2 (since yanked because of the broken Ruby 1.9.2 support)
|
30
|
+
and the 2.4.1 fix of a bug in observed use of the mime-types library where
|
31
|
+
extensions were not previously sorted, such that
|
33
32
|
|
34
33
|
MIME::Types.of('image.jpg').first.extensions.first
|
35
34
|
|
data/lib/mime/type.rb
CHANGED
@@ -56,7 +56,7 @@ class MIME::Type
|
|
56
56
|
end
|
57
57
|
|
58
58
|
# The released version of the mime-types library.
|
59
|
-
VERSION = '2.4.
|
59
|
+
VERSION = '2.4.3'
|
60
60
|
|
61
61
|
include Comparable
|
62
62
|
|
@@ -74,9 +74,12 @@ class MIME::Type
|
|
74
74
|
RFC_URL = "http://rfc-editor.org/rfc/rfc%s.txt"
|
75
75
|
DRAFT_URL = "http://datatracker.ietf.org/public/idindex.cgi?command=id_details&filename=%s"
|
76
76
|
CONTACT_URL = "http://www.iana.org/assignments/contact-people.htm#%s"
|
77
|
-
|
78
|
-
|
79
|
-
:
|
77
|
+
|
78
|
+
if respond_to? :private_constant
|
79
|
+
private_constant :MEDIA_TYPE_RE, :UNREGISTERED_RE, :I18N_RE, :PLATFORM_RE,
|
80
|
+
:DEFAULT_ENCODINGS, :BINARY_ENCODINGS, :TEXT_ENCODINGS, :VALID_ENCODINGS,
|
81
|
+
:IANA_URL, :RFC_URL, :DRAFT_URL, :CONTACT_URL
|
82
|
+
end
|
80
83
|
|
81
84
|
# Builds a MIME::Type object from the provided MIME Content Type value
|
82
85
|
# (e.g., 'text/plain' or 'applicaton/x-eruby'). The constructed object is
|
data/lib/mime/types/loader.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mime-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
SHkzay9FVEZoaSs3cElVV2xGbzBpbXJkeUxoZCtKdzNib1ZqM0NtdnloY3dt
|
37
37
|
cG9NMEs5bApBT21yVWlFbFVxTE9aQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
38
38
|
LS0tLS0K
|
39
|
-
date: 2014-10-
|
39
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
@@ -203,11 +203,11 @@ description: ! "The mime-types library provides a library and registry for infor
|
|
203
203
|
incomplete; don't hesitate to to\nadd additional type definitions (see Contributing.rdoc).
|
204
204
|
The primary sources\nfor MIME type definitions found in mime-types is the IANA collection
|
205
205
|
of\nregistrations (see below for the link), RFCs, and W3C recommendations.\n\nThis
|
206
|
-
is release 2.4.
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
206
|
+
is release 2.4.3, restoring full compatibility with Ruby 1.9.2 (which will\nbe dropped
|
207
|
+
in mime-types 3.0). It also includes the performance improvements\nfrom mime-types
|
208
|
+
2.4.2 (since yanked because of the broken Ruby 1.9.2 support)\nand the 2.4.1 fix
|
209
|
+
of a bug in observed use of the mime-types library where\nextensions were not previously
|
210
|
+
sorted, such that\n\n MIME::Types.of('image.jpg').first.extensions.first\n\nreturned
|
211
211
|
a value of +jpeg+ in mime-types 1, but +jpe+ in mime-types 2. This was\nintroduced
|
212
212
|
because extensions were sorted during assignment\n(MIME::Type#extensions=). This
|
213
213
|
behaviour has been reverted to protect clients\nthat work as noted above. The preferred
|
metadata.gz.sig
CHANGED
Binary file
|