5

Bundler documentation for version 1.5 says that I should specify patchlevel as follows:

ruby '1.9.3', :patchlevel => 448

When I follow the instruction and run bundle install, I get:

The Ruby patchlevel in your Gemfile must be a string

If I do

ruby '2.0.0', :patchlevel => '353'

Bundler says:

ruby-2.0.0,:patchlevel=>353 is not installed.
To install do: 'rvm install ruby-2.0.0,:patchlevel=>353'

Is it even possible to specify ruby version with patchlevel in Gemfile?

Ivan Zamylin
  • 1,708
  • 2
  • 19
  • 35

2 Answers2

6

rvm install 2.0.0-p353 at the command line (in your shell) will do it for you.

You can specify the Ruby version in the Gemfile (Heroku does this) and it is OK, but it will only report, not install, the version problem.

So you would then have in your Gemfile:

ruby '2.0.0', :patchlevel => '353'

That will help RVM to determine which version of Ruby you should use.

vgoff
  • 10,980
  • 3
  • 38
  • 56
-1

You don't install ruby with bundler. Use RVM for that. It is used to specify a dependency on a specific ruby version/patchlevel.

Described here

Magnuss
  • 2,270
  • 19
  • 21