<?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"
	>
<channel>
	<title>Comments on: 简单漂亮的打包GEM</title>
	<atom:link href="http://kdr2.net/blog/2007/01/05/17/feed/" rel="self" type="application/rss+xml" />
	<link>http://kdr2.net/blog/2007/01/05/17/</link>
	<description>但知无为为奥妙,岂知有作是根基.</description>
	<pubDate>Sat, 22 Nov 2008 02:15:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: chelsea</title>
		<link>http://kdr2.net/blog/2007/01/05/17/#comment-10</link>
		<dc:creator>chelsea</dc:creator>
		<pubDate>Tue, 09 Jan 2007 07:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://kdr2.net/blog/2007/01/05/17/#comment-10</guid>
		<description>ok, thanks!</description>
		<content:encoded><![CDATA[<p>ok, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KDr2</title>
		<link>http://kdr2.net/blog/2007/01/05/17/#comment-9</link>
		<dc:creator>KDr2</dc:creator>
		<pubDate>Tue, 09 Jan 2007 06:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://kdr2.net/blog/2007/01/05/17/#comment-9</guid>
		<description>看Rakefile,最后一个block:
&lt;coolcode lang="ruby"&gt;
hoe = Hoe.new(GEM_NAME, VERS) do &#124;p&#124;
#do something with p
....
  #p.changes  ...
  #p.extra_deps ...
  #p.spec_extras ...
end
&lt;/coolcode&gt;
里面设置了p变量的好多属性,最后有3行注释，第二行p.extra_deps就是他所依赖的gem,你可以这样写:
&lt;coolcode lang="ruby" linenum="off"&gt;
p.extra_deps=[["gem_a","&gt;=1.0.0"]["gem_b","&gt;0.2.4"],["gem_c"]]
&lt;/coolcode&gt;
之后重新rake package就好了。</description>
		<content:encoded><![CDATA[<p>看Rakefile,最后一个block:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">hoe</span><span style="color: Gray;"> = </span><span style="color: Blue;">Hoe</span><span style="color: Gray;">.</span><span style="color: Blue;">new</span><span style="color: Olive;">(</span><span style="color: Blue;">GEM_NAME</span><span style="color: Gray;">, </span><span style="color: Blue;">VERS</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Green;">do</span><span style="color: Gray;"> |</span><span style="color: Blue;">p</span><span style="color: Gray;">|</span></li>
<li><span style="color: #ffa500;">#do something with p</span></li>
<li><span style="color: Gray;">....</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: #ffa500;">#p.changes&nbsp; ...</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: #ffa500;">#p.extra_deps ...</span></li>
<li><span style="color: Gray;">&nbsp; </span><span style="color: #ffa500;">#p.spec_extras ...</span></li>
<li><span style="color: Green;">end</span></li></ol></div>
<p>里面设置了p变量的好多属性,最后有3行注释，第二行p.extra_deps就是他所依赖的gem,你可以这样写:</p>
<div class="hl-surround"><div class="hl-main"><span style="color: Blue;">p</span><span style="color: Gray;">.</span><span style="color: Blue;">extra_deps</span><span style="color: Gray;">=</span><span style="color: Olive;">[[</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">gem_a</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">&gt;=1.0.0</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">][</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">gem_b</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">&gt;0.2.4</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">]</span><span style="color: Gray;">,</span><span style="color: Olive;">[</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">gem_c</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">]]</span></div></div>
<p>之后重新rake package就好了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chelsea</title>
		<link>http://kdr2.net/blog/2007/01/05/17/#comment-8</link>
		<dc:creator>chelsea</dc:creator>
		<pubDate>Tue, 09 Jan 2007 04:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://kdr2.net/blog/2007/01/05/17/#comment-8</guid>
		<description>请问如何指定gem间的依赖关系? 这样当gem install myapp 时会自动询问是否同时安装依赖项. 谢谢</description>
		<content:encoded><![CDATA[<p>请问如何指定gem间的依赖关系? 这样当gem install myapp 时会自动询问是否同时安装依赖项. 谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: axgle &#187; Newgem实作</title>
		<link>http://kdr2.net/blog/2007/01/05/17/#comment-5</link>
		<dc:creator>axgle &#187; Newgem实作</dc:creator>
		<pubDate>Sat, 06 Jan 2007 01:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://kdr2.net/blog/2007/01/05/17/#comment-5</guid>
		<description>[...] 简单漂亮的打包GEM(中文介绍) http://kdr2.net/blog/2007/01/05/17/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 简单漂亮的打包GEM(中文介绍) <a href="http://kdr2.net/blog/2007/01/05/17/" rel="nofollow">http://kdr2.net/blog/2007/01/05/17/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
