From 39388ab6eb5f26d33025685c7858e0f314327c87 Mon Sep 17 00:00:00 2001 From: "Sara G." Date: Sun, 15 Dec 2024 02:15:17 -0600 Subject: [PATCH] Update gemspec to be compatible with Rails 8 (#726) Installing stimulus reflex on Rails 8.0 was failing, this change will get it to install. --------- Co-authored-by: Marco Roth --- Gemfile.lock | 12 ++++++------ stimulus_reflex.gemspec | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5fb0cccf..b8bb518e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,15 +2,15 @@ PATH remote: . specs: stimulus_reflex (3.5.2) - actioncable (>= 5.2, < 8) - actionpack (>= 5.2, < 8) - actionview (>= 5.2, < 8) - activesupport (>= 5.2, < 8) + actioncable (>= 5.2) + actionpack (>= 5.2) + actionview (>= 5.2) + activesupport (>= 5.2) cable_ready (~> 5.0) nokogiri (~> 1.0) nokogiri-html5-inference (~> 0.3) rack (>= 2, < 4) - railties (>= 5.2, < 8) + railties (>= 5.2) redis (>= 4.0, < 6.0) GEM @@ -253,7 +253,7 @@ DEPENDENCIES magic_frozen_string_literal (~> 1.2) minitest (= 5.18.1) mocha (~> 1.13) - rails (>= 5.2, < 8) + rails (>= 5.2) rake (~> 13.0) standard (~> 1.24) stimulus_reflex! diff --git a/stimulus_reflex.gemspec b/stimulus_reflex.gemspec index bfdede88..029d8b1d 100644 --- a/stimulus_reflex.gemspec +++ b/stimulus_reflex.gemspec @@ -39,12 +39,12 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 3.0.0" - rails_version = [">= 5.2", "< 8"] - gem.add_dependency "actioncable", *rails_version - gem.add_dependency "actionpack", *rails_version - gem.add_dependency "actionview", *rails_version - gem.add_dependency "activesupport", *rails_version - gem.add_dependency "railties", *rails_version + rails_version = ">= 5.2" + gem.add_dependency "actioncable", rails_version + gem.add_dependency "actionpack", rails_version + gem.add_dependency "actionview", rails_version + gem.add_dependency "activesupport", rails_version + gem.add_dependency "railties", rails_version gem.add_dependency "cable_ready", "~> 5.0" gem.add_dependency "nokogiri", "~> 1.0" @@ -55,7 +55,7 @@ Gem::Specification.new do |gem| gem.add_development_dependency "bundler", "~> 2.0" gem.add_development_dependency "magic_frozen_string_literal", "~> 1.2" gem.add_development_dependency "mocha", "~> 1.13" - gem.add_development_dependency "rails", *rails_version + gem.add_development_dependency "rails", rails_version gem.add_development_dependency "rake", "~> 13.0" gem.add_development_dependency "standard", "~> 1.24" gem.add_development_dependency "minitest", "5.18.1"