8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails5 で ruby2.3 --> ruby2.4 バージョンアップ時トラブル

Last updated at Posted at 2016-12-28

前提

  • rails5.0.0.1
  • ruby2.3.3 で動いていた
  • ruby2.4.0 にしたら動かなくなった

トラブル

therubyracer

エラー:

therubyracer-0.12.2/lib/v8/conversion.rb:23:in `include': wrong argument type Class (expected Module) (TypeError)

対応:
therubyracer を消した
参考: http://naruse.hateblo.jp/entry/2016/01/08/134941

FactoryGirl

エラー:

after(:create, &:some_method)
NoMethodError: undefined method `some_method' for #<FactoryGirl::SyntaxRunner:0x007ff8a37f17e8>

対応:
エラーが起こる箇所を下記に書き換えたらなぜか直った

after(:create) do |model|
  model.some_method
end

参考:ruby のバグの模様 https://bugs.ruby-lang.org/issues/13074

rails 5.0.0.1

エラー:
Authlogic のパスワード設定処理で下記エラーが発生

ArgumentError:
       key must be 32 bytes

対応:
rails を 5.0.0.1 から 5.0.1 にした。
こちらの PR で直った模様 https://github.com/rails/rails/pull/25192

8
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?