(1.2.0.pre) Specifying non-MRI Ruby version in Gemfile? #1932

Closed
stevenh512 opened this Issue May 20, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@stevenh512
Contributor

stevenh512 commented May 20, 2012

This works perfectly for MRI 1.8.x and 1.9.x, but what about JRuby and Rubinius? With a freshly generated Rails app in JRuby 1.6.7 and Bundler 1.2.0.pre I can't specify a version in the Gemfile. Since Bundler itself is Ruby version agnostic and Heroku is using this feature now to detect your app's Ruby version during slug compile (and they unofficially support JRuby and Rubinius with the default Ruby buildpack), supporting non-MRI rubies here is probably a good idea. 😁

I've tried putting ruby "jruby 1.6.7" in my Gemfile and it tells me "Your Ruby engine is jruby, but your Gemfile specified ruby". I get the same results if I try ruby "jruby-1.6.7".

@hone

This comment has been minimized.

Show comment Hide comment
@hone

hone May 21, 2012

Owner

You can specify non mri rubies using ruby "1.8.7", :engine => 'jruby', :engine_version => '1.6.7'. See http://bundle-y-u-so-slow-rdrc2012.herokuapp.com/#68

Owner

hone commented May 21, 2012

You can specify non mri rubies using ruby "1.8.7", :engine => 'jruby', :engine_version => '1.6.7'. See http://bundle-y-u-so-slow-rdrc2012.herokuapp.com/#68

@hone hone closed this May 21, 2012

@ghost ghost assigned hone May 21, 2012

@stevenh512

This comment has been minimized.

Show comment Hide comment
@stevenh512

stevenh512 May 21, 2012

Contributor

@hone Thanks, I hadn't seen any documentation on that and have been scratching my head for a couple days trying to figure it out. 😁

edit: Now that I see how it works, I'd be happy to write something up for the man page (safe to assume this should go in gemfile.5.ronn) and open a pull request.

Contributor

stevenh512 commented May 21, 2012

@hone Thanks, I hadn't seen any documentation on that and have been scratching my head for a couple days trying to figure it out. 😁

edit: Now that I see how it works, I'd be happy to write something up for the man page (safe to assume this should go in gemfile.5.ronn) and open a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment