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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d0a1a6f1cfe29e873ffa53d25220906cc5dad9c8341d01dfec8f736602106f8
4
- data.tar.gz: 0d24f4dab53b90178a2663c258540eb1abd6190a48354ab8a6aca921f08ea8ca
3
+ metadata.gz: 58d5e7ea12d1eb8560b911c6c84595f4ee1590cb64d5351ecc4d3d5e5af8245d
4
+ data.tar.gz: c743fca10de3d4cd9b21789822dc8b6dff4dbfe9ffc9a5a6b119d257386c08a7
5
5
  SHA512:
6
- metadata.gz: cc875e83f933373c8aa52c022859f1732726aa6634a513e3f202e664c459490b0212c418db5daff7e01af9461504211422b71a2e8ebba1b5e7113955279b0a0d
7
- data.tar.gz: 1d2e6d912686b2dff1cd13483ca8043f5bd964df57d4365a49d1fec33cd31ae74b30e3e2bd480f1ca707b28f69e40368bc7d8fe1067f2c7fd4b861384d24af10
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|
@@ -1,4 +1,4 @@
1
1
  module WhatsAppNotifier
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
 
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whatsapp_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kshitiz Sinha