boaw 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/boaw/version.rb +1 -1
- data/lib/boaw.rb +6 -0
- data/lib/xdotool/adapter.rb +1 -1
- data/lib/xdotool/base_error.rb +1 -1
- data/lib/xdotool/position_parser.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9589def0d4516ac5801dc064a63f2cad6c432e481fef3a72536a75aa69063f65
|
4
|
+
data.tar.gz: 5439b451e676f20a13030e8173c5ed8e6f4b59376c7063ef0d22aed7a4eafcfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a45a798a136f4dd088e72cde60e7d71b5ac8ee270ced625036262083d55930d21ca8f2550ed29cdf8d4184c3912238c19bff5ff847558ef948da2d22312412f
|
7
|
+
data.tar.gz: 5447984fcc6c9cf7019ccaac42e9c4c8b56fce35e20e5cc9e785d0d4c787323c643b7c8ae5a9af4cfa713e1e8a48119c7697163a6a419d874e906f8d420e6eb5
|
data/lib/boaw/version.rb
CHANGED
data/lib/boaw.rb
CHANGED
@@ -8,14 +8,20 @@ class Boaw
|
|
8
8
|
@adapter = Xdotool::Adapter.new
|
9
9
|
end
|
10
10
|
|
11
|
+
# method returns the current cursor position
|
12
|
+
# { :x => 1, :y =>2 }
|
11
13
|
def position
|
12
14
|
adapter.position
|
13
15
|
end
|
14
16
|
|
17
|
+
# clicks with the left mouse button,
|
18
|
+
# takes the position coordinates as input
|
15
19
|
def left_click(position)
|
16
20
|
adapter.left_click(position)
|
17
21
|
end
|
18
22
|
|
23
|
+
# clicks with the right mouse button,
|
24
|
+
# takes the position coordinates as input
|
19
25
|
def right_click(position)
|
20
26
|
adapter.right_click(position)
|
21
27
|
end
|
data/lib/xdotool/adapter.rb
CHANGED
data/lib/xdotool/base_error.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.3
|
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-17 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
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
|
-
rubygems_version: 3.4.
|
46
|
+
rubygems_version: 3.4.22
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: Mouse manipulation library
|