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

Refactor Gemfile dependencies #26

Merged
merged 4 commits into from Aug 7, 2016
Merged

Refactor Gemfile dependencies #26

merged 4 commits into from Aug 7, 2016

Conversation

alexcu
Copy link
Contributor

@alexcu alexcu commented Jul 23, 2016

This PR refactors the Gemfile to reduce unnessasary installations of gems where possible. It also updates the :test group now that the framework is ready to go (see #25). When #25 is merged, there will be some conflicts since this PR does some minor refactoring on the Gemfile also. I will fix these conflicts, but proposing these changes so that @macite can review what has been modified.

In addition, the documentation now removes the test group from the --without bundle switch, since testing is to be encouraged. Hence, we want bundler to install the test group.

I'm working on a demo branch Docker image (as discussed with you @macite) here which obviously won't need the test group—this will speedup the time for the Docker image to build and will be helpful in situations where we don't need tests to be installed.

alexcu added 3 commits July 23, 2016 09:30
To install gems, we should now use:

   bundle install --without production replica

That is, include the `test` group.

Since bundler retains what to not install, previous bundle
installations should edit the .bundle/config file and remove
"test" from the BUNDLE_WITHOUT config.
@macite
Copy link
Member

macite commented Jul 25, 2016

Is this needed any more?

@alexcu
Copy link
Contributor Author

alexcu commented Aug 7, 2016

@macite Yes, this PR makes some changes to the Gemfile grouping so that we don't need mysql2 on the test environment (amongst others). When installing we should now use:

$ bundle install --without production replica

as we want test gems to be included for unit testing.

@macite macite merged commit cd4a1ed into doubtfire-lms:develop Aug 7, 2016
@alexcu alexcu deleted the quality/refactor-gemfile branch August 11, 2016 10:08
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