1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

bug #4617: install rack < 2.0.0 for ruby < 2.2.0

(cherry picked from commit ecf6c40dded8ba61acc6e403b2a0f5626102e339)
This commit is contained in:
Javi Fontan 2016-07-04 12:02:27 +02:00
parent e106ad1880
commit f805d79d6a

View File

@ -21,14 +21,20 @@ else
ZENDESK_API='zendesk_api'
end
if !defined?(RUBY_VERSION) || RUBY_VERSION < '2.2.0'
RACK = 'rack --version "< 2.0.0"'
else
RACK = 'rack'
end
TREETOP = 'treetop --version ">= 1.6.3"'
DEFAULT = DEFAULT_PRE if !defined?(DEFAULT)
GROUPS={
:quota => [SQLITE, 'sequel'],
:sunstone => ['json', 'rack', 'sinatra', 'thin', 'memcache-client',
:sunstone => ['json', RACK, 'sinatra', 'thin', 'memcache-client',
ZENDESK_API, SQLITE],
:cloud => %w{amazon-ec2 rack sinatra thin uuidtools curb json},
:cloud => %w{amazon-ec2 sinatra thin uuidtools curb json} << RACK,
:hybrid => %w{configparser azure},
:auth_ldap => LDAP,
:vmware => %w{builder trollop},