title: Gemfile.lock has different version of Rake in deployment environment
body: <p>In short, the error message looks like following:</p>
  
  <pre><code>$ bundle install
  rake aborted!
  You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
  </code></pre>
  
  <p>And here is the explanation for this error:</p>
  
  <ul>
  <li>deployment server has <code>rake 0.9.2.2</code> installed</li>
  <li>application <code>Gemfile</code> has no required version number for <code>rake</code></li>
  <li>developer's development environment has <code>rake</code> 0.9.2 installed and this version number is in <code>Gemfile.lock</code> file</li>
  <li>deployment server has a number of rails applications installed</li>
  <li>these applications are written by different programmers</li>
  <li>these programmers have different rake version installed in their development environment</li>
  <li>Some of them have <code>rake 0.9.2</code> and others have <code>rake 0.9.2.2</code></li>
  <li>By reading <a href="http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/" rel="nofollow">Yehuda Katz's Clarifying the Roles of the .gemspec and Gemfile</a>, <code>Gemfile.lock</code> file is in our subversion</li>
  </ul>
  
  <hr>
  
  <p><strong>Possible Solutions:</strong> </p>
  
  <ul>
  <li>error message could be avoided by running <code>bundle exec rake install</code> then <code>bundle update</code></li>
  <li>error message could be avoided if we asked all developers to specify same version of rake in <code>Gemfile</code></li>
  <li>ask all developers to use same version of rake </li>
  </ul>
  
  <p>My question is: is this the correct solution here? or is there any correct solutions? </p>
  
  <p>I am still not really sure the <code>Gemfile.lock</code> file should be in subversion.</p>