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 income endpoint if the API returns no result #61

Merged
merged 4 commits into from
Feb 1, 2020
Merged

Fix income endpoint if the API returns no result #61

merged 4 commits into from
Feb 1, 2020

Conversation

brunjo
Copy link
Collaborator

@brunjo brunjo commented Jan 31, 2020

client.income('nsrgy') returned the following error because the API doesn't return any results.

NoMethodError (undefined method `map' for nil:NilClass)

@dangerpr-bot
Copy link

dangerpr-bot commented Jan 31, 2020

1 Warning
⚠️ [DEPRECATION] check is deprecated. Please use check! instead.

Generated by 🚫 Danger

@brunjo brunjo requested a review from dblock January 31, 2020 23:44
context 'invalid symbol', vcr: { cassette_name: 'income/invalid' } do
subject do
client.earnings('INVALID')
client.income('INVALID')
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for this, too! Good catch.

@dblock dblock merged commit fa1f2a3 into dblock:master Feb 1, 2020
@dblock
Copy link
Owner

dblock commented Feb 1, 2020

@brunjo any interested in becoming a co-maintainer here? Making the next release? If yes, send me an email to dblock at dblock dot org with your rubygems username/email.

@brunjo
Copy link
Collaborator Author

brunjo commented Feb 23, 2020

@dblock Sorry for the late reply. I'm happy to help with that. I'll send you an email in a minute.

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