1 minor bugfix:
_3. This has now been resolved. [#146]
sudo: false). [#142]
1 minor enhancement
debuggerstatement that I had used in producing v3.2.1. [#137]
2 minor enhancements
Janko Marohnić contributed a change to
should improve on strict sorting when dealing with MIME types that appear
to be in the same family even if strict sorting would cause an
unregistered type to be sorted first. [#132]
Dillon Welch contributed a change that added
true to files so that modern Rubies can automatically reduce duplicate
string allocations. [#135]
2 bug fixes
Burke Libbey fixed a problem with cached data loading. [#126]
Resolved an issue where Enumerable#inject returns
nil when provided an
empty enumerable and a default value has not been provided. This is
because when Enumerable#inject isn't provided a starting value, the first
value is used as the default value. In every case where this error was
happening, the result was supposed to be an array containing Set objects
so they can be reduced to a single Set. [#117], [#127], [#134].
Fixed an uncontrolled growth bug in MIME::Types::Container where a key miss would create a new entry with an empty Set in the container. This was working as designed (this particular feature was heavily used during MIME::Type registry construction), but the design was flawed in that it did not have any way of determining the difference between construction and querying. This would mean that, if you have a function in your web app that queries the MIME::Types registry by extension, the extension registry would grow uncontrollably. [#136]
$RUBY_MIME_TYPES_LAZY_LOAD) has been deprecated.
Supporting files are now Markdown instead of rdoc, except for the README.
The history file has been modified to remove all history prior to 3.0. This history can be found in previous commits.
A spelling error was corrected by Edward Betts ([#129]).
CI configuration for more modern versions of Ruby were added by Nicolas Leger ([#130]), Jun Aruga ([#125]), and Austin Ziegler. Removed ruby-head-clang and rbx (Rubinius) from CI.
Fixed tests which were asserting equality against nil, which will become an error in Minitest 6.
1 documentation change:
3 bug fixes
A test for
MIME::Types::Cache fails under Ruby 2.3 because of frozen
strings, [#118]. This has been fixed.
The JSON data has been incorrectly encoded since the release of
mime-types 3 on the
xrefs field, because of the switch to using a Set
to store cross-reference information. This has been fixed.
A tentative fix for [#117] has been applied, removing the only circular
require dependencies that exist (and for which there was code to prevent,
but the current fix is simpler). I have no way to verify this fix and
depending on how things are loaded by
delayed_job, this fix may not be
1 governance change
2 governance changes
3 major changes
17 minor changes:
Changed the way that simplified types representations are created to
reflect the fact that
x- prefixes are no longer considered special
according to IANA. A simplified MIME type is case-folded to lowercase.
A new keyword parameter,
remove_x_prefix, can be provided to remove
Improved initialization with an Array works so that extensions do not
need to be wrapped in another array. This means that
yml) works in the same way that
['text/yaml', %w(yaml yml)] did (and
priority_compare to conform with attributes that no longer
Changed the internal implementation of extensions to use a frozen Set.
When extensions are set or modified with
add_extensions, the primary
registry will be informed of a need to reindex extensions. Resolves
The preferred extension can be set explicitly. If not set, it will be the first extension. If the preferred extension is not in the extension list, it will be added.
Improved how xref URLs are generated.
MIME::Types.new to track instances of
MIME::Types so that
they can be told to reindex the extensions as necessary.
# so that the
registered flags are
keywords instead of a generic options parameter.
Extracted the class methods to a separate file.
Changed the container implementation to use a Set instead of an Array to prevent data duplication. Resolves #79.
Caching is now based on the data gem version instead of the mime-types version.
Caching is compatible with columnar registry stores.
MIME::Types::Loader::PATH has been removed and replaced with
MIME::Types::Data::PATH from the mime-types-data gem. The environment
RUBY_MIME_TYPES_DATA is still used.
Support for the long-deprecated mime-types v1 format has been removed.
The registry is default loaded from the columnar store by default. The internal format of the columnar store has changed; many of the boolean flags are now loaded from a single file. Resolves #85.