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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59af16dc6f343753d59681d0a13cc206620babc84c0396bce97d5e59017a3558
4
- data.tar.gz: 0ed2d61b4bd9e8092541d582b909eecf2798c1a12ad11d67891da2729149739b
3
+ metadata.gz: c45f33a18dfd24179ae9f97206c7ce088a07225baa5952c3660a0899cb1c2e15
4
+ data.tar.gz: b41699d315b601e860b04dd37807e43f2a776e2a6e990e972d9c7ca0c92dda53
5
5
  SHA512:
6
- metadata.gz: fc3fe7aeff65cb2930fdc8309d40da9be4a4668afb12f5378ade1df484b0f843c57801d7a33147c7eeeba46bf5d619fb844b2b287ba09274509c386bd317f78a
7
- data.tar.gz: 6effb5c40dc2a889771d4c58bfe6c24f244a4ceae9d998f115ac1c56cbb90ad52b1054787b6f3fe5bb5780447a6011e373b87994c4b00fabb73db4bb0d42c381
6
+ metadata.gz: f5fe0f13954305411ffec2f8452b7b8e7f55e31020a5775af2e8e002b54554b8d335682cbaff05bb4150d37b7bf93ebf110a6f0411d5f659e42fe37982fbaa54
7
+ data.tar.gz: 59d4518058098aea546202c763954b1f08415854b1859f27ce15349a3ec69e3175811bae5b252d21994160bb2776703d281f4147562553fb852654f812aef77a
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.1'
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
+ 'failed to initialize xdotool module'
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.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-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: