humble_rpi 0.6.0 → 0.6.1

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: 3e355dcf572c5f74bb2c2750cb82a7396346d708
4
- data.tar.gz: 59f70fc5b67a053a502bda36a2a156c76836ce60
3
+ metadata.gz: 8a7cdf168cfe069f81a5905ed688855dd1357b8c
4
+ data.tar.gz: 1a62569750a6aa71097ccb3187199a554c5496de
5
5
  SHA512:
6
- metadata.gz: 841b4967115f282b176b188078f63c8a8f32b70e7b73fd17027b2dac15012257885dbc908b6f368532f1e6c8dbe32e67d3c66af6901d33f5eeb0b4f35de8f96f
7
- data.tar.gz: 40a387ae359079340697531f94c13ee27446a4dafe27a38570a9845dfb9baa62dbfc6ad130c8537e7ba7d831d03e109b5560ffce469cd84e3971f0b9fb907f9d
6
+ metadata.gz: 58c9a4645888c7102748d9e8ab6fbcd105f43e1f0147339bde3b4ad3a92055e2666bcae87f397fbe20febd3a771b50af4a5cb9cd0bc4a43c733721e3bf41f20b
7
+ data.tar.gz: f57d6ce257df9fef5380f321c415760bdaa7fa94a9b0176472282c0123e5df77e8de1b3cf9597082d776b0f6e24cd0f49801f45f4b9cca1e57b667a1b5060945
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/humble_rpi.rb CHANGED
@@ -22,19 +22,8 @@ class HumbleRPi
22
22
 
23
23
  @device_name, @sps_address, @sps_port = device_name, sps_address, sps_port
24
24
 
25
- @publisher, @subscriber = if sps_address then
26
-
27
- initialize_sps()
28
-
29
- Thread.new do
30
- sp = SPSSubPing.new host: @sps_address, port: @sps_port, \
31
- identifier: 'HumbleRPi/' + device_name
32
- sp.start
33
- end
34
-
35
- else
36
- [DummyNotifier.new, nil]
37
- end
25
+ @publisher, @subscriber = sps_address ? initialize_sps() \
26
+ : [DummyNotifier.new, nil]
38
27
 
39
28
  @plugins = initialize_plugins(plugins || [])
40
29
 
@@ -67,8 +56,16 @@ class HumbleRPi
67
56
  end
68
57
 
69
58
  if @subscriber then
59
+
60
+ Thread.new do
61
+ sp = SPSSubPing.new host: @sps_address, port: @sps_port, \
62
+ identifier: 'HumbleRPi/' + @device_name
63
+ sp.start
64
+ end
65
+
70
66
  topic = "#{@device_name}/output/#"
71
- @subscriber.subscribe topic: topic
67
+ @subscriber.subscribe topic: topic
68
+
72
69
  else
73
70
  loop while true
74
71
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humble_rpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file