mime-types 1.25 → 1.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +7 -0
- data/README.rdoc +10 -9
- data/lib/mime/types.rb +5 -3
- metadata +14 -12
- 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
|
+
NDkxYjM0NzgyN2YxNTIxMTNiZjc3NThkMjEzZjViNzAyMmE2NjYyYg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MzZiYzc4YTQ2NmQ5MjE5MGJiYTQxOTlmMGE3M2Q3MWUzZWI3N2E3MQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Zjk0NGFhYTBjMzNmN2YxOTYwZWU0NzM2MmJlZTQ0ZjE4NzU1YTk5MDVkNTQ5
|
|
10
|
+
Y2Y5MDk5MjA4YmI3ZTc1MWY1NDljZGJlYTg3NGU5NzcwY2I5MzRhMDc0Mzkw
|
|
11
|
+
NTNiYjI4NDMxNTU0NzhjZjFmYjFhNGE4ZDJhNjUzYTdkNjVjYzc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Zjk4MzQyODgwODQyOWZiN2ZhYWE0YWJmNmY1MjIwNTAxM2ZiYjQ0OGMwOGNj
|
|
14
|
+
ODAyYmUzZjQ5NmVkMzk0MzJmZmZhZmRiMzBiNzllMWQ5ZDA2OTA0ZjQxMTIw
|
|
15
|
+
MjI4Njg0YmQ4YmUwNDgxZDg4OGRhMzQ2NDMzOTM5OTdlMjRhMzc=
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.rdoc
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
== 1.25.1 / 201-11-24
|
|
2
|
+
|
|
3
|
+
* Bugs:
|
|
4
|
+
* Fix an issue with priority comparison in the 1.x release series. Found by
|
|
5
|
+
sdbondi. This issue does not exist in the 2.x release series.
|
|
6
|
+
https://github.com/halostatue/mime-types/issues/47
|
|
7
|
+
|
|
1
8
|
== 1.25 / 2013-08-30
|
|
2
9
|
|
|
3
10
|
* New Features:
|
data/README.rdoc
CHANGED
|
@@ -10,14 +10,16 @@ continuous integration :: {<img src="https://travis-ci.org/halostatue/mime-types
|
|
|
10
10
|
== Description
|
|
11
11
|
|
|
12
12
|
This library allows for the identification of a file's likely MIME content
|
|
13
|
-
type. This is release 1.25,
|
|
14
|
-
|
|
13
|
+
type. This is release 1.25.1, fixing an issue with priority comparison for
|
|
14
|
+
mime-types 1.x. The current release is 2.0, which only supports Ruby 1.9 or
|
|
15
|
+
later.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
Release 1.25.1 contains all features of 1.25, including the experimental
|
|
18
|
+
caching and lazy loading functionality. The caching and lazy loading features
|
|
19
|
+
were initially implemented by Greg Brockman (gdb). As these features are
|
|
20
|
+
experimental, they are disabled by default and must be enabled through the use
|
|
21
|
+
of environment variables. The cache is invalidated on a per-version basis; the
|
|
22
|
+
cache for version 1.25 will not be reused for any later version.
|
|
21
23
|
|
|
22
24
|
To use lazy loading, set the environment variable +RUBY_MIME_TYPES_LAZY_LOAD+
|
|
23
25
|
to any value other than 'false'. When using lazy loading, the initial startup
|
|
@@ -48,8 +50,7 @@ complete; don't hesitate to ask to add additional information. This library
|
|
|
48
50
|
follows the IANA collection of MIME types (see below for reference).
|
|
49
51
|
|
|
50
52
|
MIME::Types for Ruby was originally based on MIME::Types for Perl by Mark
|
|
51
|
-
Overmeer, copyright 2001 - 2009.
|
|
52
|
-
MIME::Type list has changed and the synchronization will no longer happen.
|
|
53
|
+
Overmeer, copyright 2001 - 2009.
|
|
53
54
|
|
|
54
55
|
MIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It
|
|
55
56
|
tracks the {IANA registry}[http://www.iana.org/assignments/media-types/]
|
data/lib/mime/types.rb
CHANGED
|
@@ -33,7 +33,7 @@ module MIME
|
|
|
33
33
|
#
|
|
34
34
|
class Type
|
|
35
35
|
# The released version of Ruby MIME::Types
|
|
36
|
-
VERSION = '1.25'
|
|
36
|
+
VERSION = '1.25.1'
|
|
37
37
|
|
|
38
38
|
include Comparable
|
|
39
39
|
|
|
@@ -97,9 +97,11 @@ module MIME
|
|
|
97
97
|
elsif platform? != other.platform?
|
|
98
98
|
platform? ? 1 : -1 # generic < platform
|
|
99
99
|
elsif complete? != other.complete?
|
|
100
|
-
|
|
100
|
+
complete? ? -1 : 1 # complete < incomplete
|
|
101
101
|
elsif obsolete? != other.obsolete?
|
|
102
|
-
|
|
102
|
+
obsolete? ? 1 : -1 # current < obsolete
|
|
103
|
+
else
|
|
104
|
+
0
|
|
103
105
|
end
|
|
104
106
|
|
|
105
107
|
if pc.zero? and obsolete? and (use_instead != other.use_instead)
|
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:
|
|
4
|
+
version: 1.25.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin Ziegler
|
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
|
36
36
|
SlF1Y3hPVG1URjFOYkxGcGlSd1FVWjF6b1piTmcyZTdtU2hjL2VleG5WTFdL
|
|
37
37
|
Rkt4Um9QNgpLUGozV29EK3NwQjhmQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
|
38
38
|
LS0tLS0K
|
|
39
|
-
date: 2013-
|
|
39
|
+
date: 2013-11-24 00:00:00.000000000 Z
|
|
40
40
|
dependencies:
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rubyforge
|
|
@@ -195,20 +195,24 @@ dependencies:
|
|
|
195
195
|
description: ! 'This library allows for the identification of a file''s likely MIME
|
|
196
196
|
content
|
|
197
197
|
|
|
198
|
-
type. This is release 1.25,
|
|
198
|
+
type. This is release 1.25.1, fixing an issue with priority comparison for
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
mime-types 1.x. The current release is 2.0, which only supports Ruby 1.9 or
|
|
201
201
|
|
|
202
|
+
later.
|
|
202
203
|
|
|
203
|
-
The caching and lazy loading features were initially implemented by Greg
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
Release 1.25.1 contains all features of 1.25, including the experimental
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
caching and lazy loading functionality. The caching and lazy loading features
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
were initially implemented by Greg Brockman (gdb). As these features are
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
experimental, they are disabled by default and must be enabled through the use
|
|
212
|
+
|
|
213
|
+
of environment variables. The cache is invalidated on a per-version basis; the
|
|
214
|
+
|
|
215
|
+
cache for version 1.25 will not be reused for any later version.
|
|
212
216
|
|
|
213
217
|
|
|
214
218
|
To use lazy loading, set the environment variable +RUBY_MIME_TYPES_LAZY_LOAD+
|
|
@@ -265,9 +269,7 @@ description: ! 'This library allows for the identification of a file''s likely M
|
|
|
265
269
|
|
|
266
270
|
MIME::Types for Ruby was originally based on MIME::Types for Perl by Mark
|
|
267
271
|
|
|
268
|
-
Overmeer, copyright 2001 - 2009.
|
|
269
|
-
|
|
270
|
-
MIME::Type list has changed and the synchronization will no longer happen.
|
|
272
|
+
Overmeer, copyright 2001 - 2009.
|
|
271
273
|
|
|
272
274
|
|
|
273
275
|
MIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It
|
metadata.gz.sig
CHANGED
|
Binary file
|