-
Notifications
You must be signed in to change notification settings - Fork 344
Add bundler Dependency to gemspec #453
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ def run(command, opts = {}) | |
| Bundler.with_clean_env do | ||
| Process.spawn( | ||
| env, | ||
| command.to_s, | ||
| "bundle exec #{command}", | ||
| out: stdout.last, | ||
| err: stderr.last, | ||
| in: :close, | ||
|
|
@@ -200,7 +200,7 @@ def run!(command, options = {}) | |
| end | ||
|
|
||
| def bundle | ||
| run! "(gem list bundler | grep bundler) || gem install bundler", timeout: nil, retry: 2 | ||
| run! "gem list bundler | grep bundler || gem install bundler", timeout: nil, retry: 2 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change this? It makes it less readable IMO
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| run! "bundle check || bundle update --retry=2", timeout: nil | ||
| end | ||
|
|
||
|
|
||
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.
Why is this necessary? Which tests fail without it?
We are already setting
GEM_PATHandGEM_HOMEin the env of the spawned process, so I don't understand why it would be an issue.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.
Yes, it shouldn't be an issues and it isn't, at least locally. However, tests on travis fail with conflicting bundler version. For some reason travis installs bundler 1.7.6 at first and later it ends up conflicting with generated rails app bundler. Same thing happened in last two attempts of this fix ( #293, #373).