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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9677a292bd62f495a05517ffe806a641162898c569593958b384eca88e324cc6
4
- data.tar.gz: bf2880b33915470196346af62909bac5ca7b55e4ae51bd3d0ea4cbc3814c23e9
3
+ metadata.gz: 8e1a34fb756feda33987c63dc5b7b4c4e437b784e22130273286d64b632038f5
4
+ data.tar.gz: 6fd875bc52f44ceabe85ffc825a37af16a74420a3acfd987e2c45e8fb8d7ef3b
5
5
  SHA512:
6
- metadata.gz: b1c10cc1ec01d11e636dc05f66ece6dc0c1701947c3c12f696fd262fb3b134252c7745777a0c4198200523bfb52ba1190946156b98d2a00f0a4a8ab20a63cce2
7
- data.tar.gz: bbf905256ddff51353b759dc9529dd3caa6c609126eb46988c4830886111cae419e94d94934333a6842b8741cc4d609ae050fd1982c67c2e85986701102ec51b
6
+ metadata.gz: d87957495d35333b21a5dfbbb2cff92df3c3ce7dfe279e72322d314d0483379ef072fe87a77c327e28f7173f3aff28cffde332eeb4b7474e9e44848205a0f9d8
7
+ data.tar.gz: d1ed422b67ddefa11da4b68e886c0c68153fb6dd25aec253a70331f7cfc292f96df0838bf8acd9ad0293c20343c2b70bf83264b5e4377e9f44d479ee1983a860
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- delirium (0.2.1)
4
+ delirium (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,24 +3,15 @@ module Delirium
3
3
  class Linux
4
4
  class Keyboard < Base::Keyboard
5
5
  def key_press(key:)
6
- case key
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
- case key
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
- case key
21
- when Symbol
22
- `xdotool keyup '#{key}'`
23
- end
14
+ `xdotool keyup '#{key}'`
24
15
  end
25
16
 
26
17
  def write(string:)
@@ -1,3 +1,3 @@
1
1
  module Delirium
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.1
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: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2019-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler