Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loosen the dependency version of Rake (< 1.4.0)
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) ```
- Loading branch information