Skip to content

Commit bbc4edf

Browse files
committed
Make sure this gem works without the Rails app being loaded
1 parent 7f9ab66 commit bbc4edf

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PATH
33
specs:
44
importmap-rails (1.2.2)
55
actionpack (>= 6.0.0)
6+
activesupport (>= 6.0.0)
67
railties (>= 6.0.0)
78

89
GEM

importmap-rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ Gem::Specification.new do |spec|
1616

1717
spec.required_ruby_version = ">= 2.7.0"
1818
spec.add_dependency "railties", ">= 6.0.0"
19+
spec.add_dependency "activesupport", ">= 6.0.0"
1920
spec.add_dependency "actionpack", ">= 6.0.0"
2021
end

lib/importmap/reloader.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
require "active_support"
2+
require "active_support/core_ext/module/delegation"
3+
14
class Importmap::Reloader
25
delegate :execute_if_updated, :execute, :updated?, to: :updater
36

0 commit comments

Comments
 (0)