From 9f63156a8a5640a6331f8db4749ddca7f4531c74 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 12 Sep 2024 02:27:19 +0400 Subject: [PATCH] fix hot constants listener --- lib/hot/constants.rb | 2 +- lib/hot/live.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hot/constants.rb b/lib/hot/constants.rb index 957dea0..ddd324a 100644 --- a/lib/hot/constants.rb +++ b/lib/hot/constants.rb @@ -59,7 +59,7 @@ module Hot end HOTENV.replace new_env - # LISTENERS.each_pair { |k, b| perform_change(k, b) } + LISTENERS.each_pair { |k, b| perform_change(k, b) } end def on_change(key, &block) diff --git a/lib/hot/live.rb b/lib/hot/live.rb index 8029317..ebce05f 100644 --- a/lib/hot/live.rb +++ b/lib/hot/live.rb @@ -2,7 +2,7 @@ module Hot # Hot Live constants class Live def initialize - puts 'initialized' + puts 'Hot Live constants initialized' end end end