mime-types 1.16 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cfc8b8464d84ae454c33d168638a3c496d4a7c9bcdcc5fb76905a4db3f7f8c68
4
+ data.tar.gz: 90b122e2a9fb78b41e350f92038854491bf95520cd6764e7719a086da3afa5ff
5
+ SHA512:
6
+ metadata.gz: '068f424c28bda754c9870faf925a80525721e7baff71b582ad9b91041510f078c6dc1d1316362347a406dd31c6843c28abd05fdcf7ec211ce35e617817f3741b'
7
+ data.tar.gz: 7d47eb015acfb84adc666c2ba59eb38da6d349bb029d407725f1046b2ec375a61aee3fcf195bd92f663400a9c9e14ca9d3c53022ad4ba9049b2ef46e662b65ab
data/.standard.yml ADDED
@@ -0,0 +1,4 @@
1
+ parallel: true
2
+ ruby_version: 2.3
3
+ ignore:
4
+ - 'mime-types.gemspec'
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
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
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
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
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
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
30
+ address, without explicit permission
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
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 appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
+ complaints will be reviewed and investigated and will result in a response that
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 incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
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,133 @@
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 the
28
+ tests the same way that `rake test` 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 install` to get the development dependencies. If you already have `hoe`
33
+ installed, you can accomplish the same thing with `rake newb`.
34
+
35
+ This task will install any missing dependencies, run the tests/specs, and
36
+ generate the RDoc.
37
+
38
+ You can run tests with code coverage analysis by running `rake test:coverage`.
39
+
40
+ ## Benchmarks
41
+
42
+ mime-types offers several benchmark tasks to measure different measures of
43
+ performance.
44
+
45
+ There is a repeated load test, measuring how long it takes to start and load
46
+ mime-types with its full registry. By default, it runs fifty loops and uses the
47
+ built-in benchmark library:
48
+
49
+ - `rake benchmark:load`
50
+
51
+ There are two allocation tracing benchmarks (for normal and columnar loads).
52
+ These can only be run on Ruby 2.1 or better and requires the
53
+ [allocation\_tracer][] gem (not installed by default).
54
+
55
+ - `rake benchmark:allocations`
56
+ - `rake benchmark:allocations:columnar`
57
+
58
+ There are two loaded object count benchmarks (for normal and columnar loads).
59
+ These use `ObjectSpace.count_objects`.
60
+
61
+ - `rake benchmark:objects`
62
+ - `rake benchmark:objects:columnar`
63
+
64
+ ## Workflow
65
+
66
+ Here's the most direct way to get your work merged into the project:
67
+
68
+ - Fork the project.
69
+ - Clone down your fork (`git clone git://github.com/<username>/ruby-mime-types.git`).
70
+ - Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
71
+ - Hack away, add tests. Not necessarily in that order.
72
+ - Make sure everything still passes by running `rake`.
73
+ - If necessary, rebase your commits into logical chunks, without errors.
74
+ - Push the branch up (`git push origin my_awesome_feature`).
75
+ - Create a pull request against mime-types/ruby-mime-types and describe what
76
+ your change does and the why you think it should be merged.
77
+
78
+ ## Contributors
79
+
80
+ - Austin Ziegler created mime-types.
81
+
82
+ Thanks to everyone else who has contributed to mime-types over the years:
83
+
84
+ - Aaron Patterson
85
+ - Aggelos Avgerinos
86
+ - Al Snow
87
+ - Alex Vondrak
88
+ - Andre Pankratz
89
+ - Andy Brody
90
+ - Arnaud Meuret
91
+ - Brandon Galbraith
92
+ - Burke Libbey
93
+ - Chris Gat
94
+ - David Genord
95
+ - Dillon Welch
96
+ - Edward Betts
97
+ - Eric Marden
98
+ - Garret Alfert
99
+ - Godfrey Chan
100
+ - Greg Brockman
101
+ - Hans de Graaff
102
+ - Henrik Hodne
103
+ - Igor Victor
104
+ - Janko Marohnić
105
+ - Jean Boussier
106
+ - Jeremy Evans
107
+ - Juanito Fatas
108
+ - Jun Aruga
109
+ - Keerthi Siva
110
+ - Ken Ip
111
+ - Kevin Menard
112
+ - Koichi ITO
113
+ - Łukasz Śliwa
114
+ - Martin d'Allens
115
+ - Masato Nakamura
116
+ - Mauricio Linhares
117
+ - Nicholas La Roux
118
+ - Nicolas Leger
119
+ - nycvotes-dev
120
+ - Olle Jonsson
121
+ - Postmodern
122
+ - Richard Hirner
123
+ - Richard Hurt
124
+ - Richard Schneeman
125
+ - Robb Shecter
126
+ - Tibor Szolár
127
+ - Todd Carrico
128
+
129
+ [minitest]: https://github.com/seattlerb/minitest
130
+ [quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
131
+ [mime-types-data]: https://github.com/mime-types/mime-types-data
132
+ [hoe]: https://github.com/seattlerb/hoe
133
+ [allocation\_tracer]: https://github.com/ko1/allocation_tracer
data/History.md ADDED
@@ -0,0 +1,335 @@
1
+ # Changelog
2
+
3
+ ## 3.5.2 / 2024-01-02
4
+
5
+ There are no primary code changes, but we are releasing this as an update as
6
+ there are some validation changes and updated code with formatting.
7
+
8
+ - Dependency and CI updates:
9
+
10
+ - Masato Nakamura added Ruby 3.3 to the CI workflow in [#179][].
11
+
12
+ - Fixed regressions in standard formatting in [#180][].
13
+
14
+ - Removed `minitest-bonus-assertions` because of a bundler resolution issue.
15
+ Created a better replacement in-line.
16
+
17
+ ## 3.5.1 / 2023-08-21
18
+
19
+ - 1 bug fix:
20
+
21
+ - Better handle possible line-termination strings (legal in Unix filenames)
22
+ such as `\n` in `MIME::Types.type_for`. Reported by ooooooo-q in [#177][],
23
+ resolved in [#178][].
24
+
25
+ ## 3.5.0 / 2023-08-07
26
+
27
+ - 1 minor enhancement:
28
+
29
+ - Robb Shecter changed the default log level for duplicate type variant from
30
+ `warn` to `debug` in [#170][]. This works because `MIME::Types.logger` is
31
+ intended to fit the `::Logger` interface, and the default logger
32
+ (`WarnLogger`) is a subclass of `::Logger` that passes through to
33
+ `Kernel.warn`.
34
+
35
+ - Further consideration has changed cache load messages from `warn` to
36
+ `error` and deprecation messages from `warn` to `debug`.
37
+
38
+ - 1 bug fix:
39
+
40
+ - Added a definition of `MIME::Type#hash`. Contributed by Alex Vondrak in
41
+ [#167][], fixing [#166][].
42
+
43
+ - Dependency and CI updates:
44
+
45
+ - Update the .github/workflows/ci.yml workflow to test Ruby 3.2 and more
46
+ reliably test certain combinations rather than depending on exclusions.
47
+
48
+ - Change `.standard.yml` configuration to format for Ruby 2.3 as certain files
49
+ are not properly detected with Ruby 2.0.
50
+
51
+ - Change from `hoe-git` to `hoe-git2` to support Hoe version 4.
52
+
53
+ - Apply `standardrb --fix`.
54
+
55
+ - The above changes have resulted in the Soft deprecation of Ruby versions
56
+ below 2.6. Any errors reported for Ruby versions 2.0, 2.1, 2.2, 2.3, 2.4,
57
+ and 2.5 will be resolved, but maintaining CI for these versions is
58
+ unsustainable.
59
+
60
+ ## 3.4.1 / 2021-11-16
61
+
62
+ - 1 bug fix:
63
+
64
+ - Fixed a Ruby &lt; 2.3 incompatibility introduced by the use of standardrb,
65
+ where `<<-` heredocs were converted to `<<~` heredocs. These have been
66
+ reverted back to `<<-` with the indentation kept and a `.strip` call
67
+ to prevent excess whitespace.
68
+
69
+ ## 3.4.0 / 2021-11-15
70
+
71
+ - 1 minor enhancement:
72
+
73
+ - Added a new field to `MIME::Type` for checking provisional registrations
74
+ from IANA. [#157]
75
+
76
+ - Documentation:
77
+
78
+ - Kevin Menard synced the documentation so that all examples are correct.
79
+ [#153]
80
+
81
+ - Administrivia:
82
+
83
+ - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the
84
+ CI exclusion list; it refuses to run successfully.
85
+ - Removed the Travis CI configuration and changed it to Github Workflows
86
+ [#150][]. Removed Coveralls configuration.
87
+ - Igor Victor added TruffleRuby to the Travis CI configuration. [#149]
88
+ - Koichi ITO loosened an excessively tight dependency. [#147]
89
+ - Started using `standardrb` for Ruby formatting and validation.
90
+ - Moved `deps:top` functionality to a support file.
91
+
92
+ ## 3.3.1 / 2019-12-26
93
+
94
+ - 1 minor bug fix:
95
+
96
+ - Al Snow fixed a warning with MIME::Types::Logger producing a warning
97
+ because Ruby 2.7 introduces numbered block parameters. Because of the way
98
+ that the MIME::Types::Logger works for deprecation messages, the
99
+ initializer parameters had been named `_1`, `_2`, and `_3`. This has now
100
+ been resolved. [#146]
101
+
102
+ - Administrivia:
103
+
104
+ - Olle Jonsson removed an outdated Travis configuration option. [#142][]
105
+
106
+ ## 3.3 / 2019-09-04
107
+
108
+ - 1 minor enhancement
109
+
110
+ - Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
111
+ interning various string values in each type. This is done with a
112
+ backwards-compatible call that _freezes_ the strings on older versions of
113
+ Ruby. [#141]
114
+
115
+ - Administrivia:
116
+
117
+ - Nicholas La Roux updated Travis build configurations. [#139]
118
+
119
+ ## 3.2.2 / 2018-08-12
120
+
121
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in
122
+ producing v3.2.1. [#137]
123
+
124
+ ## 3.2.1 / 2018-08-12
125
+
126
+ - A few bugs related to MIME::Types::Container and its use in the
127
+ mime-types-data helper tools reared their head because I released 3.2
128
+ before verifying against mime-types-data.
129
+
130
+ ## 3.2 / 2018-08-12
131
+
132
+ - 2 minor enhancements
133
+
134
+ - Janko Marohnić contributed a change to `MIME::Type#priority_order` that
135
+ should improve on strict sorting when dealing with MIME types that appear
136
+ to be in the same family even if strict sorting would cause an
137
+ unregistered type to be sorted first. [#132]
138
+
139
+ - Dillon Welch contributed a change that added `frozen_string_literal: true`
140
+ to files so that modern Rubies can automatically reduce duplicate string
141
+ allocations. [#135]
142
+
143
+ - 2 bug fixes
144
+
145
+ - Burke Libbey fixed a problem with cached data loading. [#126]
146
+
147
+ - Resolved an issue where Enumerable#inject returns `nil` when provided an
148
+ empty enumerable and a default value has not been provided. This is
149
+ because when Enumerable#inject isn't provided a starting value, the first
150
+ value is used as the default value. In every case where this error was
151
+ happening, the result was supposed to be an array containing Set objects
152
+ so they can be reduced to a single Set. [#117][], [#127][], [#134][]
153
+
154
+ - Fixed an uncontrolled growth bug in MIME::Types::Container where a key
155
+ miss would create a new entry with an empty Set in the container. This
156
+ was working as designed (this particular feature was heavily used during
157
+ MIME::Type registry construction), but the design was flawed in that it
158
+ did not have any way of determining the difference between construction
159
+ and querying. This would mean that, if you have a function in your web
160
+ app that queries the MIME::Types registry by extension, the extension
161
+ registry would grow uncontrollably. [#136]
162
+
163
+ - Deprecations:
164
+
165
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
166
+
167
+ - Documentation Changes:
168
+
169
+ - Supporting files are now Markdown instead of rdoc, except for the README.
170
+
171
+ - The history file has been modified to remove all history prior to 3.0.
172
+ This history can be found in previous commits.
173
+
174
+ - A spelling error was corrected by Edward Betts ([#129][]).
175
+
176
+ - Administrivia:
177
+
178
+ - CI configuration for more modern versions of Ruby were added by Nicolas
179
+ Leger ([#130][]), Jun Aruga ([#125][]), and Austin Ziegler. Removed
180
+ ruby-head-clang and rbx (Rubinius) from CI.
181
+
182
+ - Fixed tests which were asserting equality against nil, which will become
183
+ an error in Minitest 6.
184
+
185
+ ## 3.1 / 2016-05-22
186
+
187
+ - 1 documentation change:
188
+
189
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
190
+ readability on high-density (retina) screens with pull request [#112][].
191
+
192
+ - 3 bug fixes
193
+
194
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
195
+ strings, [#118][]. This has been fixed.
196
+
197
+ - The JSON data has been incorrectly encoded since the release of
198
+ mime-types 3 on the `xrefs` field, because of the switch to using a Set
199
+ to store cross-reference information. This has been fixed.
200
+
201
+ - A tentative fix for [#117][] has been applied, removing the only circular
202
+ require dependencies that exist (and for which there was code to prevent,
203
+ but the current fix is simpler). I have no way to verify this fix and
204
+ depending on how things are loaded by `delayed_job`, this fix may not be
205
+ sufficient.
206
+
207
+ - 1 governance change
208
+
209
+ - Updated to Contributor Covenant 1.4.
210
+
211
+ ## 3.0 / 2015-11-21
212
+
213
+ - 2 governance changes
214
+
215
+ - This project and the related mime-types-data project are now exclusively
216
+ MIT licensed. Resolves [#95][].
217
+
218
+ - All projects under the mime-types organization now have a standard code
219
+ of conduct adapted from the [Contributor Covenant][]. This text can be
220
+ found in the [Code-of-Conduct.md][] file.
221
+
222
+ - 3 major changes
223
+
224
+ - All methods deprecated in mime-types 2.x have been removed.
225
+
226
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
227
+ [#97][].
228
+
229
+ - The registry data has been removed from mime-types and put into
230
+ mime-types-data, maintained and released separately. It can be found at
231
+ [mime-types-data][].
232
+
233
+ - 17 minor changes:
234
+
235
+ - `MIME::Type` changes:
236
+
237
+ - Changed the way that simplified types representations are created to
238
+ reflect the fact that `x-` prefixes are no longer considered special
239
+ according to IANA. A simplified MIME type is case-folded to lowercase.
240
+ A new keyword parameter, `remove_x_prefix`, can be provided to remove
241
+ `x-` prefixes.
242
+
243
+ - Improved initialization with an Array works so that extensions do not
244
+ need to be wrapped in another array. This means that
245
+ `%w(text/yaml yaml yml)` works in the same way that
246
+ `['text/yaml', %w(yaml yml)]` did (and still does).
247
+
248
+ - Changed `priority_compare` to conform with attributes that no longer
249
+ exist.
250
+
251
+ - Changed the internal implementation of extensions to use a frozen Set.
252
+
253
+ - When extensions are set or modified with `add_extensions`, the primary
254
+ registry will be informed of a need to re-index extensions. Resolves
255
+ [#84][].
256
+
257
+ - The preferred extension can be set explicitly. If not set, it will be
258
+ the first extension. If the preferred extension is not in the extension
259
+ list, it will be added.
260
+
261
+ - Improved how xref URLs are generated.
262
+
263
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
264
+
265
+ - `MIME::Types` changes:
266
+
267
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
268
+ they can be told to reindex the extensions as necessary.
269
+
270
+ - Removed `data_version` attribute.
271
+
272
+ - Changed `#[]` so that the `complete` and `registered` flags are
273
+ keywords instead of a generic options parameter.
274
+
275
+ - Extracted the class methods to a separate file.
276
+
277
+ - Changed the container implementation to use a Set instead of an Array
278
+ to prevent data duplication. Resolves [#79][].
279
+
280
+ - `MIME::Types::Cache` changes:
281
+
282
+ - Caching is now based on the data gem version instead of the mime-types
283
+ version.
284
+
285
+ - Caching is compatible with columnar registry stores.
286
+
287
+ - `MIME::Types::Loader` changes:
288
+
289
+ - `MIME::Types::Loader::PATH` has been removed and replaced with
290
+ `MIME::Types::Data::PATH` from the mime-types-data gem. The environment
291
+ variable `RUBY_MIME_TYPES_DATA` is still used.
292
+
293
+ - Support for the long-deprecated mime-types v1 format has been removed.
294
+
295
+ - The registry is default loaded from the columnar store by default. The
296
+ internal format of the columnar store has changed; many of the boolean
297
+ flags are now loaded from a single file. Resolves [#85][].
298
+
299
+ [#79]: https://github.com/mime-types/ruby-mime-types/pull/79
300
+ [#84]: https://github.com/mime-types/ruby-mime-types/pull/84
301
+ [#85]: https://github.com/mime-types/ruby-mime-types/pull/85
302
+ [#95]: https://github.com/mime-types/ruby-mime-types/pull/95
303
+ [#97]: https://github.com/mime-types/ruby-mime-types/pull/97
304
+ [#112]: https://github.com/mime-types/ruby-mime-types/pull/112
305
+ [#117]: https://github.com/mime-types/ruby-mime-types/issues/117
306
+ [#118]: https://github.com/mime-types/ruby-mime-types/pull/118
307
+ [#125]: https://github.com/mime-types/ruby-mime-types/pull/125
308
+ [#126]: https://github.com/mime-types/ruby-mime-types/pull/126
309
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
310
+ [#129]: https://github.com/mime-types/ruby-mime-types/pull/129
311
+ [#130]: https://github.com/mime-types/ruby-mime-types/pull/130
312
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
313
+ [#132]: https://github.com/mime-types/ruby-mime-types/pull/132
314
+ [#134]: https://github.com/mime-types/ruby-mime-types/issues/134
315
+ [#135]: https://github.com/mime-types/ruby-mime-types/pull/135
316
+ [#136]: https://github.com/mime-types/ruby-mime-types/issues/136
317
+ [#137]: https://github.com/mime-types/ruby-mime-types/pull/137
318
+ [#139]: https://github.com/mime-types/ruby-mime-types/pull/139
319
+ [#141]: https://github.com/mime-types/ruby-mime-types/pull/141
320
+ [#142]: https://github.com/mime-types/ruby-mime-types/pull/142
321
+ [#146]: https://github.com/mime-types/ruby-mime-types/pull/146
322
+ [#147]: https://github.com/mime-types/ruby-mime-types/pull/147
323
+ [#149]: https://github.com/mime-types/ruby-mime-types/pull/149
324
+ [#150]: https://github.com/mime-types/ruby-mime-types/pull/150
325
+ [#153]: https://github.com/mime-types/ruby-mime-types/pull/153
326
+ [#166]: https://github.com/mime-types/ruby-mime-types/issues/166
327
+ [#167]: https://github.com/mime-types/ruby-mime-types/pull/167
328
+ [#170]: https://github.com/mime-types/ruby-mime-types/pull/170
329
+ [#177]: https://github.com/mime-types/ruby-mime-types/issues/177
330
+ [#178]: https://github.com/mime-types/ruby-mime-types/pull/178
331
+ [#179]: https://github.com/mime-types/ruby-mime-types/pull/179
332
+ [#180]: https://github.com/mime-types/ruby-mime-types/pull/180
333
+ [code-of-conduct.md]: Code-of-Conduct_md.html
334
+ [contributor covenant]: http://contributor-covenant.org
335
+ [mime-types-data]: https://github.com/mime-types/mime-types-data
data/Licence.md ADDED
@@ -0,0 +1,25 @@
1
+ # Licence
2
+
3
+ - Copyright 2003–2019 Austin Ziegler and contributors.
4
+
5
+ The software in this repository is made available under the MIT license.
6
+
7
+ ## MIT License
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
10
+ this software and associated documentation files (the "Software"), to deal in
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:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
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.
data/Manifest.txt CHANGED
@@ -1,12 +1,32 @@
1
- History.txt
2
- Install.txt
3
- Licence.txt
1
+ .standard.yml
2
+ Code-of-Conduct.md
3
+ Contributing.md
4
+ History.md
5
+ Licence.md
4
6
  Manifest.txt
5
- README.txt
7
+ README.rdoc
6
8
  Rakefile
9
+ lib/mime-types.rb
10
+ lib/mime/type.rb
11
+ lib/mime/type/columnar.rb
7
12
  lib/mime/types.rb
8
- lib/mime/types.rb.data
9
- mime-types.gemspec
10
- setup.rb
13
+ lib/mime/types/_columnar.rb
14
+ lib/mime/types/cache.rb
15
+ lib/mime/types/columnar.rb
16
+ lib/mime/types/container.rb
17
+ lib/mime/types/deprecations.rb
18
+ lib/mime/types/full.rb
19
+ lib/mime/types/loader.rb
20
+ lib/mime/types/logger.rb
21
+ lib/mime/types/registry.rb
22
+ test/bad-fixtures/malformed
23
+ test/fixture/json.json
24
+ test/fixture/old-data
25
+ test/fixture/yaml.yaml
26
+ test/minitest_helper.rb
11
27
  test/test_mime_type.rb
12
28
  test/test_mime_types.rb
29
+ test/test_mime_types_cache.rb
30
+ test/test_mime_types_class.rb
31
+ test/test_mime_types_lazy.rb
32
+ test/test_mime_types_loader.rb