Sha256: d41e7fa6826f8bf2d8869e266a4d3eff90029f6fccf68334e503087431a2c844
Contents?: true
Size: 891 Bytes
Versions: 66
Compression:
Stored size: 891 Bytes
Contents
#!/bin/bash --login # USE THIS SCRIPT WHEN UPGRADING VERSIONS IN Gemfile if [[ $PWN_ROOT == '' ]]; then if [[ ! -d '/pwn' ]]; then pwn_root=$(pwd) else pwn_root='/pwn' fi else pwn_root="${PWN_ROOT}" fi source /etc/profile.d/rvm.sh ruby_version=`cat ${pwn_root}/.ruby-version` ruby_gemset=`cat ${pwn_root}/.ruby-gemset` rvm use ruby-$ruby_version@global rvm gemset --force delete $ruby_gemset if [[ -f "${pwn_root}/Gemfile.lock" ]]; then rm $pwn_root/Gemfile.lock fi rvm use ruby-$ruby_version@$ruby_gemset --create export rvmsudo_secure_path=1 rvmsudo gem install bundler if [[ $(uname -s) == "Darwin" ]]; then bundle config build.pg --with-pg-config=/opt/local/lib/postgresql96/bin/pg_config bundle config build.serialport --with-cflags=-Wno-implicit-function-declaration fi bundle install # bundle install --full-index rvm --default ruby-$ruby_version@$ruby_gemset
Version data entries
66 entries across 66 versions & 1 rubygems