Ruby 2.4.0 (dev) で Rails 4.2.z を動かす試みをしている。
いま分かっている限りだと以下のパッチを取り込む必要がある。
- (Rails 自体の bundle install をしたいので) レガシーの MySQL のアダプタを外す ... https://github.com/rails/rails/pull/26135
- Unified Integer 対応した Arel を組み込む ... https://github.com/rails/arel/pull/439
- Unified Integer 対応の Backport を組み込む ... https://github.com/rails/rails/pull/25161
- Enumerable#sum の Backport を組み込む ... https://github.com/rails/rails/pull/24795
これだけだとまだ足りていないようなので、追ってみているところ。
追っている途中の試行コードは Rails から fork した以下のブランチに置いている。
アプリケーションの Gemfile の Arel と Rails について、こんな感じに書く。
gem 'arel', git: 'https://github.com/rails/arel', branch: '6-0-stable' gem 'rails', git: 'https://github.com/koic/rails', branch: 'ruby24_on_rails42' # Rails 4.2.7.1
続く。