<div dir="ltr">As far as I know, the Gemfile.lock is only important (and this is what bundler advice implies) for the final component that is the executable against which you run your tests and deploy. I.e. your application. It is your application that needs to be <b>locked</b> to specific versions of gems. The gems have minimum dependencies on other gems but final dependency/ies are only relevant for the application. That's why you only check in the Gemfile.lock for the application.<div><br></div><div>Panos</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 May 2017 at 11:08, Asfand Qazi <span dir="ltr"><<a href="mailto:ayqazi@gmail.com" target="_blank">ayqazi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have a question regarding Bundler, developing gems, and Gemfile.lock . It is a question I thought I had the answer to, but apparently not.</div><div><br></div><div>I USED to believe that you do not check in Gemfile.lock, so as to allow situations during development to occur where your gem is used with a version of a dependency that you did not expect, therefore allowing possibly breaking interface changes to dependencies to be made apparent. This is what Mr. Katz says here, in 2010: <a href="http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/" target="_blank">http://yehudakatz.com/2010/12/<wbr>16/clarifying-the-roles-of-<wbr>the-gemspec-and-gemfile/</a>.</div><div><br></div><div>However, checking the latest bundler docs, here we read something different: <a href="http://bundler.io/v1.14/guides/creating_gem.html" target="_blank">http://bundler.io/<wbr>v1.14/guides/creating_gem.html</a></div><div><br></div><div>"By running bundle install, Bundler will generate the extremely important Gemfile.lock file. This file is responsible for ensuring that every system this library is developed on has the exact same gems so it should always be checked into version control. For more information on this file read “THE GEMFILE.LOCK” section of the bundle install manpage."</div><div><br></div><div>Que?</div><div><br></div><div>What do y'all think? Follow the old advice, or the new advice?</div><div><br></div><div>Thanks</div><div><br class="m_-7222528236205563239gmail-Apple-interchange-newline">Regards,<br> Asfand Qazi<br> The DevOps Doctors<br><br> E: <a href="mailto:asfand@thedevopsdoctors.com" target="_blank">asfand@thedevopsdoctors.com</a><br> W: <a href="https://www.thedevopsdoctors.com/" target="_blank">https://www.<wbr>thedevopsdoctors.com/</a><br>
</div></div>
<br>______________________________<wbr>_________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/<wbr>pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/options.<wbr>cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/<wbr>listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="'comic sans ms', sans-serif">Panayotis Matsinopoulos</font><div><span style="font-family:'comic sans ms',sans-serif">===========================================</span></div><div><span style="font-family:'comic sans ms',sans-serif">I am sending SMS over the WEB using </span><a href="http://sms.rayo.gr/" style="font-family:'comic sans ms',sans-serif" target="_blank">Rayo SMS</a></div><div><div><div><font face="'comic sans ms', sans-serif"><b>E-mail</b>: <a href="mailto:panayotis@matsinopoulos.gr" target="_blank">panayotis@matsinopoulos.gr</a></font></div><div><b>My Video Course</b>: <a href="https://www.udemy.com/introduction-to-computer-programming/?couponCode=EMAIL-SIGNATURE" target="_blank">Introduction To Computer Programming</a></div><div><b>Blog:</b> <a href="http://pmatsinopoulos.github.com/" target="_blank">http://pmatsinopoulos.github.com/</a></div><div><font face="'comic sans ms', sans-serif"><b>Site:</b> <a href="http://pmatsinopoulos.github.io/" target="_blank">http://pmatsinopoulos.github.io/</a></font><br></div><div><b style="font-size:small;font-family:'comic sans ms',sans-serif">Mobile Number:</b><span style="font-size:small;font-family:'comic sans ms',sans-serif"> +44 75640 16132 (or 075640 16132 from UK)</span><br></div><div><b style="font-family:comic sans ms,sans-serif">Skype Id: </b><span style="font-family:comic sans ms,sans-serif">panayotis.matsinopoulos</span><br style="font-family:comic sans ms,sans-serif"><b style="font-family:comic sans ms,sans-serif">Twitter:</b><span style="font-family:comic sans ms,sans-serif"> </span><a style="font-family:comic sans ms,sans-serif" href="http://www.twitter.com/pmatsino" target="_blank">http://www.twitter.com/pmatsino</a><br style="font-family:comic sans ms,sans-serif"><b style="font-family:comic sans ms,sans-serif">LinkedIN:</b><span style="font-family:comic sans ms,sans-serif"> </span><a style="font-family:comic sans ms,sans-serif" href="http://www.linkedin.com/in/panayotismatsinopoulos" target="_blank">http://www.linkedin.com/in/panayotismatsinopoulos</a><br style="font-family:comic sans ms,sans-serif"><b style="font-family:comic sans ms,sans-serif">Github</b><span style="font-family:comic sans ms,sans-serif">: </span><a style="font-family:comic sans ms,sans-serif" href="https://github.com/pmatsinopoulos" target="_blank">https://github.com/pmatsinopoulos</a></div><div><font face="'comic sans ms', sans-serif"><b>Rubygems:</b> <a href="https://rubygems.org/profiles/55099" target="_blank">https://rubygems.org/profiles/55099</a></font> </div><div><font face="comic sans ms, sans-serif"><b>Google+:</b></font> <a href="https://www.google.com/+PanayotisMatsinopoulos" target="_blank">https://www.google.com/+PanayotisMatsinopoulos</a> <br></div></div><div><font face="comic sans ms, sans-serif"><b>YouTube: </b><a href="http://www.youtube.com/user/pmatsinopoulos" target="_blank">http://www.youtube.com/user/pmatsinopoulos</a></font><br></div><div><br></div></div></div></div></div></div></div></div></div>
</div>