boaw 0.0.3 → 0.1.0
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: ce2bc4bae1fef75c28ea59cb3b7691c32b3e3bf933eebf08342596dfbedf54a1
|
4
|
+
data.tar.gz: 83ef9f64f397aa3afdfd0810cd0985c99f65fdbb30c79f348b195f0ba114a29a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39334c482e475042fb7ddbfecf3cfb428c62285d05fda65c78c1fcad6af53ab9d84e6dfb7a7bd6563149c3c889ffb5c95b6b356847229d366c91ef981f7fba19
|
7
|
+
data.tar.gz: 6d5390889608eb0659f2b6e466dada0a8894d0cf481610bc7f9fabec79e551f20ee92c86a3467894338937344e5bf1182a59b25e99233e8e7f1f33ccd6f53ff9
|
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.0
|
4
|
+
version: 0.1.0
|
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:
|