Skip to content

Commit

Permalink
Make sure this gem works without the Rails app being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 27, 2023
1 parent 7f9ab66 commit bbc4edf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
importmap-rails (1.2.2)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)

GEM
Expand Down
1 change: 1 addition & 0 deletions importmap-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 2.7.0"
spec.add_dependency "railties", ">= 6.0.0"
spec.add_dependency "activesupport", ">= 6.0.0"
spec.add_dependency "actionpack", ">= 6.0.0"
end
3 changes: 3 additions & 0 deletions lib/importmap/reloader.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require "active_support"
require "active_support/core_ext/module/delegation"

class Importmap::Reloader
delegate :execute_if_updated, :execute, :updated?, to: :updater

Expand Down

0 comments on commit bbc4edf

Please sign in to comment.