From 0bbf798a7a7a3c67f0ef02fbed2966abc8887a4b Mon Sep 17 00:00:00 2001 From: geezyWazHere Date: Sat, 23 Nov 2024 14:17:34 -0600 Subject: [PATCH 1/3] work on rails 8 and future versions --- stimulus_reflex.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stimulus_reflex.gemspec b/stimulus_reflex.gemspec index bfdede88..6cf5ff00 100644 --- a/stimulus_reflex.gemspec +++ b/stimulus_reflex.gemspec @@ -39,7 +39,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 3.0.0" - rails_version = [">= 5.2", "< 8"] + rails_version = [">= 5.2"] gem.add_dependency "actioncable", *rails_version gem.add_dependency "actionpack", *rails_version gem.add_dependency "actionview", *rails_version From 51a95336fd2ead84d8679d2b03c9621c77f1a2b2 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Sun, 15 Dec 2024 09:12:03 +0100 Subject: [PATCH 2/3] Update Gemfile.lock --- Gemfile.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index e01ff995..3e4d53fb 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 @@ -249,7 +249,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! From 4ce800af3ca6001578d6cfa53e9e200f074dddc2 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Sun, 15 Dec 2024 09:13:17 +0100 Subject: [PATCH 3/3] Unsplat Rails version --- stimulus_reflex.gemspec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/stimulus_reflex.gemspec b/stimulus_reflex.gemspec index 6cf5ff00..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"] - 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"