summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* CI: Avoid double bundle install (#158)masterOlle Jonsson2021-11-011-3/+1
| | | Added a comment to help the discovery of this.
* Convert to standardrb (#156)Austin Ziegler2021-06-0231-911/+825
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - I mostly don’t care about this, but there are a couple of things that Standard does that I disagree with. They are inherited from Rubocop, but Standard fixes many of Rubocop’s nonsense rules. - Array literal wrappers %i[], %w[], etc. are just ugly and never should have become any sort of standard. I would be happier if this part of standard were just completely disabled, because it‘s unnecessary and wrong. - Quote literals having to be %q() is equally wrong. I’ve avoided the issue here because the generated gemspec uses both "unnecessary" quote literals (it’s necessary if I say it’s necessary) and the wrong wrappers (I wouldn’t use %q<>, but this is generated code). - I still think that short hashes can be `{ foo: "bar" }`, but I’m mostly using Elixir these days, so I don’t mind `%{foo: "bar"}`, so I can get used to it in Ruby. It still feels wrong, almost 20 years in. - There are semantic differences between and / &&, or / ||, but in some cases the reformatted code is substantially _worse_ to read. Again, I mostly don’t _care_ about this difference, but Rubocop’s insistence is silly; these should only be replaced where there _is_ ambiguity. - Replacing `x = foo or next` should never be replaced with `(x = foo) || next`. That’s replacing something that is somewhat readable with something damned-near unreadable. Both should be replaced with: ```ruby x = foo next unless x ``` - YAML.safe_load works differently between Psych 2.x and Psych 3.x, so some updates have been made to make that work cleanly. Overall, this introduces a lot of churn, but I think will be easier to deal with updates to `standardrb` instead of the rapid churn that has been Rubocop.
* Mark Ruby versions for CI as strings, not numbersAustin Ziegler2021-01-171-5/+5
|
* Administrivia:Austin Ziegler2021-01-173-28/+56
| | | | | | | | - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the CI exclusion list; it refuses to run successfully. - Update History.md and Contributing.md documentation with the most recent updates in a `NEXT` release (there are no changes as of yet that require a new release).
* Doc fixes (#153)Kevin Menard2021-01-171-15/+49
| | | | | * Update rdoc overview to match README. * Fix a typo. * Update `simplified` docs to match new semantics.
* Remove Travis, use GitHub ActionsAustin Ziegler2020-11-217-69/+71
|
* Loosen the dependency version of Rake (< 1.4.0)Koichi ITO2020-11-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR suppress the following Ruby 2.7's warnings. ```console % cd path/to/mime-types/ruby-mime-types % ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin17] % bundle exec rake (snip) /Users/koic/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /Users/koic/.rbenv/versions/2.7.0/lib/ruby/2.7.0/fileutils.rb:644: warning: The called method `rm_rf' is defined here /Users/koic/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rake-12.3.3/lib/rake/file_utils_ext.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /Users/koic/.rbenv/versions/2.7.0/lib/ruby/2.7.0/fileutils.rb:622: warning: The called method `rm_r' is defined here rm -rf doc rm -r pkg /Users/koic/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/rake-12.3.3/lib/rake/clean.rb:34: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /Users/koic/.rbenv/versions/2.7.0/lib/ruby/2.7.0/fileutils.rb:622: warning: The called method `rm_r' is defined here ``` For Ruby 2.8.0-dev (Ruby 3.0) the warnings will be `ArgumentError`. ```console % cd path/to/mime-types/ruby-mime-types % ruby -v ruby 2.8.0dev (2020-01-05T05:35:14Z master 54fd50c951) [x86_64-darwin17] % bundle exec rake (snip) rake aborted! ArgumentError: wrong number of arguments (given 2, expected 1) /Users/koic/.rbenv/versions/2.8.0-dev/bin/bundle:23:in `load' /Users/koic/.rbenv/versions/2.8.0-dev/bin/bundle:23:in `<main>' Tasks: TOP => default => mime-types.gemspec => clobber => clean => clobber_docs (See full trace by running task with --trace) ```
* Update .travis.ymlIgor Victor2020-08-291-0/+3
|
* Update .travis.ymlIgor Victor2020-08-291-0/+1
|
* Reformatted documentationAustin Ziegler2019-12-264-240/+222
|
* Update gemspec for 3.3.1 releasev3.3.1Austin Ziegler2019-12-261-24/+42
|
* Prepare for 3.3.1 releaseAustin Ziegler2019-12-264-9/+21
| | | | - Administrative and Ruby 2.7 bugfix
* Fix [_1,_2,_3] parameters (conflict with Ruby 2.7.0); Updated gems and ruby ↵Al Snow2019-12-2611-97/+80
| | | | versions.
* Merge pull request #142 from olleolleolle:patch-1Austin Ziegler2019-12-261-1/+0
|\ | | | | CI: Drop unused sudo: false Travis directive
| * CI: Drop unused sudo: false Travis directiveOlle Jonsson2019-09-051-1/+0
|/
* Remove jruby-9.0.5.0 from testingv3.3Austin Ziegler2019-09-041-1/+0
|
* Prepare for mime-types 3.3Austin Ziegler2019-09-046-8/+24
|
* Add benchmarks for memory profilerAustin Ziegler2019-04-032-0/+94
|
* Intern content type stringsJean Boussier2019-04-031-3/+20
|
* More .hoerc cleanupAustin Ziegler2019-01-261-1/+2
|
* Code formatting:Austin Ziegler2019-01-2624-150/+227
| | | | | | - Clean up the code to be a bit more like what I write. - Create a .rubocop.yml that disables bone-headed defaults and sets things I agree with.
* Update .hoerc to exclude files cleanlyAustin Ziegler2019-01-251-9/+31
|
* Update Travis CI Ruby versionsNicholas La Roux2019-01-251-6/+6
|
* Add a configuration file for unusedAustin Ziegler2018-08-173-19/+57
| | | | | | | | | | - https://github.com/joshuaclayton/unused - All of the reported items are present because they are required for implementation or they are present because they are used by tools outside of mime-types itself (e.g., the mime-types-data tools). Also remove .freeze methods on strings from all files because of the frozen string magic comment.
* Finalize 3.2.2 hotfixv3.2.2Austin Ziegler2018-08-123-4/+10
|
* Merge pull request #137 from bary822/remove_debuggerAustin Ziegler2018-08-121-1/+0
|\ | | | | Remove unintentional debugging code
| * Remove unintentional debugging codehfukui2018-08-131-1/+0
|/
* v3.2.1: An encoding bugfix releasev3.2.1Austin Ziegler2018-08-127-23/+65
|
* MIME::Types::Container is still an internalv3.2Austin Ziegler2018-08-121-1/+1
| | | | | implementation detail. Continue to exclude it from docuemntation as it is not part of the public API.
* Update Travis CI test matrixAustin Ziegler2018-08-122-26/+12
|
* Resolve #136 and control growth of containersAustin Ziegler2018-08-125-21/+66
|
* Resolve a bug related to the switch to SetsAustin Ziegler2018-08-124-7/+21
| | | | Fully resolves #117, #127, and #134.
* Perform some maintenance for v3.2Austin Ziegler2018-08-1215-773/+299
|
* Add .gemspec back in with bundle exec rake gemsepcDillon Welch2018-08-111-0/+82
|
* Remove gemspec based on PR feedbackDillon Welch2018-08-111-82/+0
|
* Hardcode common argument results to prevent dup string allocationsDillon Welch2018-08-1128-12/+70
|
* Calculate priority from MIME types of same familyJanko Marohnić2018-08-112-4/+15
| | | | | | | | | Some MIME types are in the same family, but their #simplified values aren't the same. One such example are "text/comma-separated-values" and "text/csv" MIME types. The former is obsolete and unregistered, while the latter is not obsolete and registered, but mime-types would still rank "text/comma-separated-values" higher because it just looks at the alphabetic order.
* [CI] Test against Ruby 2.5Nicolas Leger2018-02-121-4/+5
|
* correct spelling mistakeEdward Betts2017-09-011-1/+1
|
* Add Ruby 2.3, 2.4 to Travis CI.Jun Aruga2017-04-241-0/+3
| | | | | | * fast_finish is to get the Travis result as faster without waiting the result of the "allow_failures" items. See https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/
* Add __instances__ entry when loading from cache (#126)Burke Libbey2017-04-112-2/+12
|
* mime-types 3.1 (#120)v3.1Austin Ziegler2016-05-2215-275/+343
| | | | | | | | | | | | | | | | | | | | * 3 bug fixes * A test for MIME::Types::Cache fails under Ruby 2.3 because of frozen strings #118. This has been fixed. * The JSON data has been incorrectly encoded since the release of mime-types 3 on the +xrefs+ field, because of the switch to using a Set to store cross-reference information. This has been fixed. * A tentative fix for #117 has been applied, removing the only circular require dependencies that exist (and for which there was code to prevent, but the current fix is simpler). I have no way to verify this fix and depending on how things are loaded by `delayed_job`, this fix may not be sufficient. * 1 governance change * Updated to Contributor Covenant 1.4.
* Recognize @tas50's contribution in History.rdocAustin Ziegler2016-02-211-0/+8
|
* Merge pull request #112 from tas50/masterAustin Ziegler2016-02-211-2/+2
|\ | | | | Use retina badges
| * Use retina badgesTim Smith2015-11-231-2/+2
|/
* Adding a utility to prioritize deps updatesAustin Ziegler2015-11-221-0/+32
| | | | | Taken liberally from @schneems gist for top fifty dependencies. https://gist.github.com/schneems/e09c95da37a8c50047a8
* Updated docs that were missed for 3.0 releaseAustin Ziegler2015-11-222-56/+15
|
* Properly show copyrightAustin Ziegler2015-11-211-1/+1
|
* Fixing document conversion.Austin Ziegler2015-11-211-2/+2
|
* Merge pull request #111 from mime-types/mime-types-3v3.0Austin Ziegler2015-11-2170-50166/+1574
|\ | | | | mime-types 3.0