<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&#12391;&#12365;&#12383;(&#12392;&#12356;&#12358;&#12363;&#20999;&#12426;&#20986;&#12375;&#12390;&#12365;&#12383;)gemspec  
&lt;http://github.com/satoko/prawn/tree/master/prawn.gemspec&gt; 
  

[fork&#12375;&#12390;&#12356;&#12427;prawn](http://github.com/satoko/prawn/tree/master)&#12395;&#12399;prawn.gemspec&#12501;&#12449;&#12452;&#12523;&#12364;&#12354;&#12426;&#12414;&#12379;&#12435;&#12290;  
&#12391;&#12289;&#33258;&#20998;&#12391;&#36969;&#24403;&#12395;&#12391;&#12387;&#12385;&#19978;&#12370;&#12424;&#12358;&#12392;&#12375;&#12383;&#12398;&#12391;&#12377;&#12364;&#12289;&#12393;&#12358;&#12420;&#12425;gemspec(spec.files)&#12398;&#20869;&#23481;&#12364;&#27491;&#12375;&#12367;&#12394;&#12356;&#27096;&#23376;&#12391;&#12289;&#21205;&#20316;&#12377;&#12427;gem&#12364;&#20316;&#12428;&#12414;&#12379;&#12435;&#12290;&#12356;&#12385;&#12356;&#12385;&#20351;&#29992;&#12377;&#12427;&#12377;&#12409;&#12390;&#12398;&#12501;&#12449;&#12452;&#12523;&#12434;&#19978;&#12370;&#12394;&#12369;&#12428;&#12400;&#12356;&#12369;&#12394;&#12356;&#12398;&#12384;&#12369;&#12428;&#12393;&#12289;&#12393;&#12358;&#12375;&#12383;&#12425;&#31777;&#21336;&#12395;&#12391;&#12365;&#12427;&#12418;&#12398;&#12363;...&#12392;&#24605;&#12387;&#12383;&#12425;&#12289;project&#20869;&#12398;Rakefile&#12395;gemspec&#12364;&#12354;&#12387;&#12383;&#65281;&#12392;&#12356;&#12358;&#12398;&#12391;&#12289;&#12381;&#12428;&#12434;&#20999;&#12426;&#12384;&#12375;&#12414;&#12375;&#12383;&#12290;  
&#12381;&#12371;&#12395;&#33267;&#12427;&#12414;&#12391;&#12398;&#12509;&#12452;&#12531;&#12488;&#12413;&#12356;&#12418;&#12398;&#12434;&#25369;&#12370;&#12414;&#12377;&#12290;

###gemspec&#12391;&#37325;&#35201;&#12394;&#23646;&#24615;
&gt;Important Attributes  
&gt;name .. version .. platform .. summary .. require_paths .. files .. dependencies  
&lt;http://docs.rubygems.org/read/chapter/20&gt;

###spec.file&#12398;&#20415;&#21033;&#12394;&#26360;&#12365;&#26041;:Dir.blog
(&#27880;&#24847;)github&#12398;&#22580;&#21512;**Dir.glob&#12399;gem&#29983;&#25104;&#26178;&#12395;&#12456;&#12521;&#12540;&#12395;&#12394;&#12427;**&#12424;&#12358;&#12391;(&#12456;&#12521;&#12540;&#36890;&#30693;&#12513;&#12540;&#12523;&#12364;&#26469;&#12390;&#12383;)&#12289;irb&#12391;Dir.blog&#12375;&#12390;&#23637;&#38283;&#12375;&#12383;&#12418;&#12398;&#12434;gemspec&#12395;&#12467;&#12500;&#12506;&#12377;&#12427;&#12398;&#12364;&#27491;&#35299;&#12398;&#12424;&#12358;&#12391;&#12377;&#12290;

shell&gt;&gt;
irb(main):001:0&gt; Dir.glob(&quot;{examples,lib,spec,vendor,data}/**/**/*&quot;)
&lt;&lt;--

&#32080;&#26524;&#12434;spec.files&#12395;&#12467;&#12500;&#12506;&#12290;

rails&gt;&gt;
Gem::Specification.new do |spec|
  spec.name = &quot;prawn&quot;
  spec.files = [&quot;copy &amp; past the result of Dir.blog&quot;]  +
                      [&quot;Rakefile&quot;]
&lt;&lt;--

###gemspec&#12391;&#12525;&#12540;&#12459;&#12523;&#12391;&#27491;&#12375;&#12356;gem&#12364;&#20316;&#12428;&#12427;&#12363;&#12486;&#12473;&#12488;&#12377;&#12427;
&#19979;&#35352;&#12398;&#12467;&#12510;&#12531;&#12489;&#12391;&#29983;&#25104;&#12373;&#12428;&#12383;gem&#12434;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12375;&#12289;&#23637;&#38283;&#24460;&#12398;dir&#12434;&#35211;&#12383;&#12426;&#12486;&#12473;&#12488;&#12434;&#23455;&#34892;&#12375;&#12383;&#12426;&#12375;&#12390;&#27491;&#12375;&#12367;gem&#12364;&#20316;&#12425;&#12428;&#12390;&#12356;&#12427;&#12363;&#12486;&#12473;&#12488;&#12375;&#12414;&#12377;&#12290;

shell&gt;&gt;
$ gem build prawn.gemspec
&lt;&lt;--

###github&#12391;gems.githum.com&#12398;&#19968;&#35239;&#12395;&#20837;&#12428;&#12390;&#12418;&#12425;&#12358;&#25163;&#38918;
1. prawn.gemspec&#12392;&#12356;&#12358;&#12501;&#12449;&#12452;&#12523;&#12434;&#29992;&#24847;&#12377;&#12427;
2. &#12467;&#12511;&#12483;&#12488;
shell&gt;&gt;
git push prawn.gemspec -m &quot;add gemspec file&quot;
&lt;&lt;--
2. &lt;https://github.com/satoko/prawn/edit&gt;&#12391;**RubyGem**&#12395;&#12481;&#12455;&#12483;&#12463;&#12377;&#12427;
3. gem search&#12391;&#25152;&#26395;&#12398;gem&#12364;&#20986;&#12390;&#12367;&#12427;&#12398;&#12434;&#24453;&#12388;(max 15&#20998;&#12367;&#12425;&#12356;&#65311;)  
shell&gt;&gt;
$ gem search satoko-prawn -r
*** REMOTE GEMS ***
satoko-prawn (0.2.99.2)
&lt;&lt;--

(&#27880;&#24847;)&#19968;&#35239;&#12392;&#12399;[&#12371;&#12371;](http://gems.github.com/list.html)&#12391;&#12377;&#12290;

###Refs
&lt;http://d.hatena.ne.jp/akm/20080621#1214036969&gt;  
&lt;http://docs.rubygems.org/read/chapter/20&gt;  
&lt;http://code.google.com/p/rubeus/source/browse/trunk/rubeus.gemspec#&gt;
</body>
  <cached-tag-list>gem rails github</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-10-02T10:09:31+00:00</created-at>
  <daily-archive-id type="integer">805</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">924</id>
  <monthly-archive-id type="integer">102</monthly-archive-id>
  <pdf-digest>1127928e7bb4a2e53105fe7ae1f0122f</pdf-digest>
  <permalink>/articles/924</permalink>
  <published-at type="datetime">2008-10-02T10:14:00+00:00</published-at>
  <secret>0b98c33d-9a8f-4e23-b11b-941e6daf5b0c</secret>
  <title>gemspec&#12501;&#12449;&#12452;&#12523;&#12398;&#26360;&#12365;&#26041; </title>
  <updated-at type="datetime">2008-10-23T11:46:45+00:00</updated-at>
  <user-id type="integer">3</user-id>
</article>
