boaw 0.0.3 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boaw/version.rb +1 -1
- data/lib/xdotool/adapter.rb +6 -0
- data/lib/xdotool/base_error.rb +10 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c45f33a18dfd24179ae9f97206c7ce088a07225baa5952c3660a0899cb1c2e15
|
4
|
+
data.tar.gz: b41699d315b601e860b04dd37807e43f2a776e2a6e990e972d9c7ca0c92dda53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5fe0f13954305411ffec2f8452b7b8e7f55e31020a5775af2e8e002b54554b8d335682cbaff05bb4150d37b7bf93ebf110a6f0411d5f659e42fe37982fbaa54
|
7
|
+
data.tar.gz: 59d4518058098aea546202c763954b1f08415854b1859f27ce15349a3ec69e3175811bae5b252d21994160bb2776703d281f4147562553fb852654f812aef77a
|
data/lib/boaw/version.rb
CHANGED
data/lib/xdotool/adapter.rb
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'position_parser'
|
4
|
+
require_relative 'base_error'
|
4
5
|
|
5
6
|
module Xdotool
|
6
7
|
# Xdotool adapter for mouse control
|
7
8
|
class Adapter
|
9
|
+
def initialize
|
10
|
+
result = Kernel.system('xdotool')
|
11
|
+
raise BaseError if result.nil?
|
12
|
+
end
|
13
|
+
|
8
14
|
def position
|
9
15
|
output = IO.popen('xdotool getmouselocation', &:read)
|
10
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Leonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The library will allow you to create auto-clickers for Unix systems
|
14
14
|
email: leonov7632@gmail.com
|
@@ -19,6 +19,7 @@ files:
|
|
19
19
|
- lib/boaw.rb
|
20
20
|
- lib/boaw/version.rb
|
21
21
|
- lib/xdotool/adapter.rb
|
22
|
+
- lib/xdotool/base_error.rb
|
22
23
|
- lib/xdotool/position_parser.rb
|
23
24
|
homepage: https://github.com/leonovk/boaw
|
24
25
|
licenses:
|