summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Various upgradesHEADmainAustin Ziegler2023-02-1713-111/+98
| | | | | | | | | | | | | | | - Update the .github/workflows/ci.yml workflow to test Ruby 3.2 and more reliably test certain combinations rather than depending on exclusions. - Change `.standard.yml` configuration to format for Ruby 2.3 as certain files are not properly detected with Ruby 2.0. - Change from `hoe-git` to `hoe-git2` to support Hoe version 4. - Apply `standardrb --fix`. - Update other dependencies.
* Merge pull request #169 from petergoldstein/feature/add_ruby_3_2_to_ciAustin Ziegler2023-01-171-0/+2
|\ | | | | Adds Ruby 3.2 to CI
| * Add fail-fast: falsePeter Goldstein2023-01-171-0/+1
| |
| * Add Ruby 3.2 to the CI matrixPeter Goldstein2023-01-171-0/+1
|/
* Merge pull request #164 from mishina2228/clean-up-travisAustin Ziegler2022-10-042-3/+3
|\ | | | | Clean up Travis CI
| * Clean up Travis CImishina2022-10-042-3/+3
|/ | | | | | - Replace CI status badge from Travis CI to GitHub Actions - Remove reference to `rake travis` - Fix tiny typo
* Merge pull request #165 from mishina2228/add-ruby31-to-ci-matrixAustin Ziegler2022-10-031-1/+2
|\ | | | | Add Ruby 3.1 to the CI matrix
| * Add Ruby 3.1 to the CI matrixmishina2022-04-231-1/+2
| | | | | | | | and bump actions/checkout from v2 to v3
* | Update changelog for PR #167Austin Ziegler2022-07-032-11/+19
| |
* | Merge pull request #167 from ajvondrak/define-mime-type-hashAustin Ziegler2022-07-032-1/+47
|\ \ | |/ |/| Define MIME::Type#hash
| * Define MIME::Type#hashAlex Vondrak2022-07-012-1/+47
|/ | | | Fixes #166.
* Merge pull request #160 from mime-types/fix-mime-types-syntax-errorv3.4.1Austin Ziegler2021-11-168-10/+19
|\ | | | | Fix invalid syntax for < Ruby 2.3
| * Fix invalid syntax for < Ruby 2.3Austin Ziegler2021-11-168-10/+19
|/ | | | | | | | | Fixed a Ruby &lt; 2.3 incompatibility introduced by the use of standardrb, where `<<-` heredocs were converted to `<<~` heredocs. These have been reverted back to `<<-` with the indentation kept and a `.strip` call to prevent excess whitespace. Resolves #159
* Switch primary branch to mainAustin Ziegler2021-11-151-5/+5
|
* Merge pull request #157 from mime-types/additional-columnsv3.4.0Austin Ziegler2021-11-1514-58/+134
|\ | | | | IANA Provisional Registration Support
| * Move deps retrieval to a support fileAustin Ziegler2021-11-153-29/+59
| |
| * IANA Provisional Registration SupportAustin Ziegler2021-11-1513-34/+80
| | | | | | | | | | - Added a new field to `MIME::Type` for checking provisional registrations from IANA.
* | 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
|