Ensure necessary dependencies are included in bullet_train.gemspec
#761
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #714.
I also added
bullet_train-super_scaffolding
because we have the following lines in the Membership controller base:bullet_train-core/bullet_train/app/models/concerns/memberships/base.rb
Lines 16 to 17 in dab52ad
I wanted to added
bullet_train-api
because of this line:bullet_train-core/bullet_train/app/controllers/concerns/account/users/controller_base.rb
Line 16 in dab52ad
However,
bullet_train-api
already depends onbullet_train
:https://github.com/bullet-train-co/bullet_train-core/blob/main/bullet_train-api/bullet_train-api.gemspec#L37
So, trying to include
bullet_train-api
was giving me this error:Gemfile
andbullet_train.gemspec
We're including a lot of in-house gems in the
Gemfile
and not thegemspec
. In some instances, we're including BOTH:bullet_train-core/bullet_train/Gemfile
Lines 14 to 22 in dab52ad
I'm curious if we could learn from the rails repository. It looks like they don't have Gemfiles for their repositories but include everything only in their gemspecs (which I'm under the impression that's what we SHOULD do). Would be glad to undertake that task if that's the direction we should head in.
Active Record
https://github.com/rails/rails/blob/774c630068e69547fabd6bddedd62a712ae7e736/activerecord/activerecord.gemspec#L38-L39
Action View
https://github.com/rails/rails/blob/774c630068e69547fabd6bddedd62a712ae7e736/actionview/actionview.gemspec#L36-L44