switch to ruby 2.3.0 (#572)

This commit is contained in:
Devin Howard 2016-08-01 08:33:45 +08:00 committed by GitHub
parent 5fe03641cb
commit 70a4f54399
6 changed files with 8 additions and 8 deletions

View file

@ -1 +1 @@
2.1.3
2.3.0

View file

@ -5,7 +5,7 @@ cache:
directories:
- app/assets/javascripts/node_modules
rvm:
- 2.1.3
- 2.3.0
before_script:
- echo "Rspec setup"
- export RAILS_ENV=test

View file

@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby '2.1.3'
ruby '2.3.0'
gem 'rails'

2
Vagrantfile vendored
View file

@ -9,7 +9,7 @@ sudo apt-get install git curl -y
# rvm and ruby
su - vagrant -c 'curl -sSL https://rvm.io/mpapis.asc | gpg --import -'
su - vagrant -c 'curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.3'
su - vagrant -c 'curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.0'
# install some other deps
sudo apt-get install nodejs -y

View file

@ -7,8 +7,8 @@ Some of these steps are pulled from http://www.moncefbelyamani.com/how-to-instal
Install homebrew
\curl -sSL https://get.rvm.io | bash -s stable --rails
rvm install 2.1.3 --with-gcc=clang
rvm use 2.1.3
rvm install 2.3.0 --with-gcc=clang
rvm use 2.3.0
gem install lunchy
Now install homebrew.

View file

@ -100,8 +100,8 @@ Put the following code into `/etc/init/metamaps_delayed_worker.conf`:
chdir /home/metamaps/metamaps
env HOME=/home/metamaps
env PATH="/usr/local/rvm/gems/ruby-2.1.3@metamaps/bin:/usr/local/rvm/gems/ruby-2.1.3@global/bin:/usr/local/rvm/rubies/ruby-2.1.3/bin:/usr/local/rvm/bin:/usr/local/bin:/usr/bin:/bin"
env GEM_PATH="/usr/local/rvm/gems/ruby-2.1.3@metamaps:/usr/local/rvm/gems/ruby-2.1.3@global"
env PATH="/usr/local/rvm/gems/ruby-2.3.0@metamaps/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/usr/local/rvm/bin:/usr/local/bin:/usr/bin:/bin"
env GEM_PATH="/usr/local/rvm/gems/ruby-2.3.0@metamaps:/usr/local/rvm/gems/ruby-2.3.0@global"
env RAILS_ENV="production"
respawn