mime-types 3.3.1 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 727050c60daa98ccb85692629f83999009ca6d6cd259e15ceebdaf524da14c0a
4
- data.tar.gz: 28a5af3883b49bd685f35cd84247dbe3c6894d5cca8417c212d3bb0d261b23d4
3
+ metadata.gz: 95c7231323b94e19e07e031375caa2a86929b89c39758f1e275f7c45173e305a
4
+ data.tar.gz: 3c2bfd451b5e04dbb675c2341e9917a9900998a7ce85d7f3532f53d173985888
5
5
  SHA512:
6
- metadata.gz: bb64be5b69ac765df59ea4ae0fd17f549263107c59878954e3613b44519a73eacfe00f2e28e0369452afe1a4c4846a98a5f59402d559a7b3acf9de78388bff4a
7
- data.tar.gz: 1141d794103db9810da89504387f56caa84e704f523197072393855a8f9a89e474b52794d9de6a09d750634711446ce4731971a13fbe642a32f58e5f7f27b0fb
6
+ metadata.gz: 11732903d8ad42251e2913d0663f96c7c208818d7d446662be7da8abcb6d1b45ff028d030ee83e1e2eedc87ae5a333f82225b74580f5e7449338093865fbbccb
7
+ data.tar.gz: dce1385da430c768e232daf3c263a89473356889dedcb0f19b7ea2da1d6a494d590d06b0d49d24d3366132855fb6d3b39d45c24a3f7550920306f0587d6375d6
data/Code-of-Conduct.md CHANGED
@@ -14,21 +14,21 @@ appearance, race, religion, or sexual identity and orientation.
14
14
  Examples of behavior that contributes to creating a positive environment
15
15
  include:
16
16
 
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
17
+ - Using welcoming and inclusive language
18
+ - Being respectful of differing viewpoints and experiences
19
+ - Gracefully accepting constructive criticism
20
+ - Focusing on what is best for the community
21
+ - Showing empathy towards other community members
22
22
 
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
26
  advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
30
  address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
32
  professional setting
33
33
 
34
34
  ## Our Responsibilities
data/Contributing.md CHANGED
@@ -1,143 +1,132 @@
1
- ## Contributing
1
+ # Contributing
2
2
 
3
3
  I value any contribution to mime-types you can provide: a bug report, a feature
4
4
  request, or code contributions.
5
5
 
6
6
  There are a few guidelines for contributing to mime-types:
7
7
 
8
- * Code changes *will* *not* be accepted without tests. The test suite is
9
- written with [minitest][].
10
- * Match my coding style.
11
- * Use a thoughtfully-named topic branch that contains your change. Rebase your
8
+ - Code changes _will_ _not_ be accepted without tests. The test suite is
9
+ written with [minitest].
10
+ - Match my coding style.
11
+ - Use a thoughtfully-named topic branch that contains your change. Rebase your
12
12
  commits into logical chunks as necessary.
13
- * Use [quality commit messages][].
14
- * Do not change the version number; when your patch is accepted and a release
13
+ - Use [quality commit messages].
14
+ - Do not change the version number; when your patch is accepted and a release
15
15
  is made, the version will be updated at that point.
16
- * Submit a GitHub pull request with your changes.
17
- * New or changed behaviours require new or updated documentation.
16
+ - Submit a GitHub pull request with your changes.
17
+ - New or changed behaviours require new or updated documentation.
18
18
 
19
- ### Adding or Modifying MIME Types
19
+ ## Adding or Modifying MIME Types
20
20
 
21
21
  The mime-types registry is no longer contained in mime-types, but in
22
- [mime-types-data][]. Please see that project for contributions there.
22
+ [mime-types-data]. Please see that project for contributions there.
23
23
 
24
24
  ### Test Dependencies
25
25
 
26
- mime-types uses Ryan Davis’s [Hoe][] to manage the release process, and it adds
27
- a number of rake tasks. You will mostly be interested in:
26
+ mime-types uses Ryan Davis’s [Hoe] to manage the release process, and it adds
27
+ a number of rake tasks. You will mostly be interested in `rake`, which runs
28
+ the tests the same way that `rake test` or `rake travis` will do.
28
29
 
