mime-types 2.99.3 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +5 -5
  2. data/{Code-of-Conduct.rdoc → Code-of-Conduct.md} +29 -30
  3. data/Contributing.md +132 -0
  4. data/History.md +269 -0
  5. data/{Licence.rdoc → Licence.md} +4 -18
  6. data/Manifest.txt +8 -25
  7. data/README.rdoc +63 -73
  8. data/Rakefile +200 -97
  9. data/lib/mime/type/columnar.rb +30 -63
  10. data/lib/mime/type.rb +294 -458
  11. data/lib/mime/types/_columnar.rb +137 -0
  12. data/lib/mime/types/cache.rb +52 -74
  13. data/lib/mime/types/columnar.rb +2 -147
  14. data/lib/mime/types/container.rb +96 -0
  15. data/lib/mime/types/deprecations.rb +17 -34
  16. data/lib/mime/types/full.rb +19 -0
  17. data/lib/mime/types/loader.rb +36 -152
  18. data/lib/mime/types/logger.rb +7 -5
  19. data/lib/mime/types/registry.rb +90 -0
  20. data/lib/mime/types.rb +55 -148
  21. data/lib/mime-types.rb +2 -2
  22. data/test/minitest_helper.rb +8 -18
  23. data/test/test_mime_type.rb +489 -464
  24. data/test/test_mime_types.rb +139 -91
  25. data/test/test_mime_types_cache.rb +85 -57
  26. data/test/test_mime_types_class.rb +120 -100
  27. data/test/test_mime_types_lazy.rb +30 -28
  28. data/test/test_mime_types_loader.rb +18 -45
  29. metadata +92 -77
  30. data/Contributing.rdoc +0 -170
  31. data/History-Types.rdoc +0 -454
  32. data/History.rdoc +0 -590
  33. data/data/mime-types.json +0 -1
  34. data/data/mime.content_type.column +0 -1980
  35. data/data/mime.docs.column +0 -1980
  36. data/data/mime.encoding.column +0 -1980
  37. data/data/mime.friendly.column +0 -1980
  38. data/data/mime.obsolete.column +0 -1980
  39. data/data/mime.registered.column +0 -1980
  40. data/data/mime.signature.column +0 -1980
  41. data/data/mime.use_instead.column +0 -1980
  42. data/data/mime.xrefs.column +0 -1980
  43. data/docs/COPYING.txt +0 -339
  44. data/docs/artistic.txt +0 -127
  45. data/lib/mime/types/loader_path.rb +0 -15
  46. data/support/apache_mime_types.rb +0 -108
  47. data/support/benchmarks/load.rb +0 -64
  48. data/support/benchmarks/load_allocations.rb +0 -83
  49. data/support/benchmarks/object_counts.rb +0 -41
  50. data/support/convert/columnar.rb +0 -88
  51. data/support/convert.rb +0 -158
  52. data/support/iana_registry.rb +0 -172
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6fc8f9668b867116a596617ef0c7a3deb6525d4f
4
- data.tar.gz: da57ee98722d4b5cee6ae754df620202a3d4a7db
2
+ SHA256:
3
+ metadata.gz: 443bfcc0047c25a8ac7cc9e7a2fea95f8d4707e8fa3a98d0b99bee421e168708
4
+ data.tar.gz: 39756d60550165df9787a4967c376faac32179fd442d176766893b7454ed977d
5
5
  SHA512:
6
- metadata.gz: a82b94ceb52e642b263c8223a55c213220125a576d5abeaa5a72c2ad7941d967921bfc13385a300d4c02f45228d9f9f4fccb9999da6dd16ea29cf5fe8388a3a0
7
- data.tar.gz: c5411c2e67a87c342cde930311d3c3df806e2699f5e27bccd72df1c8ab4095bb81db256b787e354ab13e8ec953b8b8b3aa41b3891a6f749aa0a579419d1a133a
6
+ metadata.gz: d711882ac22adb5a8ab3e4953a508c06e870990ad0d41d0256679bcb66c7953686ba4b23ac1470ea6ee07d6026d793f57fb7d377d321fb972252365c8fd22622
7
+ data.tar.gz: 3d20e16be727ee9b62ab599a939524148577b54281a63705b0b75a9eea7c6f51df169bc6979ce8b616c3b707921c1021ac06b226bb8df28f5337d1f76107a293
@@ -1,37 +1,37 @@
1
- == Contributor Covenant Code of Conduct
1
+ # Contributor Covenant Code of Conduct
2
2
 
