lora-rb 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6721e00c200b9586f0163e4201d8d6567da32c95
4
- data.tar.gz: a3570cca519d24039ffc15e3f5f460d8c375b6f1
3
+ metadata.gz: 0c7b12543283401bc28530e52bc9f3828bdde24b
4
+ data.tar.gz: ffdb416a314549b69fcc4aafeeef663ce2393549
5
5
  SHA512:
6
- metadata.gz: 8be4bf0294c38f19c0221b674867be53a4f21263e968244c8f952b87fcee9d0ebe0b7b534ac48556834d2f3ed1ed4e272d6deac89444e73847b3b0a3a2f988fb
7
- data.tar.gz: 960adbb35dbdb17ecc3d42f94cfece6dfa256eb837a07ba694d06032408f632f6db17f88a3fa4ebdeb9e939f3a128224f908d316b4b05b7fd325f995b61123b9
6
+ metadata.gz: 4d4846b306835eeb258903c923b433486b2782e467e33002b6fb1de4f10d70cd098745939f85f2485b2ec62e3b5b8e85861eb1a89295e9848ac25edc022871f7
7
+ data.tar.gz: a5b458a6060952c32f57f3c3ce0bda496b85fd0ae409bd7937e402151862d77331c8d62d529728d7805414ff2e86c42b897ea69a45dc8ded1ba75e77cf021455
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- v0.9.1 [☰](https://bitbucket.org/fractalgarden/loriot-rb/branches/compare/v0.9.0..v0.9.1) August 7th, 2017
1
+ v0.9.2 August 7th, 2017
2
+ ------------------------------
3
+ * Fixed a bug: listen now use the block
4
+
5
+ v0.9.1 August 7th, 2017
2
6
  ------------------------------
3
7
  * Added port to message uplink via mqtt, EUI is now eui
4
8
 
data/lib/lora-rb/base.rb CHANGED
@@ -61,7 +61,7 @@ class LoraClient
61
61
  options = { debug: @debug }.merge(options)
62
62
 
63
63
  puts "#{Time.now} Starting Listen app #{@appid}. To exit press CTRL+C" if options[:debug]
64
- sub_listen(options)
64
+ sub_listen(options, &block)
65
65
  end
66
66
 
67
67
  # Close the secure connection with the cloud
@@ -106,7 +106,7 @@ module LoraRb
106
106
  message['port'] ||= get_port_from_topic(topic)
107
107
  end
108
108
  puts " [x] after rework: #{message}" if options[:debug]
109
- block.call(topic, message) if block
109
+ block.call(topic, message) if block_given?
110
110
  break if options[:test]
111
111
  end
112
112
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LoraRb
2
2
  def self.version
3
- "0.9.1"
3
+ "0.9.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lora-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Mastrodonato