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 Ruby 2.7 kwargs warning in InvalidTokenResponse #1343

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

oshow
Copy link
Contributor

@oshow oshow commented Jan 16, 2020

I Run specs and found the following warning in Doorkeeper's code itself.

lib/doorkeeper/oauth/invalid_token_response.rb:31:
warning: Using the last argument as keyword parameters is deprecated;
maybe ** should be added to the call

Instead of expanding the hash to keyword arguments with
double splat, I have rewritten the hash into keyword arguments.
It's the same as Doorkeeper::OAuth::InvalidRequestResponse#description.

@doorkeeper-bot
Copy link

doorkeeper-bot commented Jan 16, 2020

1 Warning
⚠️ There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code.

Generated by 🚫 Danger

I Run specs and found the following warning in Doorkeeper's code itself.

```
lib/doorkeeper/oauth/invalid_token_response.rb:31:
warning: Using the last argument as keyword parameters is deprecated;
maybe ** should be added to the call
```

Instead of expanding the hash to keyword arguments with
double splat, I have rewritten the hash into keyword arguments.
It's the same as `Doorkeeper::OAuth::InvalidRequestResponse#description`.
@nbulaj nbulaj self-requested a review January 17, 2020 07:25
Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

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

Some strange failed test in the CI, I'll check the reason 🤔
Thanks!

@nbulaj
Copy link
Member

nbulaj commented Jan 17, 2020

Tested localy and seems like some weird gem broke the specs :(

@nbulaj nbulaj merged commit 59ff62a into doorkeeper-gem:master Jan 17, 2020
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.

3 participants