3
3
  ## Our Pledge
4
4
 
5
5
  In the interest of fostering an open and welcoming environment, we as
6
6
  contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age,
8
- body size, disability, ethnicity, gender identity and expression, level of
9
- experience, nationality, personal appearance, race, religion, or sexual
10
- identity and orientation.
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
11
 
12
- === Our Standards
12
+ ## Our Standards
13
13
 
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
- === Our Responsibilities
34
+ ## Our Responsibilities
35
35
 
36
36
  Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
@@ -43,32 +43,31 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
43
43
  permanently any contributor for other behaviors that they deem inappropriate,
44
44
  threatening, offensive, or harmful.
45
45
 
46
- === Scope
46
+ ## Scope
47
47
 
48
48
  This Code of Conduct applies both within project spaces and in public spaces
49
49
  when an individual is representing the project or its community. Examples of
50
50
  representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an
52
- appointed representative at an online or offline event. Representation of a
53
- project may be further defined and clarified by project maintainers.
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
54
 
55
- === Enforcement
55
+ ## Enforcement
56
56
 
57
57
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
58
  reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an
62
- incident. Further details of specific enforcement policies may be posted
63
- separately.
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
64
63
 
65
64
  Project maintainers who do not follow or enforce the Code of Conduct in good
66
65
  faith may face temporary or permanent repercussions as determined by other
67
66
  members of the project's leadership.
68
67
 
69
- === Attribution
68
+ ## Attribution
70
69
 
