red-data-tools / red-datasets

A RubyGem that provides common datasets
MIT License
30 stars 25 forks source link

Suppress Ruby 2.7 warnings #82

Closed yahonda closed 4 years ago

yahonda commented 4 years ago

This pull request suppresses Ruby 2.7 warnings below.

% ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]
% rake test
/Users/yahonda/.rbenv/versions/2.7.0/bin/ruby test/run-test.rb
Loaded suite test
Started
./Users/yahonda/src/github.com/yahonda/red-datasets/lib/datasets/adult.rb:65: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/yahonda/.rbenv/versions/2.7.0/lib/ruby/2.7.0/csv.rb:635: warning: The called method `open' is defined here