• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/173

Ruby拡張のドキュメントの書き方がさっぱりわからなくて困った。 こんな感じの警告が出るんですよね。

Installing ri documentation for shooting_star-1.0.2...

No definition for asteroid_s_run

No definition for asteroid_s_stop

No definition for asteroid_server_send_data
どこかに書かれてるのかなあ・・・。と、いろいろ調査した結果、Rakefileの中で以下のように書けばOKでした。
Hoe.new('shooting_star', ShootingStar::VERSION) do |hoe|
  ...
  hoe.spec_extras = {
    :extensions => 'ext/extconf.rb',
    :rdoc_options => ['--exclude', 'ext/asteroid']
  }
  ...
end
Ruby拡張について無視させている感じですね。まあ、直接呼び出されることは無いから良いか・・・。

This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/173

posted by Png genki on Tue 20 Mar 2007 at 10:49

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry117
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