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

Ruby >= 2.7 deprecation warning #129

Closed
nfm opened this issue Mar 17, 2020 · 0 comments · Fixed by #130
Closed

Ruby >= 2.7 deprecation warning #129

nfm opened this issue Mar 17, 2020 · 0 comments · Fixed by #130

Comments

@nfm
Copy link

nfm commented Mar 17, 2020

Since upgrading Ruby to 2.7.0, I'm getting a deprecation warning when stripe_event is required. Here's some background reading on this deprecation.

vendor/bundle/ruby/2.7.0/gems/stripe_event-2.3.0/lib/stripe_event.rb:21: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead

Here's the relevant line:

    def subscribe(name, callable = Proc.new)

It looks like all has the same method signature:

    def all(callable = Proc.new)

I'm not sure what the best fix is, happy to dig in and submit a PR but thought I'd at least open an issue so this is tracked somewhere ❤️

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 a pull request may close this issue.

1 participant