em-mqtt 0.0.4 → 0.0.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: b69ccbdb1c77d893629063eb6b1dad7ba31b2a19
4
- data.tar.gz: 8d976bd448ee6d79247cb57153722a716f8bf1ab
3
+ metadata.gz: 140402e50ff061f1791280fb2ebf3a5289a6acdf
4
+ data.tar.gz: 6e379a18dd651523936d85e88ffeb29123eb0888
5
5
  SHA512:
6
- metadata.gz: 77873c2d327cb17e4b551162d766543479df3bf3284fb76ca105d41d47ca6bd454a34b58b22a474290ce497de8e53be3076bbc80b2b149421d6b0e08d34ac0ae
7
- data.tar.gz: 3a9fdd5efcc5a74af4a93067f61e60297a18e3b08b20f1ac931a4ad3127088ae785dee6d56a2c97b3ec029b1f51742e1355f199f906e03d85372f7e5405ff80a
6
+ metadata.gz: ed24058a756eb15139aab2fdd9e9cf9eacc24f7097259a80f538e0131ec89a7d85fec125bce39b9ca451b55bd96379492088ca2a859ecb6f2f643c69fc02e447
7
+ data.tar.gz: 83772094352660a018324400410921a033981d8e8b01ba5f186b6c41d8dda301a38690edad651d6e5ef86ba3d1169b180309bb9af835e6cb4aaede284c0fcd12
data/NEWS.md CHANGED
@@ -1,6 +1,10 @@
1
1
  EventMachine MQTT NEWS
2
2
  ======================
3
3
 
4
+ EventMachine MQTT Version 0.0.5 (2016-04-15)
5
+ --------------------------------------------
6
+
7
+ * Prevent errors from getting swallowed inside of EM
4
8
 
5
9
  EventMachine MQTT Version 0.0.4 (2015-08-07)
6
10
  --------------------------------------------
data/README.md CHANGED
@@ -23,7 +23,7 @@ Synopsis
23
23
 
24
24
  # Publish example
25
25
  EventMachine.run do
26
- c = ClientConnection.connect('test.mosquitto.org')
26
+ c = EventMachine::MQTT::ClientConnection.connect('test.mosquitto.org')
27
27
  EventMachine::PeriodicTimer.new(1.0) do
28
28
  puts "-- Publishing time"
29
29
  c.publish('test', "The time is #{Time.now}")
@@ -106,7 +106,8 @@ class EventMachine::MQTT::ClientConnection < EventMachine::MQTT::Connection
106
106
  def unbind
107
107
  timer.cancel if timer
108
108
  unless state == :disconnecting
109
- raise MQTT::NotConnectedException.new("Connection to server lost")
109
+ # Re-throw any exceptions (if present) to avoid swallowed errors.
110
+ raise $! || MQTT::NotConnectedException.new("Connection to server lost")
110
111
  end
111
112
  @state = :disconnected
112
113
  end
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module MQTT
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-mqtt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas J Humfrey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine