Rails 6 ruby 3.x Upgrade HELP

108 views
Skip to first unread message

Paul Dornfeld

unread,
May 22, 2023, 5:33:17 PM5/22/23
to Refinery CMS
Currently on rails 5.5 and ruby 2.5.5 but I have to upgrade to ruby 3.x because our deployment platform no longer supports buildpacks with ruby 2.x. Rails 5.x is not compatible with ruby 3.x so I am upgrading to rails 6. However, refinerycms will not allow me to upgrade to rails 6 because refinerycms-core has a bunch of rials 5 dependencies. Has anyone been able to get refinerycms to work with rails 6 and ruby 3???

parndt

unread,
May 22, 2023, 5:39:58 PM5/22/23
to Refinery CMS
You may have better luck if you bundle the gems from the GitHub source which depends on Rails 6.x:

gem "refinerycms", github: "refinery/refinerycms", branch: "main"

Let us know how you get on 😊

javinto

unread,
May 23, 2023, 3:20:43 PM5/23/23
to Refinery CMS
I did manage to have 3 sites based on RefineryCMS and Rails 6.0.x. However with Ruby 2.6.3. I did not try Ruby 3.0, but Rails 6 works fine with that.

Here is my Gemfile:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3'
gem 'mysql2'

# Use Puma as the app server
gem 'puma'
# Use SCSS for stylesheets
gem 'sass-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

gem 'sprockets', '~>3.7.2'

# Refinery CMS
gem 'refinerycms', git: 'https://github.com/refinery/refinerycms.git', branch: 'master'

# Optionally, specify additional Refinery CMS Extensions here:
gem 'refinerycms-acts-as-indexed', git: 'https://github.com/refinery/refinerycms-acts-as-indexed.git', branch: 'master'
gem 'refinerycms-wymeditor', git: 'https://github.com/parndt/refinerycms-wymeditor.git', branch: 'master'
gem 'refinerycms-authentication-devise', git: 'https://github.com/refinery/refinerycms-authentication-devise.git', branch: 'master'
#  gem 'refinerycms-blog', ['~> 3.0', '>= 3.0.0']
#  gem 'refinerycms-inquiries', ['~> 3.0', '>= 3.0.0']
#  gem 'refinerycms-search', ['~> 3.0', '>= 3.0.0']
# gem 'refinerycms-page-images', ['~> 3.0', '>= 3.0.0']
gem 'refinerycms-page-images', git: "https://github.com/refinery/refinerycms-page-images.git", branch: "master"

Op maandag 22 mei 2023 om 23:39:58 UTC+2 schreef parndt:
Reply all
Reply to author
Forward
0 new messages