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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7f96d17a5d2ade09642360b9c18dd0191c9062f
4
- data.tar.gz: e6787b8bbbe74e54533dda229d6697a6aa20d9c7
3
+ metadata.gz: b816b64c0253a8cc724c6a65b74b3a4cf4373e5f
4
+ data.tar.gz: 8cb2f0ae9079365b974359edd41fbee38e825b1f
5
5
  SHA512:
6
- metadata.gz: 9cb477f120297c9a5ece5bae4acd5f31104e09e193b5c8ad2b2f8de27a38bfdf2f4fed831a93cba0399cc907307dc89673a49915206051686785eca8455f3587
7
- data.tar.gz: dddc339931207cefbe3e6da05bb517c78d4830faa827b27de08c363d072c9e8d5758c9f91b8e051a201d5102a43927bbff576144dc7a3b1b635448f2bda3cb22
6
+ metadata.gz: bf2cb30f5e04bf28a923f814a0feb6e1ac9d31d65f41fe5e37a8a2ef9064fa4a92d14c3a4fca12a3efd915251fde6a917bf0c340e12eec663f7b7022ca79f681
7
+ data.tar.gz: 01e4dea1f3f911d55b60947de7a4d7952825a4909f7b59f6544c5afe0c9b6d07a22b491c199144ccb8f2a142b511764acfbfe3cd5f0667c995a57b4e108f46d4
@@ -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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Plezi
2
- VERSION = "0.12.4"
2
+ VERSION = "0.12.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plezi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev