restarone / violet_rails

an app engine for your business. Seamlessly implement business logic with a powerful API. Out of the box CMS, blog, forum and email functionality. Developer friendly & easily extendable for your next SaaS/XaaS project. Built with Rails 6, Devise, Sidekiq & PostgreSQL
https://violet.restarone.solutions
MIT License
95 stars 43 forks source link

ruby upgrade (3.x) #325

Open donrestarone opened 2 years ago

donrestarone commented 2 years ago

maybe install ruby 3 with rbenv using cap? https://github.com/capistrano-plugins/capistrano-rbenv-install

update on progress:

  1. Got the app booting and the tests passing under ruby 3 (minimal effort)
  2. Ember CLI Rails is now broken

Ember CLI Rails issue

Github issue: https://github.com/thoughtbot/ember-cli-rails/pull/591 where the issue originates: https://github.com/thoughtbot/ember-cli-rails/blob/main/lib/ember_cli/configuration.rb

stack trace:

solutions_sidekiq    | 2022-04-23T04:25:22.069Z pid=1 tid=731 WARN: ArgumentError: wrong number of arguments (given 2, expected 1)
solutions_sidekiq    | 2022-04-23T04:25:22.070Z pid=1 tid=731 WARN: /usr/local/bundle/gems/ruby/3.0.0/gems/ember-cli-rails-0.11.0/lib/ember_cli/app.rb:11:in `initialize'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/ember-cli-rails-0.11.0/lib/ember_cli/configuration.rb:11:in `new'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/ember-cli-rails-0.11.0/lib/ember_cli/configuration.rb:11:in `app'
solutions_sidekiq    | /var/app/config/initializers/ember.rb:2:in `block in <main>'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/ember-cli-rails-0.11.0/lib/ember_cli.rb:12:in `configure'
solutions_sidekiq    | /var/app/config/initializers/ember.rb:1:in `<main>'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/bootsnap-1.7.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/activesupport-6.1.5/lib/active_support/dependencies.rb:326:in `block in load'
solutions_sidekiq    | /usr/local/bundle/gems/ruby/3.0.0/gems/activesupport-6.1.5/lib/active_support/dependencies.rb:299:in `load_dependency'
donrestarone commented 1 year ago
Screen Shot 2023-02-11 at 9 48 07 AM
donrestarone commented 1 month ago

ruby 3 is going to be deprecated in the next heroic stack

854
remote:        Your Ruby version is not present on the next stack        
[855](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:856)
remote:                
[856](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:857)
remote:        You are currently using ruby-3.0.0 on heroku-20 stack.        
[857](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:858)
remote:        This version does not exist on heroku-22. In order to upgrade your stack you will        
[858](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:859)
remote:        need to upgrade to a supported Ruby version.        
[859](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:860)
remote:                
[860](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:861)
remote:        For a list of supported Ruby versions see:        
[861](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:862)
remote:        https://devcenter.heroku.com/articles/ruby-support#supported-runtimes        
[862](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:863)
remote:                
[863](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:864)
remote:        For a list of the oldest Ruby versions present on a given stack see:        
[864](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:865)
remote:        https://devcenter.heroku.com/articles/ruby-support#oldest-available-runtimes        
[865](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:866)
remote:                
[866](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:867)
remote:                
[867](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:868)
remote:        Using release configuration from last framework (Ruby).        
[868](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:869)
remote:        -----> Discovering process types        
[869](https://github.com/restarone/violet_rails/actions/runs/11203888631/job/31141640289?pr=1659#step:5:870)
remote:        Procfile declares types -> release, web, worker