<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Clarifying the Roles of the .gemspec and Gemfile</title>
	<atom:link href="http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/feed/" rel="self" type="application/rss+xml" />
	<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/</link>
	<description>Random Geek-Related Thoughts</description>
	<lastBuildDate>Sat, 20 Apr 2013 07:23:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: trans</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-25753</link>
		<dc:creator>trans</dc:creator>
		<pubDate>Tue, 27 Nov 2012 02:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-25753</guid>
		<description><![CDATA[I kind of hate that I&#039;m not supposed to use the Gemfile to designate dependencies for a library. The Gemfile&#039;s API is nicer and it suites me to have them all in one place. Also, having a Gemfile with only two obvious lines is a waste of a file.

I wonder if it would work ok if we could designate a separate `:gem` or `:gemspec` group, and then the gemspec could gather dependencies from these?]]></description>
		<content:encoded><![CDATA[<p>I kind of hate that I&#8217;m not supposed to use the Gemfile to designate dependencies for a library. The Gemfile&#8217;s API is nicer and it suites me to have them all in one place. Also, having a Gemfile with only two obvious lines is a waste of a file.</p>
<p>I wonder if it would work ok if we could designate a separate `:gem` or `:gemspec` group, and then the gemspec could gather dependencies from these?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wycats</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-25454</link>
		<dc:creator>wycats</dc:creator>
		<pubDate>Mon, 10 Sep 2012 20:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-25454</guid>
		<description><![CDATA[@Thomas require &quot;bundler/setup&quot; just sets up the load path. It should be used in tests and other development-time scripts. If you want to run a gem&#039;s executable in the context of bundler, use bundle exec.]]></description>
		<content:encoded><![CDATA[<p>@Thomas require &#8220;bundler/setup&#8221; just sets up the load path. It should be used in tests and other development-time scripts. If you want to run a gem&#8217;s executable in the context of bundler, use bundle exec.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wycats</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-25453</link>
		<dc:creator>wycats</dc:creator>
		<pubDate>Mon, 10 Sep 2012 20:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-25453</guid>
		<description><![CDATA[@sampablokuper When I said &quot;gems&quot; I meant &quot;libraries&quot;.]]></description>
		<content:encoded><![CDATA[<p>@sampablokuper When I said &#8220;gems&#8221; I meant &#8220;libraries&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Fankhauser</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-25397</link>
		<dc:creator>Thomas Fankhauser</dc:creator>
		<pubDate>Fri, 20 Jul 2012 16:00:52 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-25397</guid>
		<description><![CDATA[How does the require &#039;bundler/setup&#039; and Bundler.require fit in here?

I constantly have require problems during gem development although the gems are declared as a .gemspec dependency and a Gemfile override to a local path..

Some clarification when to use and when not to use would be great.. is require &#039;bundler/setup&#039; just for applications?

Thanks and best regards!]]></description>
		<content:encoded><![CDATA[<p>How does the require &#8216;bundler/setup&#8217; and Bundler.require fit in here?</p>
<p>I constantly have require problems during gem development although the gems are declared as a .gemspec dependency and a Gemfile override to a local path..</p>
<p>Some clarification when to use and when not to use would be great.. is require &#8216;bundler/setup&#8217; just for applications?</p>
<p>Thanks and best regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sampablokuper</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-25374</link>
		<dc:creator>sampablokuper</dc:creator>
		<pubDate>Fri, 22 Jun 2012 04:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-25374</guid>
		<description><![CDATA[Yehuda, I fear I&#039;m just having a dense moment - my apologies if so - but I&#039;m puzzled when you say, &quot;Just to clarify, you should check in your Gemfile.lock in applications, and not in gems.&quot;

I&#039;m puzzled because while I could have understood if you&#039;d made a distinction between applications and libraries, I cannot understand your having made a distinction between applications and gems.

Why can&#039;t I understand this? Well, to quote from http://guides.rubygems.org/what-is-a-gem/ - &quot;Gems contain a packaged Ruby application or library.&quot;

In the light of that, please can you help me (and other readers who may be having dense moments!) by letting us know whether you stand by what you wrote, or if you instead meant to write one of the two following phrases (and if so, which):

* &quot;Just to clarify, you should check in your Gemfile.lock in applications, and not in libraries.&quot; 
* &quot;Just to clarify, you should check in your Gemfile.lock in projects you won&#039;t be releasing as gems, and not in projects you will be releasing as gems.&quot;

Finally, please can you advise what to do in the case of hybrid gems, i.e. gems which contain both library code (e.g. code that can be called by &quot;require&quot; statements) and application code (e.g. code that can be executed from the command line)?]]></description>
		<content:encoded><![CDATA[<p>Yehuda, I fear I&#8217;m just having a dense moment &#8211; my apologies if so &#8211; but I&#8217;m puzzled when you say, &#8220;Just to clarify, you should check in your Gemfile.lock in applications, and not in gems.&#8221;</p>
<p>I&#8217;m puzzled because while I could have understood if you&#8217;d made a distinction between applications and libraries, I cannot understand your having made a distinction between applications and gems.</p>
<p>Why can&#8217;t I understand this? Well, to quote from <a href="http://guides.rubygems.org/what-is-a-gem/" rel="nofollow">http://guides.rubygems.org/what-is-a-gem/</a> &#8211; &#8220;Gems contain a packaged Ruby application or library.&#8221;</p>
<p>In the light of that, please can you help me (and other readers who may be having dense moments!) by letting us know whether you stand by what you wrote, or if you instead meant to write one of the two following phrases (and if so, which):</p>
<p>* &#8220;Just to clarify, you should check in your Gemfile.lock in applications, and not in libraries.&#8221;<br />
* &#8220;Just to clarify, you should check in your Gemfile.lock in projects you won&#8217;t be releasing as gems, and not in projects you will be releasing as gems.&#8221;</p>
<p>Finally, please can you advise what to do in the case of hybrid gems, i.e. gems which contain both library code (e.g. code that can be called by &#8220;require&#8221; statements) and application code (e.g. code that can be executed from the command line)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-23462</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 22 Sep 2011 17:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-23462</guid>
		<description><![CDATA[Question:

What does it mean when Gemfile.lock has a ! in it?

For example:

  rdoc (= 2.5.8)
  recurly!
  redis (= 2.2.1)

Thank you.]]></description>
		<content:encoded><![CDATA[<p>Question:</p>
<p>What does it mean when Gemfile.lock has a ! in it?</p>
<p>For example:</p>
<p>  rdoc (= 2.5.8)<br />
  recurly!<br />
  redis (= 2.2.1)</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M. Scott Ford</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-23236</link>
		<dc:creator>M. Scott Ford</dc:creator>
		<pubDate>Tue, 16 Aug 2011 01:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-23236</guid>
		<description><![CDATA[What about when developing an gem that can also be set up as an app? This is how locomotive_cms is set up at the moment. That project is maintaining both a Gemfile, Gemfile.lock and locomotive_cms.gemspec in it&#039;s repository.  The Gemfile does not reference the the gemspec. How should this be set up in your opinion?]]></description>
		<content:encoded><![CDATA[<p>What about when developing an gem that can also be set up as an app? This is how locomotive_cms is set up at the moment. That project is maintaining both a Gemfile, Gemfile.lock and locomotive_cms.gemspec in it&#8217;s repository.  The Gemfile does not reference the the gemspec. How should this be set up in your opinion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Lecour</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-22539</link>
		<dc:creator>Jeremy Lecour</dc:creator>
		<pubDate>Wed, 16 Mar 2011 07:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-22539</guid>
		<description><![CDATA[Hi,

I&#039;m using Typus (an admin generator) and it depends on a CSV library. For 1.8 it needs to install FasterCSV and for 1.9 it has CSV in the std lib.

If I understand correctly, this dependency (and others) need to be declared in the .gemspec file and included in the Gemfile through the `gemspec` method call.

If we use a condition on RUBY_VERSION in the gemspec, it is taken care of only when the gem is built, not when it is installed.

Anybody knows if this could be solved without duplicating this dependency call in the Gemfile (with a RUBY_VERSION check) ?

Thanks

Some links to help understand the context : 
* the issue on GitHub : https://github.com/fesplugas/typus/issues#issue/196
* the gemspec as it is now : https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/typus.gemspec
* the Gemfile as it is now : https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/Gemfile]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m using Typus (an admin generator) and it depends on a CSV library. For 1.8 it needs to install FasterCSV and for 1.9 it has CSV in the std lib.</p>
<p>If I understand correctly, this dependency (and others) need to be declared in the .gemspec file and included in the Gemfile through the `gemspec` method call.</p>
<p>If we use a condition on RUBY_VERSION in the gemspec, it is taken care of only when the gem is built, not when it is installed.</p>
<p>Anybody knows if this could be solved without duplicating this dependency call in the Gemfile (with a RUBY_VERSION check) ?</p>
<p>Thanks</p>
<p>Some links to help understand the context :<br />
* the issue on GitHub : <a href="https://github.com/fesplugas/typus/issues#issue/196" rel="nofollow">https://github.com/fesplugas/typus/issues#issue/196</a><br />
* the gemspec as it is now : <a href="https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/typus.gemspec" rel="nofollow">https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/typus.gemspec</a><br />
* the Gemfile as it is now : <a href="https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/Gemfile" rel="nofollow">https://github.com/fesplugas/typus/blob/9db46b187f40a97b4e24ee933f4f0691017a8971/Gemfile</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonah</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-22122</link>
		<dc:creator>Jonah</dc:creator>
		<pubDate>Sun, 09 Jan 2011 18:48:09 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-22122</guid>
		<description><![CDATA[Thanks, Yehuda. A much-needed clarification.]]></description>
		<content:encoded><![CDATA[<p>Thanks, Yehuda. A much-needed clarification.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hedgehog</title>
		<link>http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/comment-page-1/#comment-21951</link>
		<dc:creator>Hedgehog</dc:creator>
		<pubDate>Tue, 21 Dec 2010 21:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=579#comment-21951</guid>
		<description><![CDATA[Thanks for an interesting post. 
DevOps deploying using Chef might (eventually) like to use Bundler to manage their cookbooks - esp. when the app developer and deployer are the same person.  It is early alpha days, but the following gives some detail:
http://hedgehogshiatus.com/carving-and-bundling-chef-cookbooks-alpha-2

There will be a &quot;Carving and Bundling Chef Cookbooks - Beta&quot; post that updates this to reflect that you can point Bundler at any Git repo using all Git URI&#039;s, bar one (naked `/path/`),  and reflects:

    [hedge@desktop bundler]$ rake spec:ruby:1.9.2-p0
     
     508 examples, 0 failures, 6 pending

Hopefully some app deployment needs could be taken into consideration for Bundler 1.1?

Feedback welcome.]]></description>
		<content:encoded><![CDATA[<p>Thanks for an interesting post.<br />
DevOps deploying using Chef might (eventually) like to use Bundler to manage their cookbooks &#8211; esp. when the app developer and deployer are the same person.  It is early alpha days, but the following gives some detail:<br />
<a href="http://hedgehogshiatus.com/carving-and-bundling-chef-cookbooks-alpha-2" rel="nofollow">http://hedgehogshiatus.com/carving-and-bundling-chef-cookbooks-alpha-2</a></p>
<p>There will be a &#8220;Carving and Bundling Chef Cookbooks &#8211; Beta&#8221; post that updates this to reflect that you can point Bundler at any Git repo using all Git URI&#8217;s, bar one (naked `/path/`),  and reflects:</p>
<p>    [hedge@desktop bundler]$ rake spec:ruby:1.9.2-p0</p>
<p>     508 examples, 0 failures, 6 pending</p>
<p>Hopefully some app deployment needs could be taken into consideration for Bundler 1.1?</p>
<p>Feedback welcome.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
