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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59af16dc6f343753d59681d0a13cc206620babc84c0396bce97d5e59017a3558
4
- data.tar.gz: 0ed2d61b4bd9e8092541d582b909eecf2798c1a12ad11d67891da2729149739b
3
+ metadata.gz: ce2bc4bae1fef75c28ea59cb3b7691c32b3e3bf933eebf08342596dfbedf54a1
4
+ data.tar.gz: 83ef9f64f397aa3afdfd0810cd0985c99f65fdbb30c79f348b195f0ba114a29a
5
5
  SHA512:
6
- metadata.gz: fc3fe7aeff65cb2930fdc8309d40da9be4a4668afb12f5378ade1df484b0f843c57801d7a33147c7eeeba46bf5d619fb844b2b287ba09274509c386bd317f78a
7
- data.tar.gz: 6effb5c40dc2a889771d4c58bfe6c24f244a4ceae9d998f115ac1c56cbb90ad52b1054787b6f3fe5bb5780447a6011e373b87994c4b00fabb73db4bb0d42c381
6
+ metadata.gz: 39334c482e475042fb7ddbfecf3cfb428c62285d05fda65c78c1fcad6af53ab9d84e6dfb7a7bd6563149c3c889ffb5c95b6b356847229d366c91ef981f7fba19
7
+ data.tar.gz: 6d5390889608eb0659f2b6e466dada0a8894d0cf481610bc7f9fabec79e551f20ee92c86a3467894338937344e5bf1182a59b25e99233e8e7f1f33ccd6f53ff9
data/lib/boaw/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Boaw
4
- VERSION = '0.0.3'
4
+ VERSION = '0.1.0'
5
5
  end
@@ -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
 
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Xdotool
4
+ # default error
5
+ class BaseError < StandardError
6
+ def message
7
+ 'не удалось инициализировать модуль xdotool'
8
+ end
9
+ end
10
+ end
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.3
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-02 00:00:00.000000000 Z
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: