atspi_app_driver 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f6aa6006df68dbd1f2f57798957797f0afe094eec900af42bb87488287c59ff
4
- data.tar.gz: 90ef3702a86df5f98f25957650f1773a9e02397b7d80f79a7994ca6760a907b5
3
+ metadata.gz: 6a8d16938183e34d657ac5d76c6f975653f2a2cc82a605033359bea0380b39a7
4
+ data.tar.gz: 0b1df70bb0754549e14df38861e38dfd48d8a4a94bc177a86bf4e126c0099902
5
5
  SHA512:
6
- metadata.gz: 8666e112d84d42a27604a18a91596331b39e13a3319307d1bc48909129dd2115d5ea9d852edd7a631e9fc0558c50219d6db176872ca60b0ad4df49354bc789b9
7
- data.tar.gz: 21fe390a9ec589c3c35ada309f622b43810d98dfe6033f90a59b4af643aedbd136188eda12c74f110e0314846466f735e35384c08cc2dcf0fad32978ea2011d1
6
+ metadata.gz: 1e69a9ce66553b954840adc834b015e942cad1846c2cb3d94e9587190707b0c2cccbdc383c2c7246b461beed99a72ccc11e0e6f6d2a71a30e77fb17cf4d95dfd
7
+ data.tar.gz: 2fcbaa9e4671afb18c60f92715a7e84a5b0e7187b82b07774badb63d54b48bdf2a23aaa3161b6ed85dcf67b63c67739dc7cbcd90b79660c7582578120b34a760
data/Changelog.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1 / 2025-03-23
4
+
5
+ * Depend on GirFFI-Atspi to provide Atspi bindings. This makes overrides from
6
+ that gem available, fixing an incompatibility with newer Atspi GIR data.
7
+ ([#109] by [mvz])
8
+
9
+ [#109]: https://github.com/mvz/atspi_app_driver/pull/109
10
+
3
11
  ## 0.10.0 / 2025-02-07
4
12
 
5
13
  * Support Ruby 3.1 through 3.4, dropping support for Ruby 3.0 ([#106] by [mvz])
6
- * Update gir_ffi and gir_ffi-gtk dependencies to version 0.18.0 ([#107] by [mvz])
14
+ * Update `gir_ffi` and `gir_ffi-gtk` dependencies to version 0.18.0 ([#107] by [mvz])
7
15
 
8
16
  [mvz]: https://github.com/mvz
9
17
 
data/README.md CHANGED
@@ -10,53 +10,58 @@ code in `lib/`.
10
10
 
11
11
  Say, your application is called `foo`. Then, in your tests, do something like this:
12
12
 
13
- require 'atspi_app_driver'
14
-
15
- describe 'The application' do
16
- before do
17
- @driver = AtspiAppDriver.new('foo')
18
-
19
- # This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,
20
- # and focus it.
21
- @driver.boot
22
- end
23
-
24
- it 'does stuff' do
25
- # Fetch the main window's atspi object
26
- frame = @driver.frame
27
-
28
- # You can now interact with the window's objects
29
-
30
- # Select item matching /bar/ from combo box:
31
- box = frame.find_role :combo_box
32
- item = box.find_role :menu_item, /bar/
33
- box.get_action_name(0).must_equal 'press'
34
- box.do_action 0
35
- item.get_action_name(0).must_equal 'click'
36
- item.do_action 0
37
-
38
- # Fetch contents of a text box
39
- textbox = frame.find_role :text
40
- textbox.get_text(0, 100).must_equal 'Foo bar baz'
41
-
42
- # Quit application
43
- menu_item = frame.find_role :menu_item, /Quit/
44
- menu_item.do_action 0
45
-
46
- # Check exit status
47
- status = @driver.cleanup
48
- status.exitstatus.must_equal 0
49
- end
50
-
51
- after do
52
- # Ensure application is cleaned up
53
- @driver.cleanup
54
- end
55
- end
13
+ ```ruby
14
+ require "minitest/autorun"
15
+ require "atspi_app_driver"
16
+
17
+ describe "The application" do
18
+ before do
19
+ @driver = AtspiAppDriver.new("foo")
20
+
21
+ # This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,
22
+ # and focus it.
23
+ @driver.boot
24
+ end
25
+
26
+ it "does stuff" do
27
+ # Fetch the main window's atspi object
28
+ frame = @driver.frame
29
+
30
+ # You can now interact with the window's objects
31
+
32
+ # Select item matching /bar/ from combo box:
33
+ box = frame.find_role :combo_box
34
+ item = box.find_role :menu_item, /bar/
35
+ _(box.get_action_name(0)).must_equal "press"
36
+ box.do_action 0
37
+ _(item.get_action_name(0)).must_equal "click"
38
+ item.do_action 0
39
+
40
+ # Fetch contents of a text box
41
+ textbox = frame.find_role :text
42
+ _(textbox.get_text(0, 100)).must_equal "Foo bar baz"
43
+
44
+ # Quit application
45
+ menu_item = frame.find_role :menu_item, /Quit/
46
+ menu_item.do_action 0
47
+
48
+ # Check exit status
49
+ status = @driver.cleanup
50
+ _(status.exitstatus).must_equal 0
51
+ end
52
+
53
+ after do
54
+ # Ensure application is cleaned up
55
+ @driver.cleanup
56
+ end
57
+ end
58
+ ```
56
59
 
57
60
  ## Installation
58
61
 
59
- gem install atspi_app_driver
62
+ ```
63
+ gem install atspi_app_driver
64
+ ```
60
65
 
61
66
  ## Dependencies
62
67
 
@@ -68,9 +73,11 @@ Corrections are welcome, of course.
68
73
 
69
74
  This should work on Debian unstable.
70
75
 
71
- sudo apt-get install dbus
72
- sudo apt-get install libgirepository1.0-dev gobject-introspection
73
- sudo apt-get install gir1.2-atspi-2.0 libatk-adaptor
76
+ ```
77
+ sudo apt-get install dbus
78
+ sudo apt-get install libgirepository1.0-dev gobject-introspection
79
+ sudo apt-get install gir1.2-atspi-2.0 libatk-adaptor
80
+ ```
74
81
 
75
82
  ### Ubuntu
76
83
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class AtspiAppDriver
4
- VERSION = "0.10.0"
4
+ VERSION = "0.10.1"
5
5
  end
@@ -1,9 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "gir_ffi"
4
-
5
- GirFFI.setup :Atspi
6
- Atspi.load_class :Accessible
3
+ require "gir_ffi-atspi"
7
4
 
8
5
  # Utility monkey-patches for the Atspi::Accessible class
9
6
  module AtspiAccessiblePatches
metadata CHANGED
@@ -1,28 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atspi_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-07 00:00:00.000000000 Z
10
+ date: 2025-03-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
- name: gir_ffi
13
+ name: gir_ffi-atspi
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.18.0
18
+ version: 0.1.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.18.0
25
+ version: 0.1.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: gir_ffi-gtk
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +51,20 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '5.12'
54
+ - !ruby/object:Gem::Dependency
55
+ name: minitest-focus
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.4'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.4'
54
68
  - !ruby/object:Gem::Dependency
55
69
  name: rake
56
70
  requirement: !ruby/object:Gem::Requirement
@@ -99,14 +113,14 @@ dependencies:
99
113
  requirements:
100
114
  - - "~>"
101
115
  - !ruby/object:Gem::Version
102
- version: 0.36.0
116
+ version: 0.37.1
103
117
  type: :development
104
118
  prerelease: false
105
119
  version_requirements: !ruby/object:Gem::Requirement
106
120
  requirements:
107
121
  - - "~>"
108
122
  - !ruby/object:Gem::Version
109
- version: 0.36.0
123
+ version: 0.37.1
110
124
  - !ruby/object:Gem::Dependency
111
125
  name: rubocop-packaging
112
126
  requirement: !ruby/object:Gem::Requirement