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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWViMWFhNWYxYmU3ZjM1NmE4ODUwNzM4ZjFlNDU1NjY0MTJhODBjMA==
4
+ ZjcwYmQxOTg1ZjdmOTI4Zjk3OTRlYzdlZWU1MWY5OTM4M2M5NzdlMQ==
5
5
  data.tar.gz: !binary |-
6
- YmNmY2UyMDhkYjk0ZmE2NTE0MjI2ZWMxNjJmYzY4YjgwZTRkY2E5ZA==
6
+ N2IzN2QyZmUwMTJlNWI4ZjM3MzFjODYwNGI5NTgzYmQ3YmExN2ExMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTExNDY1MzFlNmFhMDU5NWQxMTEzZTY2YzE2ZWNlMjkzY2VmNzZmZjI3NGQ4
10
- YmRmNjQ3NzY0YzA0ODhmNzEzZTc2N2E4NDg5NWI2NjczNjQ0Nzg3NDY4Njkz
11
- OTlhNGVkNzBlYzcyZGU0MWVjNTk0NjMzNjhiOGRhZGI3YWZiY2I=
9
+ ZDQ3M2FkYWI3MDkyM2JlMTE1NDM2Y2Q2Y2Q1NGRlNTRlYmNlYTQ4MDZjODYy
10
+ YjRlZTNmYjZkYzE5ODA2YWJkZmU5MTE1ZGFkNjUxOTkzYjg4NmM0MGI5Nzcz
11
+ ZmVlNDM0MDExZDgwOWY4ZTA1ZmM2YTZlZjdjNmZhMzVlMzU0YTU=
12
12
  data.tar.gz: !binary |-
13
- YTZiMDRlYzljMDk4MDRjZTA0MGJhMWFhMTU1YWIyNTQ1MDc4YTkzOTVkYjg4
14
- MGVhYTZlODU2MDEzOTBiOTc0ZTIxYzhiMmQ1MDhjNGUwNWQ5ZTA0NDY1YThj
15
- MWYzYTBiNTk4NDQzMzFjNjk3MzMwM2Q0MTUwNzVkM2YyNDY5Yjk=
13
+ ZmVlNjRjY2RhNjIxM2IwY2FiZTAwZjYzOWY1MjJkMGU1N2RiM2YyMzcxYTZh
14
+ YWZmYWI0ODBlM2JkOTg0M2RhMjVlOTc1Mzk3YjA2Y2Y5NzNjMWVjNzJlNDRi
15
+ N2E3NWViMzliZGJhOTI2OTg3NzkyNTEwODIwMWRiZDllNzc3Njc=
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- jbʫ�<S0F_�.US����v��-�q���F{M�E�/+;��5Z�%-�W�l˖}�ҍf�2�>i�'.��':6���t_��Կ�Y9�y-�ݿ�F߻r\Ȟ�.�ª{.p{�|K!p�*u�F(�a韥sC{N���)��c�a�I3` ���oR�Q[8�k�a�C�)�Ձ_&��I�%��h�ȝ�qNc9�[U1��Dzk)Ud��#u�p���/�*�6L�/ �}�m�Ja��Yn����-ƥ��
1
+
@@ -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:
@@ -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.2, fixing bugs with unnecessary object duplication and
28
- using JSON.parse instead of JSON.load. These fixes improve the JSON registry
29
- loading time by about 55% over previous 2.x releases. Cached registry load
30
- times are not changed. This release builds on the 2.4.1 release, which fixed a
31
- bug in observed use of the mime-types library where extensions were not
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
 
@@ -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.2'
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
- private_constant :MEDIA_TYPE_RE, :UNREGISTERED_RE, :I18N_RE, :PLATFORM_RE,
78
- :DEFAULT_ENCODINGS, :BINARY_ENCODINGS, :TEXT_ENCODINGS, :VALID_ENCODINGS,
79
- :IANA_URL, :RFC_URL, :DRAFT_URL, :CONTACT_URL
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
@@ -235,5 +235,6 @@ class MIME::Types::Loader
235
235
  \s*
236
236
  \z
237
237
  }x
238
- private_constant :V1_FORMAT
238
+
239
+ private_constant :V1_FORMAT if respond_to? :private_constant
239
240
  end
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.2
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-15 00:00:00.000000000 Z
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.2, fixing bugs with unnecessary object duplication and\nusing JSON.parse
207
- instead of JSON.load. These fixes improve the JSON registry\nloading time by about
208
- 55% over previous 2.x releases. Cached registry load\ntimes are not changed. This
209
- release builds on the 2.4.1 release, which fixed a\nbug in observed use of the mime-types
210
- library where extensions were not\npreviously sorted, such that\n\n MIME::Types.of('image.jpg').first.extensions.first\n\nreturned
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