title: Ruby defaults to previous version
body: <p>I've updated my version of ruby to 2.7.0. However, <code>ruby -v</code> reveals that the older version (2.3.7) is still the one that is running.</p>
  
  <blockquote>
    <p>ruby -v</p>
    
    <blockquote>
      <p>ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]</p>
    </blockquote>
    
    <p>whereis ruby<br></p>
    
    <blockquote>
      <p>/usr/bin/ruby</p>
    </blockquote>
    
    <p>echo $PATH</p>
    
    <blockquote>
      <p>/usr/local/lib/ruby/gems/2.7.0:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/xxxxxxx/.rvm/bin</p>
    </blockquote>
    
    <p>ls /usr/local/lib/ruby/gems</p>
    
    <blockquote>
      <p>2.6.0 2.7.0</p>
    </blockquote>
  </blockquote>
  
  <p>I can't understand why it is running the old version (in the path <code>/usr/bin/ruby</code>) when the <code>$PATH</code> variable has <code>/usr/local/lib/ruby/gems/2.7.0</code> set first. </p>
  
  <p>Note that I have restarted the terminal and the laptop. Same result.</p>