71
- This Code of Conduct is adapted from the {Contributor
72
- Covenant}[http://contributor-covenant.org], version 1.4,
73
- available at
74
- {http://contributor-covenant.org/version/1/4/}[http://contributor-covenant.org/version/1/4/].
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
data/Contributing.md ADDED
@@ -0,0 +1,132 @@
1
+ # Contributing
2
+
3
+ I value any contribution to mime-types you can provide: a bug report, a feature
4
+ request, or code contributions.
5
+
6
+ There are a few guidelines for contributing to mime-types:
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
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
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.
18
+
19
+ ## Adding or Modifying MIME Types
20
+
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.
23
+
24
+ ### Test Dependencies
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 `rake`, which runs
28
+ the tests the same way that `rake test` or `rake travis` will do.
29
+
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`.
35
+
36
+ This task will install any missing dependencies, run the tests/specs, and
37
+ generate the RDoc.
38
+
39
+ You can run tests with code coverage analysis by running `rake
40
+ test:coverage`.
41
+
42
+ ## Benchmarks
43
+
44
+ mime-types offers several benchmark tasks to measure different measures of
45
+ performance.
46
+
47
+ There is a repeated load test, measuring how long it takes to start and load
48
+ mime-types with its full registry. By default, it runs fifty loops and uses the
49
+ built-in benchmark library:
50
+
51
+ - `rake benchmark:load`
52
+
53
+ There are two allocation tracing benchmarks (for normal and columnar loads).
54
+ These can only be run on Ruby 2.1 or better and requires the
55
+ [allocation\_tracer] gem (not installed by default).
56
+
57
+ - `rake benchmark:allocations`
58
+ - `rake benchmark:allocations:columnar`
59
+
60
+ There are two loaded object count benchmarks (for normal and columnar loads).
61
+ These use `ObjectSpace.count_objects`.
62
+
63
+ - `rake benchmark:objects`
64
+ - `rake benchmark:objects:columnar`
65
+
66
+ ## Workflow
67
+
68
+ Here's the most direct way to get your work merged into the project:
69
+
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
78
+ your change does and the why you think it should be merged.
79
+
80
+ ## Contributors
81
+
82
+ - Austin Ziegler created mime-types.
83
+
84
+ Thanks to everyone else who has contributed to mime-types over the years:
85
+
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
127
+
128
+ [minitest]: https://github.com/seattlerb/minitest
129
+ [quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
130
+ [mime-types-data]: https://github.com/mime-types/mime-types-data
131
+ [hoe]: https://github.com/seattlerb/hoe
132
+ [allocation\_tracer]: https://github.com/ko1/allocation_tracer
data/History.md ADDED
@@ -0,0 +1,269 @@
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
+
62
+ ## 3.2.2 / 2018-08-12
63
+
64
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in
65
+ producing v3.2.1. [#137]
66
+
67
+ ## 3.2.1 / 2018-08-12
68
+
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.
72
+
73
+ ## 3.2 / 2018-08-12
74
+
75
+ - 2 minor enhancements
76
+
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]
81
+
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]
84
+
85
+ - 2 bug fixes
86
+
87
+ - Burke Libbey fixed a problem with cached data loading. [#126]
88
+
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]
95
+
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]
104
+
105
+ - Deprecations:
106
+
107
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
108
+
109
+ - Documentation Changes:
110
+
111
+ - Supporting files are now Markdown instead of rdoc, except for the README.
112
+
113
+ - The history file has been modified to remove all history prior to 3.0.
114
+ This history can be found in previous commits.
115
+
116
+ - A spelling error was corrected by Edward Betts ([#129]).
117
+
118
+ - Administrivia:
119
+
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.
123
+
124
+ - Fixed tests which were asserting equality against nil, which will become
125
+ an error in Minitest 6.
126
+
127
+ ## 3.1 / 2016-05-22
128
+
129
+ - 1 documentation change:
130
+
131
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
132
+ readability on high-density (retina) screens with pull request [#112].
133
+
134
+ - 3 bug fixes
135
+
136
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
137
+ strings, [#118]. This has been fixed.
138
+
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.
142
+
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.
148
+
149
+ - 1 governance change
150
+
151
+ - Updated to Contributor Covenant 1.4.
152
+
153
+ ## 3.0 / 2015-11-21
154
+
155
+ - 2 governance changes
156
+
157
+ - This project and the related mime-types-data project are now exclusively
158
+ MIT licensed. Resolves [#95].
159
+
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.
163
+
164
+ - 3 major changes
165
+
166
+ - All methods deprecated in mime-types 2.x have been removed.
167
+
168
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
169
+ [#97].
170
+
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].
174
+
175
+ - 17 minor changes:
176
+
177
+ - `MIME::Type` changes:
178
+
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.
184
+
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).
188
+
189
+ - Changed `priority_compare` to conform with attributes that no longer
190
+ exist.
191
+
192
+ - Changed the internal implementation of extensions to use a frozen Set.
193
+
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].
197
+
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.
201
+
202
+ - Improved how xref URLs are generated.
203
+
204
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
205
+
206
+ - `MIME::Types` changes:
207
+
208
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
209
+ they can be told to reindex the extensions as necessary.
210
+
211
+ - Removed `data_version` attribute.
212
+
213
+ - Changed `#[]` so that the `complete` and `registered` flags are
214
+ keywords instead of a generic options parameter.
215
+
216
+ - Extracted the class methods to a separate file.
217
+
218
+ - Changed the container implementation to use a Set instead of an Array
219
+ to prevent data duplication. Resolves [#79].
220
+
221
+ - `MIME::Types::Cache` changes:
222
+
223
+ - Caching is now based on the data gem version instead of the mime-types
224
+ version.
225
+
226
+ - Caching is compatible with columnar registry stores.
227
+
228
+ - `MIME::Types::Loader` changes:
229
+
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.
233
+
234
+ - Support for the long-deprecated mime-types v1 format has been removed.
235
+
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].
239
+
240
+ [#79]: https://github.com/mime-types/ruby-mime-types/pull/79
241
+ [#84]: https://github.com/mime-types/ruby-mime-types/pull/84
242
+ [#85]: https://github.com/mime-types/ruby-mime-types/pull/85
243
+ [#95]: https://github.com/mime-types/ruby-mime-types/pull/95
244
+ [#97]: https://github.com/mime-types/ruby-mime-types/pull/97
245
+ [#112]: https://github.com/mime-types/ruby-mime-types/pull/112
246
+ [#117]: https://github.com/mime-types/ruby-mime-types/issues/117
247
+ [#118]: https://github.com/mime-types/ruby-mime-types/pull/118
248
+ [#125]: https://github.com/mime-types/ruby-mime-types/pull/125
249
+ [#126]: https://github.com/mime-types/ruby-mime-types/pull/126
250
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
251
+ [#129]: https://github.com/mime-types/ruby-mime-types/pull/129
252
+ [#130]: https://github.com/mime-types/ruby-mime-types/pull/130
253
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
254
+ [#132]: https://github.com/mime-types/ruby-mime-types/pull/132
255
+ [#134]: https://github.com/mime-types/ruby-mime-types/issues/134
256
+ [#135]: https://github.com/mime-types/ruby-mime-types/pull/135
257
+ [#136]: https://github.com/mime-types/ruby-mime-types/issues/136
258
+ [#137]: https://github.com/mime-types/ruby-mime-types/pull/137
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
269
+ [mime-types-data]: https://github.com/mime-types/mime-types-data
@@ -1,18 +1,10 @@
1
- == Licence
1
+ # Licence
2
2
 
3
- This software is available under three licences: the GNU GPL version 2 (or at
4
- your option, a later version), the Perl Artistic License, or the MIT License.
5
- The licence preferred by me is the MIT licence.
3
+ - Copyright 2003–2019 Austin Ziegler and contributors.
6
4
 
7
- The original Perl MIME::Types was dually originally licensed with the Perl
8
- Artistic Licence and the GNU GPL ("the same terms as Perl itself") and given
9
- that the Ruby implementation originally hewed pretty closely to the Perl
10
- version, I chose to maintain the additional licensing terms.
5
+ The software in this repository is made available under the MIT license.
11
6
 
12
- * Copyright 2003–2016 Austin Ziegler and other contributors.
13
- * Adapted from MIME::Types (Perl) by Mark Overmeer.
14
-
15
- === MIT License
7
+ ## MIT License
16
8
 
17
9
  Permission is hereby granted, free of charge, to any person obtaining a copy of
18
10
  this software and associated documentation files (the "Software"), to deal in
@@ -31,9 +23,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
23
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
24
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
25
  SOFTWARE.
34
-
35
- === Perl Artistic License (version 2)
36
- See the file docs/artistic.txt in the main distribution.
37
-
38
- === GNU GPL version 2
39
- See the file docs/COPYING.txt in the main distribution.
data/Manifest.txt CHANGED
@@ -1,40 +1,23 @@
1
- Code-of-Conduct.rdoc
2
- Contributing.rdoc
3
- History-Types.rdoc
4
- History.rdoc
5
- Licence.rdoc
1
+ Code-of-Conduct.md
2
+ Contributing.md
3
+ History.md
4
+ Licence.md
6
5
  Manifest.txt
7
6
  README.rdoc
8
7
  Rakefile
9
- data/mime-types.json
10
- data/mime.content_type.column
11
- data/mime.docs.column
12
- data/mime.encoding.column
13
- data/mime.friendly.column
14
- data/mime.obsolete.column
15
- data/mime.registered.column
16
- data/mime.signature.column
17
- data/mime.use_instead.column
18
- data/mime.xrefs.column
19
- docs/COPYING.txt
20
- docs/artistic.txt
21
8
  lib/mime-types.rb
22
9
  lib/mime/type.rb
23
10
  lib/mime/type/columnar.rb
24
11
  lib/mime/types.rb
12
+ lib/mime/types/_columnar.rb
25
13
  lib/mime/types/cache.rb
26
14
  lib/mime/types/columnar.rb
15
+ lib/mime/types/container.rb
27
16
  lib/mime/types/deprecations.rb
17
+ lib/mime/types/full.rb
28
18
  lib/mime/types/loader.rb
29
- lib/mime/types/loader_path.rb
30
19
  lib/mime/types/logger.rb
31
- support/apache_mime_types.rb
32
- support/benchmarks/load.rb
33
- support/benchmarks/load_allocations.rb
34
- support/benchmarks/object_counts.rb
35
- support/convert.rb
36
- support/convert/columnar.rb
37
- support/iana_registry.rb
20
+ lib/mime/types/registry.rb
38
21
  test/bad-fixtures/malformed
39
22
  test/fixture/json.json
40
23
  test/fixture/old-data