humble_rpi-plugin-doorlock 0.1.1 → 0.2.0
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 +3 -2
- data.tar.gz.sig +0 -0
- data/lib/humble_rpi-plugin-doorlock.rb +4 -4
- 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: a5c05c07dc50d79f31187c1e50fedea7201555f6
|
|
4
|
+
data.tar.gz: eb4f2ad6c78b6f96d98f343266d36fe4f77f3250
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 574264ca4e4cd648f4c842a6103d795bb4770036b7de52ed27749af4d4758ef4626129cf6680507d833a952fae95adcfb4f538ebba4ed5941681918dc7463138
|
|
7
|
+
data.tar.gz: d3ba767d3d71a6d515fadb1223b8fc6ce5d399c080ea45891c061a28a0de95d577fccfd9d685eac6342b9ef64dda65cab970d8786d3601429a7e4d4612ec7e63
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
k^�c���Zc�O~�Z�d���� ȓ��_��1i��?�|�!i��Zg�@G�1���� r/�w��V���l{��kS8
|
|
2
|
+
��ʩet"L��`9G1O/�*�LӷtPY��J��\չ�ٻ=;��_L��j�7�uƑy�J�2Ҽ$�_aX��Íe���{�&�V��{)��wZ
|
|
3
|
+
��M��H �[���>�m1�łh�X�����_kC���ԇ�
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
# file: humble_rpi-plugin-doorlock.rb
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
require '
|
|
6
|
+
require 'simple_raspberrypi'
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class HumbleRPiPluginDoorLock
|
|
10
10
|
|
|
11
11
|
def initialize(settings: {}, variables: {})
|
|
12
|
-
|
|
13
|
-
@gpio_pins = settings[:pins]
|
|
14
12
|
|
|
13
|
+
@gpio_pins = settings[:pins]
|
|
14
|
+
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def on_doorlock_message(message)
|
|
@@ -43,7 +43,7 @@ class HumbleRPiPluginDoorLock
|
|
|
43
43
|
|
|
44
44
|
def start()
|
|
45
45
|
|
|
46
|
-
@door =
|
|
46
|
+
@door = SimpleRaspberryPi.new(@gpio_pins).pins if @gpio_pins.any?
|
|
47
47
|
|
|
48
48
|
end
|
|
49
49
|
|
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.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
mhEhbImSthM6yo9kwZpZn19VnbgaSyZVO6v3pcIwOWSQuKL+3R9+vI/drlxsu9vv
|
|
32
32
|
JIF0EnNhfAe6Gw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-
|
|
34
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rpi
|
metadata.gz.sig
CHANGED
|
Binary file
|