rails:1775
From: 恋塚 和之 <shachi@j...>
Date: Tue, 31 Oct 2006 08:53:14 +0900
Subject: [rails:1775] Re: Rails 1.2 pre-releaseとgettext/railsとrspec-0.6.4での動作
恋塚です。
おいらも試してみました。
が、1.2pre + GetText1.8でエラーが出てそのまま移行できる状
態ではありませんでした。
Processing BtsController#list (for 127.0.0.1 at 2006-10-30 23:36:47)
[GET]
Session ID: 046c0cca2c213e28c31aaa6cca2f1247
Parameters: {"action"=>"list", "controller"=>"bts"}
DEPRECATION WARNING: @params is deprecated! Call params.[] instead of
@params.[]. Args: ["lang"] See http://www.rubyonrails.org/
deprecation for details. (called from init_gettext_main at /usr/local/
lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/rails.rb:87)
Redirected to http://localhost:3000/
DEPRECATION WARNING: @headers is deprecated! Call headers.[] instead
of @headers.[]. Args: ["Content-Type"] See http://
www.rubyonrails.org/deprecation for details. (called from
init_content_type at /usr/local/lib/ruby/gems/1.8/gems/gettext-1.8.0/
lib/gettext/rails.rb:94)
DEPRECATION WARNING: @headers is deprecated! Call headers.[] instead
of @headers.[]. Args: ["Content-Type"] See http://
www.rubyonrails.org/deprecation for details. (called from
init_content_type at /usr/local/lib/ruby/gems/1.8/gems/gettext-1.8.0/
lib/gettext/rails.rb:96)
DEPRECATION WARNING: @headers is deprecated! Call headers.[]= instead
of @headers.[]=. Args: ["Content-Type", "text/html; charset=UTF-8"]
See http://www.rubyonrails.org/deprecation for details. (called from
init_content_type at /usr/local/lib/ruby/gems/1.8/gems/gettext-1.8.0/
lib/gettext/rails.rb:97)
Completed in 0.00216 (462 reqs/sec) | DB: 0.00000 (0%) | 302 Found
[http://localhost/]
ありゃま、っと。
cvs版のgettextはまだ試してませんが。
...1.2移行は道が厳しそうです。(^^;;
On 2006/10/30, at 14:54, MOROHASHI Kyosuke wrote:
> お世話になっております。諸橋です。
>
> 現在、Rails 1.1.6で作成中のアプリケーションを1.2 pre-
> releaseに乗せてみています。
>
> 意外とスムーズに移行できそうなんですが、一点だけ、Ruby-GetText
> (CVS版)と
> rspec(0.6.4)の組合せでエラーが出てしまいます。
>
> どなたか既に試してみて、Rails 1.2 と GetText、
> rspecの全てを同時に使えてい
> る、という方はいらっしゃいますでしょうか?
>
> 調査として手元で試してみた組合せは以下の通りです。
>
> Rails 1.1.6 / Ruby-Gettext 1.8.0 / rspec 0.6.4 ---- ○
> Rails 1.1.6 / Ruby-Gettext 1.8.0 / 通常のtest/unit
> ---- ○
> Rails 1.2 pre / Ruby-Gettext 1.8.0 / rspec 0.6.4 ---- ×(1)
> Rails 1.2 pre / Ruby-Gettext 1.8.0 / 通常のtest/unit
> ---- ×(1)
> Rails 1.2 pre / Ruby-Gettext (CVS) / rspec 0.6.4 ---- ×(2)
> Rails 1.2 pre / Ruby-Gettext (CVS) / 通常のtest/unit
> ---- ○(3)
>
> (1) ActiveRecord::VERSIONが読み取れずエラー
> /Users/moro/Documents/project_name/config/../vendor/rails/
> activerecord/lib/../../
> activesupport/lib/active_support/dependencies.rb:256:
> in `load_missing_constant':uninitialized constant
> ActiveRecord::VERSION (NameError)
>
> from /Users/moro/Documents/project_name/config/../vendor/rails/
> activerecord/lib/../../
> activesupport/lib/active_supportdependencies.rb:360:in
> `const_missing'
>
> from /opt/local/lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/
> active_record.rb:49
>
> (2) CVS版をインストールして試すと、rspec使用時のみ下記の
> ようなエラーになります。
> http://rubyforge.org/scm/?group_id=855
>
> The error occurred while evaluating nil.split
>
> /Users/moro/Documents/project_name/config/../vendor/rails/
> actionpack/lib/
> action_controller/cgi_ext/raw_post_data_fix.rb:45:in
> `initialize_query'
>
> /Users/moro/opt/rubygems/gems/gettext-1.8.0/lib/gettext/rails.rb:
> 244:in `new'
>
> /Users/moro/opt/rubygems/gems/gettext-1.8.0/lib/gettext/rails.rb:
> 244:in `cgi'
>
> /Users/moro/opt/rubygems/gems/gettext-1.8.0/lib/gettext/rails.rb:
> 113:in
> `init_gettext'
>
> /Users/moro/Documents/project_name/config/../vendor/rails/
> actionpack/lib/
> action_controller/filters.rb:456:in `send'
>
> (3) Ruby-GettextのRailsプラグインで`@params'を直接
> 参照している箇所で
> DEPRECATEDだと警告は出ますが、テスト自体は成功します。
>
> 何かご存じの方がいらっしゃれば、情報をいただけるとありがたいで
> す。
> どうぞよろしくお願いします。
> --
> 諸橋 恭介(もろはし きょうすけ)
>
> mail : moronatural@g...
> : moro@b...
>
> はてな:http://d.hatena.ne.jp/moro/
>
> --
> ML: rails@r...
> 使い方: http://QuickML.com/
>
--
コイヅカ カズユキ 恋塚 和之
shachi@j...
--
ML: rails@r...
使い方: http://QuickML.com/
1771 2006-10-30 06:54 [moronatural@g... ] Rails 1.2 pre-releaseとgettext/railsとrspec-0.6.4での動作 -> 1775 2006-10-31 00:53 ┣[shachi@j... ] 1777 2006-10-31 02:41 ┃┗[shintaro@k... ] 1779 2006-10-31 13:06 ┃ ┗[shintaro@k... ] 1780 2006-10-31 22:11 ┃ ┗[shachi@j... ] 1776 2006-10-31 02:08 ┗[shintaro@k... ]