29
- $ rake
30
-
31
- which runs the tests the same way that:
32
-
33
- $ rake test
34
- $ rake travis
35
-
36
- will do.
37
-
38
- To assist with the installation of the development dependencies for mime-types,
39
- I have provided the simplest possible Gemfile pointing to the (generated)
40
- `mime-types.gemspec` file. This will permit you to do:
41
-
42
- $ bundle install
43
-
44
- to get the development dependencies. If you aleady have +hoe+ installed, you
45
- can accomplish the same thing with:
46
-
47
- $ rake newb
30
+ To assist with the installation of the development dependencies for
31
+ mime-types, I have provided the simplest possible Gemfile pointing to the
32
+ (generated) `mime-types.gemspec` file. This will permit you to do `bundle
33
+ install` to get the development dependencies. If you aleady have `hoe`
34
+ installed, you can accomplish the same thing with `rake newb`.
48
35
 
49
36
  This task will install any missing dependencies, run the tests/specs, and
50
37
  generate the RDoc.
51
38
 
52
- You can run tests with code coverage analysis by running:
53
-
54
- $ rake test:coverage
39
+ You can run tests with code coverage analysis by running `rake
40
+ test:coverage`.
55
41
 
56
- ### Benchmarks
42
+ ## Benchmarks
57
43
 
58
44
  mime-types offers several benchmark tasks to measure different measures of
59
45
  performance.
60
46
 
61
47
  There is a repeated load test, measuring how long it takes to start and load
62
48
  mime-types with its full registry. By default, it runs fifty loops and uses the
63
- built-in benchmark library.
49
+ built-in benchmark library:
64
50
 
65
- $ rake benchmark:load
51
+ - `rake benchmark:load`
66
52
 
67
53
  There are two allocation tracing benchmarks (for normal and columnar loads).
68
54
  These can only be run on Ruby 2.1 or better and requires the
69
- [allocation\_tracer][] gem (not installed by default).
55
+ [allocation\_tracer] gem (not installed by default).
70
56
 
71
- $ rake benchmark:allocations
72
- $ rake benchmark:allocations:columnar
57
+ - `rake benchmark:allocations`
58
+ - `rake benchmark:allocations:columnar`
73
59
 
74
60
  There are two loaded object count benchmarks (for normal and columnar loads).
75
61
  These use `ObjectSpace.count_objects`.
76
62
 
77
- $ rake benchmark:objects
78
- $ rake benchmark:objects:columnar
63
+ - `rake benchmark:objects`
64
+ - `rake benchmark:objects:columnar`
79
65
 
80
- ### Workflow
66
+ ## Workflow
81
67
 
82
68
  Here's the most direct way to get your work merged into the project:
83
69
 
84
- * Fork the project.
85
- * Clone down your fork (`git clone git://github.com/<username>/ruby-mime-types.git`).
86
- * Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
87
- * Hack away, add tests. Not necessarily in that order.
88
- * Make sure everything still passes by running `rake`.
89
- * If necessary, rebase your commits into logical chunks, without errors.
90
- * Push the branch up (`git push origin my_awesome_feature`).
91
- * Create a pull request against mime-types/ruby-mime-types and describe what
70
+ - Fork the project.
71
+ - Clone down your fork (`git clone git://github.com/<username>/ruby-mime-types.git`).
72
+ - Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
73
+ - Hack away, add tests. Not necessarily in that order.
74
+ - Make sure everything still passes by running `rake`.
75
+ - If necessary, rebase your commits into logical chunks, without errors.
76
+ - Push the branch up (`git push origin my_awesome_feature`).
77
+ - Create a pull request against mime-types/ruby-mime-types and describe what
92
78
  your change does and the why you think it should be merged.
93
79
 
94
- ### Contributors
80
+ ## Contributors
95
81
 
96
- * Austin Ziegler created mime-types.
82
+ - Austin Ziegler created mime-types.
97
83
 
98
84
  Thanks to everyone else who has contributed to mime-types over the years:
99
85
 
