2020-06-30 14:06:12 +03:00
# -------------------------------------------------------------------------- #
2022-04-07 20:49:58 +03:00
# Copyright 2002-2022, OpenNebula Project, OpenNebula Systems #
2020-06-30 14:06:12 +03:00
# #
# 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
################################################################################
2021-04-29 15:20:42 +03:00
ruby '>=2.0.0' , '<4'
2016-09-09 12:38:28 +03:00
source 'https://rubygems.org'
2020-06-30 14:06:12 +03:00
ruby_version = Gem :: Version . new ( RUBY_VERSION )
2016-09-09 12:38:28 +03:00
2020-06-30 14:06:12 +03:00
################################################################################
# Gems only in one ruby version
################################################################################
if ruby_version > = Gem :: Version . new ( '2.4.0' )
gem 'xmlrpc'
2016-09-09 12:38:28 +03:00
end
2020-06-30 14:06:12 +03:00
if ruby_version < Gem :: Version . new ( '2.1.0' )
gem 'scrub_rb'
2019-02-02 02:09:44 +03:00
end
2021-04-30 16:49:06 +03:00
if ruby_version > = Gem :: Version . new ( '3.0.0' )
gem 'rexml'
end
2022-11-14 22:48:30 +03:00
gem 'async-io' , '= 1.32.1'
2022-11-21 19:37:01 +03:00
gem 'console' , '= 1.15.3'
2022-11-14 22:48:30 +03:00
gem 'etc'
gem 'rb-inotify'
2020-06-30 14:06:12 +03:00
################################################################################
# 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'
2019-02-02 02:09:44 +03:00
end
2020-06-30 14:06:12 +03:00
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'
2016-09-09 12:38:28 +03:00
end
2020-06-30 14:06:12 +03:00
if ruby_version < Gem :: Version . new ( '2.3.0' )
zendesk = '< 1.17.0'
rq = '< 1.0.0'
2018-04-23 20:04:01 +03:00
end
2022-10-21 15:23:44 +03:00
if ruby_version < = Gem :: Version . new ( '2.0.0' )
gem 'multipart-post' , '~> 2.1.0'
end
2020-06-30 14:06:12 +03:00
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'
2018-06-29 11:23:50 +03:00
end
2021-01-05 12:38:14 +03:00
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
2020-06-30 14:06:12 +03:00
group :hybrid do
gem 'aws-sdk-ec2' , '>=1.151'
2020-07-30 13:11:25 +03:00
gem 'aws-sdk-s3'
2020-06-30 14:06:12 +03:00
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'
2019-08-18 21:33:09 +03:00
end
2020-06-30 14:06:12 +03:00
group :packethost do
gem 'minitest' , minitest
2022-04-06 11:59:30 +03:00
if ruby_version > = Gem :: Version . new ( '2.3.0' )
gem 'faraday_middleware' , '~> 1.2.0'
end
2020-06-30 14:06:12 +03:00
gem 'activesupport' , '~> 4.2'
gem 'i18n' , '~> 0.9'
2020-04-28 12:54:09 +03:00
end
2020-06-30 14:06:12 +03:00
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'
2022-04-11 13:08:54 +03:00
gem 'dalli' , '<3.0' # https://github.com/OpenNebula/one/issues/5584
2020-06-30 14:06:12 +03:00
gem 'rotp'
end
group :oca do
gem 'ox'
end
group :vmware do
2021-03-25 18:47:22 +03:00
gem 'addressable'
2020-06-30 14:06:12 +03:00
if ruby_version > = Gem :: Version . new ( '2.3.0' )
gem 'vsphere-automation-cis' , '~> 0.4.6'
gem 'vsphere-automation-vcenter' , '~> 0.4.6'
end
2020-12-11 16:41:15 +03:00
if ruby_version > = Gem :: Version . new ( '2.4.1' )
gem 'rbvmomi' , '~> 3.0.0'
else
gem 'rbvmomi' , '~> 2.2.0'
end
2020-06-30 14:06:12 +03:00
end
2022-10-14 20:42:58 +03:00
group :prometheus do
gem 'prometheus-client'
end