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

This fixes warnings on Ruby 2.7 #1009

Merged
merged 1 commit into from Aug 15, 2019
Merged

This fixes warnings on Ruby 2.7 #1009

merged 1 commit into from Aug 15, 2019

Conversation

tenderlove
Copy link
Contributor

@tenderlove tenderlove commented Aug 15, 2019

Ruby 2.7 issues warnings for Proc.new without a block:

warning: Capturing the given block using Proc.new is deprecated; use `&block` instead

This patch converts the Proc.new calls in to &block

Ruby 2.7 issues warnings for `Proc.new` without a block:

```
warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
```

This patch converts the `Proc.new` calls in to `&block`
@jasnow
Copy link

jasnow commented Aug 15, 2019

Connected with #989

Copy link
Member

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

Copy link
Member

@iMacTia iMacTia left a comment

Choose a reason for hiding this comment

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

I'm surprise we still had Proc.new laying around, I though they were all fixed in #962 🤔
Thanks for fixing the remaining ones 👍 !

@iMacTia iMacTia merged commit f4ae96e into lostisland:master Aug 15, 2019
@tenderlove tenderlove deleted the fix-warnings-2.7 branch August 16, 2019 16:01
@systemist systemist mentioned this pull request Aug 29, 2019
@technoweenie technoweenie mentioned this pull request Sep 3, 2019
@zenspider
Copy link

This was merged in August and there's been a release since then in October, but it doesn't seem to contain these fixes. Can we get this released to the non-pre line?

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.

None yet

5 participants