<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Locking down plug-ins and gems' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/44/topics/369</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Locking down plug-ins and gems posted by Brian Doll @ Tue, 15 Apr 2008 21:51:13 -0000</title>
      <description>&lt;p&gt;&lt;span class="caps"&gt;DOH&lt;/span&gt;!  This is already documented in the errata for the book.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://books.pragprog.com/titles/fr_deploy/errata"&gt;http://books.pragprog.com/titles/fr_deploy/errata&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:51:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:44:369:2595</guid>
      <author>Brian Doll</author>
      <link>http://forums.pragprog.com/forums/44/topics/369</link>
    </item>
    <item>
      <title>Locking down plug-ins and gems posted by Brian Doll @ Tue, 15 Apr 2008 21:08:20 -0000</title>
      <description>&lt;p&gt;As some others have noted, there may likely be some sections of this book that are effected by differences in Rails 2.  I just bought the book an hour ago or so, but I just stumbled on what might be the first of such instances and thought I&amp;#8217;d bring it up.&lt;/p&gt;


	&lt;p&gt;In &amp;#8220;Locking Down Plug-ins and Gems&amp;#8221;, the advice is to pull the contents of a gem&amp;#8217;s lib directory out into the vendor directory of a Rails app.  In Rails 2 (and prior, for some) I would guess that the correct advice is to commit the gems under /vendor/gems, such that you may have /vendor/gems/foo-1.2.3 and /vendor/gems/bar-1.2.2.&lt;/p&gt;


	&lt;p&gt;This is made possible by the environment.rb load_paths configuration which iterates over /vendor/gems directories and includes each of their lib directories during startup.  Additionally, this makes for a much cleaner /vendor directory, with more clarity around what files belong to what gem.&lt;/p&gt;


	&lt;p&gt;Looking forward to reading the rest of the book!  &lt;br /&gt;cheers,&lt;br /&gt;b&lt;/p&gt;</description>
      <pubDate>Tue, 15 Apr 2008 21:08:20 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:44:369:2594</guid>
      <author>Brian Doll</author>
      <link>http://forums.pragprog.com/forums/44/topics/369</link>
    </item>
  </channel>
</rss>
