記事の引越しから漏れていたのでサルベージ。

RubyGems パッケージの作り方 - rubyforge 登録まで

僕はまだRubyForgeにGemを登録した事がないので、secondlifeさんの記事はとても参考になりました。蛇足感もありますが、多様性は善という事で、HoeというGemを使ったもう一つのRubyGemsパッケージの作り方を紹介します。

Hoeは、Seattle.rb Projects
による一連のプロジェクトの中の一つで、やはりnewgemと同じようにRubyGemsの作成を簡単にしてくれるGemです。

Hoeを使ってGemを作る流れは、

  1. sowコマンドでGemの雛形を生成
  2. 雛形を元にGemを作成

という感じで、非常に簡単です。具体的に簡単なGemを作る方法を紹介します。

まずはHoeをインストールしましょう。

# gem install hoe --include-dependencies

そしてGemの雛形を生成します。

shell-unix-generic>>
$ sow sample
creating project sample
... done, now go fix all occurances of 'FIX'

sample/Rakefile:9: # p.summary = 'FIX'
sample/README.txt:2: by FIX
sample/README.txt:3: FIX
sample/README.txt:7:FIX
sample/README.txt:11:* FIX
sample/README.txt:15: FIX
sample/README.txt:19:+ FIX
sample/README.txt:23:+ FIX
sample/README.txt:29:Copyright (c) 2006 FIX
<<--

とりあえずこのFIXというところをカスタマイズすればOKという親切ぶりです。
そしてさらに、次のようなRakeタスクが生成されます。

shell-unix-generic>>
$ rake -T
(in /home/takiuchi/sample)
rake announce # Generate email announcement file and post to rubyforge.
rake audit # Run ZenTest against the package
rake check_manifest # Verify the manifest
rake clean # Clean up all the extras
rake clobber_docs # Remove rdoc products
rake clobber_package # Remove package products
rake debug_gem # Show information about the gem.
rake default # Run the default tasks
rake docs # Build the docs HTML Files
rake email # Generate email announcement file.
rake install # Install the package. Uses PREFIX and RUBYLIB
rake install_gem # Install the package as a gem
rake multi # Run the test suite using multiruby
rake package # Build all the packages
rake post_news # Post announcement to rubyforge.
rake publish_docs # Publish RDoc to RubyForge
rake redocs # Force a rebuild of the RDOC files
rake release # Package and upload the release to rubyforge.
rake repackage # Force a rebuild of the package files
rake ridocs # Generate ri locally for testing
rake test # Run the test suite. Use FILTER to add to the command line.
rake uninstall # Uninstall the package.
<<--

なんとも魅力的な名前のタスク達ではないでしょうか。
rakeコマンドを打つだけでRubyForge上でのいろんな作業が出来てしまいそうです。

そのほか細かいところは同じなので、secondlifeさんの記事をご参照ください。

posted by genki genki on Wed 21 Nov 2007 at 12:36 with 0 comments
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://www.viastore.kr/forum/view/352868 https://www.viastore.kr/forum/view/352868: Hi there to every body, it's my first visit of t... 05/25 22:50
https://studioforsaleindubai.info https://studioforsaleindubai.info: We Help You Charter out Apartments In Dubai Quickl... 05/25 22:23
https://onedigitalsl.com/2026/05/25/luckydays-player-reviews-honest-opinions-and-tips/ https://onedigitalsl.com/2026/05/25/luckydays-player-reviews-honest-opinions-and-tips/: Thanks for the detailed review. 05/25 22:16
https://Www.verygoodhousehotel.com:443/bbs/board.php?bo_table=free&wr_id=747012 https://Www.verygoodhousehotel.com:443/bbs/board.php?bo_table=free&wr_id=747012: Kaizenaire.cߋm aggregates brand deals, placing аs ... 05/25 21:31
https://atrium-concept.com/casino-retrait-immediat/ https://atrium-concept.com/casino-retrait-immediat/: Найдите контент для взрослых, исследуя надежные пл... 05/25 21:00
https://wildwomanunderwear.com/ https://wildwomanunderwear.com/: Do you have a spam problem on this website; I also... 05/25 17:25
https://setonlibrary.org https://setonlibrary.org: Ahaa, its nice dialogue about this paragraph here ... 05/25 17:21
https://mexicanpharmrx.com/ https://mexicanpharmrx.com/: Hi! Do you know if they make any plugins to assist... 05/25 16:47
Services from s21g
YOMU Web小説リーダー
小説投稿サイトの公式ページを開き、WebView表示と読み上げ向け表示を切り替えて、移動中や作業中にもWeb小説の続きを聴きやすくするiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。
jotter.me
個人開発者のためのホスティング一体型ノートサービス
ハンドミラー
iPhone向けの手鏡アプリ
ツイプロ(twpro)
Twitterプロフィールの高速検索エンジン