humble_rpi-plugin-magneticswitch 0.3.1 → 0.3.2

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: 39803a831996ad98dfb92a77dc83ade5a507a794
4
- data.tar.gz: 449d5f6f18364666c9aeb6c60a5dd6fc20ab986e
3
+ metadata.gz: 4f93e31e7fe1dd1962ab02968574853887dea8fc
4
+ data.tar.gz: 241df2b0e4b43730875fe4aa0cc7ea32f9d27405
5
5
  SHA512:
6
- metadata.gz: f742502cf5a026513f28e0fbc70a3f7b330b683ffb4d76fd3b70dbf2ccabb7b85a5d1cac3f3bd6e8de02526a2b429b8be9cf5d30765e958c4bd30b7e8528fc7c
7
- data.tar.gz: a3a2d5c677cfa7872ee421ae984ea361a14ac1a70b28866183c59fab98a0b2fc5f3756d6466ef61ff778c38edcd74d4d33472649c03c951c5cdaa0f618afdc96
6
+ metadata.gz: d1eec4f17c5f9ddf5a3a591446a55686b3b905f35bb000ebb0c4ff0841246112e0270bea517e607e8a1637e35fdf2a2186090148c7ba6d9e6ee63c69c169f7d5
7
+ data.tar.gz: ba413a41188a2bf0c3012d97ca67b9acb5a4c8e875e18e68a2df46c7a3c85d7cd7a084c91143a2b5c9a3284975a3b76b65f1b799509bf47415e30d94673e3d90
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ��ǎ�,�K�;cC6!ϡy0�n[�=����e2[R�؅
2
- J5\�c/l��Ŕ?۷�p�k��ǝ����DQı��(H�x�C�@pL��^)E�
3
- ���/{��Vϼ�Щ� �Ia �B�K��'���>9^��1��t�(��S�ֻ��=�Jmv�C����"�ߓP�n��ah�
1
+ S[BH��??�I-<:�(6k^֏u�fQz�>�;�䲭8H�s�;1u��p�NE]c
@@ -18,7 +18,7 @@ class HumbleRPiPluginMagneticSwitch
18
18
  def initialize(settings: {}, variables: {})
19
19
 
20
20
  @nc = settings[:nc] || true
21
- @pins = settings[:pins].map {|x| RPiPinIn.new x, pull: :up}
21
+ @pins = settings[:pins].map {|x| RPiPinIn.new x, pull: settings[:pull]}
22
22
  @notifier = variables[:notifier]
23
23
  @device_id = variables[:device_id] || 'pi'
24
24
 
@@ -32,7 +32,6 @@ class HumbleRPiPluginMagneticSwitch
32
32
  nc = @nc
33
33
 
34
34
  puts 'ready to detect magnetic switches'
35
-
36
35
 
37
36
  @pins.each.with_index do |pin, i|
38
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humble_rpi-plugin-magneticswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  bPWFwNbEi9CiEPveT/uvh62PLy8oXqUUvXHHxIjvpQICBlT6wc8vkY+Lz86rQ+xY
32
32
  nKxNwaysAN6TFg==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-12-15 00:00:00.000000000 Z
34
+ date: 2016-12-18 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rpi_pinin
metadata.gz.sig CHANGED
Binary file