uinput-keyboard 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uinput/keyboard.rb +1 -1
- data/lib/uinput/keyboard/version.rb +1 -1
- data/test.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8507222ba56fffe3770d1bb1cf2317e0dbf31620
|
4
|
+
data.tar.gz: efd23c31a82e7d9d14f6ef11c126600583989603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa25f055b361bca80bcc339a67ee0c1c89f437bde7e4632831f78cef35a360fc6f772f913c5b26dd09b8f8f9ce9ee348ac2a8ae8fe8e9fb94f869bccae639e26
|
7
|
+
data.tar.gz: 5f537390a47a7cbfa03cf1dbbd27ba7fb381f898027b16cff1da2fab6234811d7a66833bc785b51165c6e93f4c60b289a79b15f07ba3838981e9efbbea7934b7
|
data/lib/uinput/keyboard.rb
CHANGED
@@ -47,7 +47,7 @@ module Uinput
|
|
47
47
|
# out the event chain in chunks rather than in one piece
|
48
48
|
keycodes = []
|
49
49
|
string_to_symbols(string).each_slice(8) do |symbols|
|
50
|
-
keycodes += symbols.
|
50
|
+
keycodes += symbols.map{ |symbol| tap(symbol) }
|
51
51
|
sleep 0.01 # time to breath
|
52
52
|
end
|
53
53
|
keycodes
|
data/test.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
2
|
-
require 'bundler/setup'
|
3
2
|
require 'uinput/keyboard'
|
4
3
|
|
5
4
|
begin
|
@@ -8,8 +7,11 @@ begin
|
|
8
7
|
|
9
8
|
sleep 1
|
10
9
|
|
11
|
-
keyboard.
|
12
|
-
keyboard.
|
10
|
+
puts keyboard.sys_path
|
11
|
+
puts keyboard.dev_path
|
12
|
+
|
13
|
+
puts keyboard.type('date').inspect
|
14
|
+
puts keyboard.tap(:Return).inspect
|
13
15
|
|
14
16
|
#keyboard.type('Ѣ')
|
15
17
|
#('a'..'z').each{ |char| keyboard.tap(char) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uinput-keyboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Aue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|