Skip to content

Commit

Permalink
Add Thor require for StimulusReflex::Installer (#705)
Browse files Browse the repository at this point in the history
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 #701

Why should this be added:
Rake tasks in Rails applications were no longer working with the latest
version of this Gem.
  • Loading branch information
juna-nb authored May 24, 2024
1 parent 8d83a8f commit bdbd995
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stimulus_reflex/installer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "thor"

module StimulusReflex
class Installer
include Thor::Base
Expand Down

0 comments on commit bdbd995

Please sign in to comment.