rpi_pinin_msgout 0.3.2 → 0.3.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: 0d1095126e173737b717d57e3514f89f23d409b6
4
- data.tar.gz: 9009595b20d5a36f8e80f8bed02d0e60d7fd95fa
3
+ metadata.gz: e3fff19560683cc7f664fef15bc32896dc03b165
4
+ data.tar.gz: 90706d663044c876dae04f455ac5d8a78e97c225
5
5
  SHA512:
6
- metadata.gz: 9d132eb56781615e3201a2bae1c66db13360eb3dba89c945a81b38a61c0eff673491449db6e531c0860b01db00490c95f8d398fdd7cf7b54e0903690a567d26e
7
- data.tar.gz: 12047a8f41faa24315604060cc8a2760415ab7700521310c483df2615986064ddd2890cac392f777ef6c349a550291f0575d919584f2498809a0a4969464e4c9
6
+ metadata.gz: decf2fdab59440cc6189855b99150372bf6394ee35dcacaa154da9893dae8f6c7470ec04e6e20f6876c3234caaa318bc4f465382e5f2e65c92a60ea1ee78ce02
7
+ data.tar.gz: 59a59828b01ef78191cb72336eaa6ceb623743b8c71066ffbec751b3c0741f8689cfe44e4c59c1906ec20d4a0005dd1961895946655efe980fcee1907c655b37
checksums.yaml.gz.sig CHANGED
Binary file
@@ -52,6 +52,7 @@ class RPiPinInMsgOut < RPiPinIn
52
52
  @mode, @verbose, @notifier, @duration = mode, verbose, notifier, duration
53
53
  @capture_rate, @descriptor = capture_rate, descriptor
54
54
  @topic = [device_id, subtopic, index].join('/')
55
+ @old_state = 'up'
55
56
 
56
57
  end
57
58
 
@@ -62,6 +63,18 @@ class RPiPinInMsgOut < RPiPinIn
62
63
  button_setup do |state|
63
64
  default_mode() if state == HIGH
64
65
  end
66
+
67
+ elsif @mode == :downup
68
+
69
+ button_setup do |raw_state|
70
+
71
+ state = raw_state == HIGH ? 'down' : 'up'
72
+ next if state == @old_state
73
+
74
+ @notifier.notice "%s: button %s" % [@topic, state]
75
+ @old_state = state
76
+
77
+ end
65
78
 
66
79
  elsif @mode == :secretknock
67
80
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpi_pinin_msgout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MDQxODIwMjIwM1oXDTE3MDQxODIwMjIwM1owSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE3MDQyMzE0MDgwMFoXDTE4MDQyMzE0MDgwMFowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAKzo2LbAB4YZY4rzmlMLUORqIGisj1k26aZM09nS1wQ9qTGNLUoDE/fieoNx
19
- ZUx95sp+KbpiUxtD1b8VOB/hNEsES6laO5V4DVg9Eb4UCH0QQygQs+iHId5SC16K
20
- yjr9dC1GR+XxwL+C+pBt+B3xSDREscXvgqXp+pBM3dwZJe+FPwRUGQMpRqYQd4RN
21
- TaDcIt8NXr5Izx3ao6CMrQRaU3Ce8jv5Bcfv41LkQNeR6JI0UAuPGw9G8tyIPZ2q
22
- 1aingrSPcBylj+yt3S39C0BH79EldTIZpE62L554KIz57c6gyslZ2D0sCs+Qtfpl
23
- axSOBQn1oIDTvAicPZ0hCC7k4gMCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
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YW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAalLcmLYe
27
+ j5bG/+JSqvhTi1iMPcwUa/czKOUqD8fV9QqQ9jlXzSwnlTw/ewp96twzCtjOrvHC
28
+ VwyaNKD6ZRXiWgqvvwWgknrsP4CPE9rh8C2HC9gx3j+L4HmEibWcew/1+0HM0+8T
29
+ L8HPr2swQB0TjEdYcq+qbC8GmzzvXxYfzALeR2f1ZGVIDZ/7VBHvo5HfrM6HHnq4
30
+ bHqtkTsm3/ijTMveqmbwPbgzfXvXcEzdBD5lXMS5CrNTGOHOvn8SjjmoxVwZLIiv
31
+ /QWZvLXLPa7OQNk3073tdTJpg7UikQHoJfARvTOkJRUdVj1SKcKKZYkhBT94JX0N
32
+ Qsb+l0B03acbnw==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-10-31 00:00:00.000000000 Z
34
+ date: 2017-04-23 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rpi_pinin
@@ -134,7 +134,7 @@ dependencies:
134
134
  - !ruby/object:Gem::Version
135
135
  version: 0.1.2
136
136
  description:
137
- email: james@r0bertson.co.uk
137
+ email: james@jamesrobertson.eu
138
138
  executables: []
139
139
  extensions: []
140
140
  extra_rdoc_files: []
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.5.1
163
+ rubygems_version: 2.6.8
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Returns meaningful messages for humans from the capture of a Raspberry PI
metadata.gz.sig CHANGED
Binary file