keystroker 0.3.0 → 0.3.1
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/lib/keystroker.rb +11 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: ed142ed5ba422dddc8c4a9da1b8b7820104152906d2ee6ca235f8480754db43d
|
|
4
|
+
data.tar.gz: a01c4006757fec9849011bcc10f2fcc8826c9992bdd52442916548754200bd76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32a045c0ba59e05a84c5ef18496d78767238ee2f5930ed430dcee5a1603441118d36753e509a081a6c53396412c19a00e65cad4dd617dac8060924e57b22302f
|
|
7
|
+
data.tar.gz: 76083e77dff06fdd57370ed8a28b407d0cd0d2266e0dba865b6bd78fffaeb000e9d3ed1a06807900208887fc6bdafbd7d131cb1d9083e0d6b4de150745f0ad80
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/keystroker.rb
CHANGED
|
@@ -99,11 +99,21 @@ class Keystroker
|
|
|
99
99
|
|
|
100
100
|
a = s.strip.lines.map do |line|
|
|
101
101
|
|
|
102
|
-
head,
|
|
102
|
+
head, rawbody = line.chomp.split(/ +/,2)
|
|
103
|
+
body = rawbody ? rawbody.strip : nil
|
|
104
|
+
puts 'head: ' + head.inspect if @debug
|
|
103
105
|
|
|
104
106
|
case head.to_sym
|
|
105
107
|
when :activate
|
|
106
108
|
[:window, {activate: body}]
|
|
109
|
+
when :enter
|
|
110
|
+
[:enter, {}]
|
|
111
|
+
when :sleep
|
|
112
|
+
[:sleep, {duration: body}]
|
|
113
|
+
when :tab
|
|
114
|
+
[:tab, {times: body}]
|
|
115
|
+
when :type
|
|
116
|
+
[:type, {}, body]
|
|
107
117
|
end
|
|
108
118
|
|
|
109
119
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|