100
- * Aaron Patterson
101
- * Aggelos Avgerinos
102
- * Al Snow
103
- * Andre Pankratz
104
- * Andy Brody
105
- * Arnaud Meuret
106
- * Brandon Galbraith
107
- * Burke Libbey
108
- * Chris Gat
109
- * David Genord
110
- * Dillon Welch
111
- * Eric Marden
112
- * Edward Betts
113
- * Garret Alfert
114
- * Godfrey Chan
115
- * Greg Brockman
116
- * Hans de Graaff
117
- * Henrik Hodne
118
- * Janko Marohnić
119
- * Jean Boussier
120
- * Jeremy Evans
121
- * Juanito Fatas
122
- * Jun Aruga
123
- * Łukasz Śliwa
124
- * Keerthi Siva
125
- * Ken Ip
126
- * Martin d'Allens
127
- * Mauricio Linhares
128
- * Nicolas Leger
129
- * Nicholas La Roux
130
- * nycvotes-dev
131
- * Olle Jonsson
132
- * Postmodern
133
- * Richard Hirner
134
- * Richard Hurt
135
- * Richard Schneeman
136
- * Tibor Szolár
137
- * Todd Carrico
86
+ - Aaron Patterson
87
+ - Aggelos Avgerinos
88
+ - Al Snow
89
+ - Andre Pankratz
90
+ - Andy Brody
91
+ - Arnaud Meuret
92
+ - Brandon Galbraith
93
+ - Burke Libbey
94
+ - Chris Gat
95
+ - David Genord
96
+ - Dillon Welch
97
+ - Eric Marden
98
+ - Edward Betts
99
+ - Garret Alfert
100
+ - Godfrey Chan
101
+ - Greg Brockman
102
+ - Hans de Graaff
103
+ - Henrik Hodne
104
+ - Igor Victor
105
+ - Janko Marohnić
106
+ - Jean Boussier
107
+ - Jeremy Evans
108
+ - Juanito Fatas
109
+ - Jun Aruga
110
+ - Łukasz Śliwa
111
+ - Keerthi Siva
112
+ - Ken Ip
113
+ - Kevin Menard
114
+ - Koichi ITO
115
+ - Martin d'Allens
116
+ - Mauricio Linhares
117
+ - Nicolas Leger
118
+ - Nicholas La Roux
119
+ - nycvotes-dev
120
+ - Olle Jonsson
121
+ - Postmodern
122
+ - Richard Hirner
123
+ - Richard Hurt
124
+ - Richard Schneeman
125
+ - Tibor Szolár
126
+ - Todd Carrico
138
127
 
139
128
  [minitest]: https://github.com/seattlerb/minitest
