ruby-macrodroid 0.9.8 → 0.9.9

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: f79a66c628c78bab4c858805ac6486083331723153022cb23030485701b16eea
4
- data.tar.gz: d2bf06bef9e246852f4ec40a31f267ce2f94b66293318fb82ea864a4d5c15e0e
3
+ metadata.gz: 11509c0f7448ef65211af5a07e3191f4292eecfe6c8aa19d79a520b4aaf04f21
4
+ data.tar.gz: '08960e2e07bf7c467233be373ae1ae8978302122cba7ab6dfca3c5e28cfe7c46'
5
5
  SHA512:
6
- metadata.gz: 00ab9a577c80b81d017ebbb35d3e8a746d1d78ddde05473dd87be5c6a5365a3d7ed83e3501cf0402e3b2919be7dff1fe59f1e12c2f309649b69e3fd99e19824d
7
- data.tar.gz: fa4786c3f3bc343b6e242f5c8abfb6a438edae01df19b623b3d7b27fb610bc4c56f323071ea76890700b6493ede5df714a55f9b2ef619f1c37104832a59d75f8
6
+ metadata.gz: 0dd2c7ef1a69f05eb9eb235aac3a8805522f68731c2f980fd730eb0b34ee15066d23ead4f74c3dbd762fc3bfb31d852bdfb5f637d362a4a4cbe0b4e5de17c338
7
+ data.tar.gz: 2483d3e4901eb5a839ab3c716674f0fbf0fe925bb94bfa99a71ec5803aab0472235be98dd5773bbb5fd57ee7c8c1c77d242d5e7fbcf5f5bb4dfd09580a24f96a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1888,7 +1888,7 @@ class PauseAction < Action
1888
1888
  options = {
1889
1889
  delay_in_milli_seconds: 0, delay_in_seconds: 1, use_alarm: false
1890
1890
  }
1891
- super(h)
1891
+ super(options.merge h)
1892
1892
 
1893
1893
  end
1894
1894
 
@@ -347,13 +347,13 @@ class ActionsNlp
347
347
  [KeepAwakeAction, h]
348
348
  end
349
349
 
350
- get /Keep Device Awake$/i do
350
+ get /(?:Keep Device|stay) Awake$/i do
351
351
  [KeepAwakeAction, {}]
352
352
  end
353
353
 
354
354
  #a: Disable Keep Awake
355
355
  #
356
- get /Disable Keep Awake/i do
356
+ get /Disable Keep Awake|stay awake off/i do
357
357
  [KeepAwakeAction, {enabled: false, screen_option: 0}]
358
358
  end
359
359
 
@@ -376,6 +376,10 @@ class ActionsNlp
376
376
  get /^Set Variable$/i do
377
377
  [SetVariableAction, {}]
378
378
  end
379
+
380
+ get /^wait (\d+) seconds$/i do |seconds|
381
+ [PauseAction, {delay_in_seconds: seconds.to_i}]
382
+ end
379
383
 
380
384
  # -- Screen ------------------------------------------------
381
385
  #
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.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  NZ2kdBIUDnAM24e0/wXdVxg4HnsZbdymxyzMQ4P5pKYcpI6oisBxI37p/Xy+wAg3
36
36
  SBHno3GEuuD8ZWj24IMJpfbp
37
37
  -----END CERTIFICATE-----
38
- date: 2020-10-16 00:00:00.000000000 Z
38
+ date: 2020-10-17 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: glw
metadata.gz.sig CHANGED
Binary file