問題の内容
Bundle completed (47.31s) remote: Cleaning up the bundler cache.
remote: -----> nstalling node-v10.14.1-linux-x64 remote: ----->
Detecting rake tasks remote: ----->Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: /tmp/build_14414a0b13dd75a9888c3698db467726/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121:
warning: constant ::Fixnum is deprecated remote:
/tmp/build_14414a0b13dd75a9888c3698db467726/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121:
warning: constant ::Bignum is deprecated remote: rake aborted! remote: SystemStackError: stack level too deep
/tmp/build_611b721386924ba6fb37a7ef7af1bee4/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
~ 以下、延々と同じエラーメッセージが大量に出力 ~
問題が発生した環境
・Rails 4.2.5
調べた結果
どうやらRails4.2.5のソースコードの中にFixnum?とBignum?を使っている箇所があることがエラーの原因であるみたい。なんやそれ笑
Qiitaで参考にした解説
https://qiita.com/jkr_2255/items/647c427d2c2f7892fa93
ということで、Railsを4.2.5から4.2.8に上げてみることにしました。
Gemfileのrailsのバージョン指定を次のように変更して保存し、bundle updateを実行します。
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.8'
その後、改めてgit push heroku masterを行うと無事、デプロイが成功するようになりました。