whatsapp_notifier 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/whatsapp_notifier/engine.rb +14 -0
- data/lib/whatsapp_notifier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58d5e7ea12d1eb8560b911c6c84595f4ee1590cb64d5351ecc4d3d5e5af8245d
|
|
4
|
+
data.tar.gz: c743fca10de3d4cd9b21789822dc8b6dff4dbfe9ffc9a5a6b119d257386c08a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07b15329406ab0f4f64013f60108b66d40906277acb5ae9c980688e9dfb11317fb2988a2e7ca73c9945c0853bdf46071f94af8f1ba0e5cdb81bb7595dd6750e7
|
|
7
|
+
data.tar.gz: 932f108caf6a2ee6af828a4e23d41b1bacdedc308f1d59d41ac6cdd03f9cfde1e3892f6065eaf888c80af238a73a641bc42549b5a5a4df4972511b1582063c76
|
|
@@ -6,6 +6,20 @@ module WhatsAppNotifier
|
|
|
6
6
|
|
|
7
7
|
config.whatsapp_notifier = {}
|
|
8
8
|
|
|
9
|
+
# The module name is WhatsAppNotifier (CapApp), but Zeitwerk's default
|
|
10
|
+
# inflector camelizes "whatsapp_notifier" -> "WhatsappNotifier" (single
|
|
11
|
+
# N). Without this override, controllers under app/controllers/
|
|
12
|
+
# whatsapp_notifier/ are indexed under the wrong constant and the
|
|
13
|
+
# host app gets "uninitialized constant WhatsAppNotifier::*" on every
|
|
14
|
+
# request to a mounted engine route. Inflect once for both autoloaders.
|
|
15
|
+
initializer "whatsapp_notifier.inflector", before: :set_autoload_paths do
|
|
16
|
+
mappings = { "whatsapp_notifier" => "WhatsAppNotifier" }
|
|
17
|
+
[Rails.autoloaders.main, Rails.autoloaders.once].each do |loader|
|
|
18
|
+
next unless loader.respond_to?(:inflector)
|
|
19
|
+
loader.inflector.inflect(mappings)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
9
23
|
initializer "whatsapp_notifier.configure" do |app|
|
|
10
24
|
WhatsAppNotifier.configure do |config|
|
|
11
25
|
app.config.whatsapp_notifier.each do |key, value|
|