mqtt-sub_handler 0.1.6.8 → 0.1.6.10

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: 9be8cc94d063f20f4e602ca44c33e1f063fcd8db
4
- data.tar.gz: b115b3aa01cdb8aceab2ba442d1e8748c25ce3e1
3
+ metadata.gz: 35fd43af3792d80dd5b218ad0b3e55c61c4d750d
4
+ data.tar.gz: afd508d2b76d30428d3c6c74ad44f12a7428b123
5
5
  SHA512:
6
- metadata.gz: 18305fa0dbabdaea4762c0b53adec091bd0db67f06ef23aca414ab136ccc35e50c26641f5d21cd6d70554a6b213f87295b23ceaab1f07d9ff04f0e17fef53770
7
- data.tar.gz: 8b1aa38aad47777c42538ef19d17db3cf9cd49259d177863664d8ae561406d0691a7e80b774e1f6dd5f6d09d8ce6c8bda7a23a933a2f68b593e29daf857aa7fe
6
+ metadata.gz: ec4ef80c35649a5ed3c56666d7797c9436a2f5aba2e02bfeea433c01be85e5343d7a5fb68fab03fde76953a1787527929ccf1f8f74138fb2913846901e21c3b6
7
+ data.tar.gz: '0200581a1aa3da0d1a33519d725e3b0d5c987fd54f6e9466e69f8638de2a3844abab71ba4384a8121539e03889961fe201977086a319ad2147c4516b0956e27c'
@@ -301,9 +301,7 @@ module MQTT
301
301
  @callbackList = Array.new();
302
302
  if mqttClient.is_a? String
303
303
  @mqtt = MQTT::Client.new(mqttClient);
304
- @mqtt.clean_session = false;
305
-
306
- @mqttWasStartedClean = true if extra_opts[:client_id].nil?
304
+ @mqtt.clean_session = false unless extra_opts[:client_id].nil?
307
305
  else
308
306
  @mqtt = mqttClient;
309
307
  end
@@ -137,8 +137,8 @@ class SubHandler < BaseHandler
137
137
  end
138
138
  alias lock_and_listen lockAndListen
139
139
 
140
- def initialize(mqttClient, jsonify: true)
141
- super(mqttClient);
140
+ def initialize(mqttClient, jsonify: true, **extra_opts)
141
+ super(mqttClient, **extra_opts);
142
142
 
143
143
  @jsonifyHashes = jsonify;
144
144
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mqtt-sub_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.8
4
+ version: 0.1.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xasin