From bdbd99560ea0670527a49b91fd1a965f931a5b68 Mon Sep 17 00:00:00 2001 From: Juna Ootoovak <135796148+juna-nb@users.noreply.github.com> Date: Fri, 24 May 2024 09:12:29 -0700 Subject: [PATCH] Add Thor require for `StimulusReflex::Installer` (#705) Rake tasks were failing in projects because the required Thor dependency was not always required, depending on the way it was called. The fix also needed to explicitly require the thor gem in the installer file that used it as a mixin. Fixes https://github.com/stimulusreflex/stimulus_reflex/issues/701 Why should this be added: Rake tasks in Rails applications were no longer working with the latest version of this Gem. --- lib/stimulus_reflex/installer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stimulus_reflex/installer.rb b/lib/stimulus_reflex/installer.rb index 70b33b4f..1c6ae73a 100644 --- a/lib/stimulus_reflex/installer.rb +++ b/lib/stimulus_reflex/installer.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "thor" + module StimulusReflex class Installer include Thor::Base