Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings caused by Ruby 2.7 update #530

Merged
merged 7 commits into from
Jul 31, 2020
Merged

Fix warnings caused by Ruby 2.7 update #530

merged 7 commits into from
Jul 31, 2020

Conversation

taichi-ishitani
Copy link
Contributor

Summary

Fixed following warnings caused by Ruby 2.7 update.

  • Using the last argument as keyword parameters is deprecated
  • calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
  • URI.escape is obsolete

@coveralls
Copy link

coveralls commented Jan 10, 2020

Coverage Status

Coverage increased (+0.05%) to 94.444% when pulling 9e1e002 on taichi-ishitani:ruby_27_support into 221750b on roo-rb:master.

@taichi-ishitani
Copy link
Contributor Author

Cam anyone review my PR?

@taichi-ishitani
Copy link
Contributor Author

Hi @chopraanmol1 , @simonoff ,
Could you please review my PR?
Thank you for your time.

@jonspalmer
Copy link

Adding my 👍 to get this reviewed and release. It a blocker for folks trying to upgrade to Ruby 2.7.x

@jonspalmer
Copy link

Maybe we should just drop Ruby 2.3 and 2.4 given they're both end of support.

@simonoff
Copy link
Member

@jonspalmer would be great!

lib/roo/csv.rb Outdated

# From Ruby 2.5, options argument of CSV.new/CSV.foreach is a keyword argument.
# Before Ruby 2.5, that argument is a Hash.
# Therefore, this workaround can be removed if Ruby 2.3 and 2.4 are dropped.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please remove such workaround.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I edit gemspec and .travis.yml to drop ruby 2.3 & 2.4 in this branch: ruby_27_support?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed WA for Ruby 2.3 & 2.4 and also edited gemspec and .travis.yml too.

@simonoff simonoff merged commit 868d4ea into roo-rb:master Jul 31, 2020
@weilandia
Copy link
Contributor

Can we get this published?? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants