mime-types 1.22 → 1.23
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.tar.gz.sig +0 -0
- data/.hoerc +1 -1
- data/Gemfile +5 -5
- data/History.rdoc +19 -0
- data/Manifest.txt +0 -1
- data/README.rdoc +13 -11
- data/Rakefile +4 -3
- data/lib/mime/types.rb +22 -1
- data/lib/mime/types/application +7 -7
- data/test/test_mime_types.rb +8 -0
- metadata +25 -23
- metadata.gz.sig +0 -0
- data/mime-types.gemspec +0 -66
data.tar.gz.sig
CHANGED
Binary file
|
data/.hoerc
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
exclude: !ruby/regexp /(tmp|swp)$|CVS|TAGS|\.(svn|git|hg|DS_Store|idea)|Gemfile
|
2
|
+
exclude: !ruby/regexp /(tmp|swp)$|CVS|TAGS|\.(svn|git|hg|DS_Store|idea)|Gemfile\.lock|type-lists\/|\.gemspec/
|
data/Gemfile
CHANGED
@@ -5,17 +5,17 @@
|
|
5
5
|
source "https://rubygems.org/"
|
6
6
|
|
7
7
|
|
8
|
-
gem "
|
8
|
+
gem "rubyforge", ">=2.0.4", :group => [:development, :test]
|
9
|
+
gem "minitest", "~>4.7", :group => [:development, :test]
|
10
|
+
gem "rdoc", "~>4.0", :group => [:development, :test]
|
9
11
|
gem "hoe-bundler", "~>1.2", :group => [:development, :test]
|
10
12
|
gem "hoe-doofus", "~>1.0", :group => [:development, :test]
|
11
13
|
gem "hoe-gemspec", "~>1.0", :group => [:development, :test]
|
12
14
|
gem "hoe-git", "~>1.5", :group => [:development, :test]
|
13
15
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
14
16
|
gem "hoe-travis", "~>1.2", :group => [:development, :test]
|
15
|
-
gem "
|
16
|
-
gem "nokogiri", "~>1.5", :group => [:development]
|
17
|
+
gem "nokogiri", "~>1.5", :group => [:development, :test]
|
17
18
|
gem "rake", "~>10.0", :group => [:development, :test]
|
18
|
-
gem "
|
19
|
-
gem "rubyforge", ">=2.0.4", :group => [:development, :test]
|
19
|
+
gem "hoe", "~>3.6", :group => [:development, :test]
|
20
20
|
|
21
21
|
# vim: syntax=ruby
|
data/History.rdoc
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
== 1.23 / 2013-04-20
|
2
|
+
|
3
|
+
* New Feature:
|
4
|
+
* Arnaud Meuret (ameuret) suggested that it could be useful if the MIME type
|
5
|
+
collection was enumerable, so he implemented it in #30. Thanks for the
|
6
|
+
contribution! https://github.com/halostatue/mime-types/pull/30
|
7
|
+
* Updated MIME Types:
|
8
|
+
* RFC6910 was adopted (application/call-completion).
|
9
|
+
* RFC6902 was adopted (application/json-patch\+json).
|
10
|
+
* RFC6917 was adopted (application/mrb-consumer\+xml,
|
11
|
+
application/mrb-publish\+xml).
|
12
|
+
* RFC6922 was adopted (application/sql).
|
13
|
+
* RFC2560 is being
|
14
|
+
{updated}[http://tools.ietf.org/html/draft-ietf-pkix-rfc2560bis].
|
15
|
+
* Administrivia:
|
16
|
+
* The gemspec now includes information about the licenses under which the
|
17
|
+
mime-types gem is available.
|
18
|
+
* Using hoe-gemspec2 instead of hoe-gemspec.
|
19
|
+
|
1
20
|
== 1.22 / 2013-03-30
|
2
21
|
|
3
22
|
* New MIME Types:
|
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -8,17 +8,17 @@ 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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
so the list is long but not
|
20
|
-
|
21
|
-
types (see below for reference).
|
11
|
+
type. This is release 1.23 that adds the ability to enumerate over the
|
12
|
+
collection of MIME types and updates the sources of a few MIME types. The
|
13
|
+
identification of MIME content type is based on a file's filename extensions.
|
14
|
+
|
15
|
+
MIME types are used in MIME-compliant communications, as in e-mail or HTTP
|
16
|
+
traffic, to indicate the type of content which is transmitted. MIME::Types
|
17
|
+
provides the ability for detailed information about MIME entities (provided as
|
18
|
+
a set of MIME::Type objects) to be determined and used programmatically. There
|
19
|
+
are many types defined by RFCs and vendors, so the list is long but not
|
20
|
+
complete; don't hesitate to ask to add additional information. This library
|
21
|
+
follows the IANA collection of MIME types (see below for reference).
|
22
22
|
|
23
23
|
MIME::Types for Ruby was originally based on and synchronized with MIME::Types
|
24
24
|
for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
|
@@ -52,6 +52,8 @@ files). A MIME::Type stores the known information about one MIME type.
|
|
52
52
|
puts plaintext == 'text/plain' # => true
|
53
53
|
puts MIME::Type.simplified('x-appl/x-zip') # => 'appl/zip'
|
54
54
|
|
55
|
+
puts MIME::Types.any? { |type| type.content_type == 'text/plain' }
|
56
|
+
|
55
57
|
== Continuous Integration Status
|
56
58
|
|
57
59
|
{<img src="https://travis-ci.org/halostatue/mime-types.png" />}[https://travis-ci.org/halostatue/mime-types]
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'hoe'
|
|
6
6
|
Hoe.plugin :bundler
|
7
7
|
Hoe.plugin :doofus
|
8
8
|
Hoe.plugin :email
|
9
|
-
Hoe.plugin :
|
9
|
+
Hoe.plugin :gemspec2
|
10
10
|
Hoe.plugin :git
|
11
11
|
Hoe.plugin :rubyforge
|
12
12
|
Hoe.plugin :minitest
|
@@ -21,10 +21,11 @@ spec = Hoe.spec 'mime-types' do
|
|
21
21
|
self.history_file = 'History.rdoc'
|
22
22
|
self.readme_file = 'README.rdoc'
|
23
23
|
self.extra_rdoc_files = FileList["*.rdoc"].to_a
|
24
|
+
self.licenses = ["MIT", "Artistic 2.0", "GPL-2"]
|
24
25
|
|
25
26
|
self.extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
26
27
|
self.extra_dev_deps << ['hoe-doofus', '~> 1.0']
|
27
|
-
self.extra_dev_deps << ['hoe-
|
28
|
+
self.extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
|
28
29
|
self.extra_dev_deps << ['hoe-git', '~> 1.5']
|
29
30
|
self.extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
30
31
|
self.extra_dev_deps << ['hoe-travis', '~> 1.2']
|
@@ -195,7 +196,7 @@ namespace :mime do
|
|
195
196
|
http://www.ltsw.se/knbase/internet/mime.htp
|
196
197
|
http://www.webmaster-toolkit.com/mime-types.shtml
|
197
198
|
http://plugindoc.mozdev.org/winmime.php
|
198
|
-
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
|
199
|
+
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
|
199
200
|
http://www.feedforall.com/mime-types.htm
|
200
201
|
http://www.iana.org/assignments/media-types/
|
201
202
|
EOS
|
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.23'
|
29
29
|
|
30
30
|
include Comparable
|
31
31
|
|
@@ -596,6 +596,17 @@ module MIME
|
|
596
596
|
def defined_types #:nodoc:
|
597
597
|
@type_variants.values.flatten
|
598
598
|
end
|
599
|
+
|
600
|
+
# Returns the number of known types. A shortcut of MIME::Types[//].size.
|
601
|
+
# (Keep in mind that this is memory intensive, cache the result to spare
|
602
|
+
# resources)
|
603
|
+
def count
|
604
|
+
defined_types.size
|
605
|
+
end
|
606
|
+
|
607
|
+
def each
|
608
|
+
defined_types.each { |t| yield t }
|
609
|
+
end
|
599
610
|
|
600
611
|
@__types__ = self.new(VERSION)
|
601
612
|
|
@@ -820,6 +831,16 @@ module MIME
|
|
820
831
|
@__types__[type_id, flags]
|
821
832
|
end
|
822
833
|
|
834
|
+
include Enumerable
|
835
|
+
|
836
|
+
def count
|
837
|
+
@__types__.count
|
838
|
+
end
|
839
|
+
|
840
|
+
def each
|
841
|
+
@__types__.each {|t| yield t }
|
842
|
+
end
|
843
|
+
|
823
844
|
# Return the list of MIME::Types which belongs to the file based on
|
824
845
|
# its filename extension. If +platform+ is +true+, then only file
|
825
846
|
# types that are specific to the current platform will be returned.
|
data/lib/mime/types/application
CHANGED
@@ -12,7 +12,7 @@ application/auth-policy+xml :8bit 'IANA,RFC4745
|
|
12
12
|
application/batch-SMTP 'IANA,RFC2442
|
13
13
|
application/beep+xml 'IANA,RFC3080
|
14
14
|
application/calendar+xml 'IANA,RFC6321
|
15
|
-
application/call-completion 'IANA,
|
15
|
+
application/call-completion 'IANA,RFC6910
|
16
16
|
application/cals-1840 'IANA,RFC1895
|
17
17
|
application/ccmp+xml 'IANA,RFC6503
|
18
18
|
application/ccxml+xml 'IANA,RFC4267
|
@@ -81,7 +81,7 @@ application/ipp 'IANA,RFC2910
|
|
81
81
|
application/isup 'IANA,RFC3204
|
82
82
|
application/javascript @js :8bit 'IANA,RFC4329
|
83
83
|
application/json @json :8bit 'IANA,RFC4627
|
84
|
-
application/json-patch+json 'IANA,
|
84
|
+
application/json-patch+json 'IANA,RFC6902
|
85
85
|
application/kpml-request+xml 'IANA,RFC4730
|
86
86
|
application/kpml-response+xml 'IANA,RFC4730
|
87
87
|
application/link-format 'IANA,RFC6690
|
@@ -123,8 +123,8 @@ application/mp4 @mp4,mpg4 'IANA,RFC4337,RFC6381
|
|
123
123
|
application/mpeg4-generic 'IANA,RFC3640
|
124
124
|
application/mpeg4-iod 'IANA,RFC4337
|
125
125
|
application/mpeg4-iod-xmt 'IANA,RFC4337
|
126
|
-
application/mrb-consumer+xml 'IANA,
|
127
|
-
application/mrb-publish+xml 'IANA,
|
126
|
+
application/mrb-consumer+xml 'IANA,RFC6917
|
127
|
+
application/mrb-publish+xml 'IANA,RFC6917
|
128
128
|
application/msc-ivr+xml 'IANA,RFC6231
|
129
129
|
application/msc-mixer+xml 'IANA,RFC6505
|
130
130
|
application/msword @doc,dot,wrd :base64 'IANA,[Lindner]
|
@@ -135,8 +135,8 @@ application/news-groupinfo 'IANA,RFC5537
|
|
135
135
|
application/news-transmission 'IANA,RFC5537
|
136
136
|
application/nlsml+xml 'IANA,RFC6787
|
137
137
|
application/nss 'IANA,[Hammer]
|
138
|
-
application/ocsp-request 'IANA,
|
139
|
-
application/ocsp-response 'IANA,
|
138
|
+
application/ocsp-request 'IANA,{RFC-ietf-pkix-rfc2560bis-20=http://tools.ietf.org/html/draft-ietf-pkix-rfc2560bis}
|
139
|
+
application/ocsp-response 'IANA,{RFC-ietf-pkix-rfc2560bis-20=http://tools.ietf.org/html/draft-ietf-pkix-rfc2560bis}
|
140
140
|
application/octet-stream @bin,dms,lha,lzh,exe,class,ani,pgp,so,dll,dylib :base64 'IANA,RFC2045,RFC2046
|
141
141
|
application/oda @oda 'IANA,RFC2045,RFC2046
|
142
142
|
application/oebps-package+xml 'IANA,RFC4839
|
@@ -217,7 +217,7 @@ application/soap+xml 'IANA,RFC3902
|
|
217
217
|
application/sparql-query 'IANA,[W3C]
|
218
218
|
application/sparql-results+xml 'IANA,[W3C]
|
219
219
|
application/spirits-event+xml 'IANA,RFC3910
|
220
|
-
application/sql 'IANA,
|
220
|
+
application/sql 'IANA,RFC6922
|
221
221
|
application/srgs 'IANA,RFC4267
|
222
222
|
application/srgs+xml 'IANA,RFC4267
|
223
223
|
application/sru+xml 'IANA,RFC6207
|
data/test/test_mime_types.rb
CHANGED
@@ -71,6 +71,14 @@ class TestMIME_Types < MiniTest::Unit::TestCase #:nodoc:
|
|
71
71
|
assert(MIME::Types.of('zzz').empty?)
|
72
72
|
end
|
73
73
|
|
74
|
+
def test_class_enumerable
|
75
|
+
assert( MIME::Types.any? {|type| type.content_type == 'text/plain'} )
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_class_count
|
79
|
+
assert(MIME::Types.count > 42, "A lot of types are expected to be known.")
|
80
|
+
end
|
81
|
+
|
74
82
|
def test_ebook_formats
|
75
83
|
assert_equal( MIME::Types['application/x-mobipocket-ebook'], MIME::Types.type_for("book.mobi"))
|
76
84
|
assert_equal( MIME::Types['application/epub+zip'], MIME::Types.type_for("book.epub"))
|
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.23'
|
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-04-21 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: '4.
|
78
|
+
version: '4.7'
|
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: '4.
|
86
|
+
version: '4.7'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rdoc
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,7 +91,7 @@ dependencies:
|
|
91
91
|
requirements:
|
92
92
|
- - ~>
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
94
|
+
version: '4.0'
|
95
95
|
type: :development
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - ~>
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '4.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: hoe-bundler
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,13 +133,13 @@ dependencies:
|
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '1.0'
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
|
-
name: hoe-
|
136
|
+
name: hoe-gemspec2
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: '1.
|
142
|
+
version: '1.1'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -147,7 +147,7 @@ dependencies:
|
|
147
147
|
requirements:
|
148
148
|
- - ~>
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '1.
|
150
|
+
version: '1.1'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: hoe-git
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -235,7 +235,7 @@ dependencies:
|
|
235
235
|
requirements:
|
236
236
|
- - ~>
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: '3.
|
238
|
+
version: '3.6'
|
239
239
|
type: :development
|
240
240
|
prerelease: false
|
241
241
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -243,30 +243,30 @@ dependencies:
|
|
243
243
|
requirements:
|
244
244
|
- - ~>
|
245
245
|
- !ruby/object:Gem::Version
|
246
|
-
version: '3.
|
246
|
+
version: '3.6'
|
247
247
|
description: ! 'This library allows for the identification of a file''s likely MIME
|
248
248
|
content
|
249
249
|
|
250
|
-
type. This is release 1.
|
250
|
+
type. This is release 1.23 that adds the ability to enumerate over the
|
251
251
|
|
252
|
-
|
252
|
+
collection of MIME types and updates the sources of a few MIME types. The
|
253
253
|
|
254
|
+
identification of MIME content type is based on a file''s filename extensions.
|
254
255
|
|
255
|
-
MIME types are used in MIME-compliant communications, as in e-mail or
|
256
256
|
|
257
|
-
|
257
|
+
MIME types are used in MIME-compliant communications, as in e-mail or HTTP
|
258
258
|
|
259
|
-
|
259
|
+
traffic, to indicate the type of content which is transmitted. MIME::Types
|
260
260
|
|
261
|
-
|
261
|
+
provides the ability for detailed information about MIME entities (provided as
|
262
262
|
|
263
|
-
|
263
|
+
a set of MIME::Type objects) to be determined and used programmatically. There
|
264
264
|
|
265
|
-
so the list is long but not
|
265
|
+
are many types defined by RFCs and vendors, so the list is long but not
|
266
266
|
|
267
|
-
|
267
|
+
complete; don''t hesitate to ask to add additional information. This library
|
268
268
|
|
269
|
-
types (see below for reference).
|
269
|
+
follows the IANA collection of MIME types (see below for reference).
|
270
270
|
|
271
271
|
|
272
272
|
MIME::Types for Ruby was originally based on and synchronized with MIME::Types
|
@@ -336,11 +336,13 @@ files:
|
|
336
336
|
- lib/mime/types/video
|
337
337
|
- lib/mime/types/video.nonstandard
|
338
338
|
- lib/mime/types/video.obsolete
|
339
|
-
- mime-types.gemspec
|
340
339
|
- test/test_mime_type.rb
|
341
340
|
- test/test_mime_types.rb
|
342
341
|
homepage: http://mime-types.rubyforge.org/
|
343
|
-
licenses:
|
342
|
+
licenses:
|
343
|
+
- MIT
|
344
|
+
- Artistic 2.0
|
345
|
+
- GPL-2
|
344
346
|
post_install_message:
|
345
347
|
rdoc_options:
|
346
348
|
- --main
|
metadata.gz.sig
CHANGED
Binary file
|
data/mime-types.gemspec
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "mime-types"
|
5
|
-
s.version = "1.20.1"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Austin Ziegler"]
|
9
|
-
s.date = "2013-02-04"
|
10
|
-
s.description = "This library allows for the identification of a file's likely MIME content\ntype. This is release 1.20.1 with new MIME types. The identification of MIME\ncontent type is based on a file's filename extensions.\n\nMIME types are used in MIME-compliant communications, as in e-mail or\nHTTP traffic, to indicate the type of content which is transmitted.\nMIME::Types provides the ability for detailed information about MIME\nentities (provided as a set of MIME::Type objects) to be determined and\nused programmatically. There are many types defined by RFCs and vendors,\nso the list is long but not complete; don't hesitate to ask to add\nadditional information. This library follows the IANA collection of MIME\ntypes (see below for reference).\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\nMIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It\nfollows the official {IANA registry}[http://www.iana.org/assignments/media-types/]\n({ftp}[ftp://ftp.iana.org/assignments/media-types]) with some unofficial types\nadded from the the {LTSW collection}[http://www.ltsw.se/knbase/internet/mime.htp]."
|
11
|
-
s.email = ["austin@rubyforge.org"]
|
12
|
-
s.extra_rdoc_files = ["Contributing.rdoc", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "docs/COPYING.txt", "docs/artistic.txt", "Contributing.rdoc", "History.rdoc", "Licence.rdoc", "README.rdoc"]
|
13
|
-
s.files = [".travis.yml", "Contributing.rdoc", "Gemfile", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "docs/COPYING.txt", "docs/artistic.txt", "lib/mime-types.rb", "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", ".gemtest"]
|
14
|
-
s.homepage = "http://mime-types.rubyforge.org/"
|
15
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = "mime-types"
|
18
|
-
s.rubygems_version = "1.8.25"
|
19
|
-
s.summary = "This library allows for the identification of a file's likely MIME content type"
|
20
|
-
s.test_files = ["test/test_mime_type.rb", "test/test_mime_types.rb"]
|
21
|
-
|
22
|
-
if s.respond_to? :specification_version then
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
27
|
-
s.add_development_dependency(%q<minitest>, ["~> 4.5"])
|
28
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
|
29
|
-
s.add_development_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
30
|
-
s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
31
|
-
s.add_development_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
32
|
-
s.add_development_dependency(%q<hoe-git>, ["~> 1.5"])
|
33
|
-
s.add_development_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
34
|
-
s.add_development_dependency(%q<hoe-travis>, ["~> 1.2"])
|
35
|
-
s.add_development_dependency(%q<nokogiri>, ["~> 1.5"])
|
36
|
-
s.add_development_dependency(%q<rake>, ["~> 10.0"])
|
37
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.5"])
|
38
|
-
else
|
39
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
40
|
-
s.add_dependency(%q<minitest>, ["~> 4.5"])
|
41
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
42
|
-
s.add_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
43
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
44
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
45
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5"])
|
46
|
-
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
47
|
-
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
48
|
-
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
49
|
-
s.add_dependency(%q<rake>, ["~> 10.0"])
|
50
|
-
s.add_dependency(%q<hoe>, ["~> 3.5"])
|
51
|
-
end
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
54
|
-
s.add_dependency(%q<minitest>, ["~> 4.5"])
|
55
|
-
s.add_dependency(%q<rdoc>, ["~> 3.10"])
|
56
|
-
s.add_dependency(%q<hoe-bundler>, ["~> 1.2"])
|
57
|
-
s.add_dependency(%q<hoe-doofus>, ["~> 1.0"])
|
58
|
-
s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
|
59
|
-
s.add_dependency(%q<hoe-git>, ["~> 1.5"])
|
60
|
-
s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"])
|
61
|
-
s.add_dependency(%q<hoe-travis>, ["~> 1.2"])
|
62
|
-
s.add_dependency(%q<nokogiri>, ["~> 1.5"])
|
63
|
-
s.add_dependency(%q<rake>, ["~> 10.0"])
|
64
|
-
s.add_dependency(%q<hoe>, ["~> 3.5"])
|
65
|
-
end
|
66
|
-
end
|