Jpmobileのrake updateでエラーになったときのメモ

# rails -v
Rails 2.2.2
# ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9.2.2]
# ruby script/console 
Loading development environment (Rails 2.2.2)
>> Jpmobile::VERSION::STRING
=> "0.0.4"

こういう構成で、$RAILS_ROOT/vender/plugins/jpmobileでrake updateするとエラーになりましあ。

# rake update
(in /Users/sogo/code/rails/jpmobile-demo/vendor/plugins/jpmobile)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
tools/update_ip_addresses_au.rb:18: wrong argument type Symbol (expected Proc) (TypeError)
        from tools/update_ip_addresses_au.rb:17:in `each'
        from tools/update_ip_addresses_au.rb:17
        from tools/update_ip_addresses_au.rb:14:in `each'
        from tools/update_ip_addresses_au.rb:14
rake aborted!

Symbol#to_procのよかん。
update_ip_addresses_au.rbの

a = (tr/'td').to_a.map(&:inner_text)

やはりでした。
このファイルの頭のほうでrequireがならんでるところに

require 'activesupport'

を追加してOKです。

もうRuby1.9が当たり前になってるのかなあ・・