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

Dependencies on gitlab and github should not be defined in the gemspec #382

Closed
solnic opened this issue May 27, 2020 · 4 comments
Closed

Comments

@solnic
Copy link

solnic commented May 27, 2020

First of all, thanks for pronto! It helps us significantly and we enjoy using it.

Now the problem: given that a pronto user may or may not be using GitHub and/or GitLab, the client gems should not be specified in the gemspec because they are not core dependencies.

My specific case is that I use GitHub, so I don't want to have GitLab client gem in my dependencies because it can, and it actually did, cause dependency issues.

One way to solve this problem is to add require statements that rescue from LoadError and provide a meaningful error.

@mknapik
Copy link
Contributor

mknapik commented May 27, 2020

I agree however the code is coupled so it would be quite a refactoring.
Also, I'm wondering if such change constitutes as a minor or a major one in terms of versioning.

@solnic
Copy link
Author

solnic commented May 28, 2020

I'd say this should result in just moving things around a bit and changing that one place where you require client 3rd-party gems.

Technically speaking, it would be a breaking change since people would have to add client gems to their Gemfiles (assuming they don't have them already listed for other reasons than using pronto).

@emilebosch
Copy link

Yes I was talking about this too in #373 !

@solnic
Copy link
Author

solnic commented Nov 18, 2020

@emilebosch woah not sure how I missed that! I'm gonna close this one as it's clearly a duplicate.

@solnic solnic closed this as completed Nov 18, 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

No branches or pull requests

3 participants