140
129
  [quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
141
130
  [mime-types-data]: https://github.com/mime-types/mime-types-data
142
- [Hoe]: https://github.com/seattlerb/hoe
131
+ [hoe]: https://github.com/seattlerb/hoe
143
132
  [allocation\_tracer]: https://github.com/ko1/allocation_tracer
data/History.md CHANGED
@@ -1,216 +1,232 @@
1
+ # Changelog
2
+
3
+ ## 3.4.0 / 2021-11-15
4
+
5
+ - 1 minor enhancement:
6
+
7
+ - Added a new field to `MIME::Type` for checking provisional registrations
8
+ from IANA. [#157]
9
+
10
+ - Documentation:
11
+
12
+ - Kevin Menard synced the documentation so that all examples are correct.
13
+ [#153]
14
+
15
+ - Administrivia:
16
+
17
+ - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the
18
+ CI exclusion list; it refuses to run successfully.
19
+ - Removed the Travis CI configuration and changed it to Github Workflows
20
+ [#150]. Removed Coveralls configuration.
21
+ - Igor Victor added TruffleRuby to the Travis CI configuration. [#149]
22
+ - Koichi ITO loosened an excessively tight dependency. [#147]
23
+ - Started using `standardrb` for Ruby formatting and validation.
24
+ - Moved `deps:top` functionality to a support file.
25
+
1
26
  ## 3.3.1 / 2019-12-26
2
27
 
3
- * 1 minor bugfix:
28
+ - 1 minor bugfix:
4
29
 
5
- * Al Snow fixed a warning with MIME::Types::Logger producing a warning
6
- because Ruby 2.7 introduces numbered block parameters. Because of the
7
- way that the MIME::Types::Logger works for deprecation messages, the
8
- initializer parameters had been named `_1`, `_2`, and `_3`. This has
9
- now been resolved. [#146][]
30
+ - Al Snow fixed a warning with MIME::Types::Logger producing a warning
31
+ because Ruby 2.7 introduces numbered block parameters. Because of the way
32
+ that the MIME::Types::Logger works for deprecation messages, the
33
+ initializer parameters had been named `_1`, `_2`, and `_3`. This has now
34
+ been resolved. [#146]
10
35
 
11
- * Administrivia:
36
+ - Administrivia:
12
37
 
13
- * Olle Jonsson removed an outdated Travis configuration option (`sudo:
14
- false`). [#142][]
38
+ - Olle Jonsson removed an outdated Travis configuration option (`sudo: false`). [#142]
15
39
 
16
40
  ## 3.3 / 2019-09-04
17
41
 
18
- * 1 minor enhancement
42
+ - 1 minor enhancement
19
43
 
20
- * Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
21
- interning various string values in each type. This is done with a
22
- backwards-compatible call that _freezes_ the strings on older
23
- versions of Ruby. [#141][]
44
+ - Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
45
+ interning various string values in each type. This is done with a
46
+ backwards-compatible call that _freezes_ the strings on older versions of
47
+ Ruby. [#141]
24
48
 
25
- * Administrivia:
49
+ - Administrivia:
26
50
 
27
- * Nicholas La Roux updated Travis build configurations. [#139][]
51
+ - Nicholas La Roux updated Travis build configurations. [#139]
28
52
 
29
53
  ## 3.2.2 / 2018-08-12
30
54
 
31
- * Hiroto Fukui removed a stray `debugger` statement that I had used in
32
- producing v3.2.1. [#137][]
55
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in
56
+ producing v3.2.1. [#137]
33
57
 
34
58
  ## 3.2.1 / 2018-08-12
35
59
 
36
- * A few bugs related to MIME::Types::Container and its use in the
37
- mime-types-data helper tools reared their head because I released 3.2
38
- before verifying against mime-types-data.
60
+ - A few bugs related to MIME::Types::Container and its use in the
61
+ mime-types-data helper tools reared their head because I released 3.2
62
+ before verifying against mime-types-data.
39
63
 
40
64
  ## 3.2 / 2018-08-12
41
65
 
42
- * 2 minor enhancements
66
+ - 2 minor enhancements
43
67
 
44
- * Janko Marohnić contributed a change to `MIME::Type#priority_order` that
45
- should improve on strict sorting when dealing with MIME types that
46
- appear to be in the same family even if strict sorting would cause an
47
- unregistered type to be sorted first. [#132][]
68
+ - Janko Marohnić contributed a change to `MIME::Type#priority_order` that
69
+ should improve on strict sorting when dealing with MIME types that appear
70
+ to be in the same family even if strict sorting would cause an
71
+ unregistered type to be sorted first. [#132]
48
72
 
49
- * Dillon Welch contributed a change that added `frozen_string_literal:
50
- true` to files so that modern Rubies can automatically reduce duplicate
51
- string allocations. [#135][]
73
+ - Dillon Welch contributed a change that added `frozen_string_literal: true` to files so that modern Rubies can automatically reduce duplicate
74
+ string allocations. [#135]
52
75
 
53
- * 2 bug fixes
76
+ - 2 bug fixes
54
77
 
55
- * Burke Libbey fixed a problem with cached data loading. [#126][]
78
+ - Burke Libbey fixed a problem with cached data loading. [#126]
56
79
 
57
- * Resolved an issue where Enumerable#inject returns +nil+ when provided
58
- an empty enumerable and a default value has not been provided. This is
59
- because when Enumerable#inject isn't provided a starting value, the
60
- first value is used as the default value. In every case where this
61
- error was happening, the result was supposed to be an array containing
62
- Set objects so they can be reduced to a single Set. [#117][], [#127][],
63
- [#134][].
80
+ - Resolved an issue where Enumerable#inject returns `nil` when provided an
81
+ empty enumerable and a default value has not been provided. This is
82
+ because when Enumerable#inject isn't provided a starting value, the first
83
+ value is used as the default value. In every case where this error was
84
+ happening, the result was supposed to be an array containing Set objects
85
+ so they can be reduced to a single Set. [#117], [#127], [#134]
64
86
 
65
- * Fixed an uncontrolled growth bug in MIME::Types::Container where a key
66
- miss would create a new entry with an empty Set in the container. This
67
- was working as designed (this particular feature was heavily used
68
- during MIME::Type registry construction), but the design was flawed in
69
- that it did not have any way of determining the difference between
70
- construction and querying. This would mean that, if you have a function
71
- in your web app that queries the MIME::Types registry by extension, the
72
- extension registry would grow uncontrollably. [#136][]
87
+ - Fixed an uncontrolled growth bug in MIME::Types::Container where a key
88
+ miss would create a new entry with an empty Set in the container. This
89
+ was working as designed (this particular feature was heavily used during
90
+ MIME::Type registry construction), but the design was flawed in that it
91
+ did not have any way of determining the difference between construction
92
+ and querying. This would mean that, if you have a function in your web
93
+ app that queries the MIME::Types registry by extension, the extension
94
+ registry would grow uncontrollably. [#136]
73
95
 
74
- * Deprecations:
96
+ - Deprecations:
75
97
 
76
- * Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
98
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
77
99
 
78
- * Documentation Changes:
100
+ - Documentation Changes:
79
101
 
80
- * Supporting files are now Markdown instead of rdoc, except for the
81
- README.
102
+ - Supporting files are now Markdown instead of rdoc, except for the README.
82
103
 
83
- * The history file has been modified to remove all history prior to 3.0.
84
- This history can be found in previous commits.
104
+ - The history file has been modified to remove all history prior to 3.0.
105
+ This history can be found in previous commits.
85
106
 
86
- * A spelling error was corrected by Edward Betts ([#129][]).
107
+ - A spelling error was corrected by Edward Betts ([#129]).
87
108
 
88
- * Administrivia:
109
+ - Administrivia:
89
110
 
90
- * CI configuration for more modern versions of Ruby were added by Nicolas
91
- Leger ([#130][]), Jun Aruga ([#125][]), and Austin Ziegler. Removed
92
- ruby-head-clang and rbx (Rubinius) from CI.
111
+ - CI configuration for more modern versions of Ruby were added by Nicolas
112
+ Leger ([#130]), Jun Aruga ([#125]), and Austin Ziegler. Removed
113
+ ruby-head-clang and rbx (Rubinius) from CI.
93
114
 
94
- * Fixed tests which were asserting equality against nil, which will
95
- become an error in Minitest 6.
115
+ - Fixed tests which were asserting equality against nil, which will become
116
+ an error in Minitest 6.
96
117
 
97
118
  ## 3.1 / 2016-05-22
98
119
 
99
- * 1 documentation change:
120
+ - 1 documentation change:
100
121
 
101
- * Tim Smith (@tas50) updated the build badges to be SVGs to improve
102
- readability on high-density (retina) screens with pull request
103
- [#112][].
122
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
123
+ readability on high-density (retina) screens with pull request [#112].
104
124
 
105
- * 3 bug fixes
125
+ - 3 bug fixes
106
126
 
107
- * A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
108
- strings, [#118][]. This has been fixed.
127
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
128
+ strings, [#118]. This has been fixed.
109
129
 
110
- * The JSON data has been incorrectly encoded since the release of
111
- mime-types 3 on the `xrefs` field, because of the switch to using a Set
112
- to store cross-reference information. This has been fixed.
130
+ - The JSON data has been incorrectly encoded since the release of
131
+ mime-types 3 on the `xrefs` field, because of the switch to using a Set
132
+ to store cross-reference information. This has been fixed.
113
133
 
114
- * A tentative fix for [#117][] has been applied, removing the only
115
- circular require dependencies that exist (and for which there was code
116
- to prevent, but the current fix is simpler). I have no way to verify
117
- this fix and depending on how things are loaded by `delayed_job`, this
118
- fix may not be sufficient.
134
+ - A tentative fix for [#117] has been applied, removing the only circular
135
+ require dependencies that exist (and for which there was code to prevent,
136
+ but the current fix is simpler). I have no way to verify this fix and
137
+ depending on how things are loaded by `delayed_job`, this fix may not be
138
+ sufficient.
119
139
 
120
- * 1 governance change
140
+ - 1 governance change
121
141
 
122
- * Updated to Contributor Covenant 1.4.
142
+ - Updated to Contributor Covenant 1.4.
123
143
 
124
144
  ## 3.0 / 2015-11-21
125
145
 
126
- * 2 governance changes
146
+ - 2 governance changes
127
147
 
128
- * This project and the related mime-types-data project are now
129
- exclusively MIT licensed. Resolves [#95][].
148
+ - This project and the related mime-types-data project are now exclusively
149
+ MIT licensed. Resolves [#95].
130
150
 
131
- * All projects under the mime-types organization now have a standard code
132
- of conduct adapted from the [Contributor Covenant][]. This text can be
133
- found in the [Code-of-Conduct.md][] file.
151
+ - All projects under the mime-types organization now have a standard code
152
+ of conduct adapted from the [Contributor Covenant]. This text can be
153
+ found in the [Code-of-Conduct.md] file.
134
154
 
135
- * 3 major changes
155
+ - 3 major changes
136
156
 
137
- * All methods deprecated in mime-types 2.x have been removed.
157
+ - All methods deprecated in mime-types 2.x have been removed.
138
158
 
139
- * mime-types now requires Ruby 2.0 compatibility or later. Resolves
140
- [#97][].
159
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
160
+ [#97].
141
161
 
142
- * The registry data has been removed from mime-types and put into
143
- mime-types-data, maintained and released separately. It can be found at
144
- [mime-types-data][].
162
+ - The registry data has been removed from mime-types and put into
163
+ mime-types-data, maintained and released separately. It can be found at
164
+ [mime-types-data].
145
165
 
146
- * 17 minor changes:
166
+ - 17 minor changes:
147
167
 
148
- * `MIME::Type` changes:
168
+ - `MIME::Type` changes:
149
169
 
150
- * Changed the way that simplified types representations are created
151
- to reflect the fact that `x-` prefixes are no longer considered
152
- special according to IANA. A simplified MIME type is case-folded to
153
- lowercase. A new keyword parameter, `remove_x_prefix`, can be
154
- provided to remove `x-` prefixes.
170
+ - Changed the way that simplified types representations are created to
171
+ reflect the fact that `x-` prefixes are no longer considered special
172
+ according to IANA. A simplified MIME type is case-folded to lowercase.
173
+ A new keyword parameter, `remove_x_prefix`, can be provided to remove
174
+ `x-` prefixes.
155
175
 
156
- * Improved initialization with an Array works so that extensions do
157
- not need to be wrapped in another array. This means that
158
- `%w(text/yaml yaml yml)` works in the same way that
159
- `['text/yaml', %w(yaml yml)]` did (and still does).
176
+ - Improved initialization with an Array works so that extensions do not
177
+ need to be wrapped in another array. This means that `%w(text/yaml yaml yml)` works in the same way that `['text/yaml', %w(yaml yml)]` did (and
178
+ still does).
160
179
 
161
- * Changed `priority_compare` to conform with attributes that no
162
- longer exist.
180
+ - Changed `priority_compare` to conform with attributes that no longer
181
+ exist.
163
182
 
164
- * Changed the internal implementation of extensions to use a frozen
165
- Set.
183
+ - Changed the internal implementation of extensions to use a frozen Set.
166
184
 
167
- * When extensions are set or modified with `add_extensions`, the
168
- primary registry will be informed of a need to reindex extensions.
169
- Resolves [#84][].
185
+ - When extensions are set or modified with `add_extensions`, the primary
186
+ registry will be informed of a need to reindex extensions. Resolves
187
+ [#84].
170
188
 
171
- * The preferred extension can be set explicitly. If not set, it will
172
- be the first extension. If the preferred extension is not in the
173
- extension list, it will be added.
189
+ - The preferred extension can be set explicitly. If not set, it will be
190
+ the first extension. If the preferred extension is not in the extension
191
+ list, it will be added.
174
192
 
175
- * Improved how xref URLs are generated.
193
+ - Improved how xref URLs are generated.
176
194
 
177
- * Converted `obsolete`, `registered` and `signature` to
178
- `attr_accessors`.
195
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
179
196
 
180
- * `MIME::Types` changes:
197
+ - `MIME::Types` changes:
181
198
 
182
- * Modified `MIME::Types.new` to track instances of `MIME::Types` so
183
- that they can be told to reindex the extensions as necessary.
199
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
200
+ they can be told to reindex the extensions as necessary.
184
201
 
185
- * Removed `data_version` attribute.
202
+ - Removed `data_version` attribute.
186
203
 
187
- * Changed `#[]` so that the `complete` and `registered` flags are
188
- keywords instead of a generic options parameter.
204
+ - Changed `#[]` so that the `complete` and `registered` flags are
205
+ keywords instead of a generic options parameter.
189
206
 
190
- * Extracted the class methods to a separate file.
207
+ - Extracted the class methods to a separate file.
191
208
 
192
- * Changed the container implementation to use a Set instead of an
193
- Array to prevent data duplication. Resolves [#79][].
209
+ - Changed the container implementation to use a Set instead of an Array
210
+ to prevent data duplication. Resolves [#79].
194
211
 
195
- * `MIME::Types::Cache` changes:
212
+ - `MIME::Types::Cache` changes:
196
213
 
197
- * Caching is now based on the data gem version instead of the
198
- mime-types version.
214
+ - Caching is now based on the data gem version instead of the mime-types
215
+ version.
199
216
 
200
- * Caching is compatible with columnar registry stores.
217
+ - Caching is compatible with columnar registry stores.
201
218
 
202
- * `MIME::Types::Loader` changes:
219
+ - `MIME::Types::Loader` changes:
203
220
 
204
- * `MIME::Types::Loader::PATH` has been removed and replaced with
205
- `MIME::Types::Data::PATH` from the mime-types-data gem. The
206
- environment variable `RUBY_MIME_TYPES_DATA` is still used.
221
+ - `MIME::Types::Loader::PATH` has been removed and replaced with
222
+ `MIME::Types::Data::PATH` from the mime-types-data gem. The environment
223
+ variable `RUBY_MIME_TYPES_DATA` is still used.
207
224
 
208
- * Support for the long-deprecated mime-types v1 format has been
209
- removed.
225
+ - Support for the long-deprecated mime-types v1 format has been removed.
210
226
 
211
- * The registry is default loaded from the columnar store by default.
212
- The internal format of the columnar store has changed; many of the
213
- boolean flags are now loaded from a single file. Resolves [#85][].
227
+ - The registry is default loaded from the columnar store by default. The
228
+ internal format of the columnar store has changed; many of the boolean
229
+ flags are now loaded from a single file. Resolves [#85].
214
230
 
215
231
  [#79]: https://github.com/mime-types/ruby-mime-types/pull/79
216
232
  [#84]: https://github.com/mime-types/ruby-mime-types/pull/84
@@ -235,6 +251,10 @@
235
251
  [#141]: https://github.com/mime-types/ruby-mime-types/pull/141
236
252
  [#142]: https://github.com/mime-types/ruby-mime-types/pull/142
237
253
  [#146]: https://github.com/mime-types/ruby-mime-types/pull/146
238
- [Code-of-Conduct.md]: Code-of-Conduct_md.html
239
- [Contributor Covenant]: http://contributor-covenant.org
254
+ [#147]: https://github.com/mime-types/ruby-mime-types/pull/147
255
+ [#149]: https://github.com/mime-types/ruby-mime-types/pull/149
256
+ [#150]: https://github.com/mime-types/ruby-mime-types/pull/150
257
+ [#153]: https://github.com/mime-types/ruby-mime-types/pull/153
258
+ [code-of-conduct.md]: Code-of-Conduct_md.html
259
+ [contributor covenant]: http://contributor-covenant.org
240
260
  [mime-types-data]: https://github.com/mime-types/mime-types-data