From 3be216c2948bcc87618881154f57c2e341c84ec5 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 22 Aug 2024 15:10:04 +0200 Subject: [PATCH] Add sprockets-rails as dependency Since Rails 7.0 sprockets-rails is not a dependency from Rails anymore. We still need it in order to have the Rails.application.config.assets configuration. --- Gemfile | 2 -- alchemy_cms.gemspec | 2 +- lib/alchemy_cms.rb | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 7d9aeafc4c..fb5c081650 100644 --- a/Gemfile +++ b/Gemfile @@ -17,8 +17,6 @@ gem "pg", "~> 1.0" if ENV["DB"] == "postgresql" gem "alchemy_i18n", git: "https://github.com/AlchemyCMS/alchemy_i18n.git", branch: "main" -gem "sprockets-rails", "< 3.5.0" - group :development, :test do gem "execjs", "~> 2.9.1" gem "rubocop", require: false diff --git a/alchemy_cms.gemspec b/alchemy_cms.gemspec index 17d889a874..17e4877d33 100644 --- a/alchemy_cms.gemspec +++ b/alchemy_cms.gemspec @@ -47,7 +47,7 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency "originator", ["~> 3.1"] gem.add_runtime_dependency "ransack", [">= 1.8", "< 5.0"] gem.add_runtime_dependency "simple_form", [">= 4.0", "< 6"] - gem.add_runtime_dependency "sprockets", [">= 3.0", "< 5"] + gem.add_runtime_dependency "sprockets-rails", [">= 3.5", "< 4"] gem.add_runtime_dependency "turbo-rails", [">= 1.4", "< 2.1"] gem.add_runtime_dependency "view_component", ["~> 3.0"] diff --git a/lib/alchemy_cms.rb b/lib/alchemy_cms.rb index feb04660a1..a0d3d5bb0f 100644 --- a/lib/alchemy_cms.rb +++ b/lib/alchemy_cms.rb @@ -18,6 +18,7 @@ require "non_stupid_digest_assets" require "ransack" require "simple_form" +require "sprockets/rails" require "turbo-rails" require "userstamp" require "view_component"