FYI: Warning after upgrading this gem to 2.7.0-preview1
jasnow opened this issue · 4 comments
jasnow commented
Basic Info
Gem Version: 3.1.7
Ruby Version: 2.7.0-preview1
Issue description
Getting this warning after upgrading to Ruby 2.7.0-preview1:
will_paginate-3.1.7/lib/will_paginate/deprecation.rb:35: warning:
Capturing the given block using Proc.new is deprecated; use `&block` instead
Steps to reproduce
Just upgrade a repo to Ruby 2.7.0-preview1 and then run "rake" command.
Here is a link to other repos working on this issue:
jasnow commented
Spring Cleaning
mislav commented
If this warning is still there with the latest version of Ruby, why not leave the issue open?
jasnow commented
Can't run the tests - tried "rspec" - errors - changed 1 line - "rspec" produces lots of errors. Can you run the tests/specs?
- config.backtrace_clean_patterns << /view_example_group/
+ config.backtrace_exclusion_patterns << /view_example_group/
@mislav - where versions of ruby do you develop/test with this repo.
jasnow commented
Upgraded all my repos successfully. Verified done. THANKS