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 +4 -4
- data/NEWS.md +4 -0
- data/README.md +1 -1
- data/lib/em/mqtt/client_connection.rb +2 -1
- data/lib/em/mqtt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140402e50ff061f1791280fb2ebf3a5289a6acdf
|
4
|
+
data.tar.gz: 6e379a18dd651523936d85e88ffeb29123eb0888
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/em/mqtt/version.rb
CHANGED
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
|
+
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:
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|