mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
1187d77ef5
* Revert "M #-: Update Gemfile.locks (#1040)"
This reverts commit 0dcde4b04b
.
* M #-: Add prefix method to older IPAddr
156 lines
4.0 KiB
Ruby
156 lines
4.0 KiB
Ruby
# -------------------------------------------------------------------------- #
|
|
# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems #
|
|
# #
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
# not use this file except in compliance with the License. You may obtain #
|
|
# a copy of the License at #
|
|
# #
|
|
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
# #
|
|
# Unless required by applicable law or agreed to in writing, software #
|
|
# distributed under the License is distributed on an "AS IS" BASIS, #
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
|
# See the License for the specific language governing permissions and #
|
|
# limitations under the License. #
|
|
#--------------------------------------------------------------------------- #
|
|
|
|
################################################################################
|
|
# Defaults
|
|
################################################################################
|
|
|
|
ruby '~> 2'
|
|
source 'https://rubygems.org'
|
|
ruby_version = Gem::Version.new(RUBY_VERSION)
|
|
|
|
################################################################################
|
|
# Gems only in one ruby version
|
|
################################################################################
|
|
|
|
if ruby_version >= Gem::Version.new('2.4.0')
|
|
gem 'xmlrpc'
|
|
end
|
|
|
|
if ruby_version < Gem::Version.new('2.1.0')
|
|
gem 'scrub_rb'
|
|
end
|
|
|
|
################################################################################
|
|
# gems groups
|
|
################################################################################
|
|
|
|
if ruby_version < Gem::Version.new('2.1.0')
|
|
nokogiri = '< 1.7'
|
|
elsif ruby_version < Gem::Version.new('2.3.0')
|
|
nokogiri = '< 1.10'
|
|
end
|
|
|
|
ps = '< 3.0.0' if ruby_version < Gem::Version.new('2.1.0')
|
|
|
|
if ruby_version < Gem::Version.new('2.2.0')
|
|
rack = '< 2.0.0'
|
|
minitest = '< 5.12.0'
|
|
pg = '< 1.2.0'
|
|
end
|
|
|
|
if ruby_version < Gem::Version.new('2.3.0')
|
|
zendesk = '< 1.17.0'
|
|
rq = '< 1.0.0'
|
|
end
|
|
|
|
gem 'ffi-rzmq', '~> 2.0.7'
|
|
gem 'net-ldap'
|
|
gem 'nokogiri', nokogiri
|
|
gem 'public_suffix', ps
|
|
|
|
group :cli do
|
|
gem 'gnuplot'
|
|
gem 'highline', '~> 1.7'
|
|
gem 'mysql2'
|
|
gem 'pg', pg
|
|
gem 'sqlite3'
|
|
gem 'sequel'
|
|
end
|
|
|
|
group :onecfg, :cli do
|
|
gem 'augeas', '~> 0.6'
|
|
end
|
|
|
|
group :onecfg, :cloud, :oneflow, :sunstone do
|
|
gem 'json', '>= 2.0'
|
|
end
|
|
|
|
group :onecfg do
|
|
gem 'git', '~> 1.5'
|
|
end
|
|
|
|
group :hybrid do
|
|
gem 'aws-sdk-ec2', '>=1.151'
|
|
gem 'aws-sdk-s3'
|
|
gem 'aws-sdk-cloudwatch'
|
|
gem 'azure_mgmt_compute'
|
|
gem 'azure_mgmt_monitor'
|
|
gem 'azure_mgmt_network'
|
|
gem 'azure_mgmt_resources'
|
|
gem 'azure_mgmt_storage'
|
|
gem 'configparser'
|
|
end
|
|
|
|
group :packethost do
|
|
gem 'minitest', minitest
|
|
gem 'faraday', '~> 0.15'
|
|
gem 'faraday_middleware', '~> 0.12'
|
|
gem 'activesupport', '~> 4.2'
|
|
gem 'i18n', '~> 0.9'
|
|
end
|
|
|
|
group :cloud, :oneflow, :sunstone do
|
|
gem 'rack', rack
|
|
gem 'sinatra'
|
|
end
|
|
|
|
group :cloud do
|
|
gem 'thin'
|
|
gem 'uuidtools'
|
|
gem 'curb'
|
|
end
|
|
|
|
group :oneflow, :sunstone do
|
|
gem 'ipaddress', '~> 0.8.3'
|
|
end
|
|
|
|
group :oneflow do
|
|
gem 'treetop', '>= 1.6.3'
|
|
gem 'parse-cron'
|
|
end
|
|
|
|
group :sunstone do
|
|
if ruby_version >= Gem::Version.new('2.4.0')
|
|
gem 'webauthn'
|
|
end
|
|
|
|
gem 'zendesk_api', zendesk
|
|
gem 'rqrcode', rq
|
|
gem 'memcache-client'
|
|
gem 'dalli'
|
|
gem 'rotp'
|
|
end
|
|
|
|
group :oca do
|
|
gem 'ox'
|
|
end
|
|
|
|
group :vmware do
|
|
gem 'addressable'
|
|
|
|
if ruby_version >= Gem::Version.new('2.3.0')
|
|
gem 'vsphere-automation-cis', '~> 0.4.6'
|
|
gem 'vsphere-automation-vcenter', '~> 0.4.6'
|
|
end
|
|
|
|
if ruby_version >= Gem::Version.new('2.4.1')
|
|
gem 'rbvmomi', '~> 3.0.0'
|
|
else
|
|
gem 'rbvmomi', '~> 2.2.0'
|
|
end
|
|
end
|