rpi 0.4.2 → 0.4.3

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: a657cdfcc556de3d6ad6f9242bc23ad53185d919
4
- data.tar.gz: ff956c21e60ee89edb564b0907cd2e6459127c09
3
+ metadata.gz: 400fe526e490dc26beca7fac25949b3e847346be
4
+ data.tar.gz: 3232b29932ee6fee43a92cc0b916a499c3332595
5
5
  SHA512:
6
- metadata.gz: 67758e0fb443bd5118197598e18bdf8503d1354cc37ee3b1217f2ee91284e6ec98c5526eae11e085d986be42f16e3581181e0554af18fdc825f3a6bb4d61fb53
7
- data.tar.gz: c9e72bc6de8ef0f9e883d26bbe1136993fdd95472de8b906408f26b7f32b30ef49f86ec892fbf383b68add8cab9e49a36f0e2e7699487b2f2ca89113286125d5
6
+ metadata.gz: 3ddb6e923d41f450b4c811a90bc4f12292c68b0a0c3142ab755ceb80c9edbf26fa47596fdb71ecaac222c8042bf6ae196265426fa9cbb1f4bacb1ff3bcf4a15a
7
+ data.tar.gz: da35bd4d0b96c95d94da494b1d9e10f2d11a6bbc4621f74215a3f3ec0f926c37ef8a7acc0c90368126072f8a01bf43b9f3fb3643aa5e4c86aeeef1a4f53dfd63
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rpi.rb CHANGED
@@ -27,11 +27,12 @@ class RPi
27
27
  (sleep duration; self.off) if duration
28
28
  end
29
29
 
30
- def off()
30
+ def off(duration=nil)
31
31
 
32
32
  return if self.off?
33
33
  super()
34
34
  @state = :off
35
+ (sleep duration; self.on) if duration
35
36
  end
36
37
 
37
38
  alias high on # opposite of low
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file