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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5b0e328f9ba62c9217cfc9dcce286b3d450953d77eef32ba00c7fd1bf07d3d7
4
- data.tar.gz: d8e6c46d8fc8b4a3185ab9b1a0da3a6937e1aabf43a152e6c238b1187455c0db
3
+ metadata.gz: 02dafd5344cb49f34bc7314f958114e9ae1a2cf90a6f1361db5cfd9359817041
4
+ data.tar.gz: f84c673798a7d7feea32b9c10f6dfa217b12f89488c318dd31cb5abd35957276
5
5
  SHA512:
6
- metadata.gz: 11f4918c738e8e42d78f0d5acc2b04994b45848d5d56010dc6c3f89f6c1a05ea24166cd95aaeca736a09d2b0990874cbdfdd8dba8f9548d999e5c50bae2e9dba
7
- data.tar.gz: '09d9a30e0c8799ae2cb68acccc3d505a6f8cbe04a6206c28d0584e2b3f16b26b92b394ea24f137bfb576b8df5574a50aed3d32a09b03fe311e4427ddfab7bd3f'
6
+ metadata.gz: 91032bb5d4742e57d702ee1634f1dd99197acb86e75f299a451b486275ae7ef20f1e58c7f3dc992d022d8d5b6b3c0e48c58d58fcc154eeb25ff6752a9bf28301
7
+ data.tar.gz: b33532780734f52cda1f52b957084d7d4c5d445e76ca4394a3549fce3aa3f70ebbd398e88fe4dd7dfe59c2179313019146c6be142eecd441fe03d1aad7254719
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -255,6 +255,10 @@ class ActionsNlp
255
255
  [OpenWebPageAction, {key => s}]
256
256
  end
257
257
 
258
+ get /(https?:\/\/[^$]+)$/i do |url|
259
+ [OpenWebPageAction, {url_to_open: url}]
260
+ end
261
+
258
262
  #
259
263
  get /^WebHook \(Url\)/i do
260
264
  [OpenWebPageAction, {}]
@@ -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 /Power Button Toggle \((\d)\)/i do |num|
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.19
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-26 00:00:00.000000000 Z
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