mime-types 1.23 → 1.24
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.travis.yml +7 -2
- data/Contributing.rdoc +2 -2
- data/Gemfile +3 -4
- data/History.rdoc +35 -0
- data/README.rdoc +31 -27
- data/Rakefile +0 -1
- data/lib/mime/types.rb +55 -59
- data/lib/mime/types/application +10 -2
- data/lib/mime/types/application.nonstandard +1 -0
- data/lib/mime/types/image +1 -1
- data/lib/mime/types/text.obsolete +1 -1
- data/lib/mime/types/video +2 -0
- metadata +15 -33
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
@@ -11,12 +11,17 @@ rvm:
|
|
11
11
|
- 2.0.0
|
12
12
|
- 1.9.3
|
13
13
|
- 1.9.2
|
14
|
-
- ruby-head
|
15
14
|
- 1.8.7
|
16
15
|
- jruby-19mode
|
17
|
-
- jruby-head
|
18
16
|
- jruby-18mode
|
19
17
|
- rbx-19mode
|
20
18
|
- rbx-18mode
|
21
19
|
- ree
|
20
|
+
- ruby-head
|
21
|
+
- jruby-head
|
22
|
+
matrix:
|
23
|
+
allow_failures:
|
24
|
+
- rvm:
|
25
|
+
- ruby-head
|
26
|
+
- jruby-head
|
22
27
|
script: rake travis
|
data/Contributing.rdoc
CHANGED
@@ -42,13 +42,13 @@ will do.
|
|
42
42
|
Here's the most direct way to get your work merged into the project:
|
43
43
|
|
44
44
|
* Fork the project.
|
45
|
-
* Clone down your fork (+git clone git://github.com/<username>/
|
45
|
+
* Clone down your fork (+git clone git://github.com/<username>/mime-types.git+).
|
46
46
|
* Create a topic branch to contain your change (+git checkout -b my\_awesome\_feature+).
|
47
47
|
* Hack away, add tests. Not necessarily in that order.
|
48
48
|
* Make sure everything still passes by running `rake`.
|
49
49
|
* If necessary, rebase your commits into logical chunks, without errors.
|
50
50
|
* Push the branch up (+git push origin my\_awesome\_feature+).
|
51
|
-
* Create a pull request against halostatue/
|
51
|
+
* Create a pull request against halostatue/mime-types and describe what your
|
52
52
|
change does and the why you think it should be merged.
|
53
53
|
|
54
54
|
=== Contributors
|
data/Gemfile
CHANGED
@@ -6,16 +6,15 @@ source "https://rubygems.org/"
|
|
6
6
|
|
7
7
|
|
8
8
|
gem "rubyforge", ">=2.0.4", :group => [:development, :test]
|
9
|
-
gem "minitest", "~>
|
9
|
+
gem "minitest", "~>5.0", :group => [:development, :test]
|
10
10
|
gem "rdoc", "~>4.0", :group => [:development, :test]
|
11
11
|
gem "hoe-bundler", "~>1.2", :group => [:development, :test]
|
12
12
|
gem "hoe-doofus", "~>1.0", :group => [:development, :test]
|
13
|
-
gem "hoe-
|
13
|
+
gem "hoe-gemspec2", "~>1.1", :group => [:development, :test]
|
14
14
|
gem "hoe-git", "~>1.5", :group => [:development, :test]
|
15
15
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
16
16
|
gem "hoe-travis", "~>1.2", :group => [:development, :test]
|
17
|
-
gem "nokogiri", "~>1.5", :group => [:development, :test]
|
18
17
|
gem "rake", "~>10.0", :group => [:development, :test]
|
19
|
-
gem "hoe", "~>3.
|
18
|
+
gem "hoe", "~>3.7", :group => [:development, :test]
|
20
19
|
|
21
20
|
# vim: syntax=ruby
|
data/History.rdoc
CHANGED
@@ -1,3 +1,38 @@
|
|
1
|
+
== 1.24 / 2013-08-14
|
2
|
+
|
3
|
+
* Code Climate:
|
4
|
+
* Working on improving the quality of the mime-types codebase through the use
|
5
|
+
of Code Climate. https://codeclimate.com/github/halostatue/mime-types
|
6
|
+
* Simplified MIME::Type.from_array to make more assumptions about assignment.
|
7
|
+
* Documentation:
|
8
|
+
* LeoYoung <mrleoyoung@gmail.com> pointed out that the README.rdoc contained
|
9
|
+
examples that could never possibly work because MIME::Types#[] returns (for
|
10
|
+
all the versions I have handy) an array, not a single type. I have updated
|
11
|
+
README.rdoc to reflect this.
|
12
|
+
* Removed Nokogiri as a declared development dependency. It is still required
|
13
|
+
if you're going to use the IANA parser functionality, but it is not necessary
|
14
|
+
for most development purposes. This has been removed to ensure that Travis CI
|
15
|
+
passes on Ruby 1.8.7.
|
16
|
+
* New MIME Types:
|
17
|
+
* 7zip (application/x-7z-compressed). Fixes a request by kodram.
|
18
|
+
https://github.com/halostatue/mime-types/issues/32
|
19
|
+
* application/x-www-form-urlencoded. Fixes a request by alexkwolfe.
|
20
|
+
https://github.com/halostatue/mime-types/issues/39
|
21
|
+
* Various new MIME types from IANA:
|
22
|
+
* application/mbms-schedule\+xml from 3GPP and Turcotte.
|
23
|
+
* application/provenance\+xml from W3C and Herman.
|
24
|
+
* application/session-info from 3GPP and Firmin.
|
25
|
+
* application/urc-grpsheet\+xml, application/urc-targetdesc\+xml,
|
26
|
+
application/uisocketdesc\+xml from Zimmermann.
|
27
|
+
* application/api\+json from Klabnik.
|
28
|
+
* application/vnd.etsi.pstn\+xml from Han and Belling.
|
29
|
+
* application/vnd.fujixerox.docuworks.container from Tashiro.
|
30
|
+
* application/vnd.windows.devicepairing from Dandawate.
|
31
|
+
* video/vnd.radgamettools.bink and video/vnd.radgamettools.smacker from
|
32
|
+
Andersson.
|
33
|
+
* Updated MIME Types:
|
34
|
+
* RFC 6960 was adopted (application/ocsp-request and application/ocsp-response).
|
35
|
+
|
1
36
|
== 1.23 / 2013-04-20
|
2
37
|
|
3
38
|
* New Feature:
|
data/README.rdoc
CHANGED
@@ -4,13 +4,14 @@ home :: http://mime-types.rubyforge.org/
|
|
4
4
|
code :: https://github.com/halostatue/mime-types/
|
5
5
|
bugs :: https://github.com/halostatue/mime-types/issues
|
6
6
|
rdoc :: http://mime-types.rubyforge.org/
|
7
|
+
code climate :: {<img src="https://codeclimate.com/github/halostatue/mime-types.png" />}[https://codeclimate.com/github/halostatue/mime-types]
|
8
|
+
continuous integration :: {<img src="https://travis-ci.org/halostatue/mime-types.png" />}[https://travis-ci.org/halostatue/mime-types]
|
7
9
|
|
8
10
|
== Description
|
9
11
|
|
10
12
|
This library allows for the identification of a file's likely MIME content
|
11
|
-
type. This is release 1.
|
12
|
-
|
13
|
-
identification of MIME content type is based on a file's filename extensions.
|
13
|
+
type. This is release 1.24, adding and updating a few MIME types and fixing
|
14
|
+
some issues with documentation.
|
14
15
|
|
15
16
|
MIME types are used in MIME-compliant communications, as in e-mail or HTTP
|
16
17
|
traffic, to indicate the type of content which is transmitted. MIME::Types
|
@@ -20,15 +21,15 @@ are many types defined by RFCs and vendors, so the list is long but not
|
|
20
21
|
complete; don't hesitate to ask to add additional information. This library
|
21
22
|
follows the IANA collection of MIME types (see below for reference).
|
22
23
|
|
23
|
-
MIME::Types for Ruby was originally based on
|
24
|
-
|
25
|
-
|
26
|
-
longer happen.
|
24
|
+
MIME::Types for Ruby was originally based on MIME::Types for Perl by Mark
|
25
|
+
Overmeer, copyright 2001 - 2009. As of version 1.15, the data format for the
|
26
|
+
MIME::Type list has changed and the synchronization will no longer happen.
|
27
27
|
|
28
28
|
MIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It
|
29
|
-
|
29
|
+
tracks the {IANA registry}[http://www.iana.org/assignments/media-types/]
|
30
30
|
({ftp}[ftp://ftp.iana.org/assignments/media-types]) with some unofficial types
|
31
|
-
added from the
|
31
|
+
added from the {LTSW collection}[http://www.ltsw.se/knbase/internet/mime.htp]
|
32
|
+
and added by the users of MIME::Types.
|
32
33
|
|
33
34
|
== Synopsis
|
34
35
|
|
@@ -39,24 +40,27 @@ files). A MIME::Type stores the known information about one MIME type.
|
|
39
40
|
require 'mime/types'
|
40
41
|
|
41
42
|
plaintext = MIME::Types['text/plain']
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
puts
|
46
|
-
|
47
|
-
puts
|
48
|
-
|
49
|
-
puts
|
50
|
-
puts
|
51
|
-
puts
|
52
|
-
puts
|
53
|
-
puts
|
54
|
-
|
55
|
-
puts MIME::
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
43
|
+
# returns [text/plain, text/plain]
|
44
|
+
text = plaintext.first
|
45
|
+
puts text.media_type # => 'text'
|
46
|
+
puts text.sub_type # => 'plain'
|
47
|
+
|
48
|
+
puts text.extensions.join(" ") # => 'txt asc c cc h hh cpp hpp dat hlp'
|
49
|
+
|
50
|
+
puts text.encoding # => quoted-printable
|
51
|
+
puts text.binary? # => false
|
52
|
+
puts text.ascii? # => true
|
53
|
+
puts text.obsolete? # => false
|
54
|
+
puts text.registered? # => true
|
55
|
+
puts text == 'text/plain' # => true
|
56
|
+
puts MIME::Type.simplified('x-appl/x-zip')
|
57
|
+
# => 'appl/zip'
|
58
|
+
|
59
|
+
puts MIME::Types.any? { |type|
|
60
|
+
type.content_type == 'text/plain'
|
61
|
+
} # => true
|
62
|
+
puts MIME::Types.all?(&:registered?)
|
63
|
+
# => false
|
60
64
|
|
61
65
|
:include: Contributing.rdoc
|
62
66
|
|
data/Rakefile
CHANGED
@@ -30,7 +30,6 @@ spec = Hoe.spec 'mime-types' do
|
|
30
30
|
self.extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
31
31
|
self.extra_dev_deps << ['hoe-travis', '~> 1.2']
|
32
32
|
self.extra_dev_deps << ['minitest', '~> 4.5']
|
33
|
-
self.extra_dev_deps << ['nokogiri', '~> 1.5']
|
34
33
|
self.extra_dev_deps << ['rake', '~> 10.0']
|
35
34
|
end
|
36
35
|
|
data/lib/mime/types.rb
CHANGED
@@ -11,21 +11,29 @@ module MIME
|
|
11
11
|
# == Usage
|
12
12
|
# require 'mime/types'
|
13
13
|
#
|
14
|
-
# plaintext = MIME::Types['text/plain']
|
15
|
-
#
|
16
|
-
#
|
14
|
+
# plaintext = MIME::Types['text/plain'].first
|
15
|
+
# # returns [text/plain, text/plain]
|
16
|
+
# text = plaintext.first
|
17
|
+
# print text.media_type # => 'text'
|
18
|
+
# print text.sub_type # => 'plain'
|
17
19
|
#
|
18
|
-
# puts
|
20
|
+
# puts text.extensions.join(" ") # => 'asc txt c cc h hh cpp'
|
19
21
|
#
|
20
|
-
# puts
|
21
|
-
# puts
|
22
|
-
# puts
|
23
|
-
# puts
|
22
|
+
# puts text.encoding # => 8bit
|
23
|
+
# puts text.binary? # => false
|
24
|
+
# puts text.ascii? # => true
|
25
|
+
# puts text == 'text/plain' # => true
|
24
26
|
# puts MIME::Type.simplified('x-appl/x-zip') # => 'appl/zip'
|
25
27
|
#
|
28
|
+
# puts MIME::Types.any? { |type|
|
29
|
+
# type.content_type == 'text/plain'
|
30
|
+
# } # => true
|
31
|
+
# puts MIME::Types.all?(&:registered?)
|
32
|
+
# # => false
|
33
|
+
#
|
26
34
|
class Type
|
27
35
|
# The released version of Ruby MIME::Types
|
28
|
-
VERSION = '1.
|
36
|
+
VERSION = '1.24'
|
29
37
|
|
30
38
|
include Comparable
|
31
39
|
|
@@ -74,39 +82,35 @@ module MIME
|
|
74
82
|
#
|
75
83
|
# 1. self.simplified <=> other.simplified (ensures that we
|
76
84
|
# don't try to compare different types)
|
77
|
-
# 2. IANA-registered definitions
|
78
|
-
# 3. Generic definitions
|
79
|
-
# 3. Complete definitions
|
80
|
-
# 4. Current definitions
|
81
|
-
# 5. Obselete with use-instead references
|
85
|
+
# 2. IANA-registered definitions < other definitions.
|
86
|
+
# 3. Generic definitions < platform definitions.
|
87
|
+
# 3. Complete definitions < incomplete definitions.
|
88
|
+
# 4. Current definitions < obsolete definitions.
|
89
|
+
# 5. Obselete with use-instead references < obsolete without.
|
82
90
|
# 6. Obsolete use-instead definitions are compared.
|
83
91
|
def priority_compare(other)
|
84
92
|
pc = simplified <=> other.simplified
|
85
93
|
|
86
|
-
if pc.zero?
|
87
|
-
pc = registered? ?
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
pc = complete? ? -1 : 1
|
96
|
-
end
|
97
|
-
|
98
|
-
if pc.zero? and obsolete? != other.obsolete?
|
99
|
-
pc = obsolete? ? 1 : -1
|
100
|
-
end
|
101
|
-
|
102
|
-
if pc.zero? and obsolete? and (use_instead != other.use_instead)
|
103
|
-
pc = if use_instead.nil?
|
104
|
-
-1
|
105
|
-
elsif other.use_instead.nil?
|
106
|
-
1
|
107
|
-
else
|
108
|
-
use_instead <=> other.use_instead
|
94
|
+
if pc.zero?
|
95
|
+
pc = if registered? != other.registered?
|
96
|
+
registered? ? -1 : 1 # registered < unregistered
|
97
|
+
elsif platform? != other.platform?
|
98
|
+
platform? ? 1 : -1 # generic < platform
|
99
|
+
elsif complete? != other.complete?
|
100
|
+
pc = complete? ? -1 : 1 # complete < incomplete
|
101
|
+
elsif obsolete? != other.obsolete?
|
102
|
+
pc = obsolete? ? 1 : -1 # current < obsolete
|
109
103
|
end
|
104
|
+
|
105
|
+
if pc.zero? and obsolete? and (use_instead != other.use_instead)
|
106
|
+
pc = if use_instead.nil?
|
107
|
+
-1
|
108
|
+
elsif other.use_instead.nil?
|
109
|
+
1
|
110
|
+
else
|
111
|
+
use_instead <=> other.use_instead
|
112
|
+
end
|
113
|
+
end
|
110
114
|
end
|
111
115
|
|
112
116
|
pc
|
@@ -317,23 +321,17 @@ module MIME
|
|
317
321
|
# end
|
318
322
|
def from_array(*args) #:yields MIME::Type.new:
|
319
323
|
# Dereferences the array one level, if necessary.
|
320
|
-
args = args
|
321
|
-
|
322
|
-
|
323
|
-
m = MIME::Type.new(args[0]) do |t|
|
324
|
-
t.extensions = args[1] if args.size > 1
|
325
|
-
t.encoding = args[2] if args.size > 2
|
326
|
-
t.system = args[3] if args.size > 3
|
327
|
-
t.obsolete = args[4] if args.size > 4
|
328
|
-
t.docs = args[5] if args.size > 5
|
329
|
-
t.url = args[6] if args.size > 6
|
330
|
-
t.registered = args[7] if args.size > 7
|
331
|
-
end
|
332
|
-
yield m if block_given?
|
333
|
-
else
|
324
|
+
args = args.first if args.first.kind_of? Array
|
325
|
+
|
326
|
+
unless args.size.between?(1, 8)
|
334
327
|
raise ArgumentError, "Array provided must contain between one and eight elements."
|
335
328
|
end
|
336
|
-
|
329
|
+
|
330
|
+
MIME::Type.new(args.shift) do |t|
|
331
|
+
t.extensions, t.encoding, t.system, t.obsolete, t.docs, t.url,
|
332
|
+
t.registered = *args
|
333
|
+
yield t if block_given?
|
334
|
+
end
|
337
335
|
end
|
338
336
|
|
339
337
|
# Creates a MIME::Type from a hash. Keys are case-insensitive,
|
@@ -364,7 +362,7 @@ module MIME
|
|
364
362
|
type[k.to_s.tr('A-Z', 'a-z').gsub(/-/, '_').to_sym] = v
|
365
363
|
end
|
366
364
|
|
367
|
-
|
365
|
+
MIME::Type.new(type[:content_type]) do |t|
|
368
366
|
t.extensions = type[:extensions]
|
369
367
|
t.encoding = type[:content_transfer_encoding]
|
370
368
|
t.system = type[:system]
|
@@ -372,10 +370,9 @@ module MIME
|
|
372
370
|
t.docs = type[:docs]
|
373
371
|
t.url = type[:url]
|
374
372
|
t.registered = type[:registered]
|
375
|
-
end
|
376
373
|
|
377
|
-
|
378
|
-
|
374
|
+
yield t if block_given?
|
375
|
+
end
|
379
376
|
end
|
380
377
|
|
381
378
|
# Essentially a copy constructor.
|
@@ -390,7 +387,7 @@ module MIME
|
|
390
387
|
# t.encoding = plaintext.encoding.dup
|
391
388
|
# end
|
392
389
|
def from_mime_type(mime_type) #:yields the new MIME::Type:
|
393
|
-
|
390
|
+
MIME::Type.new(mime_type.content_type.dup) do |t|
|
394
391
|
t.extensions = mime_type.extensions.map { |e| e.dup }
|
395
392
|
t.url = mime_type.url && mime_type.url.map { |e| e.dup }
|
396
393
|
|
@@ -402,9 +399,8 @@ module MIME
|
|
402
399
|
|
403
400
|
mime_type.docs && t.docs = mime_type.docs.dup
|
404
401
|
|
402
|
+
yield t if block_given?
|
405
403
|
end
|
406
|
-
|
407
|
-
yield m if block_given?
|
408
404
|
end
|
409
405
|
end
|
410
406
|
|
data/lib/mime/types/application
CHANGED
@@ -105,6 +105,7 @@ application/mbms-protection-description+xml 'IANA,[3GPP]
|
|
105
105
|
application/mbms-reception-report+xml 'IANA,[3GPP]
|
106
106
|
application/mbms-register+xml 'IANA,[3GPP]
|
107
107
|
application/mbms-register-response+xml 'IANA,[3GPP]
|
108
|
+
application/mbms-schedule+xml 'IANA,[3GPP],[Turcotte]
|
108
109
|
application/mbms-user-service-description+xml 'IANA,[3GPP]
|
109
110
|
application/mbox 'IANA,RFC4155
|
110
111
|
application/media-policy-dataset+xml 'IANA,RFC6796
|
@@ -135,8 +136,8 @@ application/news-groupinfo 'IANA,RFC5537
|
|
135
136
|
application/news-transmission 'IANA,RFC5537
|
136
137
|
application/nlsml+xml 'IANA,RFC6787
|
137
138
|
application/nss 'IANA,[Hammer]
|
138
|
-
application/ocsp-request 'IANA,
|
139
|
-
application/ocsp-response 'IANA,
|
139
|
+
application/ocsp-request 'IANA,RFC6960
|
140
|
+
application/ocsp-response 'IANA,RFC6960
|
140
141
|
application/octet-stream @bin,dms,lha,lzh,exe,class,ani,pgp,so,dll,dylib :base64 'IANA,RFC2045,RFC2046
|
141
142
|
application/oda @oda 'IANA,RFC2045,RFC2046
|
142
143
|
application/oebps-package+xml 'IANA,RFC4839
|
@@ -163,6 +164,7 @@ application/pkixcmp @pki 'IANA,RFC2510
|
|
163
164
|
application/pls+xml 'IANA,RFC4267
|
164
165
|
application/poc-settings+xml 'IANA,RFC4354
|
165
166
|
application/postscript @ai,eps,ps :8bit 'IANA,RFC2045,RFC2046
|
167
|
+
application/provenance+xml 'IANA,[3GPP],[Firmin]
|
166
168
|
application/prs.alvestrand.titrax-sheet 'IANA,[Alvestrand]
|
167
169
|
application/prs.cww @cw,cww 'IANA,[Rungchavalnont]
|
168
170
|
application/prs.nprend @rnd,rct 'IANA,[Doggett]
|
@@ -240,6 +242,7 @@ application/timestamp-reply 'IANA,RFC3161
|
|
240
242
|
application/timestamped-data 'IANA,RFC5955
|
241
243
|
application/tve-trigger 'IANA,[Welsh]
|
242
244
|
application/ulpfec 'IANA,RFC5109
|
245
|
+
application/urc-grpsheet+xml 'IANA,[Zimmermann]
|
243
246
|
application/urc-ressheet+xml 'IANA,[Zimmermann]
|
244
247
|
application/vcard+xml 'IANA,RFC6351
|
245
248
|
application/vemmi 'IANA,RFC2122
|
@@ -271,6 +274,7 @@ application/vnd.amiga.ami @ami 'IANA,[Blumberg]
|
|
271
274
|
application/vnd.amundsen.maze+xml 'IANA,[Amundsen]
|
272
275
|
application/vnd.anser-web-certificate-issue-initiation 'IANA,[Mori]
|
273
276
|
application/vnd.antix.game-component 'IANA,[Shelton]
|
277
|
+
application/vnd.api+json 'IANA,[Klabnik]
|
274
278
|
application/vnd.apple.installer+xml 'IANA,[Bierman]
|
275
279
|
application/vnd.apple.mpegurl 'IANA,[Singer],[Pantos]
|
276
280
|
application/vnd.aristanetworks.swi 'IANA,[Fenner]
|
@@ -390,6 +394,7 @@ application/vnd.etsi.iptvueprofile+xml 'IANA,[Hu]
|
|
390
394
|
application/vnd.etsi.mcid+xml 'IANA,[Hu]
|
391
395
|
application/vnd.etsi.mheg5 'IANA,[Ortega],[Medland]
|
392
396
|
application/vnd.etsi.overload-control-policy-dataset+xml 'IANA,[Ortega]
|
397
|
+
application/vnd.etsi.pstn+xml 'IANA,[Han],[Belling]
|
393
398
|
application/vnd.etsi.sci+xml 'IANA,[Hu]
|
394
399
|
application/vnd.etsi.simservs+xml 'IANA,[Hu]
|
395
400
|
application/vnd.etsi.tsl+xml 'IANA,[Hu]
|
@@ -420,6 +425,7 @@ application/vnd.fujixerox.ART4 'IANA,[Tanabe]
|
|
420
425
|
application/vnd.fujixerox.ddd 'IANA,[Onda]
|
421
426
|
application/vnd.fujixerox.docuworks 'IANA,[Taguchi]
|
422
427
|
application/vnd.fujixerox.docuworks.binder 'IANA,[Matsumoto]
|
428
|
+
application/vnd.fujixerox.docuworks.container 'IANA,[Tashiro]
|
423
429
|
application/vnd.fujixerox.HBPL 'IANA,[Tanabe]
|
424
430
|
application/vnd.fut-misnet 'IANA,[Pruulmann]
|
425
431
|
application/vnd.fuzzysheet 'IANA,[Birtwistle]
|
@@ -933,6 +939,7 @@ application/vnd.wap.wmlc @wmlc 'IANA,[Stark]
|
|
933
939
|
application/vnd.wap.wmlscriptc @wmlsc 'IANA,[Stark]
|
934
940
|
application/vnd.webturbo @wtb 'IANA,[Rehem]
|
935
941
|
application/vnd.wfa.wsc 'IANA,[Wi-Fi Alliance]
|
942
|
+
application/vnd.windows.devicepairing 'IANA,[Dandawate]
|
936
943
|
application/vnd.wmc 'IANA,[Kjørnes=Kjornes]
|
937
944
|
application/vnd.wmf.bootstrap 'IANA,[Nguyenphu],[Iyer]
|
938
945
|
application/vnd.wolfram.mathematica 'IANA,[Wolfram]
|
@@ -978,6 +985,7 @@ application/wita 'IANA,[Campbell]
|
|
978
985
|
application/wordperfect5.1 @wp5,wp 'IANA,[Lindner]
|
979
986
|
application/wsdl+xml 'IANA,[W3C]
|
980
987
|
application/wspolicy+xml 'IANA,[W3C]
|
988
|
+
application/x-www-form-urlencoded :7bit '[W3C],{HTML5=http://www.w3.org/TR/html5/iana.html#application/x-www-form-urlencoded}
|
981
989
|
application/x400-bp 'IANA,RFC1494
|
982
990
|
application/xcap-att+xml 'IANA,RFC4825
|
983
991
|
application/xcap-caps+xml 'IANA,RFC4825
|
data/lib/mime/types/image
CHANGED
@@ -18,7 +18,7 @@ image/svg+xml @svg,svgz :8bit 'IANA,[W3C]
|
|
18
18
|
image/t38 'IANA,RFC3362
|
19
19
|
image/tiff @tiff,tif :base64 'IANA,RFC2302
|
20
20
|
image/tiff-fx 'IANA,RFC3950
|
21
|
-
image/vnd.adobe.photoshop 'IANA,[Scarborough]
|
21
|
+
image/vnd.adobe.photoshop @psd 'IANA,[Scarborough]
|
22
22
|
image/vnd.airzip.accelerator.azv 'IANA,[Clueit]
|
23
23
|
image/vnd.cns.inf2 'IANA,[McLaughlin]
|
24
24
|
image/vnd.dece.graphic 'IANA,[Dolan]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
!text/directory 'IANA,RFC2425,RFC6350
|
2
2
|
!text/ecmascript 'IANA,RFC4329
|
3
|
-
!text/javascript 'IANA,RFC4329
|
3
|
+
!text/javascript @js 'IANA,RFC4329
|
4
4
|
!text/x-rtf @rtf :8bit =use-instead:text/rtf
|
5
5
|
!text/x-vnd.flatland.3dml =use-instead:model/vnd.flatland.3dml
|
6
6
|
*!text/comma-separated-values @csv :8bit =use-instead:text/csv
|
data/lib/mime/types/video
CHANGED
@@ -65,6 +65,8 @@ video/vnd.ms-playready.media.pyv 'IANA,[DiAcetis]
|
|
65
65
|
video/vnd.nokia.interleaved-multimedia @nim 'IANA,[Kangaslampi]
|
66
66
|
video/vnd.nokia.videovoip 'IANA,[Nokia]
|
67
67
|
video/vnd.objectvideo @mp4,m4v 'IANA,[Clark]
|
68
|
+
video/vnd.radgamettools.bink 'IANA,[Andersson]
|
69
|
+
video/vnd.radgamettools.smacker 'IANA,[Andersson]
|
68
70
|
video/vnd.sealed.mpeg1 @s11 'IANA,[Petersen]
|
69
71
|
video/vnd.sealed.mpeg4 @smpg,s14 'IANA,[Petersen]
|
70
72
|
video/vnd.sealed.swf @sswf,ssw 'IANA,[Petersen]
|
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.24'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -50,7 +50,7 @@ cert_chain:
|
|
50
50
|
-----END CERTIFICATE-----
|
51
51
|
|
52
52
|
'
|
53
|
-
date: 2013-
|
53
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
54
54
|
dependencies:
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubyforge
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
78
|
+
version: '5.0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -83,7 +83,7 @@ dependencies:
|
|
83
83
|
requirements:
|
84
84
|
- - ~>
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '5.0'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rdoc
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,22 +196,6 @@ dependencies:
|
|
196
196
|
- - ~>
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '1.2'
|
199
|
-
- !ruby/object:Gem::Dependency
|
200
|
-
name: nokogiri
|
201
|
-
requirement: !ruby/object:Gem::Requirement
|
202
|
-
none: false
|
203
|
-
requirements:
|
204
|
-
- - ~>
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: '1.5'
|
207
|
-
type: :development
|
208
|
-
prerelease: false
|
209
|
-
version_requirements: !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
|
-
requirements:
|
212
|
-
- - ~>
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
version: '1.5'
|
215
199
|
- !ruby/object:Gem::Dependency
|
216
200
|
name: rake
|
217
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,7 +219,7 @@ dependencies:
|
|
235
219
|
requirements:
|
236
220
|
- - ~>
|
237
221
|
- !ruby/object:Gem::Version
|
238
|
-
version: '3.
|
222
|
+
version: '3.7'
|
239
223
|
type: :development
|
240
224
|
prerelease: false
|
241
225
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -243,15 +227,13 @@ dependencies:
|
|
243
227
|
requirements:
|
244
228
|
- - ~>
|
245
229
|
- !ruby/object:Gem::Version
|
246
|
-
version: '3.
|
230
|
+
version: '3.7'
|
247
231
|
description: ! 'This library allows for the identification of a file''s likely MIME
|
248
232
|
content
|
249
233
|
|
250
|
-
type. This is release 1.
|
251
|
-
|
252
|
-
collection of MIME types and updates the sources of a few MIME types. The
|
234
|
+
type. This is release 1.24, adding and updating a few MIME types and fixing
|
253
235
|
|
254
|
-
|
236
|
+
some issues with documentation.
|
255
237
|
|
256
238
|
|
257
239
|
MIME types are used in MIME-compliant communications, as in e-mail or HTTP
|
@@ -269,22 +251,22 @@ description: ! 'This library allows for the identification of a file''s likely M
|
|
269
251
|
follows the IANA collection of MIME types (see below for reference).
|
270
252
|
|
271
253
|
|
272
|
-
MIME::Types for Ruby was originally based on
|
254
|
+
MIME::Types for Ruby was originally based on MIME::Types for Perl by Mark
|
273
255
|
|
274
|
-
|
256
|
+
Overmeer, copyright 2001 - 2009. As of version 1.15, the data format for the
|
275
257
|
|
276
|
-
|
277
|
-
|
278
|
-
longer happen.
|
258
|
+
MIME::Type list has changed and the synchronization will no longer happen.
|
279
259
|
|
280
260
|
|
281
261
|
MIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It
|
282
262
|
|
283
|
-
|
263
|
+
tracks the {IANA registry}[http://www.iana.org/assignments/media-types/]
|
284
264
|
|
285
265
|
({ftp}[ftp://ftp.iana.org/assignments/media-types]) with some unofficial types
|
286
266
|
|
287
|
-
added from the
|
267
|
+
added from the {LTSW collection}[http://www.ltsw.se/knbase/internet/mime.htp]
|
268
|
+
|
269
|
+
and added by the users of MIME::Types.'
|
288
270
|
email:
|
289
271
|
- austin@rubyforge.org
|
290
272
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|