Can I specify a ruby ​​version with a patch level in the Gemfile?

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

ruby '1.9.3', :patchlevel => 448

When I follow the instructions 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 He speaks:

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 a ruby ​​version with a patch level of Gemfile?

+4
source share
2 answers

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

You can specify the version of Ruby in the Gemfile (Heroku does this), and everything is fine, but it will only report a problem with the version, not installing it.

So, you would have to in your Gemfile:

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

RVM , Ruby .

+5

ruby ​​ bundler. RVM. ruby ​​/patchlevel.

-1

Source: https://habr.com/ru/post/1532290/


All Articles