-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Support for gems.rb #658
Support for gems.rb #658
Conversation
f350fb4
to
1e4ca6e
Compare
I'll take a look at this shortly! |
Thanks @svoop. This is starting to feel like we're re-implementing Bundler logic, so I poked around in the Bundler gem and it looks like indeed there are some helpful methods in the require "bundler/shared_helpers"
Bundler::SharedHelpers.in_bundle? So maybe we could refactor this just to call out to relevant Bundler methods, so we don't need to maintain our own logic to determine/find gem file paths. See: https://github.com/rubygems/rubygems/blob/master/bundler/lib/bundler/shared_helpers.rb |
@jaredcwhite This makes a lot of sense! Want me to have a go or do you rather want to refactor yourself? |
@svoop Feel free to jump right into it, but I'm happy to pair or offer any assistance! |
@jaredcwhite Sorry for dropping the ball here, I've changed the implementation to use |
@svoop I think we're fine for now. Seeing some more Rubocop failures but that seems to be unrelated to your changes so I'll go ahead and merge and then fix. Thanks! |
Cool, thanks @jaredcwhite |
This is a 🙋 feature or enhancement.
(Note: Rubocop errors prevent the tests to run, I've tested manually for now and wait for #644 to be merged. However, I create the PR now to get your comments on the changes already.)
Summary
Bundler added
gems.rb
/gems.locked
as alternatives toGemfile
/Gemfile.lock
some years ago, mainly to have proper syntax coloring in editors.Bridgetown has a few places where
Gemfile
is hardcoded, this PR adds support forgems.rb
. However, in order to assure downwards compatibility, the fallbackGemfile
is maintained.Thanks for reviewing and commenting!