hidg0 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/hidg0.rb +5 -5
- 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: 3bf6314f9fe04eeefce8367864c999d16625cac651d054f26aa4b23f402b08dc
|
|
4
|
+
data.tar.gz: 1834df905ca2ee89c5559e186133f5d1dcdfad36720711a0f22a30729215b3c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 945dd7aa6b22e441b8a4205b96b5db0a346c55bd66bd346b256e5e9760ff1fd48a0eb61b47ba3133ef609df52f7735622d5b5fd451990ccd6598a63ae5f34e57
|
|
7
|
+
data.tar.gz: fc26f3a9f94654e8773f5abac98ec06051c5478ce4732ba52944952c4ccf65108db5a37606d89e18d671560b80c272f74a7e3e32a5c8e5f86ebfbaa3e2b75238
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/hidg0.rb
CHANGED
|
@@ -320,7 +320,7 @@ class HidG0
|
|
|
320
320
|
|
|
321
321
|
end
|
|
322
322
|
|
|
323
|
-
def sendkeys(s)
|
|
323
|
+
def sendkeys(s, duration: @duration)
|
|
324
324
|
|
|
325
325
|
# current keymapping is for en-gb
|
|
326
326
|
|
|
@@ -331,7 +331,7 @@ class HidG0
|
|
|
331
331
|
|
|
332
332
|
if x.length == 1 and x[0] != '{' then
|
|
333
333
|
|
|
334
|
-
keypress x, duration:
|
|
334
|
+
keypress x, duration: duration
|
|
335
335
|
|
|
336
336
|
else
|
|
337
337
|
|
|
@@ -341,7 +341,7 @@ class HidG0
|
|
|
341
341
|
|
|
342
342
|
if instruction =~ /\*\s*\d+/ then
|
|
343
343
|
key, n = instruction.split('*',2)
|
|
344
|
-
n.to_i.times {keypress(key, duration:
|
|
344
|
+
n.to_i.times {keypress(key, duration: duration) }
|
|
345
345
|
next
|
|
346
346
|
end
|
|
347
347
|
|
|
@@ -371,13 +371,13 @@ class HidG0
|
|
|
371
371
|
|
|
372
372
|
if key =~ /sleep/ then
|
|
373
373
|
|
|
374
|
-
seconds = key[/(?<=sleep )\d+(?:\.\d+)
|
|
374
|
+
seconds = key[/(?<=sleep )\d+(?:\.\d+)?/]
|
|
375
375
|
puts ('sleeping for ' + seconds + 'seconds').info if @debug
|
|
376
376
|
sleep seconds.to_f
|
|
377
377
|
|
|
378
378
|
else
|
|
379
379
|
|
|
380
|
-
keypress key, duration:
|
|
380
|
+
keypress key, duration: duration
|
|
381
381
|
end
|
|
382
382
|
end
|
|
383
383
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hidg0
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
PwTg5+TqjQvWRfpf4tDWra3/fS6sXSuA4aoh28J3YpuAS2upGYuCk61X4iEDYerh
|
|
36
36
|
INwakAqcXQ4/4DC0SoRunSvJ
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2019-04-
|
|
38
|
+
date: 2019-04-09 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: c32
|
metadata.gz.sig
CHANGED
|
Binary file
|