mime-types 3.2.2 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4341a1bdee1841367197d0f06ed6fcda8ee1fc3cd4347c6aa949fe942f247d2c
4
- data.tar.gz: a7dd6d594e0029c2e6e4d8d342c3b8a46b94d05f2281cd30218a31fcbec8ec04
3
+ metadata.gz: 443bfcc0047c25a8ac7cc9e7a2fea95f8d4707e8fa3a98d0b99bee421e168708
4
+ data.tar.gz: 39756d60550165df9787a4967c376faac32179fd442d176766893b7454ed977d
5
5
  SHA512:
6
- metadata.gz: 143d9bcc08f707d6e4cef9cee51d94581183ac6264180b261939215311368606fed8168832e96c7908f1926409c4d50c9a7d8216009070dda473aeb20465ba3e
7
- data.tar.gz: 6e14198fc2b2c67c6b4f1e71d2f1f0442050ddec22f1be28533290badc01a7d3e8d5bc3e476f0af95c31c260171172d5bc777adee5fa30d2bb4838c2cc078d43
6
+ metadata.gz: d711882ac22adb5a8ab3e4953a508c06e870990ad0d41d0256679bcb66c7953686ba4b23ac1470ea6ee07d6026d793f57fb7d377d321fb972252365c8fd22622
7
+ data.tar.gz: 3d20e16be727ee9b62ab599a939524148577b54281a63705b0b75a9eea7c6f51df169bc6979ce8b616c3b707921c1021ac06b226bb8df28f5337d1f76107a293
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,139 +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
- * Andre Pankratz
103
- * Andy Brody
104
- * Arnaud Meuret
105
- * Brandon Galbraith
106
- * Burke Libbey
107
- * Chris Gat
108
- * David Genord
109
- * Dillon Welch
110
- * Eric Marden
111
- * Edward Betts
112
- * Garret Alfert
113
- * Godfrey Chan
114
- * Greg Brockman
115
- * Hans de Graaff
116
- * Henrik Hodne
117
- * Janko Marohnić
118
- * Jeremy Evans
119
- * Juanito Fatas
120
- * Jun Aruga
121
- * Łukasz Śliwa
122
- * Keerthi Siva
123
- * Ken Ip
124
- * Martin d'Allens
125
- * Mauricio Linhares
126
- * Nicolas Leger
127
- * nycvotes-dev
128
- * Postmodern
129
- * Richard Hirner
130
- * Richard Hurt
131
- * Richard Schneeman
132
- * Tibor Szolár
133
- * 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
134
127
 
135
128
  [minitest]: https://github.com/seattlerb/minitest
