-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Don't install solidus_auth_devise if it's already in the Gemfile #4748
Don't install solidus_auth_devise if it's already in the Gemfile #4748
Conversation
core/lib/generators/solidus/install/install_generator/bundler_context.rb
Outdated
Show resolved
Hide resolved
28c3ee3
to
9247053
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left an optional nit, fine by me if we merge without changing anything 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving some comments to understand everything, but it looks great ❤️
aca672c
to
d800b86
Compare
core/lib/generators/solidus/install/install_generator/install_frontend.rb
Show resolved
Hide resolved
2d67d60
to
26a6e15
Compare
@waiting-for-dev @solidusio/core-team I don't have any more updates to this PR. Can you take a look again? Thank you! |
* Extracted `install_plugin` method. * Installing the plugin sequentially would call `bundle install` twice, but this is okay since InstallGenerator in master also adds gems to the bundle one at a time. Also: * Improved names of affected methods.
26a6e15
to
763c649
Compare
@waiting-for-dev I extracted the method to |
Goal
Given I have a Rails app
When I add Solidus 3.2.4 to the Gemfile
And I install Solidus with Solidus Starter Frontend and Solidus Auth Devise
Then I should see only one
solidus_auth_devise
line in the Gemfile.Current behavior
The Gemfile has two lines for
solidus_auth_devise
:Cause
This is a workaround to an issue where
Solidus#InstallGenerator
and SolidusStarterFrontend both addsolidus_auth_devise
to the Gemfile. From solidusio/solidus_starter_frontend@b9e8a7f:Testing
I have confirmed manually that, in conjunction with the SolidusStarterFrontend update, installing Solidus in v3.2 now installs
solidus_auth_devise
only once. SeeChecklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed (
cross them outif they are not):[ ] I have added automated tests to cover my changes.[ ] I have attached screenshots to demo visual changes.[ ] I have opened a PR to update the guides.[ ] I have updated the README to account for my changes.