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

Add exception if gem is not found #61

Merged

Conversation

alexeyschepin
Copy link
Contributor

@alexeyschepin alexeyschepin commented Dec 21, 2020

Based on #59

lockfile upload fils if at least one gem is not found. I think such gems must be rather ignored.

The solution is not tested because I wasn't able to run the app locally.

@@ -12,6 +12,20 @@ def initialize(gemmy)
end
end

class NotFound < Error
attr_reader :gemmy_name
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer to store gemmy here instead of gemmy_name, just like AlreadyExists does.

@manuelmeurer
Copy link
Collaborator

Thanks a lot, @alexeyschepin!
Could you address the comment I made?

@alexeyschepin
Copy link
Contributor Author

@manuelmeurer I've made a new commit.

@manuelmeurer manuelmeurer merged commit d8d3c04 into railsbump:main Jan 19, 2021
@manuelmeurer
Copy link
Collaborator

Thanks @alexeyschepin and sorry for the delay!

I'm not sure why I asked you to change it so that gemmy is passed to the error instead of gemmy_name, it doesn't make sense since, well, there is no gemmy. 🤦‍♂️

I merged anyways and will undo the last commit.

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.

2 participants