specify a range in bundler ruby version

bundler, ruby-on-rails

Solution

You can't set a range for the ruby version, see here

Syntax is like so:

ruby 'RUBY_VERSION', :engine => 'ENGINE', :engine_version => 'ENGINE_VERSION', :patchlevel => 'RUBY_PATCHLEVEL'

Problem

Is there a way to specify a range for ruby version? ``` ruby '~> 2.1.0' Your Ruby version is 2.1.1, but your Gemfile specified ~> 2.1.0 ruby '>= 2.1.0' Your Ruby version is 2.1.1, but your Gemfile specified >= 2.1.0 ``` Obviously, ranges works for gems, but maybe it's not possible for ruby version. Or did I get my syntax wrong?

Original source