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

Installing bundler #40

Merged
merged 1 commit into from
Apr 22, 2015
Merged

Installing bundler #40

merged 1 commit into from
Apr 22, 2015

Conversation

udondan
Copy link
Contributor

@udondan udondan commented Apr 22, 2015

Since bundler is not a default gem as of RVM 1.26.11, it needs to be installed. Fixes #35

@udondan
Copy link
Contributor Author

udondan commented Apr 22, 2015

This was tested with CentOS Linux release 7.0.1406 (Core)

@nickjj
Copy link
Contributor

nickjj commented Apr 22, 2015

Thanks for the contribution, this looks good.

nickjj added a commit that referenced this pull request Apr 22, 2015
Install bundler if it's missing
@nickjj nickjj merged commit 9862ed2 into rvm:master Apr 22, 2015
@@ -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'
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, sorry. Copied those lines from #35 and didn't think about it could be incorrect. Sent a pull request with #42 to address the path fix.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#41 has been merged.

gildegoma added a commit to dispansible/rvm1-ansible-role that referenced this pull request Jun 30, 2015
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`.
gildegoma added a commit to dispansible/rvm1-ansible-role that referenced this pull request Jun 30, 2015
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`.
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.

Bundler doesn't get included?
3 participants