-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Installing bundler #40
Conversation
Fixes rvm#35
This was tested with CentOS Linux release 7.0.1406 (Core) |
Thanks for the contribution, this looks good. |
Install bundler if it's missing
@@ -24,6 +24,14 @@ | |||
when: detect_default_ruby_version.stdout == '' or | |||
rvm1_default_ruby_version not in detect_default_ruby_version.stdout | |||
|
|||
- name: Install bundler if not installed | |||
shell: 'gem list | if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi' |
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.
Sorry for bringing up already merged code, but... Shouldn't it be like so?
{{ rvm1_install_path }}/wrappers/{{ item }}/gem list | if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi
Otherwise what exactly gem
we are calling?
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 I believe you're correct.
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.
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.
#41 has been merged.
Without this change, the Bundler installation introduced by rvm#40 and rvm#41 fails when the `rvm_rubies` list contains valid RVM aliases, like following examples: - ruby-1.9.3 (→ ruby-1.9.3-p551) - ruby-2.0 (→ ruby-2.0.0-p643) - 2.1 (→ ruby-2.1.5) - ruby (→ ruby-2.2.0) - jruby (→ jruby-1.7.18) - etc. Add more test coverage to `.travis.yml`.
Without this change, the Bundler installation introduced by rvm#40 and rvm#41 fails when the `rvm_rubies` list contains valid RVM aliases, like following examples: - ruby-1.9.3 (→ ruby-1.9.3-p551) - ruby-2.0 (→ ruby-2.0.0-p643) - 2.1 (→ ruby-2.1.5) - ruby (→ ruby-2.2.0) - jruby (→ jruby-1.7.18) - etc. Add more test coverage to `.travis.yml`.
Since bundler is not a default gem as of RVM 1.26.11, it needs to be installed. Fixes #35