mime-types 1.18 → 1.19
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.
- data/History.rdoc +40 -20
- data/Manifest.txt +0 -10
- data/README.rdoc +4 -4
- data/lib/mime/types.rb +4 -4
- data/lib/mime/types/application +3 -3
- data/lib/mime/types/application.nonstandard +1 -0
- data/lib/mime/types/audio.nonstandard +1 -1
- data/lib/mime/types/image.nonstandard +2 -0
- data/lib/mime/types/video +4 -4
- data/lib/mime/types/video.nonstandard +5 -0
- data/mime-types.gemspec +7 -7
- data/test/test_mime_type.rb +6 -7
- metadata +9 -27
- data/.gitignore +0 -8
- data/.hoerc +0 -10
- data/type-lists/application.txt +0 -951
- data/type-lists/audio.txt +0 -132
- data/type-lists/image.txt +0 -43
- data/type-lists/message.txt +0 -20
- data/type-lists/model.txt +0 -15
- data/type-lists/multipart.txt +0 -14
- data/type-lists/text.txt +0 -57
- data/type-lists/video.txt +0 -67
data/History.rdoc
CHANGED
|
@@ -1,40 +1,60 @@
|
|
|
1
|
-
==
|
|
1
|
+
== 1.19 / 2012-06-20
|
|
2
2
|
* New MIME Types:
|
|
3
|
-
*
|
|
3
|
+
* XCF Gnome Images (image/x-xcf, image/x-compressed-xcf; .xcf). https://github.com/halostatue/mime-types/issue/17
|
|
4
|
+
* Types reported in https://github.com/halostatue/mime-types/issues/12:
|
|
5
|
+
* DV (video/x-dv; .dv)
|
|
6
|
+
* IVF (video/x-ivf; .ivf)
|
|
7
|
+
* Matroska (video/x-matroska; .mkv)
|
|
8
|
+
* Motion JPEG (video/x-motion-jpeg; .mjpg)
|
|
9
|
+
* RealMedia (official; application/vnd.rn-realmedia; .rm)
|
|
10
|
+
* New extensions:
|
|
11
|
+
* dcm (application/dicom); https://github.com/halostatue/mime-types/issue/16.
|
|
12
|
+
* Types reported in https://github.com/halostatue/mime-types/issues/12:
|
|
13
|
+
* 3g2, 3gpp2 (video/3gpp2)
|
|
14
|
+
* mpeg (video/mpeg)
|
|
15
|
+
* mxf (application/mxf)
|
|
16
|
+
* ts (video/MP2T)
|
|
17
|
+
* ogg (video/ogg)
|
|
18
|
+
* Fixed MIME Types:
|
|
19
|
+
* Adobe AIR application installer packages was missing a hyphen. https://github.com/halostatue/mime-types/issue/13
|
|
20
|
+
* Types reported in https://github.com/halostatue/mime-types/issues/12:
|
|
21
|
+
* audio/x-pn-realaudio extension is .ra, not .rm.
|
|
22
|
+
* Resolved https://github.com/halostatue/mime-types/issues/8. Apparently some people run the tests on Linux. Imagine that.
|
|
23
|
+
|
|
24
|
+
== 1.18 / 2012-03-20
|
|
25
|
+
* New MIME Types:
|
|
26
|
+
* Types reported in https://github.com/halostatue/mime-types/issues/6:
|
|
4
27
|
* CoffeeScript (text/x-coffeescript; .coffee; 8bit).
|
|
5
28
|
* AIR (application/vnd.adobe.air-applicationinstaller-package+zip, .air; base64).
|
|
6
29
|
* WOFF (application/font-woff; .woff; base64).
|
|
7
30
|
* TrueType (application/x-font-truetype; .ttf; base64).
|
|
8
31
|
* OpenType (application/x-font-opentype; .otf; base64).
|
|
9
|
-
* WebM (audio/webm, video/webm; .webm).
|
|
32
|
+
* WebM (audio/webm, video/webm; .webm). https://github.com/halostatue/mime-types/issues/11.
|
|
10
33
|
* New extensions:
|
|
11
34
|
* f4v/f4p (video/mp4, used by Adobe); f4a/fb4 (audio/mp4, used by Adobe).
|
|
12
35
|
* Bug Fixes:
|
|
13
36
|
* It was pointed out that Licence.txt was incorrectly named. Fixed by renaming to Licence.rdoc (from Issue/Pull Request #8, https://github.com/halostatue/mime-types/issues/8).
|
|
14
|
-
* It was pointed out that a plan to have the test output generated automatically never went through.
|
|
37
|
+
* It was pointed out that a plan to have the test output generated automatically never went through. https://github.com/halostatue/mime-types/issues/10
|
|
15
38
|
|
|
16
|
-
==
|
|
39
|
+
== 1.17.2 / 2011-10-25
|
|
17
40
|
* Bug Fixes:
|
|
18
41
|
* Fixed an issue with Ruby 1.9 and file encoding.
|
|
19
42
|
|
|
20
|
-
==
|
|
43
|
+
== 1.17.1 / 2011-10-23
|
|
21
44
|
* Minor Enhancements:
|
|
22
45
|
* Implemented modern 'hoe' semantics.
|
|
23
46
|
* Switched to minitest instead of test/unit.
|
|
24
47
|
* Converted documentation from .txt to .rdoc.
|
|
25
|
-
* Removed setup.rb.
|
|
26
|
-
|
|
27
|
-
* Should no longer complain about missing RubyGems keys (Issue #2:
|
|
28
|
-
https://github.com/halostatue/mime-types/issues/2).
|
|
48
|
+
* Removed setup.rb. https://github.com/halostatue/mime-types/issues/3
|
|
49
|
+
* Should no longer complain about missing RubyGems keys https://github.com/halostatue/mime-types/issues/2
|
|
29
50
|
* Added .mp4 and .mpg4 as recognized extensions for
|
|
30
|
-
{application,audio,video}/mp4 per RFC4337.
|
|
31
|
-
https://github.com/halostatue/mime-types/issues/1).
|
|
51
|
+
{application,audio,video}/mp4 per RFC4337. https://github.com/halostatue/mime-types/issues/1
|
|
32
52
|
* Added audio/x-aac and .aac per RubyForge issue #28054
|
|
33
53
|
(http://rubyforge.org/tracker/index.php?func=detail&aid=28054&group_id=293&atid=1194).
|
|
34
54
|
* Made it much easier to update MIME types from this point forward.
|
|
35
55
|
* Updated MIME types from IANA.
|
|
36
56
|
|
|
37
|
-
==
|
|
57
|
+
== 1.16
|
|
38
58
|
* Made compatible with Ruby 1.8.6, 1.8.7, and 1.9.1.
|
|
39
59
|
* Switched to the 'hoe' gem system and added a lot of build-time tools.
|
|
40
60
|
* Updated the MIME types to the list based on the values in the Perl library
|
|
@@ -44,7 +64,7 @@
|
|
|
44
64
|
starting soon on MIME::Types 2.x with richer data querying mechanisms
|
|
45
65
|
and support for external data sources.
|
|
46
66
|
|
|
47
|
-
==
|
|
67
|
+
== 1.15
|
|
48
68
|
* Removed lib/mime/type.rb to form a single MIME::Types database source. It
|
|
49
69
|
is unlikely that one will ever need MIME::Type without MIME::Types.
|
|
50
70
|
* Re-synchronized the MIME type list with the sources, focusing primarily on
|
|
@@ -58,7 +78,7 @@
|
|
|
58
78
|
priority as of this release. The data format and information has changed.
|
|
59
79
|
* Removed MIME::Types.by_suffix and MIME::Types.by_mediatype.
|
|
60
80
|
|
|
61
|
-
==
|
|
81
|
+
== 1.13.1
|
|
62
82
|
* Fixed a problem with the installer running tests. This now works.
|
|
63
83
|
* Improved the implementation of MIME::Type.signature?
|
|
64
84
|
* Moved code around to use the class << self idiom instead of always
|
|
@@ -72,7 +92,7 @@
|
|
|
72
92
|
version number to be updated separately from the Perl version while keeping
|
|
73
93
|
the MIME Type list version in sync.
|
|
74
94
|
|
|
75
|
-
==
|
|
95
|
+
== 1.13
|
|
76
96
|
! WARNING: This version changes the API of MIME::Types !
|
|
77
97
|
! WARNING: This version is compatible with Ruby 1.8 and higher ONLY !
|
|
78
98
|
* Removed dependency on InstallPackage; offering 1.13 as either .tar.gz or
|
|
@@ -111,22 +131,22 @@
|
|
|
111
131
|
exchange between the two projects.
|
|
112
132
|
* Added additional unit tests from Mark Overmeer's 1.12 version.
|
|
113
133
|
|
|
114
|
-
==
|
|
134
|
+
== 1.07
|
|
115
135
|
* Changed version numbering to match Perl MIME::Types 1.07.
|
|
116
136
|
* Re-synchronized with Mark Overmeer's list in Perl PMIME::Types 1.07.
|
|
117
137
|
* [NN Poster] updated the attributes for the PGP types.
|
|
118
138
|
|
|
119
|
-
==
|
|
139
|
+
== 1.005
|
|
120
140
|
* Changed to Phil Thomson's InstallPackage.
|
|
121
141
|
* Added several types from Perl MIME::Types 1.005.
|
|
122
142
|
* Cleaned up data format; some data formats will show up with proper data now.
|
|
123
143
|
|
|
124
|
-
==
|
|
144
|
+
== 1.004
|
|
125
145
|
* Updated to match Perl MIME::Types 1.004, links credited to Dan Puro. Adds
|
|
126
146
|
new reference list to http://www.indiana.edu/cgi-bin-local/mimetypes
|
|
127
147
|
* Removed InvalidType and replaced with TypeError.
|
|
128
148
|
* Changed instances of #type to #class.
|
|
129
149
|
* Cleaned up how simplified versions are created.
|
|
130
150
|
|
|
131
|
-
==
|
|
151
|
+
== 1.003
|
|
132
152
|
* Initial release based on Perl MIME::Types 1.003.
|
data/Manifest.txt
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
.hoerc
|
|
3
1
|
History.rdoc
|
|
4
2
|
Licence.rdoc
|
|
5
3
|
Manifest.txt
|
|
@@ -33,11 +31,3 @@ lib/mime/types/video.obsolete
|
|
|
33
31
|
mime-types.gemspec
|
|
34
32
|
test/test_mime_type.rb
|
|
35
33
|
test/test_mime_types.rb
|
|
36
|
-
type-lists/application.txt
|
|
37
|
-
type-lists/audio.txt
|
|
38
|
-
type-lists/image.txt
|
|
39
|
-
type-lists/message.txt
|
|
40
|
-
type-lists/model.txt
|
|
41
|
-
type-lists/multipart.txt
|
|
42
|
-
type-lists/text.txt
|
|
43
|
-
type-lists/video.txt
|
data/README.rdoc
CHANGED
|
@@ -8,11 +8,11 @@ rdoc :: http://mime-types.rubyforge.org/
|
|
|
8
8
|
== Description
|
|
9
9
|
|
|
10
10
|
This library allows for the identification of a file's likely MIME content
|
|
11
|
-
type. This is release 1.
|
|
12
|
-
on a file's filename extensions.
|
|
11
|
+
type. This is release 1.19 with new MIME types. The identification of MIME
|
|
12
|
+
content type is based on a file's filename extensions.
|
|
13
13
|
|
|
14
|
-
MIME::Types for Ruby originally based on and synchronized with MIME::Types
|
|
15
|
-
Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
|
|
14
|
+
MIME::Types for Ruby was originally based on and synchronized with MIME::Types
|
|
15
|
+
for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
|
|
16
16
|
format for the MIME::Type list has changed and the synchronization will no
|
|
17
17
|
longer happen.
|
|
18
18
|
|
data/lib/mime/types.rb
CHANGED
|
@@ -25,7 +25,7 @@ module MIME
|
|
|
25
25
|
#
|
|
26
26
|
class Type
|
|
27
27
|
# The released version of Ruby MIME::Types
|
|
28
|
-
VERSION = '1.
|
|
28
|
+
VERSION = '1.19'
|
|
29
29
|
|
|
30
30
|
include Comparable
|
|
31
31
|
|
|
@@ -565,12 +565,12 @@ module MIME
|
|
|
565
565
|
# This is originally based on Perl MIME::Types by Mark Overmeer.
|
|
566
566
|
#
|
|
567
567
|
# = Author
|
|
568
|
-
# Copyright:: Copyright
|
|
568
|
+
# Copyright:: Copyright 2002–2012 by Austin Ziegler
|
|
569
569
|
# <austin@rubyforge.org>
|
|
570
|
-
# Version:: 1.
|
|
570
|
+
# Version:: 1.19
|
|
571
571
|
# Based On:: Perl
|
|
572
572
|
# MIME::Types[http://search.cpan.org/author/MARKOV/MIME-Types-1.27/MIME/Types.pm],
|
|
573
|
-
# Copyright
|
|
573
|
+
# Copyright 2001–2009 by Mark Overmeer
|
|
574
574
|
# <mimetypes@overmeer.net>.
|
|
575
575
|
# Licence:: Ruby's, Perl Artistic, or GPL version 2 (or later)
|
|
576
576
|
# See Also:: http://www.iana.org/assignments/media-types/
|
data/lib/mime/types/application
CHANGED
|
@@ -37,7 +37,7 @@ application/davmount+xml 'IANA,RFC4709
|
|
|
37
37
|
application/dca-rft 'IANA,[Campbell]
|
|
38
38
|
application/dec-dx 'IANA,[Campbell]
|
|
39
39
|
application/dialog-info+xml 'IANA,RFC4235
|
|
40
|
-
application/dicom 'IANA,RFC3240
|
|
40
|
+
application/dicom @dcm 'IANA,RFC3240
|
|
41
41
|
application/dns 'IANA,RFC4027
|
|
42
42
|
application/dskpp+xml 'IANA,RFC6063
|
|
43
43
|
application/dssc+der 'IANA,RFC5698
|
|
@@ -116,7 +116,7 @@ application/mpeg4-iod-xmt 'IANA,RFC4337
|
|
|
116
116
|
application/msc-ivr+xml 'IANA,RFC6231
|
|
117
117
|
application/msc-mixer+xml 'IANA,{RFC-ietf-mediactrl-mixer-control-package-14=http://tools.ietf.org/html/draft-ietf-mediactrl-mixer-control-package}
|
|
118
118
|
application/msword @doc,dot,wrd :base64 'IANA,[Lindner]
|
|
119
|
-
application/mxf 'IANA,RFC4539
|
|
119
|
+
application/mxf @mxf 'IANA,RFC4539
|
|
120
120
|
application/nasdata 'IANA,RFC4707
|
|
121
121
|
application/news-checkgroups 'IANA,RFC5537
|
|
122
122
|
application/news-groupinfo 'IANA,RFC5537
|
|
@@ -248,7 +248,7 @@ application/vnd.accpac.simply.aso 'IANA,[Leow]
|
|
|
248
248
|
application/vnd.accpac.simply.imp 'IANA,[Leow]
|
|
249
249
|
application/vnd.acucobol 'IANA,[Lubin]
|
|
250
250
|
application/vnd.acucorp @atc,acutc :7bit 'IANA,[Lubin]
|
|
251
|
-
application/vnd.adobe.air-
|
|
251
|
+
application/vnd.adobe.air-application-installer-package+zip @air :base64
|
|
252
252
|
application/vnd.adobe.fxp 'IANA,[Brambley],[Heintz]
|
|
253
253
|
application/vnd.adobe.partial-upload 'IANA,[Otala]
|
|
254
254
|
application/vnd.adobe.xdp+xml 'IANA,[Brinkman]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
*image/pjpeg :base64 =Fixes a bug with IE6 and progressive JPEGs
|
|
2
2
|
image/x-bmp @bmp
|
|
3
3
|
image/x-cmu-raster @ras
|
|
4
|
+
image/x-compressed-xcf @xcfbz2,xcfgz =see-also:image/x-xcf
|
|
4
5
|
image/x-paintshoppro @psp,pspimage :base64
|
|
5
6
|
image/x-pict
|
|
6
7
|
image/x-portable-anymap @pnm :base64
|
|
@@ -13,5 +14,6 @@ image/x-vnd.dgn @dgn
|
|
|
13
14
|
image/x-win-bmp
|
|
14
15
|
image/x-xbitmap @xbm :7bit
|
|
15
16
|
image/x-xbm @xbm :7bit
|
|
17
|
+
image/x-xcf @xcf '{XCF=http://git.gnome.org/browse/gimp/tree/devel-docs/xcf.txt}
|
|
16
18
|
image/x-xpixmap @xpm :8bit
|
|
17
19
|
image/x-xwindowdump @xwd :base64
|
data/lib/mime/types/video
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
video/1d-interleaved-parityfec 'IANA,RFC6015
|
|
2
2
|
video/3gpp @3gp,3gpp 'IANA,RFC3839,RFC6381
|
|
3
3
|
video/3gpp-tt 'IANA,RFC4396
|
|
4
|
-
video/3gpp2 'IANA,RFC4393,RFC6381
|
|
4
|
+
video/3gpp2 @3g2,3gpp2 'IANA,RFC4393,RFC6381
|
|
5
5
|
video/BMPEG 'IANA,RFC3555
|
|
6
6
|
video/BT656 'IANA,RFC3555
|
|
7
7
|
video/CelB 'IANA,RFC3555
|
|
@@ -19,14 +19,14 @@ video/jpeg2000 'IANA,RFC5371,RFC5372
|
|
|
19
19
|
video/MJ2 @mj2,mjp2 'IANA,RFC3745
|
|
20
20
|
video/MP1S 'IANA,RFC3555
|
|
21
21
|
video/MP2P 'IANA,RFC3555
|
|
22
|
-
video/MP2T 'IANA,RFC3555
|
|
22
|
+
video/MP2T @ts 'IANA,RFC3555
|
|
23
23
|
video/mp4 @mp4,mpg4,f4v,f4p 'IANA,RFC4337,RFC6381,{Adobe=http://www.kaourantin.net/2007/10/new-file-extensions-and-mime-types.html}
|
|
24
24
|
video/MP4V-ES 'IANA,RFC6416
|
|
25
|
-
video/mpeg @mp2,mpe,
|
|
25
|
+
video/mpeg @mp2,mp3g,mpe,mpeg,mpg :base64 'IANA,RFC2045,RFC2046
|
|
26
26
|
video/mpeg4-generic 'IANA,RFC3640
|
|
27
27
|
video/MPV 'IANA,RFC3555
|
|
28
28
|
video/nv 'IANA,RFC4856
|
|
29
|
-
video/ogg @ogv 'IANA,RFC5334
|
|
29
|
+
video/ogg @ogg,ogv 'IANA,RFC5334
|
|
30
30
|
video/parityfec 'IANA,RFC5109
|
|
31
31
|
video/pointer 'IANA,RFC2862
|
|
32
32
|
video/quicktime @qt,mov :base64 'IANA,[Lindner]
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
video/x-dl @dl :base64
|
|
2
|
+
video/x-dv @dv
|
|
2
3
|
video/x-fli @fli :base64
|
|
3
4
|
video/x-flv @flv :base64
|
|
4
5
|
video/x-gl @gl :base64
|
|
6
|
+
video/x-ivf @ivf
|
|
7
|
+
video/x-matroska @mkv
|
|
8
|
+
video/x-motion-jpeg @mjpg
|
|
5
9
|
video/x-ms-asf @asf,asx
|
|
6
10
|
video/x-ms-wm @wm
|
|
7
11
|
video/x-ms-wmv @wmv
|
|
@@ -9,3 +13,4 @@ video/x-ms-wmx @wmx
|
|
|
9
13
|
video/x-ms-wvx @wvx
|
|
10
14
|
video/x-msvideo @avi :base64
|
|
11
15
|
video/x-sgi-movie @movie :base64
|
|
16
|
+
|
data/mime-types.gemspec
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "mime-types"
|
|
5
|
-
s.version = "1.
|
|
5
|
+
s.version = "1.19.20120620224748"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Austin Ziegler"]
|
|
9
|
-
s.date = "2012-
|
|
10
|
-
s.description = "This library allows for the identification of a file's likely MIME content\ntype. This is release 1.
|
|
9
|
+
s.date = "2012-06-21"
|
|
10
|
+
s.description = "This library allows for the identification of a file's likely MIME content\ntype. This is release 1.19 with new MIME types. The identification of MIME\ncontent type is based on a file's filename extensions.\n\nMIME::Types for Ruby was originally based on and synchronized with MIME::Types\nfor Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data\nformat for the MIME::Type list has changed and the synchronization will no\nlonger happen.\n\n:include: Licence.rdoc"
|
|
11
11
|
s.email = ["austin@rubyforge.org"]
|
|
12
12
|
s.extra_rdoc_files = ["History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "type-lists/application.txt", "type-lists/audio.txt", "type-lists/image.txt", "type-lists/message.txt", "type-lists/model.txt", "type-lists/multipart.txt", "type-lists/text.txt", "type-lists/video.txt", "History.rdoc", "Licence.rdoc", "README.rdoc"]
|
|
13
13
|
s.files = [".gitignore", ".hoerc", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "lib/mime/types.rb", "lib/mime/types/application", "lib/mime/types/application.mac", "lib/mime/types/application.nonstandard", "lib/mime/types/application.obsolete", "lib/mime/types/audio", "lib/mime/types/audio.nonstandard", "lib/mime/types/audio.obsolete", "lib/mime/types/image", "lib/mime/types/image.nonstandard", "lib/mime/types/image.obsolete", "lib/mime/types/message", "lib/mime/types/message.obsolete", "lib/mime/types/model", "lib/mime/types/multipart", "lib/mime/types/multipart.nonstandard", "lib/mime/types/multipart.obsolete", "lib/mime/types/other.nonstandard", "lib/mime/types/text", "lib/mime/types/text.nonstandard", "lib/mime/types/text.obsolete", "lib/mime/types/text.vms", "lib/mime/types/video", "lib/mime/types/video.nonstandard", "lib/mime/types/video.obsolete", "mime-types.gemspec", "test/test_mime_type.rb", "test/test_mime_types.rb", "type-lists/application.txt", "type-lists/audio.txt", "type-lists/image.txt", "type-lists/message.txt", "type-lists/model.txt", "type-lists/multipart.txt", "type-lists/text.txt", "type-lists/video.txt", ".gemtest"]
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
s.rdoc_options = ["--main", "README.rdoc"]
|
|
16
16
|
s.require_paths = ["lib"]
|
|
17
17
|
s.rubyforge_project = "mime-types"
|
|
18
|
-
s.rubygems_version = "1.8.
|
|
18
|
+
s.rubygems_version = "1.8.21"
|
|
19
19
|
s.summary = "This library allows for the identification of a file's likely MIME content type"
|
|
20
20
|
s.test_files = ["test/test_mime_type.rb", "test/test_mime_types.rb"]
|
|
21
21
|
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
|
24
24
|
|
|
25
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
26
26
|
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
|
27
|
-
s.add_development_dependency(%q<minitest>, ["~>
|
|
27
|
+
s.add_development_dependency(%q<minitest>, ["~> 3.1"])
|
|
28
28
|
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
|
29
29
|
s.add_development_dependency(%q<nokogiri>, ["~> 1.5"])
|
|
30
30
|
s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
|
34
34
|
s.add_development_dependency(%q<hoe>, ["~> 3.0"])
|
|
35
35
|
else
|
|
36
36
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
|
37
|
-
s.add_dependency(%q<minitest>, ["~>
|
|
37
|
+
s.add_dependency(%q<minitest>, ["~> 3.1"])
|
|
38
38
|
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
|
39
39
|
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
|
40
40
|
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
|
45
45
|
end
|
|
46
46
|
else
|
|
47
47
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
|
48
|
-
s.add_dependency(%q<minitest>, ["~>
|
|
48
|
+
s.add_dependency(%q<minitest>, ["~> 3.1"])
|
|
49
49
|
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
|
50
50
|
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
|
51
51
|
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
data/test/test_mime_type.rb
CHANGED
|
@@ -2,11 +2,10 @@ $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
|
|
|
2
2
|
|
|
3
3
|
require 'mime/types'
|
|
4
4
|
require 'minitest/autorun'
|
|
5
|
-
#require 'test/unit' unless defined? $ZENTEST and $ZENTEST
|
|
6
5
|
|
|
7
6
|
class TestMIME_Type < MiniTest::Unit::TestCase
|
|
8
7
|
def yaml_mime_type_from_array
|
|
9
|
-
MIME::Type.from_array('text/x-yaml', %w(yaml yml), '8bit', '
|
|
8
|
+
MIME::Type.from_array('text/x-yaml', %w(yaml yml), '8bit', 'd9d172f608')
|
|
10
9
|
end
|
|
11
10
|
|
|
12
11
|
def setup
|
|
@@ -22,7 +21,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
|
|
|
22
21
|
def test_class_from_hash
|
|
23
22
|
yaml = MIME::Type.from_hash('Content-Type' => 'text/x-yaml',
|
|
24
23
|
'Content-Transfer-Encoding' => '8bit',
|
|
25
|
-
'System' => '
|
|
24
|
+
'System' => 'd9d172f608',
|
|
26
25
|
'Extensions' => %w(yaml yml))
|
|
27
26
|
assert_instance_of(MIME::Type, yaml)
|
|
28
27
|
assert_equal('text/yaml', yaml.simplified)
|
|
@@ -247,7 +246,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
|
|
|
247
246
|
|
|
248
247
|
def test_system_equals
|
|
249
248
|
yaml = yaml_mime_type_from_array
|
|
250
|
-
assert_equal(yaml.system, %r{
|
|
249
|
+
assert_equal(yaml.system, %r{d9d172f608})
|
|
251
250
|
yaml.system = /win32/
|
|
252
251
|
assert_equal(yaml.system, %r{win32})
|
|
253
252
|
yaml.system = nil
|
|
@@ -264,7 +263,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
|
|
|
264
263
|
def test_to_a
|
|
265
264
|
yaml = yaml_mime_type_from_array
|
|
266
265
|
assert_equal(yaml.to_a, ['text/x-yaml', %w(yaml yml), '8bit',
|
|
267
|
-
/
|
|
266
|
+
/d9d172f608/, nil, nil, nil, false])
|
|
268
267
|
end
|
|
269
268
|
|
|
270
269
|
def test_to_hash
|
|
@@ -273,7 +272,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
|
|
|
273
272
|
{ 'Content-Type' => 'text/x-yaml',
|
|
274
273
|
'Content-Transfer-Encoding' => '8bit',
|
|
275
274
|
'Extensions' => %w(yaml yml),
|
|
276
|
-
'System' => /
|
|
275
|
+
'System' => /d9d172f608/,
|
|
277
276
|
'Registered' => false,
|
|
278
277
|
'URL' => nil,
|
|
279
278
|
'Obsolete' => nil,
|
|
@@ -289,7 +288,7 @@ class TestMIME_Type < MiniTest::Unit::TestCase
|
|
|
289
288
|
yaml = MIME::Type.new('text/x-yaml') do |y|
|
|
290
289
|
y.extensions = %w(yaml yml)
|
|
291
290
|
y.encoding = '8bit'
|
|
292
|
-
y.system = '
|
|
291
|
+
y.system = 'd9d172f608'
|
|
293
292
|
end
|
|
294
293
|
assert_instance_of(MIME::Type, yaml)
|
|
295
294
|
assert_raises(MIME::InvalidContentType) { MIME::Type.new('apps') }
|
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: '1.
|
|
4
|
+
version: '1.19'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-06-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rubyforge
|
|
@@ -34,7 +34,7 @@ dependencies:
|
|
|
34
34
|
requirements:
|
|
35
35
|
- - ~>
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: '
|
|
37
|
+
version: '3.1'
|
|
38
38
|
type: :development
|
|
39
39
|
prerelease: false
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -42,7 +42,7 @@ dependencies:
|
|
|
42
42
|
requirements:
|
|
43
43
|
- - ~>
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: '
|
|
45
|
+
version: '3.1'
|
|
46
46
|
- !ruby/object:Gem::Dependency
|
|
47
47
|
name: rdoc
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -158,14 +158,14 @@ dependencies:
|
|
|
158
158
|
description: ! 'This library allows for the identification of a file''s likely MIME
|
|
159
159
|
content
|
|
160
160
|
|
|
161
|
-
type. This is release 1.
|
|
161
|
+
type. This is release 1.19 with new MIME types. The identification of MIME
|
|
162
162
|
|
|
163
|
-
on a file''s filename extensions.
|
|
163
|
+
content type is based on a file''s filename extensions.
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
MIME::Types for Ruby originally based on and synchronized with MIME::Types
|
|
166
|
+
MIME::Types for Ruby was originally based on and synchronized with MIME::Types
|
|
167
167
|
|
|
168
|
-
Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
|
|
168
|
+
for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
|
|
169
169
|
|
|
170
170
|
format for the MIME::Type list has changed and the synchronization will no
|
|
171
171
|
|
|
@@ -182,17 +182,7 @@ extra_rdoc_files:
|
|
|
182
182
|
- Licence.rdoc
|
|
183
183
|
- Manifest.txt
|
|
184
184
|
- README.rdoc
|
|
185
|
-
- type-lists/application.txt
|
|
186
|
-
- type-lists/audio.txt
|
|
187
|
-
- type-lists/image.txt
|
|
188
|
-
- type-lists/message.txt
|
|
189
|
-
- type-lists/model.txt
|
|
190
|
-
- type-lists/multipart.txt
|
|
191
|
-
- type-lists/text.txt
|
|
192
|
-
- type-lists/video.txt
|
|
193
185
|
files:
|
|
194
|
-
- .gitignore
|
|
195
|
-
- .hoerc
|
|
196
186
|
- History.rdoc
|
|
197
187
|
- Licence.rdoc
|
|
198
188
|
- Manifest.txt
|
|
@@ -226,14 +216,6 @@ files:
|
|
|
226
216
|
- mime-types.gemspec
|
|
227
217
|
- test/test_mime_type.rb
|
|
228
218
|
- test/test_mime_types.rb
|
|
229
|
-
- type-lists/application.txt
|
|
230
|
-
- type-lists/audio.txt
|
|
231
|
-
- type-lists/image.txt
|
|
232
|
-
- type-lists/message.txt
|
|
233
|
-
- type-lists/model.txt
|
|
234
|
-
- type-lists/multipart.txt
|
|
235
|
-
- type-lists/text.txt
|
|
236
|
-
- type-lists/video.txt
|
|
237
219
|
- .gemtest
|
|
238
220
|
homepage: http://mime-types.rubyforge.org/
|
|
239
221
|
licenses: []
|
|
@@ -257,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
257
239
|
version: '0'
|
|
258
240
|
requirements: []
|
|
259
241
|
rubyforge_project: mime-types
|
|
260
|
-
rubygems_version: 1.8.
|
|
242
|
+
rubygems_version: 1.8.21
|
|
261
243
|
signing_key:
|
|
262
244
|
specification_version: 3
|
|
263
245
|
summary: This library allows for the identification of a file's likely MIME content
|