136
129
  [quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
137
130
  [mime-types-data]: https://github.com/mime-types/mime-types-data
138
- [Hoe]: https://github.com/seattlerb/hoe
131
+ [hoe]: https://github.com/seattlerb/hoe
139
132
  [allocation\_tracer]: https://github.com/ko1/allocation_tracer
data/History.md CHANGED
@@ -1,188 +1,241 @@
1
+ # Changelog
2
+
3
+ ## 3.4.1 / 2021-11-16
4
+
5
+ - 1 bugfix:
6
+
7
+ - Fixed a Ruby &lt; 2.3 incompatibility introduced by the use of standardrb,
8
+ where `<<-` heredocs were converted to `<<~` heredocs. These have been
9
+ reverted back to `<<-` with the indentation kept and a `.strip` call
10
+ to prevent excess whitespace.
11
+
12
+ ## 3.4.0 / 2021-11-15
13
+
14
+ - 1 minor enhancement:
15
+
16
+ - Added a new field to `MIME::Type` for checking provisional registrations
17
+ from IANA. [#157]
18
+
19
+ - Documentation:
20
+
21
+ - Kevin Menard synced the documentation so that all examples are correct.
22
+ [#153]
23
+
24
+ - Administrivia:
25
+
26
+ - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the
27
+ CI exclusion list; it refuses to run successfully.
28
+ - Removed the Travis CI configuration and changed it to Github Workflows
29
+ [#150]. Removed Coveralls configuration.
30
+ - Igor Victor added TruffleRuby to the Travis CI configuration. [#149]
31
+ - Koichi ITO loosened an excessively tight dependency. [#147]
32
+ - Started using `standardrb` for Ruby formatting and validation.
33
+ - Moved `deps:top` functionality to a support file.
34
+
35
+ ## 3.3.1 / 2019-12-26
36
+
37
+ - 1 minor bugfix:
38
+
39
+ - Al Snow fixed a warning with MIME::Types::Logger producing a warning
40
+ because Ruby 2.7 introduces numbered block parameters. Because of the way
41
+ that the MIME::Types::Logger works for deprecation messages, the
42
+ initializer parameters had been named `_1`, `_2`, and `_3`. This has now
43
+ been resolved. [#146]
44
+
45
+ - Administrivia:
46
+
47
+ - Olle Jonsson removed an outdated Travis configuration option (`sudo: false`). [#142]
48
+
49
+ ## 3.3 / 2019-09-04
50
+
51
+ - 1 minor enhancement
52
+
53
+ - Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
54
+ interning various string values in each type. This is done with a
55
+ backwards-compatible call that _freezes_ the strings on older versions of
56
+ Ruby. [#141]
57
+
58
+ - Administrivia:
59
+
60
+ - Nicholas La Roux updated Travis build configurations. [#139]
61
+
1
62
  ## 3.2.2 / 2018-08-12
2
63
 
3
- * Hiroto Fukui removed a stray `debugger` statement that I had used in
4
- producing v3.2.1. [#137][]
64
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in
65
+ producing v3.2.1. [#137]
5
66
 
6
67
  ## 3.2.1 / 2018-08-12
7
68
 
8
- * A few bugs related to MIME::Types::Container and its use in the
9
- mime-types-data helper tools reared their head because I released 3.2
10
- before verifying against mime-types-data.
69
+ - A few bugs related to MIME::Types::Container and its use in the
70
+ mime-types-data helper tools reared their head because I released 3.2
71
+ before verifying against mime-types-data.
11
72
 
12
73
  ## 3.2 / 2018-08-12
13
74
 
14
- * 2 minor enhancements
75
+ - 2 minor enhancements
15
76
 
16
- * Janko Marohnić contributed a change to `MIME::Type#priority_order` that
17
- should improve on strict sorting when dealing with MIME types that
18
- appear to be in the same family even if strict sorting would cause an
19
- unregistered type to be sorted first. [#132][]
77
+ - Janko Marohnić contributed a change to `MIME::Type#priority_order` that
78
+ should improve on strict sorting when dealing with MIME types that appear
79
+ to be in the same family even if strict sorting would cause an
80
+ unregistered type to be sorted first. [#132]
20
81
 
21
- * Dillon Welch contributed a change that added `frozen_string_literal:
22
- true` to files so that modern Rubies can automatically reduce duplicate
23
- string allocations. [#135][]
82
+ - Dillon Welch contributed a change that added `frozen_string_literal: true` to files so that modern Rubies can automatically reduce duplicate
83
+ string allocations. [#135]
24
84
 
25
- * 2 bug fixes
85
+ - 2 bug fixes
26
86
 
27
- * Burke Libbey fixed a problem with cached data loading. [#126][]
87
+ - Burke Libbey fixed a problem with cached data loading. [#126]
28
88
 
29
- * Resolved an issue where Enumerable#inject returns +nil+ when provided
30
- an empty enumerable and a default value has not been provided. This is
31
- because when Enumerable#inject isn't provided a starting value, the
32
- first value is used as the default value. In every case where this
33
- error was happening, the result was supposed to be an array containing
34
- Set objects so they can be reduced to a single Set. [#117][], [#127][],
35
- [#134][].
89
+ - Resolved an issue where Enumerable#inject returns `nil` when provided an
90
+ empty enumerable and a default value has not been provided. This is
91
+ because when Enumerable#inject isn't provided a starting value, the first
92
+ value is used as the default value. In every case where this error was
93
+ happening, the result was supposed to be an array containing Set objects
94
+ so they can be reduced to a single Set. [#117], [#127], [#134]
36
95
 
37
- * Fixed an uncontrolled growth bug in MIME::Types::Container where a key
38
- miss would create a new entry with an empty Set in the container. This
39
- was working as designed (this particular feature was heavily used
40
- during MIME::Type registry construction), but the design was flawed in
41
- that it did not have any way of determining the difference between
42
- construction and querying. This would mean that, if you have a function
43
- in your web app that queries the MIME::Types registry by extension, the
44
- extension registry would grow uncontrollably. [#136][]
96
+ - Fixed an uncontrolled growth bug in MIME::Types::Container where a key
97
+ miss would create a new entry with an empty Set in the container. This
98
+ was working as designed (this particular feature was heavily used during
99
+ MIME::Type registry construction), but the design was flawed in that it
100
+ did not have any way of determining the difference between construction
101
+ and querying. This would mean that, if you have a function in your web
102
+ app that queries the MIME::Types registry by extension, the extension
103
+ registry would grow uncontrollably. [#136]
45
104
 
46
- * Deprecations:
105
+ - Deprecations:
47
106
 
48
- * Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
107
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
49
108
 
50
- * Documentation Changes:
109
+ - Documentation Changes:
51
110
 
52
- * Supporting files are now Markdown instead of rdoc, except for the
53
- README.
111
+ - Supporting files are now Markdown instead of rdoc, except for the README.
54
112
 
55
- * The history file has been modified to remove all history prior to 3.0.
56
- This history can be found in previous commits.
113
+ - The history file has been modified to remove all history prior to 3.0.
114
+ This history can be found in previous commits.
57
115
 
58
- * A spelling error was corrected by Edward Betts ([#129][]).
116
+ - A spelling error was corrected by Edward Betts ([#129]).
59
117
 
60
- * Administrivia:
118
+ - Administrivia:
61
119
 
62
- * CI configuration for more modern versions of Ruby were added by Nicolas
63
- Leger ([#130][]), Jun Aruga ([#125][]), and Austin Ziegler. Removed
64
- ruby-head-clang and rbx (Rubinius) from CI.
120
+ - CI configuration for more modern versions of Ruby were added by Nicolas
121
+ Leger ([#130]), Jun Aruga ([#125]), and Austin Ziegler. Removed
122
+ ruby-head-clang and rbx (Rubinius) from CI.
65
123
 
66
- * Fixed tests which were asserting equality against nil, which will
67
- become an error in Minitest 6.
124
+ - Fixed tests which were asserting equality against nil, which will become
125
+ an error in Minitest 6.
68
126
 
69
127
  ## 3.1 / 2016-05-22
70
128
 
71
- * 1 documentation change:
129
+ - 1 documentation change:
72
130
 
73
- * Tim Smith (@tas50) updated the build badges to be SVGs to improve
74
- readability on high-density (retina) screens with pull request
75
- [#112][].
131
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
132
+ readability on high-density (retina) screens with pull request [#112].
76
133
 
77
- * 3 bug fixes
134
+ - 3 bug fixes
78
135
 
79
- * A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
80
- strings, [#118][]. This has been fixed.
136
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
137
+ strings, [#118]. This has been fixed.
81
138
 
82
- * The JSON data has been incorrectly encoded since the release of
83
- mime-types 3 on the `xrefs` field, because of the switch to using a Set
84
- to store cross-reference information. This has been fixed.
139
+ - The JSON data has been incorrectly encoded since the release of
140
+ mime-types 3 on the `xrefs` field, because of the switch to using a Set
141
+ to store cross-reference information. This has been fixed.
85
142
 
86
- * A tentative fix for [#117][] has been applied, removing the only
87
- circular require dependencies that exist (and for which there was code
88
- to prevent, but the current fix is simpler). I have no way to verify
89
- this fix and depending on how things are loaded by `delayed_job`, this
90
- fix may not be sufficient.
143
+ - A tentative fix for [#117] has been applied, removing the only circular
144
+ require dependencies that exist (and for which there was code to prevent,
145
+ but the current fix is simpler). I have no way to verify this fix and
146
+ depending on how things are loaded by `delayed_job`, this fix may not be
147
+ sufficient.
91
148
 
92
- * 1 governance change
149
+ - 1 governance change
93
150
 
94
- * Updated to Contributor Covenant 1.4.
151
+ - Updated to Contributor Covenant 1.4.
95
152
 
96
153
  ## 3.0 / 2015-11-21
97
154
 
98
- * 2 governance changes
155
+ - 2 governance changes
99
156
 
100
- * This project and the related mime-types-data project are now
101
- exclusively MIT licensed. Resolves [#95][].
157
+ - This project and the related mime-types-data project are now exclusively
158
+ MIT licensed. Resolves [#95].
102
159
 
103
- * All projects under the mime-types organization now have a standard code
104
- of conduct adapted from the [Contributor Covenant][]. This text can be
105
- found in the [Code-of-Conduct.md][] file.
160
+ - All projects under the mime-types organization now have a standard code
161
+ of conduct adapted from the [Contributor Covenant]. This text can be
162
+ found in the [Code-of-Conduct.md] file.
106
163
 
107
- * 3 major changes
164
+ - 3 major changes
108
165
 
109
- * All methods deprecated in mime-types 2.x have been removed.
166
+ - All methods deprecated in mime-types 2.x have been removed.
110
167
 
111
- * mime-types now requires Ruby 2.0 compatibility or later. Resolves
112
- [#97][].
168
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
169
+ [#97].
113
170
 
114
- * The registry data has been removed from mime-types and put into
115
- mime-types-data, maintained and released separately. It can be found at
116
- [mime-types-data][].
171
+ - The registry data has been removed from mime-types and put into
172
+ mime-types-data, maintained and released separately. It can be found at
173
+ [mime-types-data].
117
174
 
118
- * 17 minor changes:
175
+ - 17 minor changes:
119
176
 
120
- * `MIME::Type` changes:
177
+ - `MIME::Type` changes:
121
178
 
122
- * Changed the way that simplified types representations are created
123
- to reflect the fact that `x-` prefixes are no longer considered
124
- special according to IANA. A simplified MIME type is case-folded to
125
- lowercase. A new keyword parameter, `remove_x_prefix`, can be
126
- provided to remove `x-` prefixes.
179
+ - Changed the way that simplified types representations are created to
180
+ reflect the fact that `x-` prefixes are no longer considered special
181
+ according to IANA. A simplified MIME type is case-folded to lowercase.
182
+ A new keyword parameter, `remove_x_prefix`, can be provided to remove
183
+ `x-` prefixes.
127
184
 
128
- * Improved initialization with an Array works so that extensions do
129
- not need to be wrapped in another array. This means that
130
- `%w(text/yaml yaml yml)` works in the same way that
131
- `['text/yaml', %w(yaml yml)]` did (and still does).
185
+ - Improved initialization with an Array works so that extensions do not
186
+ 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
187
+ still does).
132
188
 
133
- * Changed `priority_compare` to conform with attributes that no
134
- longer exist.
189
+ - Changed `priority_compare` to conform with attributes that no longer
190
+ exist.
135
191
 
136
- * Changed the internal implementation of extensions to use a frozen
137
- Set.
192
+ - Changed the internal implementation of extensions to use a frozen Set.
138
193
 
139
- * When extensions are set or modified with `add_extensions`, the
140
- primary registry will be informed of a need to reindex extensions.
141
- Resolves [#84][].
194
+ - When extensions are set or modified with `add_extensions`, the primary
195
+ registry will be informed of a need to reindex extensions. Resolves
196
+ [#84].
142
197
 
143
- * The preferred extension can be set explicitly. If not set, it will
144
- be the first extension. If the preferred extension is not in the
145
- extension list, it will be added.
198
+ - The preferred extension can be set explicitly. If not set, it will be
199
+ the first extension. If the preferred extension is not in the extension
200
+ list, it will be added.
146
201
 
147
- * Improved how xref URLs are generated.
202
+ - Improved how xref URLs are generated.
148
203
 
149
- * Converted `obsolete`, `registered` and `signature` to
150
- `attr_accessors`.
204
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
151
205
 
152
- * `MIME::Types` changes:
206
+ - `MIME::Types` changes:
153
207
 
154
- * Modified `MIME::Types.new` to track instances of `MIME::Types` so
155
- that they can be told to reindex the extensions as necessary.
208
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
209
+ they can be told to reindex the extensions as necessary.
156
210
 
157
- * Removed `data_version` attribute.
211
+ - Removed `data_version` attribute.
158
212
 
159
- * Changed `#[]` so that the `complete` and `registered` flags are
160
- keywords instead of a generic options parameter.
213
+ - Changed `#[]` so that the `complete` and `registered` flags are
214
+ keywords instead of a generic options parameter.
161
215
 
162
- * Extracted the class methods to a separate file.
216
+ - Extracted the class methods to a separate file.
163
217
 
164
- * Changed the container implementation to use a Set instead of an
165
- Array to prevent data duplication. Resolves [#79][].
218
+ - Changed the container implementation to use a Set instead of an Array
219
+ to prevent data duplication. Resolves [#79].
166
220
 
167
- * `MIME::Types::Cache` changes:
221
+ - `MIME::Types::Cache` changes:
168
222
 
169
- * Caching is now based on the data gem version instead of the
170
- mime-types version.
223
+ - Caching is now based on the data gem version instead of the mime-types
224
+ version.
171
225
 
172
- * Caching is compatible with columnar registry stores.
226
+ - Caching is compatible with columnar registry stores.
173
227
 
174
- * `MIME::Types::Loader` changes:
228
+ - `MIME::Types::Loader` changes:
175
229
 
176
- * `MIME::Types::Loader::PATH` has been removed and replaced with
177
- `MIME::Types::Data::PATH` from the mime-types-data gem. The
178
- environment variable `RUBY_MIME_TYPES_DATA` is still used.
230
+ - `MIME::Types::Loader::PATH` has been removed and replaced with
231
+ `MIME::Types::Data::PATH` from the mime-types-data gem. The environment
232
+ variable `RUBY_MIME_TYPES_DATA` is still used.
179
233
 
180
- * Support for the long-deprecated mime-types v1 format has been
181
- removed.
234
+ - Support for the long-deprecated mime-types v1 format has been removed.
182
235
 
183
- * The registry is default loaded from the columnar store by default.
184
- The internal format of the columnar store has changed; many of the
185
- boolean flags are now loaded from a single file. Resolves [#85][].
236
+ - The registry is default loaded from the columnar store by default. The
237
+ internal format of the columnar store has changed; many of the boolean
238
+ flags are now loaded from a single file. Resolves [#85].
186
239
 
187
240
  [#79]: https://github.com/mime-types/ruby-mime-types/pull/79
188
241
  [#84]: https://github.com/mime-types/ruby-mime-types/pull/84
@@ -203,6 +256,14 @@
203
256
  [#135]: https://github.com/mime-types/ruby-mime-types/pull/135
204
257
  [#136]: https://github.com/mime-types/ruby-mime-types/issues/136
205
258
  [#137]: https://github.com/mime-types/ruby-mime-types/pull/137
206
- [Code-of-Conduct.md]: Code-of-Conduct_md.html
207
- [Contributor Covenant]: http://contributor-covenant.org
259
+ [#139]: https://github.com/mime-types/ruby-mime-types/pull/139
260
+ [#141]: https://github.com/mime-types/ruby-mime-types/pull/141
261
+ [#142]: https://github.com/mime-types/ruby-mime-types/pull/142
262
+ [#146]: https://github.com/mime-types/ruby-mime-types/pull/146
263
+ [#147]: https://github.com/mime-types/ruby-mime-types/pull/147
264
+ [#149]: https://github.com/mime-types/ruby-mime-types/pull/149
265
+ [#150]: https://github.com/mime-types/ruby-mime-types/pull/150
266
+ [#153]: https://github.com/mime-types/ruby-mime-types/pull/153
267
+ [code-of-conduct.md]: Code-of-Conduct_md.html
268
+ [contributor covenant]: http://contributor-covenant.org
208
269
  [mime-types-data]: https://github.com/mime-types/mime-types-data