plezi 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/plezi/common/api.rb +1 -1
- data/lib/plezi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b816b64c0253a8cc724c6a65b74b3a4cf4373e5f
|
4
|
+
data.tar.gz: 8cb2f0ae9079365b974359edd41fbee38e825b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf2cb30f5e04bf28a923f814a0feb6e1ac9d31d65f41fe5e37a8a2ef9064fa4a92d14c3a4fca12a3efd915251fde6a917bf0c340e12eec663f7b7022ca79f681
|
7
|
+
data.tar.gz: 01e4dea1f3f911d55b60947de7a4d7952825a4909f7b59f6544c5afe0c9b6d07a22b491c199144ccb8f2a142b511764acfbfe3cd5f0667c995a57b4e108f46d4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
#Change Log
|
2
2
|
|
3
|
+
***
|
4
|
+
|
5
|
+
Change log v.0.12.5
|
6
|
+
|
7
|
+
**Fix**: Placebo's older Rack recognition required that Rack be required within the gemfile of the application. This is no longer the case. Now `start_placebo` can also be used in a non-Rack environment (i.e. when disabling the server using: `Plezi.protocol = :placebo`). This allows writing Plezi based "worker" scripts that aren't web servers but can send and receive messages from the main application.
|
3
8
|
|
4
9
|
***
|
5
10
|
|
data/lib/plezi/common/api.rb
CHANGED
@@ -64,7 +64,7 @@ module Plezi
|
|
64
64
|
# to broadcast Plezi messages to other Plezi processes - allowing for scalable intigration of Plezi into existing Rack applications.
|
65
65
|
def start_placebo receiver = nil
|
66
66
|
# force start Iodine only if Iodine isn't used as the server
|
67
|
-
if ::Iodine.protocol == ::Iodine::Http::Http1 && (defined?(::Rack) ? (::Rack::Handler.default == ::Iodine::Http::Rack) : true)
|
67
|
+
if ::Iodine.protocol == ::Iodine::Http::Http1 && (defined?(::Rack::VERSION) ? (::Rack::Handler.default == ::Iodine::Http::Rack rescue true) : true)
|
68
68
|
Iodine.log("* `start_placebo` Placebo directive ignored, as this seems to be the main application.\n")
|
69
69
|
# just initialize the receiver class (no instance) and return
|
70
70
|
Plezi::Placebo.new(receiver, false) if receiver
|
data/lib/plezi/version.rb
CHANGED