rpi_pinin_msgout 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: 9a53543d5ddf5e419ce50b8fe96107d4f54b7574
4
- data.tar.gz: 2badc2608d013ccc5f51523bb073ba38fa2da788
3
+ metadata.gz: 0d1095126e173737b717d57e3514f89f23d409b6
4
+ data.tar.gz: 9009595b20d5a36f8e80f8bed02d0e60d7fd95fa
5
5
  SHA512:
6
- metadata.gz: 3f9881d5b36c1ee87129a517f7487ad23af3ed2d28779e1d529e87f7aee3a1c1b93ca46af3c1f1bb1b27a795ad5997abb6f401f906d6b0f15100b26a5e4bb377
7
- data.tar.gz: af31cbaf470651b135ba04460c7ed641bde0218418bdaad2efcc3eeede0e6c0f73ab4c7311f3713d28514b68a2344c47ad47f1b61cf2a779d468c46e23b42cd6
6
+ metadata.gz: 9d132eb56781615e3201a2bae1c66db13360eb3dba89c945a81b38a61c0eff673491449db6e531c0860b01db00490c95f8d398fdd7cf7b54e0903690a567d26e
7
+ data.tar.gz: 12047a8f41faa24315604060cc8a2760415ab7700521310c483df2615986064ddd2890cac392f777ef6c349a550291f0575d919584f2498809a0a4969464e4c9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -35,6 +35,10 @@ end
35
35
 
36
36
 
37
37
  class RPiPinInMsgOut < RPiPinIn
38
+
39
+
40
+ HIGH = 1
41
+ LOW = 0
38
42
 
39
43
  # duration: Used by sample mode
40
44
 
@@ -123,7 +127,7 @@ class RPiPinInMsgOut < RPiPinIn
123
127
  self.watch do |state|
124
128
 
125
129
  name = state.to_i == 1 ? :on_keydown : :on_keyup
126
- external.method(name).call
130
+ external.method(name).call if external
127
131
 
128
132
  puts Time.now.to_s + ': ' + state.to_s if @verbose
129
133
 
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.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
  55qRY75k9VJA2GfpeY0Nw/6IyHSZ2JFdwtTDZPKQpT69gVGu7XJlquG9lUMQaNc+
32
32
  2CuqDKVQmWkNHg==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-04-21 00:00:00.000000000 Z
34
+ date: 2016-10-31 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rpi_pinin
@@ -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.4.8
163
+ rubygems_version: 2.5.1
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