mime-types 2.99.3 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/{Code-of-Conduct.rdoc → Code-of-Conduct.md} +19 -20
- data/Contributing.md +143 -0
- data/History.md +240 -0
- data/{Licence.rdoc → Licence.md} +4 -18
- data/Manifest.txt +8 -25
- data/README.rdoc +62 -73
- data/Rakefile +175 -58
- data/lib/mime-types.rb +1 -1
- data/lib/mime/type.rb +213 -424
- data/lib/mime/type/columnar.rb +29 -62
- data/lib/mime/types.rb +46 -141
- data/lib/mime/types/_columnar.rb +136 -0
- data/lib/mime/types/cache.rb +51 -73
- data/lib/mime/types/columnar.rb +2 -147
- data/lib/mime/types/container.rb +96 -0
- data/lib/mime/types/deprecations.rb +4 -25
- data/lib/mime/types/full.rb +19 -0
- data/lib/mime/types/loader.rb +12 -141
- data/lib/mime/types/logger.rb +5 -1
- data/lib/mime/types/registry.rb +90 -0
- data/test/minitest_helper.rb +5 -13
- data/test/test_mime_type.rb +470 -456
- data/test/test_mime_types.rb +135 -87
- data/test/test_mime_types_cache.rb +82 -54
- data/test/test_mime_types_class.rb +118 -98
- data/test/test_mime_types_lazy.rb +26 -24
- data/test/test_mime_types_loader.rb +6 -33
- metadata +107 -64
- data/Contributing.rdoc +0 -170
- data/History-Types.rdoc +0 -454
- data/History.rdoc +0 -590
- 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/benchmarks/load.rb +0 -64
- data/support/benchmarks/load_allocations.rb +0 -83
- data/support/benchmarks/object_counts.rb +0 -41
- data/support/convert.rb +0 -158
- data/support/convert/columnar.rb +0 -88
- data/support/iana_registry.rb +0 -172
data/History.rdoc
DELETED
@@ -1,590 +0,0 @@
|
|
1
|
-
== 2.99.3 / 2016-09-10
|
2
|
-
|
3
|
-
* Data release. This release reflects updates to the embedded MIME type data on
|
4
|
-
the specified quarterly schedule.
|
5
|
-
|
6
|
-
* Minor improvement to the support build script to only extract supported MIME
|
7
|
-
type name characters from obsoletion or deprecation notes.
|
8
|
-
|
9
|
-
* Removed SimpleCov from the build process. The code here is no longer
|
10
|
-
changing, and its presence causes substantial breakage on Travis for Rubies
|
11
|
-
that are not 2.x-compatible.
|
12
|
-
|
13
|
-
== 2.99.2 / 2016-05-21
|
14
|
-
|
15
|
-
* Data release. This release reflects updates to the embedded MIME type data on
|
16
|
-
the specified quarterly schedule.
|
17
|
-
|
18
|
-
* Minor improvement to the Rakefile, .hoerc, and Manifest to ensure that builds
|
19
|
-
work correctly on Travis.
|
20
|
-
|
21
|
-
* Updated to {Contributor Covenant 1.4}[Code-of-Conduct_rdoc.html].
|
22
|
-
|
23
|
-
== 2.99.1 / 2016-02-21
|
24
|
-
|
25
|
-
* Data release. This release reflects only updates to the embedded MIME type
|
26
|
-
data on the specified quarterly schedule.
|
27
|
-
|
28
|
-
== 2.99 / 2015-11-21
|
29
|
-
|
30
|
-
* 1 governance change
|
31
|
-
|
32
|
-
* This project now has a {Code of Conduct}[Code-of-Conduct_rdoc.html]
|
33
|
-
|
34
|
-
* 1 major change
|
35
|
-
|
36
|
-
* Replaced deprecated fields for MIME types with fixed empty responses.
|
37
|
-
|
38
|
-
== 2.6.2 / 2015-09-13
|
39
|
-
|
40
|
-
* Bugs:
|
41
|
-
* Emilio Losada (@losadaem) fixed an error where +each_with_object+'s block
|
42
|
-
parameters are the inverse of those used by +inject+. Resolves
|
43
|
-
{#107}[https://github.com/mime-types/ruby-mime-types/issues/107] with pull
|
44
|
-
request {#108}[https://github.com/mime-types/ruby-mime-types/pull/108].
|
45
|
-
* Matt Beedle (@mattbeedle) fixed a typo in MIME::Type::Columnar negatively
|
46
|
-
affecting people who use the +use_instead+ functionality. Resolved in
|
47
|
-
{#109}[https://github.com/mime-types/ruby-mime-types/pull/109].
|
48
|
-
* Documentation:
|
49
|
-
* Juanito Fatas (@JuanitoFatas) fixed a documentation issue with the README
|
50
|
-
not properly linking internally on the generated rdoc source. Resolved with
|
51
|
-
{#105}[https://github.com/mime-types/ruby-mime-types/pull/105].
|
52
|
-
* Development:
|
53
|
-
* Fixed a minor issue in the IANA registry parser that would generate empty
|
54
|
-
+text+ xrefs if the +text+ section was empty.
|
55
|
-
|
56
|
-
== 2.6.1 / 2015-05-25
|
57
|
-
|
58
|
-
* Bugs:
|
59
|
-
* Make columnar store handle all supported extensions, not just the first.
|
60
|
-
Resolved in {#103}[https://github.com/mime-types/ruby-mime-types/pull/103]
|
61
|
-
by Jeremy Evans (@jeremyevans).
|
62
|
-
* Avoid circular require when using the columnar store. Resolved in
|
63
|
-
{#102}[https://github.com/mime-types/ruby-mime-types/pull/102] by
|
64
|
-
Jeremy Evans (@jeremyevans).
|
65
|
-
|
66
|
-
== 2.6 / 2015-05-25
|
67
|
-
|
68
|
-
* New Feature:
|
69
|
-
* Columnar data storage for the MIME::Types registry, contributed by Jeremy
|
70
|
-
Evans (@jeremyevans). Reduces default memory use substantially (the mail
|
71
|
-
gem drops from 19 Mib to about 3 Mib). Resolves
|
72
|
-
{#96}[https://github.com/mime-types/ruby-mime-types/pull/96],
|
73
|
-
{#94}[https://github.com/mime-types/ruby-mime-types/issues/94],
|
74
|
-
{#83}[https://github.com/mime-types/ruby-mime-types/issues/83]. Partially
|
75
|
-
addresses {#64}[https://github.com/mime-types/ruby-mime-types/issues/64]
|
76
|
-
and {#62}[https://github.com/mime-types/ruby-mime-types/issues/62].
|
77
|
-
* Development:
|
78
|
-
* Removed caching of deprecation messages in preparation for mime-types 3.0.
|
79
|
-
Now, deprecated methods will always warn their deprecation instead of only
|
80
|
-
warning once.
|
81
|
-
* Added a logger for deprecation messages.
|
82
|
-
* Renamed <tt>lib/mime.rb</tt> to <tt>lib/mime/deprecations.rb</tt> to not
|
83
|
-
conflict with the {mime}[https://rubygems.org/gems/mime] gem on behalf of
|
84
|
-
the maintainers of the {Praxis Framework}[http://praxis-framework.io/].
|
85
|
-
Provided by Josep M. Blanquer (@blanquer),
|
86
|
-
{#100}[https://github.com/mime-types/ruby-mime-types/pull/100].
|
87
|
-
* Added the columnar data conversion tool, also provided by Jeremy Evans.
|
88
|
-
* Documentation:
|
89
|
-
* Improved documentation and ensured that all deprecated methods are marked
|
90
|
-
as such in the documentation.
|
91
|
-
* Development:
|
92
|
-
* Added more Ruby variants to Travis CI.
|
93
|
-
* Silenced deprecation messages for internal tools. Noisy deprecations are
|
94
|
-
noisy, but that's the point.
|
95
|
-
|
96
|
-
== 2.5 / 2015-04-25
|
97
|
-
|
98
|
-
* Bugs:
|
99
|
-
* David Genord (@albus522) fixed a bug in loading MIME::Types cache where a
|
100
|
-
container loaded from cache did not have the expected +default_proc+,
|
101
|
-
{#86}[https://github.com/mime-types/ruby-mime-types/pull/86].
|
102
|
-
* Richard Schneeman (@schneems) provided a patch that substantially reduces
|
103
|
-
unnecessary allocations.
|
104
|
-
* Documentation:
|
105
|
-
* Tibor Szolár (@flexik) fixed a typo in the README,
|
106
|
-
{#82}[https://github.com/mime-types/ruby-mime-types/pull/82]
|
107
|
-
* Fixed {#80}[https://github.com/mime-types/ruby-mime-types/issues/80],
|
108
|
-
clarifying the relationship of MIME::Type#content_type and
|
109
|
-
MIME::Type#simplified, with Ken Ip (@kenips).
|
110
|
-
* Development:
|
111
|
-
* Juanito Fatas (@JuanitoFatas) enabled container mode on Travis CI,
|
112
|
-
{#87}[https://github.com/mime-types/ruby-mime-types/pull/87].
|
113
|
-
* Moved development to a mime-types organization under
|
114
|
-
{mime-types/ruby-mime-types}[https://github.com/mime-types/ruby-mime-types].
|
115
|
-
|
116
|
-
== 2.4.3 / 2014-10-21
|
117
|
-
|
118
|
-
* Bugs:
|
119
|
-
* Restored Ruby 1.9.2 support by using +private_constant+ conditionally.
|
120
|
-
Fixes {#77}[https://github.com/mime-types/ruby-mime-types/issues/77] found by
|
121
|
-
Kris Leech (@krisleech). The conditional use of +private_constant+ here
|
122
|
-
will be removed for mime-types 3.0, when Ruby 1.9.2 support will be
|
123
|
-
unconditionally removed.
|
124
|
-
|
125
|
-
== 2.4.2 / 2014-10-15
|
126
|
-
|
127
|
-
* Bugs:
|
128
|
-
* Aaron Patterson (@tenderlove) found a loading bug and provided a fix that
|
129
|
-
nearly doubled registry load performance
|
130
|
-
({#74}[https://github.com/mime-types/ruby-mime-types/pull/74]).
|
131
|
-
* Godfrey Chan (@chancancode) provided a prophylactic security fix to use
|
132
|
-
<tt>JSON.parse</tt> instead of <tt>JSON.load</tt> in
|
133
|
-
{#75}[https://github.com/mime-types/ruby-mime-types/pull/75]. This provides a
|
134
|
-
20% improvement over the already improved result, resulting in a total 55%
|
135
|
-
performance boost.
|
136
|
-
|
137
|
-
== 2.4.1 / 2014-10-07
|
138
|
-
|
139
|
-
mime-types 2.4 was pulled.
|
140
|
-
|
141
|
-
* Bugs:
|
142
|
-
* Restored the extension sort order from mime-types 1.25.1 and modified
|
143
|
-
MIME::Type#extensions= to no longer sort extensions when set. This resolves
|
144
|
-
{#71}[https://github.com/mime-types/ruby-mime-types/issues/71] and should fix
|
145
|
-
Paperclip.
|
146
|
-
* API Changes:
|
147
|
-
* Added MIME::Type#preferred_extension to return the preferred extension for
|
148
|
-
the MIME type. This should be used in preference to the current mechanism
|
149
|
-
used by many clients, <tt>type.extensions.first</tt>. This will allow the
|
150
|
-
implementation to change over time.
|
151
|
-
* Added MIME::Type#friendly based on the concept presented by Łukasz Śliwa’s
|
152
|
-
{friendly_mime}[https://github.com/lukaszsliwa/friendly_mime] gem. The
|
153
|
-
initial English data for this is pulled from +friendly_mime+.
|
154
|
-
* Added MIME::Type#i18n_key and MIME::Type.i18n_key to represent and convert
|
155
|
-
MIME content types as translation keys for the I18n library.
|
156
|
-
|
157
|
-
* MIME Type Development Tools:
|
158
|
-
* Adding documentation to conversion methods.
|
159
|
-
* Adding some robustness to missing Nokogiri support.
|
160
|
-
* Extending coverage to fully cover new code. Tests now cover all of
|
161
|
-
mime-types.
|
162
|
-
|
163
|
-
== 2.3 / 2014-05-23
|
164
|
-
|
165
|
-
* Bugs:
|
166
|
-
* Fixed a bug in <tt>MIME::Types#type_for</tt> where type specifications that
|
167
|
-
did not match a MIME::Type would be returned as +nil+ inside the returned
|
168
|
-
array. This was incorrect behaviour as those values should not have been
|
169
|
-
returned, resulting in an empty array.
|
170
|
-
* MIME Type Development Tools:
|
171
|
-
* As always, there are bugs in the IANA registry because it's manually
|
172
|
-
maintained. Some robustness has been added to properly writing file
|
173
|
-
template references where the file template reference is not a full media
|
174
|
-
type specification (e.g., 'amr-wb\+' instead of 'audio/amr-wb\+').
|
175
|
-
* Both the IANA and Apache import tools were unnecessarily case-sensitive in
|
176
|
-
matching against already-existing MIME types, resulting in extra work to
|
177
|
-
weed out duplicates that differed only in the case of the canonical content
|
178
|
-
type. This has been fixed.
|
179
|
-
|
180
|
-
== 2.2 / 2014-03-14
|
181
|
-
|
182
|
-
* Clarified contribution guidelines for MIME types. Resolves
|
183
|
-
{#57}[https://github.com/mime-types/ruby-mime-types/issues/57].
|
184
|
-
* Fixed a small bug where deprecated methods would warn of deprecation when
|
185
|
-
called by internal methods. Resolves
|
186
|
-
{#60}[https://github.com/mime-types/ruby-mime-types/issues/60].
|
187
|
-
* Dropped Code Climate; added Coveralls for test coverage reports.
|
188
|
-
* Removing external references to RubyForge, as it is shutting down. Resolves
|
189
|
-
{#59}[https://github.com/mime-types/ruby-mime-types/issues/59].
|
190
|
-
|
191
|
-
== 2.1 / 2014-01-25
|
192
|
-
|
193
|
-
* API Changes (MIME::Type):
|
194
|
-
* Added MIME::Type#xrefs and MIME::Type#xref_urls that have better handling
|
195
|
-
of types of reference information. MIME::Type#references= has been
|
196
|
-
deprecated. In a future release, both MIME::Type#references will be turned
|
197
|
-
into a short-hand view on MIME::Type#xrefs, MIME::Type#urls will be an
|
198
|
-
alias for MIME::Type#xref_urls, and MIME::Type#references= will be removed.
|
199
|
-
* New or Updated MIME Types:
|
200
|
-
* This information is now tracked in History-Types.rdoc.
|
201
|
-
* MIME Type Development Tools:
|
202
|
-
* The IANA registry format changed, breaking the IANA registry tool
|
203
|
-
previously used. Rewrote IANADownloader and IANADownloader::Parser as
|
204
|
-
IANARegistryParser using the XML form.
|
205
|
-
* The LTSW list has been dropped as it has not been updated since 2002.
|
206
|
-
* The default Apache MIME types configuration list is now used to enrich MIME
|
207
|
-
type data with additional extension information.
|
208
|
-
|
209
|
-
== 2.0 / 2013-10-27
|
210
|
-
|
211
|
-
* API Changes (General):
|
212
|
-
* mime-types is no longer compatible with Ruby 1.8. Additionally, for its
|
213
|
-
YAML operations (normally development and test), it requires a YAML parser
|
214
|
-
that conforms to the Psych parser, not the Syck parser. This would only be
|
215
|
-
a problem with an alternative Ruby 1.9.2 interpreter that does not
|
216
|
-
implement the Psych parser conventions by requiring +psych+.
|
217
|
-
* MIME::InvalidContentType has been renamed to
|
218
|
-
MIME::Type::InvalidContentType.
|
219
|
-
* API Changes (MIME::Type):
|
220
|
-
* Construction of a MIME::Type can be with any of the following objects:
|
221
|
-
* An array containing a valid content type identifier and an optional array
|
222
|
-
of extensions. This allows MIME::Type.new to be used instead of
|
223
|
-
MIME::Type.from_array for the most common use-case. Fixes
|
224
|
-
{#43}[https://github.com/mime-types/ruby-mime-types/pull/43].
|
225
|
-
* A Hash containing the output of MIME::Type#to_h, as would be deserialized
|
226
|
-
from the JSON representation of a MIME::Type. This replaces
|
227
|
-
MIME::Type.from_hash using a different parameter set.
|
228
|
-
* Another MIME::Type.
|
229
|
-
* A content type identifier string.
|
230
|
-
* Assignment of an invalid encoding to MIME::Type#encoding= will raise a
|
231
|
-
MIME::Type::InvalidEncoding exception rather than a plain ArgumentError.
|
232
|
-
* MIME::Type#url has been renamed to MIME::Type#references.
|
233
|
-
* MIME::Type#use_instead is now tracked as its own attribute, not as part of
|
234
|
-
MIME::Type#docs.
|
235
|
-
* MIME::Type#system, MIME::Type#system?, MIME::Type#platform?,
|
236
|
-
MIME::Type#to_a, MIME::Type#to_hash, MIME::Type.from_array,
|
237
|
-
MIME::Type.from_hash, and MIME::Type.from_mime_type have been deprecated
|
238
|
-
for removal.
|
239
|
-
* Implemented YAML object encoding and decoding methods,
|
240
|
-
MIME::Type#encode_with and MIME::Type#init_with.
|
241
|
-
* Implemented JSON hash encoding methods.
|
242
|
-
* Added MIME::Type#add_extensions to easily add extensions to a MIME::Type.
|
243
|
-
Fixes {#44}[https://github.com/mime-types/ruby-mime-types/pull/44].
|
244
|
-
* API Changes (MIME::Types):
|
245
|
-
* MIME type caching has been extracted to its own class. It is structurally
|
246
|
-
similar to what was introduced with mime-types 1.25, but is no longer
|
247
|
-
considered an experimental interface.
|
248
|
-
* MIME type loading has been extracted to its own class. Loading has changed
|
249
|
-
substantially.
|
250
|
-
* MIME::Types#[] accepts a new filter flag, :registered. The :platform flag
|
251
|
-
has been deprecated.
|
252
|
-
* The MIME::Types#type_for platform parameter has been deprecated.
|
253
|
-
* Added the ability for MIME::Types#type_for produce results for multiple
|
254
|
-
filenames or extensions by providing an array as the first parameter. Fixes
|
255
|
-
{#42}[https://github.com/mime-types/ruby-mime-types/pull/42].
|
256
|
-
* MIME::Types#add_type_variant and MIME::Types#index_extensions have been
|
257
|
-
deprecated as public methods. They will be private in a future version.
|
258
|
-
* MIME::Types#defined_types, MIME::Types.cache_file,
|
259
|
-
MIME::Types.add_type_variant, and MIME::Types.index_extensions have been
|
260
|
-
deprecated for removal.
|
261
|
-
* Default Registry Changes:
|
262
|
-
* The default registry is now a file in the directory data/, located via
|
263
|
-
MIME::Types::Loader::PATH. +PATH+ is defined in the file
|
264
|
-
lib/mime/types/path.rb so that system packagers only have to modify one
|
265
|
-
file in order to put the registry in a location that is not where a gem
|
266
|
-
version of mime-types would expect it. This resolves issue
|
267
|
-
{#36}[https://github.com/mime-types/ruby-mime-types/pull/36], reported by
|
268
|
-
@postmodern.
|
269
|
-
* The default registry is now a single file in JSON format. This resolves
|
270
|
-
issue {#28}[https://github.com/mime-types/ruby-mime-types/pull/28] reported
|
271
|
-
by @jasonlor (an error with mime-types in MacRuby).
|
272
|
-
* The default registry is compiled from YAML files in type-lists/, resolving
|
273
|
-
issue {#37}[https://github.com/mime-types/ruby-mime-types/pull/37]
|
274
|
-
reported by @postmodern requesting an easier-to-edit format.
|
275
|
-
* New or Updated MIME Types:
|
276
|
-
* Major updates to the registered MIME type list from IANA using the improved
|
277
|
-
developer tools.
|
278
|
-
* Added:
|
279
|
-
* application/xhtml\+xml (HTML5)
|
280
|
-
* multipart/x-mixed-replace (HTML5)
|
281
|
-
* application/vnd.apple.pkpass (Apple PassBook) with extension pkpass.
|
282
|
-
* Modified:
|
283
|
-
* application/gzip (RFC6713) added extension (gz) and encoding.
|
284
|
-
* application/epub\+zip is not a registered MIME type.
|
285
|
-
* application/rss\+xml is not a registered MIME type.
|
286
|
-
* application/x-director reported incorrect extensions.
|
287
|
-
* application/x-gzip marked as obsolete (use application/gzip instead).
|
288
|
-
* application/x-maker marked as obsolete (use application/vnd.framemaker
|
289
|
-
instead).
|
290
|
-
* image/webp is not a registered MIME type; added a URL to Google's
|
291
|
-
proposed standard document.
|
292
|
-
* text/html added URL to the HTML5 specification.
|
293
|
-
* text/cache-manifest added URL to the HTML5 specification.
|
294
|
-
* text/plain (VMS .doc files) marked as non-standard. This type will be
|
295
|
-
merged with the standard text/plain type in a future release.
|
296
|
-
* Added md, markdown, rst, and textile extensions to text/plain.
|
297
|
-
* MIME Type Development Tools:
|
298
|
-
* The benchmarking task has been moved mostly to support/benchmarker.rb.
|
299
|
-
* A task for SimpleCov coverage has been added (<tt>rake test:coverage</tt>).
|
300
|
-
* IANA type registry downloading has been substantially improved and the
|
301
|
-
implementation no longer resides in the Rakefile; it has instead been moved
|
302
|
-
to support/iana_downloader.rb. This takes advantage of the new YAML
|
303
|
-
encoding functionality to update added or modified MIME types
|
304
|
-
non-destructively in <tt>type-lists/</tt> by default.
|
305
|
-
* Rake tasks <tt>convert:yaml:json</tt> and <tt>convert:json:yaml</tt>
|
306
|
-
provide functionality to convert the human-editable YAML format in
|
307
|
-
<tt>type-lists/</tt> to the JSON format in <tt>data/</tt> and vice-versa.
|
308
|
-
This is powered by support/convert.rb.
|
309
|
-
|
310
|
-
== 1.25 / 2013-08-30
|
311
|
-
|
312
|
-
* New Features:
|
313
|
-
* Adding lazy loading and caching functionality to the default data based on
|
314
|
-
work done by Greg Brockman (gdb).
|
315
|
-
* Bugs:
|
316
|
-
* Force the default internal application encoding to be used when reading the
|
317
|
-
MIME types database. Based on a change by briangamble, found in the rapid7
|
318
|
-
fork.
|
319
|
-
* New extensions:
|
320
|
-
* mjpeg (video/x-motion-jpeg) based on a change by punkrats, found in the
|
321
|
-
vidibus fork.
|
322
|
-
* Modernized Minitest configuration.
|
323
|
-
|
324
|
-
== 1.24 / 2013-08-14
|
325
|
-
|
326
|
-
* Code Climate:
|
327
|
-
* Working on improving the quality of the mime-types codebase through the use
|
328
|
-
of Code Climate.
|
329
|
-
* Simplified MIME::Type.from_array to make more assumptions about assignment.
|
330
|
-
* Documentation:
|
331
|
-
* LeoYoung <mrleoyoung@gmail.com> pointed out that the README.rdoc contained
|
332
|
-
examples that could never possibly work because MIME::Types#[] returns (for
|
333
|
-
all the versions I have handy) an array, not a single type. I have updated
|
334
|
-
README.rdoc to reflect this.
|
335
|
-
* Removed Nokogiri as a declared development dependency. It is still required
|
336
|
-
if you're going to use the IANA parser functionality, but it is not necessary
|
337
|
-
for most development purposes. This has been removed to ensure that Travis CI
|
338
|
-
passes on Ruby 1.8.7.
|
339
|
-
* New MIME Types:
|
340
|
-
* 7zip (application/x-7z-compressed). Fixes a request by @kodram.
|
341
|
-
{#32}[https://github.com/mime-types/ruby-mime-types/issues/32]
|
342
|
-
* application/x-www-form-urlencoded. Fixes a request by @alexkwolfe.
|
343
|
-
{#39}[https://github.com/mime-types/ruby-mime-types/issues/39]
|
344
|
-
* Various new MIME types from IANA:
|
345
|
-
* application/mbms-schedule\+xml from 3GPP and Turcotte.
|
346
|
-
* application/provenance\+xml from W3C and Herman.
|
347
|
-
* application/session-info from 3GPP and Firmin.
|
348
|
-
* application/urc-grpsheet\+xml, application/urc-targetdesc\+xml,
|
349
|
-
application/uisocketdesc\+xml from Zimmermann.
|
350
|
-
* application/api\+json from Klabnik.
|
351
|
-
* application/vnd.etsi.pstn\+xml from Han and Belling.
|
352
|
-
* application/vnd.fujixerox.docuworks.container from Tashiro.
|
353
|
-
* application/vnd.windows.devicepairing from Dandawate.
|
354
|
-
* video/vnd.radgamettools.bink and video/vnd.radgamettools.smacker from
|
355
|
-
Andersson.
|
356
|
-
* Updated MIME Types:
|
357
|
-
* RFC 6960 was adopted (application/ocsp-request and application/ocsp-response).
|
358
|
-
|
359
|
-
== 1.23 / 2013-04-20
|
360
|
-
|
361
|
-
* New Feature:
|
362
|
-
* Arnaud Meuret (@ameuret) suggested that it could be useful if the MIME type
|
363
|
-
collection was enumerable, so he implemented it in
|
364
|
-
{#30}[https://github.com/mime-types/ruby-mime-types/pull/30]. Thanks for
|
365
|
-
the contribution!
|
366
|
-
* Updated MIME Types:
|
367
|
-
* RFC6910 was adopted (application/call-completion).
|
368
|
-
* RFC6902 was adopted (application/json-patch\+json).
|
369
|
-
* RFC6917 was adopted (application/mrb-consumer\+xml,
|
370
|
-
application/mrb-publish\+xml).
|
371
|
-
* RFC6922 was adopted (application/sql).
|
372
|
-
* RFC2560 is being
|
373
|
-
{updated}[http://tools.ietf.org/html/draft-ietf-pkix-rfc2560bis].
|
374
|
-
* Administrivia:
|
375
|
-
* The gemspec now includes information about the licenses under which the
|
376
|
-
mime-types gem is available.
|
377
|
-
* Using hoe-gemspec2 instead of hoe-gemspec.
|
378
|
-
|
379
|
-
== 1.22 / 2013-03-30
|
380
|
-
|
381
|
-
* New MIME Types:
|
382
|
-
* Added support for 3FR (Hasselblad raw images) files. MIME-Type was obtained
|
383
|
-
by looking at exif data with exiftool. Thanks to cgat for these changes.
|
384
|
-
{#27}[https://github.com/mime-types/ruby-mime-types/pull/27]
|
385
|
-
* Updated MIME Types:
|
386
|
-
* Pulled the latest updates from the IANA MIME-Type registry.
|
387
|
-
* Added support for Ruby 2.0 with Travis CI.
|
388
|
-
|
389
|
-
== 1.21 / 2013-02-09
|
390
|
-
|
391
|
-
* New MIME Types:
|
392
|
-
* Various new or updated MIME types by Garret Alfert:
|
393
|
-
application/vnd.ms-fontobject, .eot; application/x-chrome-extension, .crx;
|
394
|
-
application/x-web-app-manifest\+json, .webapp; application/x-xpinstall,
|
395
|
-
.xpi; image/svg\+xml, .svg, .svgz; image/webp, .webp; text/cache-manifest,
|
396
|
-
.appcache, .manifest.
|
397
|
-
#{24}[https://github.com/mime-types/ruby-mime-types/pull/24]
|
398
|
-
* Fixed some Manifest.txt related madness on Travis.
|
399
|
-
|
400
|
-
== 1.20.1 / 2013-01-26
|
401
|
-
|
402
|
-
* New MIME Types:
|
403
|
-
* Apple iWork document types added by Hans de Graaff
|
404
|
-
(application/x-iwork-keynote-sffkey, .key;
|
405
|
-
application/x-iwork-pages-sffpages, .pages;
|
406
|
-
application/x-iwork-numbers-sffnumbers, .numbers).
|
407
|
-
{#20}[https://github.com/mime-types/ruby-mime-types/issue/20]
|
408
|
-
* epub, ibooks, mobi, and DMG content types by Mauricio
|
409
|
-
Linhares (mac:application/x-apple-diskimage, .dmg; application/epub\+zip,
|
410
|
-
.epub; application/x-ibooks\+zip, .ibooks; application/x-mobipocket-ebook,
|
411
|
-
.mobi). {#22}[https://github.com/mime-types/ruby-mime-types/issue/22]
|
412
|
-
* rss content type by Garret Alfert (application/rss\+xml, .rss).
|
413
|
-
{#23}[https://github.com/mime-types/ruby-mime-types/issue/23]
|
414
|
-
* Added or updated MIME types from the latest IANA list.
|
415
|
-
* Fixed MIME Types:
|
416
|
-
* Excel macro-enabled spreadsheets had an incorrect extension. Thanks to
|
417
|
-
Rafael Belvederese for reporting this issue.
|
418
|
-
{#21}[https://github.com/mime-types/ruby-mime-types/issue/21]
|
419
|
-
* Enabled for use with travis.
|
420
|
-
* Enabled gem signing.
|
421
|
-
* Fixed an error related to MIME type downloads.
|
422
|
-
* This was previously published as 1.20, but I had forgotten some attributions.
|
423
|
-
|
424
|
-
== 1.19 / 2012-06-20
|
425
|
-
* New MIME Types:
|
426
|
-
* XCF Gnome Images (image/x-xcf, image/x-compressed-xcf; .xcf).
|
427
|
-
{#17}[https://github.com/mime-types/ruby-mime-types/issue/17]
|
428
|
-
* Types reported in
|
429
|
-
{#12}[https://github.com/mime-types/ruby-mime-types/issues/12]:
|
430
|
-
* DV (video/x-dv; .dv)
|
431
|
-
* IVF (video/x-ivf; .ivf)
|
432
|
-
* Matroska (video/x-matroska; .mkv)
|
433
|
-
* Motion JPEG (video/x-motion-jpeg; .mjpg)
|
434
|
-
* RealMedia (official; application/vnd.rn-realmedia; .rm)
|
435
|
-
* New extensions:
|
436
|
-
* dcm (application/dicom);
|
437
|
-
{#16}[https://github.com/mime-types/ruby-mime-types/issue/16].
|
438
|
-
* Types reported in
|
439
|
-
{#12}[https://github.com/mime-types/ruby-mime-types/issues/12]:
|
440
|
-
* 3g2, 3gpp2 (video/3gpp2)
|
441
|
-
* mpeg (video/mpeg)
|
442
|
-
* mxf (application/mxf)
|
443
|
-
* ts (video/MP2T)
|
444
|
-
* ogg (video/ogg)
|
445
|
-
* Fixed MIME Types:
|
446
|
-
* Adobe AIR application installer packages was missing a hyphen.
|
447
|
-
{#13}[https://github.com/mime-types/ruby-mime-types/issue/13]
|
448
|
-
* Types reported in
|
449
|
-
{#12}[https://github.com/mime-types/ruby-mime-types/issues/12]:
|
450
|
-
* audio/x-pn-realaudio extension is .ra, not .rm.
|
451
|
-
* Resolved {#8}[https://github.com/mime-types/ruby-mime-types/issues/8].
|
452
|
-
Apparently some people run the tests on Linux. Imagine that.
|
453
|
-
|
454
|
-
== 1.18 / 2012-03-20
|
455
|
-
* New MIME Types:
|
456
|
-
* Types reported in
|
457
|
-
#{6}[https://github.com/mime-types/ruby-mime-types/issues/6]:
|
458
|
-
* CoffeeScript (text/x-coffeescript; .coffee; 8bit).
|
459
|
-
* AIR (application/vnd.adobe.air-applicationinstaller-package\+zip, .air; base64).
|
460
|
-
* WOFF (application/font-woff; .woff; base64).
|
461
|
-
* TrueType (application/x-font-truetype; .ttf; base64).
|
462
|
-
* OpenType (application/x-font-opentype; .otf; base64).
|
463
|
-
* WebM (audio/webm, video/webm; .webm).
|
464
|
-
{#11}[https://github.com/mime-types/ruby-mime-types/issues/11.]
|
465
|
-
* New extensions:
|
466
|
-
* f4v/f4p (video/mp4, used by Adobe); f4a/fb4 (audio/mp4, used by Adobe).
|
467
|
-
* Bug Fixes:
|
468
|
-
* It was pointed out that Licence.txt was incorrectly named. Fixed by
|
469
|
-
renaming to Licence.rdoc (from Issue/Pull Request
|
470
|
-
{#8}[https://github.com/mime-types/ruby-mime-types/issues/8]).
|
471
|
-
* It was pointed out that a plan to have the test output generated
|
472
|
-
automatically never went through.
|
473
|
-
{#10}[https://github.com/mime-types/ruby-mime-types/issues/10]
|
474
|
-
|
475
|
-
== 1.17.2 / 2011-10-25
|
476
|
-
* Bug Fixes:
|
477
|
-
* Fixed an issue with Ruby 1.9 and file encoding.
|
478
|
-
|
479
|
-
== 1.17.1 / 2011-10-23
|
480
|
-
* Minor Enhancements:
|
481
|
-
* Implemented modern 'hoe' semantics.
|
482
|
-
* Switched to minitest instead of test/unit.
|
483
|
-
* Converted documentation from .txt to .rdoc.
|
484
|
-
* Removed setup.rb.
|
485
|
-
{#3}[https://github.com/mime-types/ruby-mime-types/issues/3]
|
486
|
-
* Should no longer complain about missing RubyGems keys
|
487
|
-
{#2}[https://github.com/mime-types/ruby-mime-types/issues/2]
|
488
|
-
* Added .mp4 and .mpg4 as recognized extensions for
|
489
|
-
(application|audio|video)/mp4 per RFC4337.
|
490
|
-
{#1}[https://github.com/mime-types/ruby-mime-types/issues/1]
|
491
|
-
* Added audio/x-aac and .aac per RubyForge issue #28054.
|
492
|
-
* Made it much easier to update MIME types from this point forward.
|
493
|
-
* Updated MIME types from IANA.
|
494
|
-
|
495
|
-
== 1.16
|
496
|
-
* Made compatible with Ruby 1.8.6, 1.8.7, and 1.9.1.
|
497
|
-
* Switched to the 'hoe' gem system and added a lot of build-time tools.
|
498
|
-
* Updated the MIME types to the list based on the values in the Perl library
|
499
|
-
version 1.27. Also updated based on external source information and bug
|
500
|
-
reports.
|
501
|
-
* This is the last planned version of MIME::Types 1.x. Work will be
|
502
|
-
starting soon on MIME::Types 2.x with richer data querying mechanisms
|
503
|
-
and support for external data sources.
|
504
|
-
|
505
|
-
== 1.15
|
506
|
-
* Removed lib/mime/type.rb to form a single MIME::Types database source. It
|
507
|
-
is unlikely that one will ever need MIME::Type without MIME::Types.
|
508
|
-
* Re-synchronized the MIME type list with the sources, focusing primarily on
|
509
|
-
the IANA list.
|
510
|
-
* Added more detailed source information for MIME::Type objects.
|
511
|
-
* Changed MIME::Types from a module to a class with a default instance. There
|
512
|
-
should be no difference in usage.
|
513
|
-
* Removed MIME::Types::DATA_VERSION; it is now an attribute on the
|
514
|
-
MIME::Types instance.
|
515
|
-
* NOTE: Synchronization with the Perl version of MIME::Types is no longer a
|
516
|
-
priority as of this release. The data format and information has changed.
|
517
|
-
* Removed MIME::Types.by_suffix and MIME::Types.by_mediatype.
|
518
|
-
|
519
|
-
== 1.13.1
|
520
|
-
* Fixed a problem with the installer running tests. This now works.
|
521
|
-
* Improved the implementation of MIME::Type.signature?
|
522
|
-
* Moved code around to use the class << self idiom instead of always
|
523
|
-
prepending the module/class name.
|
524
|
-
* Added two new best-guess implementations of functions found in Perl's
|
525
|
-
MIME::Types implementation (1.13). Do not rely on these until the purpose
|
526
|
-
and implementation is stabilised.
|
527
|
-
* Updated the MIME list to reflect changes noted by
|
528
|
-
Ville Skyttä <ville.skytta@iki.fi>.
|
529
|
-
* Added a new constant to MIME::Types, DATA_VERSION. This will allow the Ruby
|
530
|
-
version number to be updated separately from the Perl version while keeping
|
531
|
-
the MIME Type list version in sync.
|
532
|
-
|
533
|
-
== 1.13
|
534
|
-
! WARNING: This version changes the API of MIME::Types !
|
535
|
-
! WARNING: This version is compatible with Ruby 1.8 and higher ONLY !
|
536
|
-
* Removed dependency on InstallPackage; offering 1.13 as either .tar.gz or
|
537
|
-
.gem.
|
538
|
-
* Split into two files, mime/type.rb and mime/types.rb. This will make
|
539
|
-
maintaining the list of changes easier.
|
540
|
-
* Changed the MIME::Type construction API. Accepts only a single String
|
541
|
-
argument (but does no named type-checking) and yields self.
|
542
|
-
* Removed private methods #init_extensions, #init_encoding, and #init_system
|
543
|
-
and replaced with #extensions=, #encoding=, and #system=.
|
544
|
-
* Added #default_encoding to return 'quoted-printable' or 'base64' depending
|
545
|
-
on the media type of the MIME type.
|
546
|
-
* Added #raw_media_type and #raw_sub_type to provide the non-simplified
|
547
|
-
versions of the media type and subtype.
|
548
|
-
* Alternative constructors MIME::Type.from_array, MIME::Type.from_hash, and
|
549
|
-
MIME::Type.from_mime_type added to compensate for the removal of named type
|
550
|
-
checking in the original constructor.
|
551
|
-
* Added #to_str, #to_a, and #to_hash methods. The latter two will provide
|
552
|
-
output suitable for use in #from_array and #from_hash.
|
553
|
-
* Removed "binary" encoding and enforced the use of a valid encoding string.
|
554
|
-
* Added #system? returning true if the MIME::Type is an OS-specific
|
555
|
-
MIME::Type.
|
556
|
-
* Added #platform? returning true if the MIME::Type is an OS-specific
|
557
|
-
MIME::Type for the current RUBY_PLATFORM.
|
558
|
-
* Added #like? returning true if the simplified type matches the other value
|
559
|
-
provided. #<'application/x-excel'>.like?('application/excel') is true.
|
560
|
-
* Added #complete? returning true if the MIME::Type specifies an extension
|
561
|
-
list.
|
562
|
-
* Updated the MIME type list to reflect additions by Mark Overmeer for Perl's
|
563
|
-
MIME::Types 1.12 and the official IANA list as of 2004.04.06. A number of
|
564
|
-
formerly "registered" MIME types are now no longer registered (e.g.,
|
565
|
-
application/excel is now application/x-excel). This ensures that the
|
566
|
-
simplified type still works with applications, but does not report an
|
567
|
-
unregistered type as registered.
|
568
|
-
* Restored MIME type list to Mark Overmeer's format to facilitate easy
|
569
|
-
exchange between the two projects.
|
570
|
-
* Added additional unit tests from Mark Overmeer's 1.12 version.
|
571
|
-
|
572
|
-
== 1.07
|
573
|
-
* Changed version numbering to match Perl MIME::Types 1.07.
|
574
|
-
* Re-synchronized with Mark Overmeer's list in Perl PMIME::Types 1.07.
|
575
|
-
* [NN Poster] updated the attributes for the PGP types.
|
576
|
-
|
577
|
-
== 1.005
|
578
|
-
* Changed to Phil Thomson's InstallPackage.
|
579
|
-
* Added several types from Perl MIME::Types 1.005.
|
580
|
-
* Cleaned up data format; some data formats will show up with proper data now.
|
581
|
-
|
582
|
-
== 1.004
|
583
|
-
* Updated to match Perl MIME::Types 1.004, links credited to Dan Puro. Adds
|
584
|
-
new reference list to http://www.indiana.edu/cgi-bin-local/mimetypes
|
585
|
-
* Removed InvalidType and replaced with TypeError.
|
586
|
-
* Changed instances of #type to #class.
|
587
|
-
* Cleaned up how simplified versions are created.
|
588
|
-
|
589
|
-
== 1.003
|
590
|
-
* Initial release based on Perl MIME::Types 1.003.
|