================================================
# Install rvm
# https://rvm.io/rvm/install
================================================
------------------------------------------------------------------------------------------------
# Install gpg2 on Mac OS X 10.6 and newer
# https://github.com/GPGTools/MacGPG2
# https://gpgtools.org/macgpg2/
------------------------------------------------------------------------------------------------
wget https://releases.gpgtools.org/GPG%20Suite%20-%202014.12-b4.dmg
open GPG%20Suite%20-%202014.12-b4.dmg
------------------------------------------------------------------------------------------------
# Use gpg2
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
------------------------------------------------------------------------------------------------
# Install Xcode on Mac OS X 10.10
# https://developer.apple.com/downloads
# Sign in
------------------------------------------------------------------------------------------------
wget http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__xcode_6.1.1/commandlinetoolsosx10.10forxcode6.1.1.dmg
open commandlinetoolsosx10.10forxcode6.1.1.dmg
------------------------------------------------------------------------------------------------
# Open Xcode
------------------------------------------------------------------------------------------------
# Agreeing to the Xcode/iOS license requires admin privileges.
------------------------------------------------------------------------------------------------
# Open the file brew.rb using the following command:
------------------------------------------------------------------------------------------------
vi /usr/local/Library/brew.rb
------------------------------------------------------------------------------------------------
# http://jcvangent.com/fixing-homebrew-os-x-10-10-yosemite/
# https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md#installation
# http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/
# Change the first line in the file brew.rb
# from: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
# to #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
# Commit the follow lines:
#abort <<-EOABORT.undent
#Homebrew requires Leopard or higher. For Tiger support, see:
#https://github.com/mistydemeo/tigerbrew
#EOABORT
# Save and exit brew.rb
------------------------------------------------------------------------------------------------
cd "$(brew –repository)" && git commit -a -m 'new ruby version 2.0'
brew update
brew doctor
cd /usr/local/Library && git stash && git clean -d -f
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile
------------------------------------------------------------------------------------------------
# Install RVM stable with ruby:
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
\curl -sSL https://get.rvm.io | bash -s stable --ruby
------------------------------------------------------------------------------------------------
# Install rails
# https://gorails.com/setup/osx/10.10-yosemite
# Install rvm
# https://rvm.io/rvm/install
================================================
------------------------------------------------------------------------------------------------
# Install gpg2 on Mac OS X 10.6 and newer
# https://github.com/GPGTools/MacGPG2
# https://gpgtools.org/macgpg2/
------------------------------------------------------------------------------------------------
wget https://releases.gpgtools.org/GPG%20Suite%20-%202014.12-b4.dmg
open GPG%20Suite%20-%202014.12-b4.dmg
------------------------------------------------------------------------------------------------
# Use gpg2
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
------------------------------------------------------------------------------------------------
# Install Xcode on Mac OS X 10.10
# https://developer.apple.com/downloads
# Sign in
------------------------------------------------------------------------------------------------
wget http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_10.10_for_xcode__xcode_6.1.1/commandlinetoolsosx10.10forxcode6.1.1.dmg
open commandlinetoolsosx10.10forxcode6.1.1.dmg
------------------------------------------------------------------------------------------------
# Open Xcode
------------------------------------------------------------------------------------------------
# Agreeing to the Xcode/iOS license requires admin privileges.
------------------------------------------------------------------------------------------------
# Open the file brew.rb using the following command:
------------------------------------------------------------------------------------------------
vi /usr/local/Library/brew.rb
------------------------------------------------------------------------------------------------
# http://jcvangent.com/fixing-homebrew-os-x-10-10-yosemite/
# https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Installation.md#installation
# http://coolestguidesontheplanet.com/installing-homebrew-os-x-yosemite-10-10-package-manager-unix-apps/
# Change the first line in the file brew.rb
# from: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
# to #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
# Commit the follow lines:
#abort <<-EOABORT.undent
#Homebrew requires Leopard or higher. For Tiger support, see:
#https://github.com/mistydemeo/tigerbrew
#EOABORT
# Save and exit brew.rb
------------------------------------------------------------------------------------------------
cd "$(brew –repository)" && git commit -a -m 'new ruby version 2.0'
brew update
brew doctor
cd /usr/local/Library && git stash && git clean -d -f
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile
------------------------------------------------------------------------------------------------
# Install RVM stable with ruby:
# https://rvm.io/rvm/install
------------------------------------------------------------------------------------------------
\curl -sSL https://get.rvm.io | bash -s stable --ruby
------------------------------------------------------------------------------------------------
# Install rails
# https://gorails.com/setup/osx/10.10-yosemite
------------------------------------------------------------------------------------------------
gem install rails --no-ri --no-rdoc