Unable to upgrade Ruby successfully - Gem still using old ruby version
<p>I'm having a bit of trouble getting Ruby properly upgraded to 2.3.0 on my macbook. I followed the instructions here: <code>https://gorails.com/setup/osx/10.11-el-capitan</code></p>

<p>However, I still can't install chef-zero (which is the reason I had to upgrade), and my Gem "classpath" still seems to be pointing at the old Ruby version:</p>

<pre><code>amencke@offplantever-lm ~/d/chef-repo&gt; rbenv local
2.3.0
amencke@offplantever-lm ~/d/chef-repo&gt; rbenv global
2.3.0
amencke@offplantever-lm ~/d/chef-repo&gt; ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
</code></pre>

<p>Seems OK so far...</p>

<pre><code>amencke@offplantever-lm ~/d/chef-repo&gt; gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.3.0
  - RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - SPEC CACHE DIRECTORY: /Users/amencke/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-14
  - GEM PATHS:
     - /Library/Ruby/Gems/2.0.0
     - /Users/amencke/.gem/ruby/2.0.0
     - /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
  - GEM CONFIGURATION:
     - :update_sources =&gt; true
     - :verbose =&gt; true
     - :backtrace =&gt; false
     - :bulk_threshold =&gt; 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin
amencke@offplantever-lm ~/d/chef-repo&gt; 
</code></pre>

<p>And if I try to install chef-zero:</p>

<pre><code>amencke@offplantever-lm ~/d/chef-repo&gt; sudo gem install chef-zero 
Password:
ERROR:  Error installing chef-zero:
    chef-zero requires Ruby version &gt;= 2.1.0.
amencke@offplantever-lm ~/d/chef-repo&gt; 
</code></pre>

<p>Any ideas? I'm not particularly experienced with Ruby at all (or creating dev environments on OSX) - a point in the right direction would be much appreciated!</p>