diff --git a/install.sh b/install.sh index d71db5a..8db90a3 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ install() { # dependencies for gem in "${gems[@]}"; do - is_gem_installed "$gem" || sudo gem install "$gem" + is_gem_installed $gem || sudo gem install $gem done [ -d "$CONF_DIR" ] || sudo mkdir "$CONF_DIR" @@ -87,7 +87,7 @@ EXEC_PATH="/usr/local/bin/${EXEC_FILE}" INSTALL_DIR="/opt/provision-engine" MODULES="client.rb configuration.rb log.rb server.rb runtime.rb error.rb function.rb" -gems=("opennebula" "sinatra" "logger" "json-schema") # check requires on server.rb +gems=("opennebula" "sinatra -v 3.1.0" "logger -v 1.6.0" "json-schema -v 4.1.1") # check requires on server.rb action="${1:-"install"}" setup_mode="${2:-"symlink"}" diff --git a/tests/prepare.rb b/tests/prepare.rb index 1a999be..bd2125b 100755 --- a/tests/prepare.rb +++ b/tests/prepare.rb @@ -5,7 +5,7 @@ # How to use # ./prepare.rb http://one_host:2633/RPC2 http://one_host:2474 0 1 -GEMS = ['rspec', 'rack-test'] # gems required for running the tests +GEMS = ['rspec -v 3.12.0', 'rack-test -v 2.1.0'] # gems required for running the tests CONF_PATH = '/etc/provision-engine/engine.conf' def install_gems