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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a2acc0faedbe6d57f2b046746dd185fde0cf3e
4
- data.tar.gz: 63237b2ee8672c9f3b60588fa894f23d861e64db
3
+ metadata.gz: 8507222ba56fffe3770d1bb1cf2317e0dbf31620
4
+ data.tar.gz: efd23c31a82e7d9d14f6ef11c126600583989603
5
5
  SHA512:
6
- metadata.gz: f6a5d69e00cf83ebb14c15ff01716fea7b7e000a9503a949d7b7842242e743a1d5d1e7102ba2aed1b244df883ca643129b88bf03948d116f96f297a590b65b37
7
- data.tar.gz: 11351658ec058f30ac890ea33dd404c9b9c79229142999c22860d750aaec3a5b48b840d9fa22f47f552d654924c141cc7826fa3fa1c2340af996da69bbd96ded
6
+ metadata.gz: aa25f055b361bca80bcc339a67ee0c1c89f437bde7e4632831f78cef35a360fc6f772f913c5b26dd09b8f8f9ce9ee348ac2a8ae8fe8e9fb94f869bccae639e26
7
+ data.tar.gz: 5f537390a47a7cbfa03cf1dbbd27ba7fb381f898027b16cff1da2fab6234811d7a66833bc785b51165c6e93f4c60b289a79b15f07ba3838981e9efbbea7934b7
@@ -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.flat_map{ |symbol| tap(symbol) }
50
+ keycodes += symbols.map{ |symbol| tap(symbol) }
51
51
  sleep 0.01 # time to breath
52
52
  end
53
53
  keycodes
@@ -1,3 +1,3 @@
1
1
  module Uinput
2
- Keyboard_VERSION = "0.1.3"
2
+ Keyboard_VERSION = "0.1.4"
3
3
  end
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.type('date')
12
- keyboard.tap(:Return)
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler