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

pass the block explicitly in ruby 2.7 #56

Merged
merged 1 commit into from
May 22, 2020

Conversation

j-o-lantern0422
Copy link
Contributor

I using this gem, and I got this message.

vendor/bundle/ruby/2.7.0/gems/onelogin-1.5.0/lib/onelogin/api/cursor.rb:49: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead

Since ruby 2.7, it causes a bug, so a warning is displayed.
https://bugs.ruby-lang.org/issues/15539

Warnings are mixed in when displaying user information etc. using API, so I want to prevent it from appearing.

@pitbulk pitbulk merged commit 1f9b46b into onelogin:master May 22, 2020
@pitbulk
Copy link
Contributor

pitbulk commented May 22, 2020

Thanks for the contribution

@j-o-lantern0422 j-o-lantern0422 deleted the ruby2.7-warning branch May 25, 2020 00:00
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

2 participants