humble_rpi 0.6.2 → 0.6.3

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: 5ffdfa5b1856d9b677acaa738dc04e241b65f5fc
4
- data.tar.gz: b288e9256b2ad0772acabe3a1ab2755ababf2024
3
+ metadata.gz: e0ce85d5465d3b0971d0717179dd4838d2a66784
4
+ data.tar.gz: 69e436ad69cfe1fe6f4c1d938acef2de8002d383
5
5
  SHA512:
6
- metadata.gz: 0529c2c23c93ad08118d894f75afd8e0fcc1a7bb27daa00d4cf5f187ab90aa03caa7f53e895daa15a5fec4ee8dd1c92d4dc1094a9e8bf46cef20bed7b8d4475b
7
- data.tar.gz: a44c927c22c111d1b5208ac3d0c73e35527dffbcb8f5d60a52ada5cbe5fa664e269bf8ff8ba9992b5ead31bae3e5c349888fadbf636fab5830f0338c9d166efb
6
+ metadata.gz: 6d31f55c64d49221c80fd2d54031ca8da3fca2b761463043a63c7dfebb15cd4161c02a0f01604788f5f89402d0699547024acd7c7ac6dfa21fc203dbdffebea5
7
+ data.tar.gz: 1c381951f6d523c1266049102c8635767f949bb1426368ad1647cb4b547dd62030f4793b5739efcff1d8dedefbeb1ca7c089e6b5eaf59af13333f6cd1bba1cc8
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/humble_rpi.rb CHANGED
@@ -27,6 +27,17 @@ class HumbleRPi
27
27
  : [DummyNotifier.new, nil]
28
28
 
29
29
  @plugins = initialize_plugins(plugins || [])
30
+
31
+ at_exit do
32
+
33
+ @plugins.each do |x|
34
+ if x.respond_to? :on_exit then
35
+ puts 'stopping ' + x.inspect
36
+ Thread.new { x.on_exit() }
37
+ end
38
+ end
39
+
40
+ end
30
41
 
31
42
  end
32
43
 
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.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  999CZL08Zqxa+1DKwhW/XqeiQ9eIZ+1fLAK+XbAKgv6ghNYEPtZLUFiD73uUbsKd
32
32
  sBqeV1LF1yKYmA==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-06-27 00:00:00.000000000 Z
34
+ date: 2015-08-06 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sps-pub
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.4.6
103
+ rubygems_version: 2.4.8
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Controls components wired in through the Raspberry Pi's GPIO pins. see the
metadata.gz.sig CHANGED
Binary file