mime-types 1.19 → 1.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # -*- ruby encoding: utf-8 -*-
2
+
1
3
  $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
2
4
 
3
5
  require 'mime/types'
@@ -69,6 +71,16 @@ class TestMIME_Types < MiniTest::Unit::TestCase #:nodoc:
69
71
  assert(MIME::Types.of('zzz').empty?)
70
72
  end
71
73
 
74
+ def test_ebook_formats
75
+ assert_equal( MIME::Types['application/x-mobipocket-ebook'], MIME::Types.type_for("book.mobi"))
76
+ assert_equal( MIME::Types['application/epub+zip'], MIME::Types.type_for("book.epub"))
77
+ assert_equal( MIME::Types['application/x-ibooks+zip'], MIME::Types.type_for("book.ibooks") )
78
+ end
79
+
80
+ def test_apple_formats
81
+ assert_equal( MIME::Types['application/x-apple-diskimage'], MIME::Types.type_for("disk.dmg") )
82
+ end
83
+
72
84
  def _test_add
73
85
  raise NotImplementedError, 'Need to write test_add'
74
86
  end
metadata CHANGED
@@ -1,15 +1,56 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mime-types
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.19'
4
+ version: '1.20'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Austin Ziegler
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain: []
12
- date: 2012-06-21 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - ! '-----BEGIN CERTIFICATE-----
13
+
14
+ MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZhdXN0
15
+
16
+ aW4xGTAXBgoJkiaJk/IsZAEZFglydWJ5Zm9yZ2UxEzARBgoJkiaJk/IsZAEZFgNv
17
+
18
+ cmcwHhcNMTMwMjA0MDMzMzI3WhcNMTQwMjA0MDMzMzI3WjBBMQ8wDQYDVQQDDAZh
19
+
20
+ dXN0aW4xGTAXBgoJkiaJk/IsZA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 2013-02-04 00:00:00.000000000 Z
13
54
  dependencies:
14
55
  - !ruby/object:Gem::Dependency
15
56
  name: rubyforge
@@ -34,7 +75,7 @@ dependencies:
34
75
  requirements:
35
76
  - - ~>
36
77
  - !ruby/object:Gem::Version
37
- version: '3.1'
78
+ version: '4.5'
38
79
  type: :development
39
80
  prerelease: false
40
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +83,7 @@ dependencies:
42
83
  requirements:
43
84
  - - ~>
44
85
  - !ruby/object:Gem::Version
45
- version: '3.1'
86
+ version: '4.5'
46
87
  - !ruby/object:Gem::Dependency
47
88
  name: rdoc
48
89
  requirement: !ruby/object:Gem::Requirement
@@ -60,13 +101,13 @@ dependencies:
60
101
  - !ruby/object:Gem::Version
61
102
  version: '3.10'
62
103
  - !ruby/object:Gem::Dependency
63
- name: nokogiri
104
+ name: hoe-bundler
64
105
  requirement: !ruby/object:Gem::Requirement
65
106
  none: false
66
107
  requirements:
67
108
  - - ~>
68
109
  - !ruby/object:Gem::Version
69
- version: '1.5'
110
+ version: '1.2'
70
111
  type: :development
71
112
  prerelease: false
72
113
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +115,7 @@ dependencies:
74
115
  requirements:
75
116
  - - ~>
76
117
  - !ruby/object:Gem::Version
77
- version: '1.5'
118
+ version: '1.2'
78
119
  - !ruby/object:Gem::Dependency
79
120
  name: hoe-doofus
80
121
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +155,7 @@ dependencies:
114
155
  requirements:
115
156
  - - ~>
116
157
  - !ruby/object:Gem::Version
117
- version: '1.0'
158
+ version: '1.5'
118
159
  type: :development
119
160
  prerelease: false
120
161
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,9 +163,9 @@ dependencies:
122
163
  requirements:
123
164
  - - ~>
124
165
  - !ruby/object:Gem::Version
125
- version: '1.0'
166
+ version: '1.5'
126
167
  - !ruby/object:Gem::Dependency
127
- name: hoe-seattlerb
168
+ name: hoe-rubygems
128
169
  requirement: !ruby/object:Gem::Requirement
129
170
  none: false
130
171
  requirements:
@@ -139,6 +180,54 @@ dependencies:
139
180
  - - ~>
140
181
  - !ruby/object:Gem::Version
