mime-types 2.99.3 → 3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.autotest +35 -0
- data/.gemtest +0 -0
- data/.gitignore +17 -0
- data/.hoerc +20 -0
- data/Code-of-Conduct.rdoc +27 -60
- data/Contributing.rdoc +0 -1
- data/History.rdoc +75 -36
- data/Licence.rdoc +2 -16
- data/Manifest.txt +10 -18
- data/README.rdoc +46 -46
- data/Rakefile +112 -58
- data/lib/mime-types.rb +0 -2
- data/lib/mime/type.rb +183 -415
- data/lib/mime/type/columnar.rb +27 -62
- data/lib/mime/types.rb +37 -135
- data/lib/mime/types/cache.rb +49 -73
- data/lib/mime/types/columnar.rb +42 -48
- data/lib/mime/types/container.rb +30 -0
- data/lib/mime/types/deprecations.rb +1 -22
- data/lib/mime/types/full.rb +17 -0
- data/lib/mime/types/loader.rb +10 -137
- data/lib/mime/types/logger.rb +2 -0
- data/lib/mime/types/registry.rb +81 -0
- data/support/benchmarks/load.rb +27 -26
- data/support/benchmarks/load_allocations.rb +14 -7
- data/support/benchmarks/object_counts.rb +6 -4
- data/support/profile/columnar.rb +5 -0
- data/support/profile/columnar_full.rb +5 -0
- data/support/profile/full.rb +5 -0
- data/test/minitest_helper.rb +3 -12
- data/test/test_mime_type.rb +461 -454
- data/test/test_mime_types.rb +126 -86
- data/test/test_mime_types_cache.rb +55 -45
- data/test/test_mime_types_class.rb +113 -97
- data/test/test_mime_types_lazy.rb +19 -23
- data/test/test_mime_types_loader.rb +5 -32
- metadata +67 -44
- data/History-Types.rdoc +0 -454
- data/data/mime-types.json +0 -1
- data/data/mime.content_type.column +0 -1980
- data/data/mime.docs.column +0 -1980
- data/data/mime.encoding.column +0 -1980
- data/data/mime.friendly.column +0 -1980
- data/data/mime.obsolete.column +0 -1980
- data/data/mime.registered.column +0 -1980
- data/data/mime.signature.column +0 -1980
- data/data/mime.use_instead.column +0 -1980
- data/data/mime.xrefs.column +0 -1980
- data/docs/COPYING.txt +0 -339
- data/docs/artistic.txt +0 -127
- data/lib/mime/types/loader_path.rb +0 -15
- data/support/apache_mime_types.rb +0 -108
- data/support/convert.rb +0 -158
- data/support/convert/columnar.rb +0 -88
- data/support/iana_registry.rb +0 -172
@@ -3,45 +3,41 @@
|
|
3
3
|
require 'mime/types'
|
4
4
|
require 'minitest_helper'
|
5
5
|
|
6
|
-
|
6
|
+
describe MIME::Types, 'lazy loading' do
|
7
7
|
def setup
|
8
|
-
@cache_file = File.expand_path('../cache.tst', __FILE__)
|
9
8
|
ENV['RUBY_MIME_TYPES_LAZY_LOAD'] = 'true'
|
10
|
-
ENV['RUBY_MIME_TYPES_CACHE'] = @cache_file
|
11
|
-
MIME::Types::Cache.save
|
12
9
|
end
|
13
10
|
|
14
11
|
def teardown
|
15
|
-
clear_cache_file
|
16
12
|
reset_mime_types
|
17
|
-
if File.exist? ENV['RUBY_MIME_TYPES_CACHE']
|
18
|
-
FileUtils.rm ENV['RUBY_MIME_TYPES_CACHE']
|
19
|
-
ENV.delete('RUBY_MIME_TYPES_CACHE')
|
20
|
-
end
|
21
13
|
ENV.delete('RUBY_MIME_TYPES_LAZY_LOAD')
|
22
14
|
end
|
23
15
|
|
24
|
-
def clear_cache_file
|
25
|
-
FileUtils.rm @cache_file if File.exist? @cache_file
|
26
|
-
end
|
27
|
-
|
28
16
|
def reset_mime_types
|
29
17
|
MIME::Types.instance_variable_set(:@__types__, nil)
|
30
18
|
MIME::Types.send(:load_default_mime_types)
|
31
19
|
end
|
32
20
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
21
|
+
describe '.lazy_load?' do
|
22
|
+
it 'is true when RUBY_MIME_TYPES_LAZY_LOAD is set' do
|
23
|
+
assert_equal true, MIME::Types.send(:lazy_load?)
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'is nil when RUBY_MIME_TYPES_LAZY_LOAD is unset' do
|
27
|
+
ENV['RUBY_MIME_TYPES_LAZY_LOAD'] = nil
|
28
|
+
assert_equal nil, MIME::Types.send(:lazy_load?)
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'is false when RUBY_MIME_TYPES_LAZY_LOAD is false' do
|
32
|
+
ENV['RUBY_MIME_TYPES_LAZY_LOAD'] = 'false'
|
33
|
+
assert_equal false, MIME::Types.send(:lazy_load?)
|
34
|
+
end
|
39
35
|
end
|
40
36
|
|
41
|
-
|
37
|
+
it 'loads lazily when RUBY_MIME_TYPES_LAZY_LOAD is set' do
|
42
38
|
MIME::Types.instance_variable_set(:@__types__, nil)
|
43
|
-
assert_nil
|
44
|
-
refute_nil
|
45
|
-
refute_nil
|
39
|
+
assert_nil MIME::Types.instance_variable_get(:@__types__)
|
40
|
+
refute_nil MIME::Types['text/html'].first
|
41
|
+
refute_nil MIME::Types.instance_variable_get(:@__types__)
|
46
42
|
end
|
47
43
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'mime/types'
|
4
4
|
require 'minitest_helper'
|
5
5
|
|
6
|
-
|
6
|
+
describe MIME::Types::Loader do
|
7
7
|
def setup
|
8
8
|
@path = File.expand_path('../fixture', __FILE__)
|
9
9
|
@loader = MIME::Types::Loader.new(@path)
|
@@ -12,48 +12,21 @@ class TestMIMETypesLoader < Minitest::Test
|
|
12
12
|
|
13
13
|
def assert_correctly_loaded(types)
|
14
14
|
assert_includes(types, 'application/1d-interleaved-parityfec')
|
15
|
-
assert_deprecated('MIME::Type#references') do
|
16
|
-
assert_empty types['application/acad'].first.references
|
17
|
-
end
|
18
|
-
assert_deprecated('MIME::Type#urls') do
|
19
|
-
assert_empty types['audio/webm'].first.urls
|
20
|
-
end
|
21
15
|
assert_equal(%w(webm), types['audio/webm'].first.extensions)
|
22
16
|
refute(types['audio/webm'].first.registered?)
|
23
17
|
|
24
18
|
assert_equal('Fixes a bug with IE6 and progressive JPEGs',
|
25
19
|
types['image/pjpeg'].first.docs)
|
26
20
|
|
27
|
-
assert_deprecated('MIME::Type#system?') do
|
28
|
-
refute types['application/x-apple-diskimage'].first.system?
|
29
|
-
end
|
30
|
-
assert_deprecated('MIME::Type#system') do
|
31
|
-
assert_nil types['application/x-apple-diskimage'].first.system
|
32
|
-
end
|
33
|
-
|
34
21
|
assert(types['audio/vnd.qcelp'].first.obsolete?)
|
35
22
|
assert_equal('audio/QCELP', types['audio/vnd.qcelp'].first.use_instead)
|
36
23
|
end
|
37
24
|
|
38
|
-
|
39
|
-
assert_correctly_loaded
|
40
|
-
end
|
41
|
-
|
42
|
-
def test_load_json
|
43
|
-
assert_correctly_loaded(@loader.load_json)
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_load_v1
|
47
|
-
assert_deprecated('MIME::Types::Loader.load_v1') do
|
48
|
-
assert_correctly_loaded(@loader.load_v1)
|
49
|
-
end
|
25
|
+
it 'loads YAML files correctly' do
|
26
|
+
assert_correctly_loaded @loader.load_yaml
|
50
27
|
end
|
51
28
|
|
52
|
-
|
53
|
-
|
54
|
-
assert_raises(MIME::Types::Loader::BadV1Format) {
|
55
|
-
MIME::Types::Loader.load_from_v1(File.join(@bad_path, 'malformed'))
|
56
|
-
}
|
57
|
-
}
|
29
|
+
it 'loads JSON files correctly' do
|
30
|
+
assert_correctly_loaded @loader.load_json
|
58
31
|
end
|
59
32
|
end
|
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mime-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '3.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mime-types-data
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2015'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2015'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: minitest
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5.
|
33
|
+
version: '5.8'
|
20
34
|
type: :development
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version: '5.
|
40
|
+
version: '5.8'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rdoc
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +150,20 @@ dependencies:
|
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '1.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: minitest-bonus-assertions
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.0'
|
139
167
|
- !ruby/object:Gem::Dependency
|
140
168
|
name: rake
|
141
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,39 +206,47 @@ dependencies:
|
|
178
206
|
- - "~>"
|
179
207
|
- !ruby/object:Gem::Version
|
180
208
|
version: '5.2'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: simplecov
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0.7'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0.7'
|
181
223
|
- !ruby/object:Gem::Dependency
|
182
224
|
name: hoe
|
183
225
|
requirement: !ruby/object:Gem::Requirement
|
184
226
|
requirements:
|
185
227
|
- - "~>"
|
186
228
|
- !ruby/object:Gem::Version
|
187
|
-
version: '3.
|
229
|
+
version: '3.14'
|
188
230
|
type: :development
|
189
231
|
prerelease: false
|
190
232
|
version_requirements: !ruby/object:Gem::Requirement
|
191
233
|
requirements:
|
192
234
|
- - "~>"
|
193
235
|
- !ruby/object:Gem::Version
|
194
|
-
version: '3.
|
236
|
+
version: '3.14'
|
195
237
|
description: |-
|
196
238
|
The mime-types library provides a library and registry for information about
|
197
239
|
MIME content type definitions. It can be used to determine defined filename
|
198
240
|
extensions for MIME types, or to use filename extensions to look up the likely
|
199
241
|
MIME type definitions.
|
200
242
|
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
registered MIME media types plus any security updates that may be required.
|
209
|
-
|
210
|
-
If the loss of the deprecated data matters, be sure to set your dependency
|
211
|
-
appropriately:
|
212
|
-
|
213
|
-
gem 'mime-types', '~> 2.6, < 2.99'
|
243
|
+
Version 3.0 is a major release that requires Ruby 2.0 compatibility and removes
|
244
|
+
deprecated functions. The columnar registry format introduced in 2.6 has been
|
245
|
+
made the primary format; the registry data has been extracted from this library
|
246
|
+
and put into {mime-types-data}[https://github.com/mime-types/mime-types-data].
|
247
|
+
Additionally, mime-types is now licensed exclusively under the MIT licence and
|
248
|
+
there is a code of conduct in effect. There are a number of other smaller
|
249
|
+
changes described in the History file.
|
214
250
|
email:
|
215
251
|
- halostatue@gmail.com
|
216
252
|
executables: []
|
@@ -218,51 +254,40 @@ extensions: []
|
|
218
254
|
extra_rdoc_files:
|
219
255
|
- Code-of-Conduct.rdoc
|
220
256
|
- Contributing.rdoc
|
221
|
-
- History-Types.rdoc
|
222
257
|
- History.rdoc
|
223
258
|
- Licence.rdoc
|
224
259
|
- Manifest.txt
|
225
260
|
- README.rdoc
|
226
|
-
- docs/COPYING.txt
|
227
|
-
- docs/artistic.txt
|
228
261
|
files:
|
262
|
+
- ".autotest"
|
263
|
+
- ".gemtest"
|
264
|
+
- ".gitignore"
|
265
|
+
- ".hoerc"
|
229
266
|
- Code-of-Conduct.rdoc
|
230
267
|
- Contributing.rdoc
|
231
|
-
- History-Types.rdoc
|
232
268
|
- History.rdoc
|
233
269
|
- Licence.rdoc
|
234
270
|
- Manifest.txt
|
235
271
|
- README.rdoc
|
236
272
|
- Rakefile
|
237
|
-
- data/mime-types.json
|
238
|
-
- data/mime.content_type.column
|
239
|
-
- data/mime.docs.column
|
240
|
-
- data/mime.encoding.column
|
241
|
-
- data/mime.friendly.column
|
242
|
-
- data/mime.obsolete.column
|
243
|
-
- data/mime.registered.column
|
244
|
-
- data/mime.signature.column
|
245
|
-
- data/mime.use_instead.column
|
246
|
-
- data/mime.xrefs.column
|
247
|
-
- docs/COPYING.txt
|
248
|
-
- docs/artistic.txt
|
249
273
|
- lib/mime-types.rb
|
250
274
|
- lib/mime/type.rb
|
251
275
|
- lib/mime/type/columnar.rb
|
252
276
|
- lib/mime/types.rb
|
253
277
|
- lib/mime/types/cache.rb
|
254
278
|
- lib/mime/types/columnar.rb
|
279
|
+
- lib/mime/types/container.rb
|
255
280
|
- lib/mime/types/deprecations.rb
|
281
|
+
- lib/mime/types/full.rb
|
256
282
|
- lib/mime/types/loader.rb
|
257
|
-
- lib/mime/types/loader_path.rb
|
258
283
|
- lib/mime/types/logger.rb
|
259
|
-
-
|
284
|
+
- lib/mime/types/registry.rb
|
260
285
|
- support/benchmarks/load.rb
|
261
286
|
- support/benchmarks/load_allocations.rb
|
262
287
|
- support/benchmarks/object_counts.rb
|
263
|
-
- support/
|
264
|
-
- support/
|
265
|
-
- support/
|
288
|
+
- support/profile/columnar.rb
|
289
|
+
- support/profile/columnar_full.rb
|
290
|
+
- support/profile/full.rb
|
266
291
|
- test/bad-fixtures/malformed
|
267
292
|
- test/fixture/json.json
|
268
293
|
- test/fixture/old-data
|
@@ -277,8 +302,6 @@ files:
|
|
277
302
|
homepage: https://github.com/mime-types/ruby-mime-types/
|
278
303
|
licenses:
|
279
304
|
- MIT
|
280
|
-
- Artistic-2.0
|
281
|
-
- GPL-2.0
|
282
305
|
metadata: {}
|
283
306
|
post_install_message:
|
284
307
|
rdoc_options:
|
@@ -290,7 +313,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
313
|
requirements:
|
291
314
|
- - ">="
|
292
315
|
- !ruby/object:Gem::Version
|
293
|
-
version:
|
316
|
+
version: '2.0'
|
294
317
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
318
|
requirements:
|
296
319
|
- - ">="
|
@@ -298,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
321
|
version: '0'
|
299
322
|
requirements: []
|
300
323
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.
|
324
|
+
rubygems_version: 2.4.8
|
302
325
|
signing_key:
|
303
326
|
specification_version: 4
|
304
327
|
summary: The mime-types library provides a library and registry for information about
|
data/History-Types.rdoc
DELETED
@@ -1,454 +0,0 @@
|
|
1
|
-
= MIME Types Changes by Version
|
2
|
-
|
3
|
-
== 2.99.3 / 2016-09-10
|
4
|
-
|
5
|
-
* Updated the IANA media registry entries as of release date:
|
6
|
-
* Updated metadata for application/EmergencyCallData.Comment\+xml,
|
7
|
-
application/EmergencyCallData.DeviceInfo\+xml,
|
8
|
-
application/EmergencyCallData.ProviderInfo\+xml,
|
9
|
-
application/EmergencyCallData.ServiceInfo\+xml,
|
10
|
-
application/EmergencyCallData.SubscriberInfo\+xml, application/ipp,
|
11
|
-
application/json, application/ppsp-tracker\+json, application/rfc\+xml,
|
12
|
-
application/vnd.geo\+json (obsoleted, use application/geo\+json instead),
|
13
|
-
application/vnd.oma.bcast.associated-procedure-parameter+xml,
|
14
|
-
application/vnd.oma.bcast.drm-trigger+xml,
|
15
|
-
application/vnd.oma.bcast.imd+xml, application/vnd.oma.bcast.ltkm,
|
16
|
-
application/vnd.oma.bcast.notification+xml,
|
17
|
-
application/vnd.oma.bcast.provisioningtrigger,
|
18
|
-
application/vnd.oma.bcast.sgboot, application/vnd.oma.bcast.sgdd+xml,
|
19
|
-
application/vnd.oma.bcast.sgdu,
|
20
|
-
application/vnd.oma.bcast.simple-symbol-container,
|
21
|
-
application/vnd.oma.bcast.smartcard-trigger+xml,
|
22
|
-
application/vnd.oma.bcast.sprov+xml, application/vnd.oma.bcast.stkm,
|
23
|
-
application/vnd.oma.dcd, application/vnd.oma.dcdc,
|
24
|
-
application/vnd.oma.drm.risd+xml, application/vnd.oma.lwm2m+json,
|
25
|
-
application/vnd.oma.pal+xml, application/vnd.oma.scidm.messages+xml,
|
26
|
-
multipart/voice-message, video/VP8.
|
27
|
-
* Added application/clue_info\+xml, application/geo\+json,
|
28
|
-
application/lgr\+xml, application/vnd.amazon.mobi8-ebook,
|
29
|
-
application/vnd.chess-pgn, application/vnd.comicbook\+zip,
|
30
|
-
application/vnd.espass-espass\+zip, application/vnd.nearst.inv\+json,
|
31
|
-
application/vnd.oma.lwm2m+tlv, application/vnd.rar, image/dicom-rle,
|
32
|
-
image/jls, image/x-emf (registered & obsoleted, use image/emf instead),
|
33
|
-
image/x-wmf (registered & obsoleted, use image/wmf instead),
|
34
|
-
model/gltf+json, text/vnd.ascii-art.
|
35
|
-
|
36
|
-
== 2.99.2 / 2016-05-21
|
37
|
-
|
38
|
-
* Updated the known extension list for application/octet-stream and
|
39
|
-
application/pgp-encrypted to include gpg as an extension.
|
40
|
-
* Updated the IANA media registry entries as of release date:
|
41
|
-
* Updated metadata for application/EmergencyCallData.Comment\+xml,
|
42
|
-
application/EmergencyCallData.DeviceInfo\+xml,
|
43
|
-
application/EmergencyCallData.ProviderInfo\+xml,
|
44
|
-
application/EmergencyCallData.ServiceInfo\+xml,
|
45
|
-
application/EmergencyCallData.SubscriberInfo\+xml,
|
46
|
-
application/ogg, application/problem\+json, application/problem\+xml,
|
47
|
-
audio/ogg, teext/markdown, video/H265, video/ogg.
|
48
|
-
* Added application/efi, application/vnd.3gpp.sms\+xml,
|
49
|
-
application/vnd.3lightssoftware.imagescal,
|
50
|
-
application/vnd.coreos.ignition\+json, application/vnd.oma.lwm2m\+json,
|
51
|
-
application/vnd.onepager, application/vnd.quarantainenet,
|
52
|
-
application/vnd.vel\+json, image/emf, image/wmf, text/prs.prop.logic.
|
53
|
-
* image/bmp has a draft RFC which would make it official; it has been finally
|
54
|
-
been registered. As such, this version *reverses* the use-instead
|
55
|
-
relationship of image/bmp and image/x-bmp.
|
56
|
-
|
57
|
-
== 2.99.1 / 2016-02-21
|
58
|
-
|
59
|
-
* Updated the known extensions list for audio/mp4.
|
60
|
-
* Updated the IANA media registry entries as of release date:
|
61
|
-
* Updated metadata for 3GPP-defined types (there are many),
|
62
|
-
application/cdni, and application/rfc\+xml.
|
63
|
-
* Added application/EmergencyCallData.Comment\+xml,
|
64
|
-
application/EmergencyCallData.DeviceInfo\+xml,
|
65
|
-
application/EmergencyCallData.ProviderInfo\+xml,
|
66
|
-
application/EmergencyCallData.ServiceInfo\+xml,
|
67
|
-
application/ppsp-tracker\+json, application/problem\+json,
|
68
|
-
application/problem\+xml, application/vnd.filmit.zfc, application/vnd.hdt,
|
69
|
-
application/vnd.mapbox-vector-tile,
|
70
|
-
application/vnd.ms-PrintDeviceCapabilities\+xml,
|
71
|
-
application/vnd.ms-PrintSchemaTicket\+xml,
|
72
|
-
application/vnd.ms-windows.nwprinting.oob, application/vnd.tml,
|
73
|
-
model/vnd.rosette.annotated-data-model, and video/H265
|
74
|
-
|
75
|
-
== 2.99 / 2015-11-21
|
76
|
-
|
77
|
-
* Removed deprecated fields from the data files.
|
78
|
-
* Updated the IANA media registry entries as of release date:
|
79
|
-
* Updated metadata for application/scim\+json, audio/G711-0, text/markdown.
|
80
|
-
* Added application/cdni, application/csvm\+json, application/rfc\+xml,
|
81
|
-
application/vnd.3gpp.access-transfer-events\+xml,
|
82
|
-
application/vnd.3gpp.srvcc-ext\+xml, application/vnd.3gpp.SRVCC-info\+xml,
|
83
|
-
application/vnd.ms-windows.devicepairing,
|
84
|
-
application/vnd.ms-windows.wsd.oob, application/vnd.oxli.countgraph,
|
85
|
-
application/vnd.pagerduty\+json, video/VP8.
|
86
|
-
|
87
|
-
== 2.6.2 / 2015-09-13
|
88
|
-
|
89
|
-
* Updated the IANA media registry entries as of release date:
|
90
|
-
* Updated metadata for application/cals-1840, application/index.obj,
|
91
|
-
application/ocsp-response, application/vnd.dtg.local.html,
|
92
|
-
application/vnd.pwg-multiplexed, audio/G7221, audio/opus,
|
93
|
-
* Added application/pkcs12, application/scim\+json, multipart/form-data.
|
94
|
-
application/vnd.3gpp-prose\+xml, application/vnd.3gpp-prose-pc3ch\+xml,
|
95
|
-
application/vnd.3gpp.mid-call\+xml,
|
96
|
-
application/vnd.3gpp-state-and-event-info\+xml, application.3gpp.ussd\+xml,
|
97
|
-
application/vnd.anki, application/vnd.biopax.rdf\+xml,
|
98
|
-
application/vnd.drive\+json, application/vnd.firemonkeys.cloudcell,
|
99
|
-
application/vnd.hyperdrive\+json, application/vnd.openblox.game\+xml,
|
100
|
-
application/vnd.openblox.game-binary, application/vnd.uri-map,
|
101
|
-
audio/G711-0, image/vnd.mozilla.apng.
|
102
|
-
|
103
|
-
== 2.6 / 2015-05-25
|
104
|
-
|
105
|
-
* Steven Michael Thomas (@stevenmichaelthomas) added +woff2+ as an extension to
|
106
|
-
application/font-woff,
|
107
|
-
{#99}[https://github.com/mime-types/ruby-mime-types/pull/99].
|
108
|
-
* Updated the IANA media registry entries as of release date:
|
109
|
-
* Updated metadata for application/jose, application/jose\+json,
|
110
|
-
application/jwk\+json, application/jwk-set\+json, application/jwt to
|
111
|
-
reflect the adoption of RFC7519.
|
112
|
-
* Added application/vnd.balsamiq.bmpr.
|
113
|
-
|
114
|
-
== 2.5 / 2015-04-25
|
115
|
-
|
116
|
-
* Updated the IANA media registry entries as of release date:
|
117
|
-
* Added MIME types: application/A2L, application/AML, application/ATFX,
|
118
|
-
application/ATXML, application/CDFX\+XML, application/CEA, application/DII,
|
119
|
-
application/DIT, application/jose, application/jose\+json,
|
120
|
-
application/json-seq, application/jwk\+json, application/jwk-set\+json,
|
121
|
-
application/jwt, application/LXF, application/MF4, application/rdap\+json,
|
122
|
-
application/vnd.apache.thrift.compact, vnd.apache.thrift.json,
|
123
|
-
application/vnd.citationstyles.style\+xml, application/vnd.coffeescript,
|
124
|
-
application/vnd.enphase.envoy, application/vnd.fastcopy-disk-image,
|
125
|
-
application/vnd.gerber, application/vnd.gov.sk.e-form\+xml,
|
126
|
-
application/vnd.gov.sk.e-form\+zip,
|
127
|
-
application/vnd.gov.sk.xmldatacontainer\+xml,
|
128
|
-
application/vnd.ims.imsccv1p1, application/vnd.ims.imsccv1p2,
|
129
|
-
application/vnd.ims.imsccv1p3, application/vnd.micro\+json,
|
130
|
-
application/vnd.microsoft.portable-executable,
|
131
|
-
application/vnd.msa-disk-image, application/vnd.oracle.resource\+json,
|
132
|
-
application/vnd.tmd.mediaflex.api\+xml, audio/opus, image/vnd.zbrush.pcx,
|
133
|
-
text/csv-schema, text/markdown (marked as TEMPORARY).
|
134
|
-
* Updated metadata for application/coap-group\+json (RFC7390),
|
135
|
-
application/epub\+zip (now registered), application/merge-patch\+json
|
136
|
-
(RFC7396), application/smil, application/vnd.arastra.swi,
|
137
|
-
application/vnd.geocube\+xml, application/vnd.gmx, application/xhtml\+xml,
|
138
|
-
text/directory.
|
139
|
-
* Andy Brody (@ab) fixed a pair of embarrassing typos in text/csv and
|
140
|
-
text/tab-separated-values,
|
141
|
-
{#89}[https://github.com/mime-types/ruby-mime-types/pull/89].
|
142
|
-
* Aggelos Avgerinos (@eavgerinos) added the unregistered MIME type
|
143
|
-
image/x-ms-bmp with the extension +bmp+,
|
144
|
-
{#90}[https://github.com/mime-types/ruby-mime-types/pull/90].
|
145
|
-
|
146
|
-
== 2.4.2 / 2014-10-15
|
147
|
-
|
148
|
-
* Added application/vnd.ms-outlook as an unregistered MIME type with the
|
149
|
-
extension +msg+. Provided by @keerthisiv in
|
150
|
-
{#72}[https://github.com/mime-types/ruby-mime-types/pull/72].
|
151
|
-
|
152
|
-
== 2.4.1 / 2014-10-07
|
153
|
-
|
154
|
-
* Changed the sort order of many of the extensions to restore behaviour
|
155
|
-
from mime-types 1.25.1.
|
156
|
-
* Added +friendly+ MIME::Type descriptions where known.
|
157
|
-
* Added +reg+, +ps1+, and +vbs+ extensions to application/x-msdos-program and
|
158
|
-
application/x-msdownload.
|
159
|
-
* Updated the IANA media registry entries as of release date.
|
160
|
-
* Several MIME types had updated metadata (application/alto-*, RFC7285;
|
161
|
-
application/calendar\+json, RFC7265; application/http, RFC7230;
|
162
|
-
application/xml, RFC7303; application/xml-dtd, RFC7303;
|
163
|
-
application/xml-external-parsed-entity, RFC7303; audio/AMR-WB, RFC4867;
|
164
|
-
audio/aptx, RFC7310; message/http, RFC7230; multipart/byteranges, RFC7233;
|
165
|
-
text/xml, RFC7303; text/xml-external-parsed-entity, RFC7303)
|
166
|
-
* MIME::Type application/EDI-Consent was renamed to application/EDI-consent.
|
167
|
-
* Obsoleted application/vnd.informix-visionary in favour of
|
168
|
-
application/vnd.visionary. Obsoleted
|
169
|
-
application/vnd.nokia.n-gage.symbian.install with no replacement.
|
170
|
-
* Added MIME types: application/ATF, application/coap-group\+json,
|
171
|
-
application/DCD, application/merge-patch\+json, application/scaip\+xml,
|
172
|
-
application/vnd.apache.thrift.binary, application/vnd.artsquare,
|
173
|
-
application/vnd.doremir.scorecloud-binary-document, application/vnd.dzr,
|
174
|
-
application/vnd.maxmind.maxmind-db,
|
175
|
-
application/vnd.ntt-local.ogw_remote-access, application/xml-patch\+xml,
|
176
|
-
image/vnd.tencent.tap.
|
177
|
-
|
178
|
-
== 2.3 / 2014-05-23
|
179
|
-
|
180
|
-
* Updated the IANA media registry entries as of release date.
|
181
|
-
* Several MIME types had additional metadata added on the most recent import.
|
182
|
-
* MIME::Type application/pidfxml was renamed to application/pidf\+xml.
|
183
|
-
* Added MIME types: application/3gpdash-qoe-report\+xml,
|
184
|
-
application/alto-costmap\+json, application/alto-costmapfilter\+json,
|
185
|
-
application/alto-directory\+json, application/alto-endpointcost\+json,
|
186
|
-
application/alto-endpointcostparams\+json,
|
187
|
-
application/alto-endpointprop\+json,
|
188
|
-
application/alto-endpointpropparams\+json, application/alto-error\+json,
|
189
|
-
application/alto-networkmap\+json, application/alto-networkmapfilter\+json,
|
190
|
-
application/calendar\+json, application/vnd.debian.binary-package,
|
191
|
-
application/vnd.geo\+json,
|
192
|
-
application/vnd.ims.lis.v2.result\+json,
|
193
|
-
application/vnd.ims.lti.v2.toolconsumerprofile\+json,
|
194
|
-
application/vnd.ims.lti.v2.toolproxy\+json,
|
195
|
-
application/vnd.ims.lti.v2.toolproxy.id\+json,
|
196
|
-
application/vnd.ims.lti.v2.toolsettings\+json,
|
197
|
-
application/vnd.ims.lti.v2.toolsettings.simple\+json,
|
198
|
-
application/vnd.mason\+json, application/vnd.miele\+json,
|
199
|
-
application/vnd.ms-3mfdocument, application/vnd.panoply,
|
200
|
-
application/vnd.valve.source.material, application/vnd.yaoweme, audio/aptx,
|
201
|
-
image/vnd.valve.source.texture, model/vnd.opengex,
|
202
|
-
model/vnd.valve.source.compiled-map, model/x3d\+fastinfoset,
|
203
|
-
text/cache-manifest
|
204
|
-
|
205
|
-
== 2.2 / 2014-03-14
|
206
|
-
* Added <tt>.sj</tt> to +application/javascript+ as provided by Brandon
|
207
|
-
Galbraith (@brandongalbraith) in
|
208
|
-
{#58}[https://github.com/mime-types/ruby-mime-types/pull/58].
|
209
|
-
* Marked application/excel and application/x-excel as obsolete in favour of
|
210
|
-
application/vnd.ms-excel per
|
211
|
-
{#60}[https://github.com/mime-types/ruby-mime-types/pull/60].
|
212
|
-
* Merged duplicate MIME types into the registered MIME type. The only
|
213
|
-
difference between the MIME types was capitalization; the MIME type registry
|
214
|
-
is case-preserving.
|
215
|
-
* Affected MIME types: application/vnd.3M.Post-it-Notes,
|
216
|
-
application/vnd.FloGraphIt, application/vnd.HandHeld-Entertainment\+xml,
|
217
|
-
application/vnd.hp-HPGL, application/vnd.hp-PCL, application/vnd.hp-PCLXL,
|
218
|
-
application/vnd.ibm.MiniPay, application/vnd.Kinar, application/vnd.MFER,
|
219
|
-
application/vnd.Mobius.DAF, application/vnd.Mobius.DIS,
|
220
|
-
application/vnd.Mobius.MBK, application/vnd.Mobius.MSL,
|
221
|
-
application/vnd.Mobius.MQY, application/vnd.Mobius.PLC,
|
222
|
-
application/vnd.Mobius.TXF, application/vnd.ms-excel.addin.macroEnabled.12,
|
223
|
-
application/vnd.ms-excel.sheet.binary.macroEnabled.12,
|
224
|
-
application/vnd.ms-excel.sheet.macroEnabled.12,
|
225
|
-
application/vnd.ms-excel.template.macroEnabled.12,
|
226
|
-
application/vnd.ms-powerpoint.addin.macroEnabled.12,
|
227
|
-
application/vnd.ms-powerpoint.presentation.macroEnabled.12,
|
228
|
-
application/vnd.ms-powerpoint.slide.macroEnabled.12,
|
229
|
-
application/vnd.ms-powerpoint.slideshow.macroEnabled.12,
|
230
|
-
application/vnd.ms-powerpoint.template.macroEnabled.12,
|
231
|
-
application/vnd.ms-word.document.macroEnabled.12,
|
232
|
-
application/vnd.ms-word.template.macroEnabled.12,
|
233
|
-
application/vnd.novadigm.EDM, application/vnd.novadigm.EDX,
|
234
|
-
application/vnd.novadigm.EXT, application/vnd.Quark.QuarkXPress,
|
235
|
-
application/vnd.SimTech-MindMapper, audio/AMR-WB, video/H261, video/H263,
|
236
|
-
video/H264, video/JPEG, video/MJ2.
|
237
|
-
|
238
|
-
* Updated the IANA media registry entries as of release date.
|
239
|
-
* Registered type person names have been updated from surname only to full
|
240
|
-
name.
|
241
|
-
* Several types had updated RFC or draft RFC references.
|
242
|
-
* Added application/bacnet-xdd\+zip, application/cms,
|
243
|
-
application/load-control\+xml, application/PDX, application/ttml\+xml,
|
244
|
-
application/vnd.collection.doc\+json,
|
245
|
-
application/vnd.iptc.g2.catalogitem\+xml, application/vnd.pcos,
|
246
|
-
text/parameters, text/vnd.a, video/iso.segment
|
247
|
-
|
248
|
-
== 2.1 / 2014-01-25
|
249
|
-
|
250
|
-
* The IANA media type registry format changed, resulting in updates to most of
|
251
|
-
the 1,427 registered MIME types.
|
252
|
-
* Many registered MIME types have had some metadata updates due to the change
|
253
|
-
in the IANA registry format.
|
254
|
-
* MIME types having a publicly available registry application now include a
|
255
|
-
link to that file in references.
|
256
|
-
* Added +xrefs+ data as discovered (see the API changes noted above).
|
257
|
-
* The Apache mime types configuration has been added to track additional common
|
258
|
-
but unregistered MIME types and known extensions for those MIME types. This
|
259
|
-
has affected many of the available MIME types.
|
260
|
-
* Added newly registered MIME types:
|
261
|
-
* application/emotionml\+xml
|
262
|
-
* application/ODX
|
263
|
-
* application/prs.hpub\+zip
|
264
|
-
* application/vcard\+json
|
265
|
-
* application/vnd.bekitzur-stech\+json
|
266
|
-
* application/vnd.etsi.timestamp-token
|
267
|
-
* application/vnd.oma.cab-feature-handler\+xml
|
268
|
-
* application/vnd.openeye.oeb
|
269
|
-
* application/vnd.tcpdump.pcap
|
270
|
-
* audio/amr-wb
|
271
|
-
* model/x3d\+xml
|
272
|
-
* model/x3d-vrml
|
273
|
-
* Added 180 unregistered MIME types from the Apache list:
|
274
|
-
* application/applixware
|
275
|
-
* application/cu-seeme
|
276
|
-
* application/docbook\+xml
|
277
|
-
* application/gml\+xml
|
278
|
-
* application/gpx\+xml
|
279
|
-
* application/gxf
|
280
|
-
* application/java-archive
|
281
|
-
* application/java-serialized-object
|
282
|
-
* application/java-vm
|
283
|
-
* application/jsonml\+json
|
284
|
-
* application/metalink\+xml
|
285
|
-
* application/omdoc\+xml
|
286
|
-
* application/onenote
|
287
|
-
* application/pics-rules
|
288
|
-
* application/rsd\+xml
|
289
|
-
* application/ssdl\+xml
|
290
|
-
* application/vnd.3m.post-it-notes
|
291
|
-
* application/vnd.amazon.ebook
|
292
|
-
* application/vnd.anser-web-funds-transfer-initiation
|
293
|
-
* application/vnd.curl.car
|
294
|
-
* application/vnd.curl.pcurl
|
295
|
-
* application/vnd.dolby.mlp
|
296
|
-
* application/vnd.ds-keypoint
|
297
|
-
* application/vnd.flographit
|
298
|
-
* application/vnd.handheld-entertainment\+xml
|
299
|
-
* application/vnd.hp-hpgl
|
300
|
-
* application/vnd.hp-pcl
|
301
|
-
* application/vnd.hp-pclxl
|
302
|
-
* application/vnd.ibm.minipay
|
303
|
-
* application/vnd.kinar
|
304
|
-
* application/vnd.mfer
|
305
|
-
* application/vnd.mobius.daf
|
306
|
-
* application/vnd.mobius.dis
|
307
|
-
* application/vnd.mobius.mbk
|
308
|
-
* application/vnd.mobius.mqy
|
309
|
-
* application/vnd.mobius.msl
|
310
|
-
* application/vnd.mobius.plc
|
311
|
-
* application/vnd.mobius.txf
|
312
|
-
* application/vnd.ms-excel.addin.macroenabled.12
|
313
|
-
* application/vnd.ms-excel.sheet.binary.macroenabled.12
|
314
|
-
* application/vnd.ms-excel.sheet.macroenabled.12
|
315
|
-
* application/vnd.ms-excel.template.macroenabled.12
|
316
|
-
* application/vnd.ms-pki.seccat
|
317
|
-
* application/vnd.ms-pki.stl
|
318
|
-
* application/vnd.ms-powerpoint.addin.macroenabled.12
|
319
|
-
* application/vnd.ms-powerpoint.presentation.macroenabled.12
|
320
|
-
* application/vnd.ms-powerpoint.slide.macroenabled.12
|
321
|
-
* application/vnd.ms-powerpoint.slideshow.macroenabled.12
|
322
|
-
* application/vnd.ms-powerpoint.template.macroenabled.12
|
323
|
-
* application/vnd.ms-word.document.macroenabled.12
|
324
|
-
* application/vnd.ms-word.template.macroenabled.12
|
325
|
-
* application/vnd.novadigm.edm
|
326
|
-
* application/vnd.novadigm.edx
|
327
|
-
* application/vnd.novadigm.ext
|
328
|
-
* application/vnd.quark.quarkxpress
|
329
|
-
* application/vnd.rim.cod
|
330
|
-
* application/vnd.rn-realmedia-vbr
|
331
|
-
* application/vnd.simtech-mindmapper
|
332
|
-
* application/vnd.symbian.install
|
333
|
-
* application/winhlp
|
334
|
-
* application/x-abiword
|
335
|
-
* application/x-ace-compressed
|
336
|
-
* application/x-authorware-bin
|
337
|
-
* application/x-authorware-map
|
338
|
-
* application/x-authorware-seg
|
339
|
-
* application/x-bittorrent
|
340
|
-
* application/x-blorb
|
341
|
-
* application/x-bzip
|
342
|
-
* application/x-cbr
|
343
|
-
* application/x-cfs-compressed
|
344
|
-
* application/x-chat
|
345
|
-
* application/x-conference
|
346
|
-
* application/x-dgc-compressed
|
347
|
-
* application/x-doom
|
348
|
-
* application/x-dtbncx\+xml
|
349
|
-
* application/x-dtbook\+xml
|
350
|
-
* application/x-dtbresource\+xml
|
351
|
-
* application/x-envoy
|
352
|
-
* application/x-eva
|
353
|
-
* application/x-font-bdf
|
354
|
-
* application/x-font-ghostscript
|
355
|
-
* application/x-font-linux-psf
|
356
|
-
* application/x-font-otf
|
357
|
-
* application/x-font-pcf
|
358
|
-
* application/x-font-snf
|
359
|
-
* application/x-font-ttf
|
360
|
-
* application/x-font-type1
|
361
|
-
* application/x-freearc
|
362
|
-
* application/x-gca-compressed
|
363
|
-
* application/x-glulx
|
364
|
-
* application/x-gnumeric
|
365
|
-
* application/x-gramps-xml
|
366
|
-
* application/x-install-instructions
|
367
|
-
* application/x-iso9660-image
|
368
|
-
* application/x-lzh-compressed
|
369
|
-
* application/x-mie
|
370
|
-
* application/x-ms-application
|
371
|
-
* application/x-ms-shortcut
|
372
|
-
* application/x-ms-xbap
|
373
|
-
* application/x-msbinder
|
374
|
-
* application/x-mscardfile
|
375
|
-
* application/x-msclip
|
376
|
-
* application/x-msmediaview
|
377
|
-
* application/x-msmetafile
|
378
|
-
* application/x-msmoney
|
379
|
-
* application/x-mspublisher
|
380
|
-
* application/x-msschedule
|
381
|
-
* application/x-msterminal
|
382
|
-
* application/x-mswrite
|
383
|
-
* application/x-nzb
|
384
|
-
* application/x-pkcs12
|
385
|
-
* application/x-pkcs7-certificates
|
386
|
-
* application/x-pkcs7-certreqresp
|
387
|
-
* application/x-research-info-systems
|
388
|
-
* application/x-silverlight-app
|
389
|
-
* application/x-sql
|
390
|
-
* application/x-stuffitx
|
391
|
-
* application/x-subrip
|
392
|
-
* application/x-t3vm-image
|
393
|
-
* application/x-tads
|
394
|
-
* application/x-tex-tfm
|
395
|
-
* application/x-tgif
|
396
|
-
* application/x-xfig
|
397
|
-
* application/x-xliff\+xml
|
398
|
-
* application/x-xz
|
399
|
-
* application/x-zmachine
|
400
|
-
* application/xaml\+xml
|
401
|
-
* application/xproc\+xml
|
402
|
-
* application/xspf\+xml
|
403
|
-
* audio/adpcm
|
404
|
-
* audio/amr-wb
|
405
|
-
* audio/AMR-WB
|
406
|
-
* audio/midi
|
407
|
-
* audio/s3m
|
408
|
-
* audio/silk
|
409
|
-
* audio/x-caf
|
410
|
-
* audio/x-flac
|
411
|
-
* audio/x-matroska
|
412
|
-
* audio/x-mpegurl
|
413
|
-
* audio/xm
|
414
|
-
* chemical/x-cdx
|
415
|
-
* chemical/x-cif
|
416
|
-
* chemical/x-cmdf
|
417
|
-
* chemical/x-cml
|
418
|
-
* chemical/x-csml
|
419
|
-
* image/sgi
|
420
|
-
* image/vnd.ms-photo
|
421
|
-
* image/x-3ds
|
422
|
-
* image/x-cmx
|
423
|
-
* image/x-freehand
|
424
|
-
* image/x-icon
|
425
|
-
* image/x-mrsid-image
|
426
|
-
* image/x-pcx
|
427
|
-
* image/x-tga
|
428
|
-
* model/x3d\+binary
|
429
|
-
* model/x3d\+vrml
|
430
|
-
* text/plain
|
431
|
-
* text/vnd.curl.dcurl
|
432
|
-
* text/vnd.curl.mcurl
|
433
|
-
* text/vnd.curl.scurl
|
434
|
-
* text/x-asm
|
435
|
-
* text/x-c
|
436
|
-
* text/x-fortran
|
437
|
-
* text/x-java-source
|
438
|
-
* text/x-nfo
|
439
|
-
* text/x-opml
|
440
|
-
* text/x-pascal
|
441
|
-
* text/x-sfv
|
442
|
-
* text/x-uuencode
|
443
|
-
* video/h261
|
444
|
-
* video/h263
|
445
|
-
* video/h264
|
446
|
-
* video/jpeg
|
447
|
-
* video/jpm
|
448
|
-
* video/mj2
|
449
|
-
* video/x-f4v
|
450
|
-
* video/x-m4v
|
451
|
-
* video/x-mng
|
452
|
-
* video/x-ms-vob
|
453
|
-
* video/x-smv
|
454
|
-
* Merged the non-standard VMS platform text/plain with the standard text/plain.
|