fastruby / next_rails

A toolkit to upgrade your next Rails application
https://www.fastruby.io/blog/upgrade-rails/dual-boot/dual-boot-with-rails-6-0-beta.html?utm_source=github&utm_medium=description&utm_campaign=github&utm_term=next-rails
MIT License
466 stars 28 forks source link

[BUG] bundle_report compatibility failed in Ruby 2.5 #96

Closed JuanVqz closed 1 year ago

JuanVqz commented 1 year ago

Expected Behavior

Output with the compatibility report

Actual Behavior

root@70c723e353c8:/app# bundle_report compatibility --rails-version=5.1.7
Traceback (most recent call last):
        3: from /usr/local/bundle/gems/next_rails-1.2.4/exe/bundle_report:64:in `block in <top (required)>'
        2: from /usr/local/bundle/gems/next_rails-1.2.4/lib/next_rails/bundle_report.rb:52:in `compatibility'
        1: from /usr/local/lib/ruby/2.5.0/erb.rb:874:in `result'
/usr/local/lib/ruby/2.5.0/erb.rb:872:in `block in result': no implicit conversion of Hash into Integer (TypeError)

root@70c723e353c8:/app# ruby --version
ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux]

root@70c723e353c8:/app# next_rails --version
1.2.4

Possible Fix

I don't know

To Reproduce

Run the compatibility report with ruby 2.5 version

Additional Information

next_rails version: 1.2.4 ruby version: 2.5

If need more debugging I can help

I will abide by the code of conduct