mudis 0.7.1 → 0.7.2
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/README.md +3 -1
- data/lib/mudis/version.rb +1 -1
- data/lib/mudis_proxy.rb +3 -4
- 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: 46467fd3a292ea00c4d9f87c3b760c59061e8edb206b0a1e43eda5aac1977acf
|
|
4
|
+
data.tar.gz: 9be690f934f833fda1ad5fea73d025655733865ce1e66a4c72e4f55cf99230a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aef5fce5ecb5b2e3d615924ee7797ffbc68cf187f924ddab3794e36386965338c13a42ce06aa0644e37222f6545d3213692a3defd74d6624d6f54e43c371a653
|
|
7
|
+
data.tar.gz: 35ca0cdf7548ab7603346c6ca554479c6b4c0cec6504c74b2fd9169430a62979f100d1500a4f3f3cec09e01a8e59eb2421fa893b46b1e7b16d273af7d70dfc38
|
data/README.md
CHANGED
|
@@ -682,10 +682,12 @@ on_worker_boot do
|
|
|
682
682
|
end
|
|
683
683
|
```
|
|
684
684
|
|
|
685
|
-
For more granular control over Mudis, adding
|
|
685
|
+
For more granular control over Mudis, adding a custom Proxy manually to `initializers` (Rails) or `boot` (Hanami) allows seamless use of the API as documented.
|
|
686
686
|
|
|
687
687
|
**Do not require `mudis_proxy` if following this method**
|
|
688
688
|
|
|
689
|
+
Example custom proxy:
|
|
690
|
+
|
|
689
691
|
```ruby
|
|
690
692
|
# config/<<initializers|boot>>/mudis_proxy.rb
|
|
691
693
|
unless defined?(MudisServer)
|
data/lib/mudis/version.rb
CHANGED
data/lib/mudis_proxy.rb
CHANGED
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
#
|
|
8
8
|
# The proxy will forward calls to `$mudis` (an instance of MudisClient)
|
|
9
9
|
# if it is defined, otherwise fallback to standard in-process behaviour.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
require_relative "mudis_client"
|
|
10
|
+
#
|
|
11
|
+
# Note that this file must be required *after* MudisClient and MudisServer
|
|
12
|
+
# have been loaded, otherwise the proxy will not be activated.
|
|
14
13
|
|
|
15
14
|
if defined?(MudisServer)
|
|
16
15
|
# In the master process — no proxy needed.
|