delirium 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/delirium/platform/linux/keyboard.rb +3 -12
- data/lib/delirium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e1a34fb756feda33987c63dc5b7b4c4e437b784e22130273286d64b632038f5
|
4
|
+
data.tar.gz: 6fd875bc52f44ceabe85ffc825a37af16a74420a3acfd987e2c45e8fb8d7ef3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87957495d35333b21a5dfbbb2cff92df3c3ce7dfe279e72322d314d0483379ef072fe87a77c327e28f7173f3aff28cffde332eeb4b7474e9e44848205a0f9d8
|
7
|
+
data.tar.gz: d1ed422b67ddefa11da4b68e886c0c68153fb6dd25aec253a70331f7cfc292f96df0838bf8acd9ad0293c20343c2b70bf83264b5e4377e9f44d479ee1983a860
|
data/Gemfile.lock
CHANGED
@@ -3,24 +3,15 @@ module Delirium
|
|
3
3
|
class Linux
|
4
4
|
class Keyboard < Base::Keyboard
|
5
5
|
def key_press(key:)
|
6
|
-
|
7
|
-
when Symbol
|
8
|
-
`xdotool type '#{key}'`
|
9
|
-
end
|
6
|
+
`xdotool type '#{key}'`
|
10
7
|
end
|
11
8
|
|
12
9
|
def key_down(key:)
|
13
|
-
|
14
|
-
when Symbol
|
15
|
-
`xdotool keydown '#{key}'`
|
16
|
-
end
|
10
|
+
`xdotool keydown '#{key}'`
|
17
11
|
end
|
18
12
|
|
19
13
|
def key_up(key:)
|
20
|
-
|
21
|
-
when Symbol
|
22
|
-
`xdotool keyup '#{key}'`
|
23
|
-
end
|
14
|
+
`xdotool keyup '#{key}'`
|
24
15
|
end
|
25
16
|
|
26
17
|
def write(string:)
|
data/lib/delirium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delirium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbot HQ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|