mime-types 3.6.0 → 3.7.0

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: 5cf7ef0540ce0a20c1cd90411547da13335189d9c2c5008118f1232159851783
4
- data.tar.gz: 3e9c0e91a0b3fe9508558836fbd94592ec4834ba95772730efdeb87f03d5c4db
3
+ metadata.gz: ab73da0cc6bf48c9f8406807103d5e80aeba86c2b019b056143356899a5db481
4
+ data.tar.gz: 78cd6d48759acffabc96ce33160fe19715bb4730cc5bf6bd693dfb07e99c26a4
5
5
  SHA512:
6
- metadata.gz: 3b4ac86405096113021cc718dc2ca62d0ef1a6b8a1df9b1a83d61c48accb24c953d9d59801ad0e963a04938ea0db2c2361d3bc3b52a993ab6518e4c031f15e0c
7
- data.tar.gz: 20f6493b6d88bd466830a8c9a3846a6ba8d63cfbbbf952b02bf7ecbf17544c174804bf568460938cb487e0d941740c68dddc9ca33249b7669a3b14d1bf9d86df
6
+ metadata.gz: acbf4c390f33a56481c0b9100a83eaea8816a530d2dbd2e4617ceeaebe97bdb3734ea5d6af898a6d6ae32829116c514208121c8c0bd7ccbe38826bd6223b1200
7
+ data.tar.gz: 7fd36208270f89ebf99dd70905dae556c4652c461009b72fb3975c7bb9e49c78acfc564bd034309fe967685cab95118cd8ef56fc970d750b8df8ed3a79975bbe
data/CHANGELOG.md ADDED
@@ -0,0 +1,413 @@
1
+ # Changelog
2
+
3
+ ## 3.7.0 / 2025-05-07
4
+
5
+ - Deprecated `MIME::Type#priority_compare`. In a future release, this will be
6
+ will be renamed to `MIME::Type#<=>`. This method is used in tight loops, so
7
+ there is no warning message for either `MIME::Type#priority_compare` or
8
+ `MIME::Type#<=>`.
9
+
10
+ - Improved the performance of sorting by eliminating the complex comparison flow
11
+ from `MIME::Type#priority_compare`. The old version shows under 600 i/s, and
12
+ the new version shows over 900 i/s. In sorting the full set of MIME data,
13
+ there are three differences between the old and new versions; after
14
+ comparison, these differences are considered acceptable.
15
+
16
+ - Simplified the default compare implementation (`MIME::Type#<=>`) to use the
17
+ new `MIME::Type#priority_compare` operation and simplify the fallback to
18
+ `String` comparison. This _may_ result in exceptions where there had been
19
+ none, as explicit support for several special values (which should have caused
20
+ errors in any case) have been removed.
21
+
22
+ - When sorting the result of `MIME::Types#type_for`, provided a priority boost
23
+ if one of the target extensions is the type's preferred extension. This means
24
+ that for the case in [#148][issue-148], when getting the type for `foo.webm`,
25
+ the type `video/webm` will be returned before the type `audio/webm`, because
26
+ `.webm` is the preferred extension for `video/webm` but not `audio/webm`
27
+ (which has a preferred extension of `.weba`). Added tests to ensure MIME types
28
+ are retrieved in a stable order (which is alphabetical).
29
+
30
+ ## 3.6.2 / 2025-03-25
31
+
32
+ - Updated the reference to the changelog in the README, fixing RubyGems metadata
33
+ on the next release. Fixed in [#189][pull-189] by nna774.
34
+
35
+ - Daniel Watkins fixed an error in the repo tag for this release because the
36
+ modified gemspec was not included in the release. Fixed in [#196][pull-196].
37
+
38
+ ## 3.6.1 / 2025-03-15
39
+
40
+ - Restructure project structure to be more consistent with mime-types-data.
41
+
42
+ - Increased GitHub action security. Added Ruby 3.4, dropped macOS 12, added
43
+ macOS 15.
44
+
45
+ - Added [trusted publishing][tp] for fully automated releases.
46
+
47
+ - Added `MIME::Types::NullLogger` to completely silence MIME::Types logging.
48
+
49
+ - Improved the development experience with updates to the Gemfile.
50
+
51
+ - Worked around various issues with the benchmarks and profiling code.
52
+
53
+ - Removed Forwardable from MIME::Types::Container.
54
+
55
+ - Added coverage support (back).
56
+
57
+ ## 3.6.0 / 2024-10-02
58
+
59
+ - 2 deprecations:
60
+
61
+ - Array-based MIME::Type initialization
62
+ - String-based MIME::Type initialization
63
+
64
+ Use of these these will result in deprecation warnings.
65
+
66
+ - Added `logger` to the gemspec to suppress a bundled gem warning with Ruby
67
+ 3.3.5. This warning should not be showing up until Ruby 3.4.0 is released and
68
+ will be suppressed in Ruby 3.3.6.
69
+
70
+ - Reworked the deprecation message code to be somewhat more flexible and allow
71
+ for outputting certain warnings once. Because there will be at least one other
72
+ release after 3.6, we do not need to make the type initialization deprecations
73
+ frequent with this release.
74
+
75
+ ## 3.5.2 / 2024-01-02
76
+
77
+ There are no primary code changes, but we are releasing this as an update as
78
+ there are some validation changes and updated code with formatting.
79
+
80
+ - Dependency and CI updates:
81
+
82
+ - Masato Nakamura added Ruby 3.3 to the CI workflow in [#179][pull-179].
83
+
84
+ - Fixed regressions in standard formatting in [#180][pull-180].
85
+
86
+ - Removed `minitest-bonus-assertions` because of a bundler resolution issue.
87
+ Created a better replacement in-line.
88
+
89
+ ## 3.5.1 / 2023-08-21
90
+
91
+ - 1 bug fix:
92
+
93
+ - Better handle possible line-termination strings (legal in Unix filenames)
94
+ such as `\n` in `MIME::Types.type_for`. Reported by ooooooo-q in
95
+ [#177][issue-177], resolved in [#178][pull-178].
96
+
97
+ ## 3.5.0 / 2023-08-07
98
+
99
+ - 1 minor enhancement:
100
+
101
+ - Robb Shecter changed the default log level for duplicate type variant from
102
+ `warn` to `debug` in [#170][pull-170]. This works because
103
+ `MIME::Types.logger` is intended to fit the `::Logger` interface, and the
104
+ default logger (`WarnLogger`) is a subclass of `::Logger` that passes
105
+ through to `Kernel.warn`.
106
+
107
+ - Further consideration has changed cache load messages from `warn` to
108
+ `error` and deprecation messages from `warn` to `debug`.
109
+
110
+ - 1 bug fix:
111
+
112
+ - Added a definition of `MIME::Type#hash`. Contributed by Alex Vondrak in
113
+ [#167][pull-167], fixing [#166][issue-166].
114
+
115
+ - Dependency and CI updates:
116
+
117
+ - Update the .github/workflows/ci.yml workflow to test Ruby 3.2 and more
118
+ reliably test certain combinations rather than depending on exclusions.
119
+
120
+ - Change `.standard.yml` configuration to format for Ruby 2.3 as certain files
121
+ are not properly detected with Ruby 2.0.
122
+
123
+ - Change from `hoe-git` to `hoe-git2` to support Hoe version 4.
124
+
125
+ - Apply `standardrb --fix`.
126
+
127
+ - The above changes have resulted in the Soft deprecation of Ruby versions
128
+ below 2.6. Any errors reported for Ruby versions 2.0, 2.1, 2.2, 2.3, 2.4,
129
+ and 2.5 will be resolved, but maintaining CI for these versions is
130
+ unsustainable.
131
+
132
+ ## 3.4.1 / 2021-11-16
133
+
134
+ - 1 bug fix:
135
+
136
+ - Fixed a Ruby &lt; 2.3 incompatibility introduced by the use of standardrb,
137
+ where `<<-` heredocs were converted to `<<~` heredocs. These have been
138
+ reverted back to `<<-` with the indentation kept and a `.strip` call to
139
+ prevent excess whitespace.
140
+
141
+ ## 3.4.0 / 2021-11-15
142
+
143
+ - 1 minor enhancement:
144
+
145
+ - Added a new field to `MIME::Type` for checking provisional registrations
146
+ from IANA. [#157]
147
+
148
+ - Documentation:
149
+
150
+ - Kevin Menard synced the documentation so that all examples are correct.
151
+ [#153]
152
+
153
+ - Administrivia:
154
+
155
+ - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the CI
156
+ exclusion list; it refuses to run successfully.
157
+ - Removed the Travis CI configuration and changed it to Github Workflows
158
+ [#150][pull-150]. Removed Coveralls configuration.
159
+ - Igor Victor added TruffleRuby to the Travis CI configuration. [#149]
160
+ - Koichi ITO loosened an excessively tight dependency. [#147]
161
+ - Started using `standardrb` for Ruby formatting and validation.
162
+ - Moved `deps:top` functionality to a support file.
163
+
164
+ ## 3.3.1 / 2019-12-26
165
+
166
+ - 1 minor bug fix:
167
+
168
+ - Al Snow fixed a warning with MIME::Types::Logger producing a warning because
169
+ Ruby 2.7 introduces numbered block parameters. Because of the way that the
170
+ MIME::Types::Logger works for deprecation messages, the initializer
171
+ parameters had been named `_1`, `_2`, and `_3`. This has now been resolved.
172
+ [#146]
173
+
174
+ - Administrivia:
175
+
176
+ - Olle Jonsson removed an outdated Travis configuration option.
177
+ [#142][pull-142]
178
+
179
+ ## 3.3 / 2019-09-04
180
+
181
+ - 1 minor enhancement:
182
+
183
+ - Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
184
+ interning various string values in each type. This is done with a
185
+ backwards-compatible call that _freezes_ the strings on older versions of
186
+ Ruby. [#141]
187
+
188
+ - Administrivia:
189
+
190
+ - Nicholas La Roux updated Travis build configurations. [#139]
191
+
192
+ ## 3.2.2 / 2018-08-12
193
+
194
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in producing
195
+ v3.2.1. [#137]
196
+
197
+ ## 3.2.1 / 2018-08-12
198
+
199
+ - A few bugs related to MIME::Types::Container and its use in the
200
+ mime-types-data helper tools reared their head because I released 3.2 before
201
+ verifying against mime-types-data.
202
+
203
+ ## 3.2 / 2018-08-12
204
+
205
+ - 2 minor enhancements
206
+
207
+ - Janko Marohnić contributed a change to `MIME::Type#priority_order` that
208
+ should improve on strict sorting when dealing with MIME types that appear to
209
+ be in the same family even if strict sorting would cause an unregistered
210
+ type to be sorted first. [#132]
211
+
212
+ - Dillon Welch contributed a change that added `frozen_string_literal: true`
213
+ to files so that modern Rubies can automatically reduce duplicate string
214
+ allocations. [#135]
215
+
216
+ - 2 bug fixes
217
+
218
+ - Burke Libbey fixed a problem with cached data loading. [#126]
219
+
220
+ - Resolved an issue where Enumerable#inject returns `nil` when provided an
221
+ empty enumerable and a default value has not been provided. This is because
222
+ when Enumerable#inject isn't provided a starting value, the first value is
223
+ used as the default value. In every case where this error was happening, the
224
+ result was supposed to be an array containing Set objects so they can be
225
+ reduced to a single Set. [#117][issue-117], [#127][issue-127],
226
+ [#134][issue-134]
227
+
228
+ - Fixed an uncontrolled growth bug in MIME::Types::Container where a key miss
229
+ would create a new entry with an empty Set in the container. This was
230
+ working as designed (this particular feature was heavily used during
231
+ MIME::Type registry construction), but the design was flawed in that it did
232
+ not have any way of determining the difference between construction and
233
+ querying. This would mean that, if you have a function in your web app that
234
+ queries the MIME::Types registry by extension, the extension registry would
235
+ grow uncontrollably. [#136]
236
+
237
+ - Deprecations:
238
+
239
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
240
+
241
+ - Documentation Changes:
242
+
243
+ - Supporting files are now Markdown instead of rdoc, except for the README.
244
+
245
+ - The history file has been modified to remove all history prior to 3.0. This
246
+ history can be found in previous commits.
247
+
248
+ - A spelling error was corrected by Edward Betts ([#129][pull-129]).
249
+
250
+ - Administrivia:
251
+
252
+ - CI configuration for more modern versions of Ruby were added by Nicolas
253
+ Leger ([#130][pull-130]), Jun Aruga ([#125][pull-125]), and Austin Ziegler.
254
+ Removed ruby-head-clang and rbx (Rubinius) from CI.
255
+
256
+ - Fixed tests which were asserting equality against nil, which will become an
257
+ error in Minitest 6.
258
+
259
+ ## 3.1 / 2016-05-22
260
+
261
+ - 1 documentation change:
262
+
263
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
264
+ readability on high-density (retina) screens with pull request
265
+ [#112][pull-112].
266
+
267
+ - 3 bug fixes
268
+
269
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
270
+ strings, [#118][pull-118]. This has been fixed.
271
+
272
+ - The JSON data has been incorrectly encoded since the release of mime-types 3
273
+ on the `xrefs` field, because of the switch to using a Set to store
274
+ cross-reference information. This has been fixed.
275
+
276
+ - A tentative fix for [#117][issue-117] has been applied, removing the only
277
+ circular require dependencies that exist (and for which there was code to
278
+ prevent, but the current fix is simpler). I have no way to verify this fix
279
+ and depending on how things are loaded by `delayed_job`, this fix may not be
280
+ sufficient.
281
+
282
+ - 1 governance change
283
+
284
+ - Updated to Contributor Covenant 1.4.
285
+
286
+ ## 3.0 / 2015-11-21
287
+
288
+ - 2 governance changes
289
+
290
+ - This project and the related mime-types-data project are now exclusively MIT
291
+ licensed. Resolves [#95][pull-95].
292
+
293
+ - All projects under the mime-types organization now have a standard code of
294
+ conduct adapted from the [Contributor Covenant][contributor covenant]. This
295
+ text can be found in the [Code of Conduct][code of conduct] file.
296
+
297
+ - 3 major changes
298
+
299
+ - All methods deprecated in mime-types 2.x have been removed.
300
+
301
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
302
+ [#97][pull-97].
303
+
304
+ - The registry data has been removed from mime-types and put into
305
+ mime-types-data, maintained and released separately. It can be found at
306
+ [mime-types-data][mime-types-data].
307
+
308
+ - 17 minor changes:
309
+
310
+ - `MIME::Type` changes:
311
+
312
+ - Changed the way that simplified types representations are created to
313
+ reflect the fact that `x-` prefixes are no longer considered special
314
+ according to IANA. A simplified MIME type is case-folded to lowercase. A
315
+ new keyword parameter, `remove_x_prefix`, can be provided to remove `x-`
316
+ prefixes.
317
+
318
+ - Improved initialization with an Array works so that extensions do not need
319
+ to be wrapped in another array. This means that `%w(text/yaml yaml yml)`
320
+ works in the same way that `['text/yaml', %w(yaml yml)]` did (and still
321
+ does).
322
+
323
+ - Changed `priority_compare` to conform with attributes that no longer
324
+ exist.
325
+
326
+ - Changed the internal implementation of extensions to use a frozen Set.
327
+
328
+ - When extensions are set or modified with `add_extensions`, the primary
329
+ registry will be informed of a need to re-index extensions. Resolves
330
+ [#84][pull-84].
331
+
332
+ - The preferred extension can be set explicitly. If not set, it will be the
333
+ first extension. If the preferred extension is not in the extension list,
334
+ it will be added.
335
+
336
+ - Improved how xref URLs are generated.
337
+
338
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
339
+
340
+ - `MIME::Types` changes:
341
+
342
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
343
+ they can be told to reindex the extensions as necessary.
344
+
345
+ - Removed `data_version` attribute.
346
+
347
+ - Changed `#[]` so that the `complete` and `registered` flags are keywords
348
+ instead of a generic options parameter.
349
+
350
+ - Extracted the class methods to a separate file.
351
+
352
+ - Changed the container implementation to use a Set instead of an Array to
353
+ prevent data duplication. Resolves [#79][pull-79].
354
+
355
+ - `MIME::Types::Cache` changes:
356
+
357
+ - Caching is now based on the data gem version instead of the mime-types
358
+ version.
359
+
360
+ - Caching is compatible with columnar registry stores.
361
+
362
+ - `MIME::Types::Loader` changes:
363
+
364
+ - `MIME::Types::Loader::PATH` has been removed and replaced with
365
+ `MIME::Types::Data::PATH` from the mime-types-data gem. The environment
366
+ variable `RUBY_MIME_TYPES_DATA` is still used.
367
+
368
+ - Support for the long-deprecated mime-types v1 format has been removed.
369
+
370
+ - The registry is default loaded from the columnar store by default. The
371
+ internal format of the columnar store has changed; many of the boolean
372
+ flags are now loaded from a single file. Resolves [#85][pull-85].
373
+
374
+ [code of conduct]: CODE_OF_CONDUCT.md
375
+ [contributor covenant]: http://contributor-covenant.org
376
+ [issue-117]: https://github.com/mime-types/ruby-mime-types/issues/117
377
+ [issue-127]: https://github.com/mime-types/ruby-mime-types/issues/127
378
+ [issue-134]: https://github.com/mime-types/ruby-mime-types/issues/134
379
+ [issue-136]: https://github.com/mime-types/ruby-mime-types/issues/136
380
+ [issue-148]: https://github.com/mime-types/ruby-mime-types/issues/148
381
+ [issue-166]: https://github.com/mime-types/ruby-mime-types/issues/166
382
+ [issue-177]: https://github.com/mime-types/ruby-mime-types/issues/177
383
+ [mime-types-data]: https://github.com/mime-types/mime-types-data
384
+ [pull-112]: https://github.com/mime-types/ruby-mime-types/pull/112
385
+ [pull-118]: https://github.com/mime-types/ruby-mime-types/pull/118
386
+ [pull-125]: https://github.com/mime-types/ruby-mime-types/pull/125
387
+ [pull-126]: https://github.com/mime-types/ruby-mime-types/pull/126
388
+ [pull-129]: https://github.com/mime-types/ruby-mime-types/pull/129
389
+ [pull-130]: https://github.com/mime-types/ruby-mime-types/pull/130
390
+ [pull-132]: https://github.com/mime-types/ruby-mime-types/pull/132
391
+ [pull-135]: https://github.com/mime-types/ruby-mime-types/pull/135
392
+ [pull-137]: https://github.com/mime-types/ruby-mime-types/pull/137
393
+ [pull-139]: https://github.com/mime-types/ruby-mime-types/pull/139
394
+ [pull-141]: https://github.com/mime-types/ruby-mime-types/pull/141
395
+ [pull-142]: https://github.com/mime-types/ruby-mime-types/pull/142
396
+ [pull-146]: https://github.com/mime-types/ruby-mime-types/pull/146
397
+ [pull-147]: https://github.com/mime-types/ruby-mime-types/pull/147
398
+ [pull-149]: https://github.com/mime-types/ruby-mime-types/pull/149
399
+ [pull-150]: https://github.com/mime-types/ruby-mime-types/pull/150
400
+ [pull-153]: https://github.com/mime-types/ruby-mime-types/pull/153
401
+ [pull-167]: https://github.com/mime-types/ruby-mime-types/pull/167
402
+ [pull-170]: https://github.com/mime-types/ruby-mime-types/pull/170
403
+ [pull-178]: https://github.com/mime-types/ruby-mime-types/pull/178
404
+ [pull-179]: https://github.com/mime-types/ruby-mime-types/pull/179
405
+ [pull-180]: https://github.com/mime-types/ruby-mime-types/pull/180
406
+ [pull-189]: https://github.com/mime-types/ruby-mime-types/pull/189
407
+ [pull-196]: https://github.com/mime-types/ruby-mime-types/pull/196
408
+ [pull-79]: https://github.com/mime-types/ruby-mime-types/pull/79
409
+ [pull-84]: https://github.com/mime-types/ruby-mime-types/pull/84
410
+ [pull-85]: https://github.com/mime-types/ruby-mime-types/pull/85
411
+ [pull-95]: https://github.com/mime-types/ruby-mime-types/pull/95
412
+ [pull-97]: https://github.com/mime-types/ruby-mime-types/pull/97
413
+ [tp]: https://guides.rubygems.org/trusted-publishing/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,93 @@
1
+ # Contributing
2
+
3
+ Contribution to mime-types is encouraged in any form: a bug report, a feature
4
+ request, or code contributions. There are a few DOs and DON'Ts for
5
+ contributions.
6
+
7
+ - DO:
8
+
9
+ - Keep the coding style that already exists for any updated Ruby code (support
10
+ or otherwise). I use [Standard Ruby][standardrb] for linting and formatting.
11
+
12
+ - Use thoughtfully-named topic branches for contributions. Rebase your commits
13
+ into logical chunks as necessary.
14
+
15
+ - Use [quality commit messages][qcm].
16
+
17
+ - Add your name or GitHub handle to `CONTRIBUTORS.md` and a record in the
18
+ `CHANGELOG.md` as a separate commit from your main change. (Follow the style
19
+ in the `CHANGELOG.md` and provide a link to your PR.)
20
+
21
+ - Add or update tests as appropriate for your change. The test suite is
22
+ written with [minitest][minitest].
23
+
24
+ - Add or update documentation as appropriate for your change. The
25
+ documentation is RDoc; mime-types does not use extensions that may be
26
+ present in alternative documentation generators.
27
+
28
+ - DO NOT:
29
+
30
+ - Modify `VERSION` in `lib/mime/types/version.rb`. When your patch is accepted
31
+ and a release is made, the version will be updated at that point.
32
+
33
+ - Modify `mime-types.gemspec`; it is a generated file. (You _may_ use
34
+ `rake gemspec` to regenerate it if your change involves metadata related to
35
+ gem itself).
36
+
37
+ - Modify the `Gemfile`.
38
+
39
+ ## Adding or Modifying MIME Types
40
+
41
+ The mime-types registry is managed in [mime-types-data][mtd].
42
+
43
+ ## Test Dependencies
44
+
45
+ mime-types uses Ryan Davis's [Hoe][Hoe] to manage the release process, and it
46
+ adds a number of rake tasks. You will mostly be interested in `rake`, which runs
47
+ the tests the same way that `rake test` will do.
48
+
49
+ To assist with the installation of the development dependencies for mime-types,
50
+ I have provided the simplest possible Gemfile pointing to the (generated)
51
+ `mime-types.gemspec` file. This will permit you to do `bundle install` to get
52
+ the development dependencies.
53
+
54
+ You can run tests with code coverage analysis by running `rake coverage`.
55
+
56
+ ## Benchmarks
57
+
58
+ mime-types offers several benchmark tasks to measure different measures of
59
+ performance.
60
+
61
+ There is a repeated load test, measuring how long it takes to start and load
62
+ mime-types with its full registry. By default, it runs fifty loops and uses the
63
+ built-in benchmark library:
64
+
65
+ - `rake benchmark:load`
66
+
67
+ There are two loaded object count benchmarks (for normal and columnar loads).
68
+ These use `ObjectSpace.count_objects`.
69
+
70
+ - `rake benchmark:objects`
71
+ - `rake benchmark:objects:columnar`
72
+
73
+ ## Workflow
74
+
75
+ Here's the most direct way to get your work merged into the project:
76
+
77
+ - Fork the project.
78
+ - Clone down your fork
79
+ (`git clone git://github.com/<username>/ruby-mime-types.git`).
80
+ - Create a topic branch to contain your change
81
+ (`git checkout -b my_awesome_feature`).
82
+ - Hack away, add tests. Not necessarily in that order.
83
+ - Make sure everything still passes by running `rake`.
84
+ - If necessary, rebase your commits into logical chunks, without errors.
85
+ - Push the branch up (`git push origin my_awesome_feature`).
86
+ - Create a pull request against mime-types/ruby-mime-types and describe what
87
+ your change does and the why you think it should be merged.
88
+
89
+ [hoe]: https://github.com/seattlerb/hoe
90
+ [minitest]: https://github.com/seattlerb/minitest
91
+ [mtd]: https://github.com/mime-types/mime-types-data
92
+ [qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
93
+ [standardrb]: https://github.com/standardrb/standard
data/CONTRIBUTORS.md ADDED
@@ -0,0 +1,52 @@
1
+ # Contributors
2
+
3
+ - Austin Ziegler created mime-types.
4
+
5
+ Thanks to everyone else who has contributed to mime-types over the years:
6
+
7
+ - Aaron Patterson
8
+ - Aggelos Avgerinos
9
+ - Al Snow
10
+ - Alex Vondrak
11
+ - Andre Pankratz
12
+ - Andy Brody
13
+ - Arnaud Meuret
14
+ - Brandon Galbraith
15
+ - Burke Libbey
16
+ - Chris Gat
17
+ - Daniel Watkins
18
+ - David Genord
19
+ - Dillon Welch
20
+ - Edward Betts
21
+ - Eric Marden
22
+ - Garret Alfert
23
+ - Godfrey Chan
24
+ - Greg Brockman
25
+ - Hans de Graaff
26
+ - Henrik Hodne
27
+ - Igor Victor
28
+ - Janko Marohnić
29
+ - Jean Boussier
30
+ - Jeremy Evans
31
+ - Juanito Fatas
32
+ - Jun Aruga
33
+ - Keerthi Siva
34
+ - Ken Ip
35
+ - Kevin Menard
36
+ - Koichi ITO
37
+ - Łukasz Śliwa
38
+ - Martin d'Allens
39
+ - Masato Nakamura
40
+ - Mauricio Linhares
41
+ - Nana Kugayama
42
+ - Nicholas La Roux
43
+ - Nicolas Leger
44
+ - nycvotes-dev
45
+ - Olle Jonsson
46
+ - Postmodern
47
+ - Richard Hirner
48
+ - Richard Hurt
49
+ - Richard Schneeman
50
+ - Robb Shecter
51
+ - Tibor Szolár
52
+ - Todd Carrico
@@ -1,6 +1,6 @@
1
1
  # Licence
2
2
 
3
- - Copyright 2003–2019 Austin Ziegler and contributors.
3
+ - Copyright 2003-2025 Austin Ziegler and contributors.
4
4
 
5
5
  The software in this repository is made available under the MIT license.
6
6
 
@@ -9,17 +9,16 @@ The software in this repository is made available under the MIT license.
9
9
  Permission is hereby granted, free of charge, to any person obtaining a copy of
10
10
  this software and associated documentation files (the "Software"), to deal in
11
11
  the Software without restriction, including without limitation the rights to
12
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13
- of the Software, and to permit persons to whom the Software is furnished to do
14
- so, subject to the following conditions:
12
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
13
+ the Software, and to permit persons to whom the Software is furnished to do so,
14
+ subject to the following conditions:
15
15
 
16
16
  The above copyright notice and this permission notice shall be included in all
17
17
  copies or substantial portions of the Software.
18
18
 
19
19
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
- SOFTWARE.
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
21
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
22
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Manifest.txt CHANGED
@@ -1,11 +1,12 @@
1
- .standard.yml
2
- Code-of-Conduct.md
3
- Contributing.md
4
- History.md
5
- Licence.md
1
+ CHANGELOG.md
2
+ CODE_OF_CONDUCT.md
3
+ CONTRIBUTING.md
4
+ CONTRIBUTORS.md
5
+ LICENCE.md
6
6
  Manifest.txt
7
- README.rdoc
7
+ README.md
8
8
  Rakefile
9
+ SECURITY.md
9
10
  lib/mime-types.rb
10
11
  lib/mime/type.rb
11
12
  lib/mime/type/columnar.rb
@@ -19,6 +20,7 @@ lib/mime/types/full.rb
19
20
  lib/mime/types/loader.rb
20
21
  lib/mime/types/logger.rb
21
22
  lib/mime/types/registry.rb
23
+ lib/mime/types/version.rb
22
24
  test/bad-fixtures/malformed
23
25
  test/fixture/json.json
24
26
  test/fixture/old-data