ruby-macrodroid 0.9.19 → 0.9.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/ruby-macrodroid/actionsnlp.rb +4 -0
- data/lib/ruby-macrodroid/triggers.rb +4 -0
- data/lib/ruby-macrodroid/triggersnlp.rb +5 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02dafd5344cb49f34bc7314f958114e9ae1a2cf90a6f1361db5cfd9359817041
|
4
|
+
data.tar.gz: f84c673798a7d7feea32b9c10f6dfa217b12f89488c318dd31cb5abd35957276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91032bb5d4742e57d702ee1634f1dd99197acb86e75f299a451b486275ae7ef20f1e58c7f3dc992d022d8d5b6b3c0e48c58d58fcc154eeb25ff6752a9bf28301
|
7
|
+
data.tar.gz: b33532780734f52cda1f52b957084d7d4c5d445e76ca4394a3549fce3aa3f70ebbd398e88fe4dd7dfe59c2179313019146c6be142eecd441fe03d1aad7254719
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -215,6 +215,10 @@ class PowerButtonToggleTrigger < Trigger
|
|
215
215
|
super(options.merge h)
|
216
216
|
|
217
217
|
end
|
218
|
+
|
219
|
+
def match?(detail={}, model=nil)
|
220
|
+
@h[:num_toggles] == detail[:num_toggles].to_i
|
221
|
+
end
|
218
222
|
|
219
223
|
def to_s(colour: false)
|
220
224
|
"Power Button Toggle (%s)" % @h[:num_toggles] #+ @h.inspect
|
@@ -19,10 +19,14 @@ class TriggersNlp
|
|
19
19
|
|
20
20
|
# -- Battery/Power ---------------------------------------------
|
21
21
|
|
22
|
-
get
|
22
|
+
get /^Power Button Toggle \((\d)\)/i do |num|
|
23
23
|
[PowerButtonToggleTrigger, {num_toggles: num.to_i}]
|
24
24
|
end
|
25
25
|
|
26
|
+
get /^Power Button (\d) times$/i do |num|
|
27
|
+
[PowerButtonToggleTrigger, {num_toggles: num.to_i}]
|
28
|
+
end
|
29
|
+
|
26
30
|
get /^Power Connected: (Wired \([^\)]+\))/i do |s|
|
27
31
|
|
28
32
|
h = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-macrodroid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
cu2W9lmvKJ505bT8+KLouVOtLlxYZknIB/uIea9r5rrGEJDMdYEYl4ZySFmkvJR4
|
36
36
|
tf7VMFcAy1q1HMyemsBUJk5h
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-10-
|
38
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: glw
|
metadata.gz.sig
CHANGED
Binary file
|