141
182
  version: '1.0'
183
+ - !ruby/object:Gem::Dependency
184
+ name: hoe-travis
185
+ requirement: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ~>
189
+ - !ruby/object:Gem::Version
190
+ version: '1.2'
191
+ type: :development
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ~>
197
+ - !ruby/object:Gem::Version
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
+ - !ruby/object:Gem::Dependency
216
+ name: rake
217
+ requirement: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ~>
221
+ - !ruby/object:Gem::Version
222
+ version: '10.0'
223
+ type: :development
224
+ prerelease: false
225
+ version_requirements: !ruby/object:Gem::Requirement
226
+ none: false
227
+ requirements:
228
+ - - ~>
229
+ - !ruby/object:Gem::Version
230
+ version: '10.0'
142
231
  - !ruby/object:Gem::Dependency
143
232
  name: hoe
144
233
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +235,7 @@ dependencies:
146
235
  requirements:
147
236
  - - ~>
148
237
  - !ruby/object:Gem::Version
149
- version: '3.0'
238
+ version: '3.5'
150
239
  type: :development
151
240
  prerelease: false
152
241
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,15 +243,32 @@ dependencies:
154
243
  requirements:
155
244
  - - ~>
156
245
  - !ruby/object:Gem::Version
157
- version: '3.0'
246
+ version: '3.5'
158
247
  description: ! 'This library allows for the identification of a file''s likely MIME
159
248
  content
160
249
 
161
- type. This is release 1.19 with new MIME types. The identification of MIME
250
+ type. This is release 1.20 with new MIME types. The identification of MIME
162
251
 
163
252
  content type is based on a file''s filename extensions.
164
253
 
165
254
 
255
+ MIME types are used in MIME-compliant communications, as in e-mail or
256
+
257
+ HTTP traffic, to indicate the type of content which is transmitted.
258
+
259
+ MIME::Types provides the ability for detailed information about MIME
260
+
261
+ entities (provided as a set of MIME::Type objects) to be determined and
262
+
263
+ used programmatically. There are many types defined by RFCs and vendors,
264
+
265
+ so the list is long but not complete; don''t hesitate to ask to add
266
+
267
+ additional information. This library follows the IANA collection of MIME
268
+
269
+ types (see below for reference).
270
+
271
+
166
272
  MIME::Types for Ruby was originally based on and synchronized with MIME::Types
167
273
 
168
274
  for Perl by Mark Overmeer, copyright 2001 - 2009. As of version 1.15, the data
@@ -172,22 +278,37 @@ description: ! 'This library allows for the identification of a file''s likely M
172
278
  longer happen.
173
279
 
174
280
 
175
- :include: Licence.rdoc'
281
+ MIME::Types is built to conform to the MIME types of RFCs 2045 and 2231. It
282
+
283
+ follows the official {IANA registry}[http://www.iana.org/assignments/media-types/]
284
+
285
+ ({ftp}[ftp://ftp.iana.org/assignments/media-types]) with some unofficial types
286
+
287
+ added from the the {LTSW collection}[http://www.ltsw.se/knbase/internet/mime.htp].'
176
288
  email:
177
289
  - austin@rubyforge.org
178
290
  executables: []
179
291
  extensions: []
180
292
  extra_rdoc_files:
293
+ - Contributing.rdoc
181
294
  - History.rdoc
182
295
  - Licence.rdoc
183
296
  - Manifest.txt
184
297
  - README.rdoc
298
+ - docs/COPYING.txt
299
+ - docs/artistic.txt
185
300
  files:
301
+ - .travis.yml
302
+ - Contributing.rdoc
303
+ - Gemfile
186
304
  - History.rdoc
187
305
  - Licence.rdoc
188
306
  - Manifest.txt
189
307
  - README.rdoc
190
308
  - Rakefile
309
+ - docs/COPYING.txt
310
+ - docs/artistic.txt
311
+ - lib/mime-types.rb
191
312
  - lib/mime/types.rb
192
313
  - lib/mime/types/application
193
314
  - lib/mime/types/application.mac
@@ -239,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
360
  version: '0'
240
361
  requirements: []
241
362
  rubyforge_project: mime-types
242
- rubygems_version: 1.8.21
363
+ rubygems_version: 1.8.25
243
364
  signing_key:
244
365
  specification_version: 3
245
366
  summary: This library allows for the identification of a file's likely MIME content
Binary file