ctran/annotate_modelsを使用してモデルに注釈を付け、ファイルをルーティングしています。エラーが発生しました:
$ annotate -r
$ROOT/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:151:in `block in cripple_rubygems': can't find executable rake (Gem::Exception)
from $ROOT/usr/lib/ruby/gems/1.9.1/bin/rake:19:in `<main>'
Route file annotated.
...その結果annotate
、コメント ブロックが config/routes.db に追加されますが、コメントは空です。メッセージは、annotate
が見つからないことを示唆していますが、確かにそこにあります:rake
rake
$ which rake
$ROOT/usr/bin/rake
そして、現在の構成についてrakeが言っていることは次のとおりです。
$ rake about
About your application's environment
Ruby version 1.9.2 (x86_64-darwin10.6.0)
RubyGems version 1.3.7
Rack version 1.2
Rails version 3.0.5
Active Record version 3.0.5
Action Pack version 3.0.5
Active Resource version 3.0.5
Action Mailer version 3.0.5
Active Support version 3.0.5
Application root .../myapp
Environment development
私の Gemfile で少し変わっているのは、以前のバージョンの rake を指定していることだけです。
# file: Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'rake', '0.8.7' # workaround "uninitialized constant Rake::DSL" bug
...
gem 'annotate', '2.4.0'
何が間違っているかについてのアイデアはありますか?