humble_rpi-plugin-doorlock 0.1.0 → 0.1.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/humble_rpi-plugin-doorlock.rb +5 -5
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75e8d1331c7d91cebc66929eee1a70cd3dcb447e
|
|
4
|
+
data.tar.gz: 1a75a7ca86272cc9828185cdd32fdca17aeb746a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 023093b4b3744288211b1532cded35867079de1f032943a117285efd2638e44776dce4a9444553746edfa970c867cf9370329b8567f97007e0fa27634abdc703
|
|
7
|
+
data.tar.gz: ad72829456bd467b908b0c139173fbea7764c03923251f48be981fade088902426e07acb9362471e6396dd638bf3c4ec409c196d41dc43ff295eb0d1a87c6261
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -28,13 +28,13 @@ class HumbleRPiPluginDoorLock
|
|
|
28
28
|
a = case state
|
|
29
29
|
|
|
30
30
|
when 'open'
|
|
31
|
-
[:unlock]
|
|
31
|
+
[:unlock, duration]
|
|
32
32
|
when 'unlock'
|
|
33
|
-
[:unlock]
|
|
33
|
+
[:unlock, duration]
|
|
34
34
|
when 'close'
|
|
35
|
-
[:lock]
|
|
35
|
+
[:lock, duration]
|
|
36
36
|
when 'lock'
|
|
37
|
-
[:lock]
|
|
37
|
+
[:lock, duration]
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
@door[index.to_i].send(*a)
|
|
@@ -53,4 +53,4 @@ class HumbleRPiPluginDoorLock
|
|
|
53
53
|
@door.on_exit
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
end
|
|
56
|
+
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-plugin-doorlock
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -83,5 +83,5 @@ rubyforge_project:
|
|
|
83
83
|
rubygems_version: 2.4.8
|
|
84
84
|
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
|
-
summary:
|
|
86
|
+
summary: Lock or unlock a door using this plugin with the HumbleRPi gem
|
|
87
87
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|