atspi_app_driver 0.9.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: bb91d28ad76d2d3383db14b84db87bdf99d11db5b3d80bc2067250365d332f9d
4
- data.tar.gz: 4913d672e71bf076d138d8113a7c60b4cd5513e9f0e1339c00ad016bf5dad349
3
+ metadata.gz: 6a8d16938183e34d657ac5d76c6f975653f2a2cc82a605033359bea0380b39a7
4
+ data.tar.gz: 0b1df70bb0754549e14df38861e38dfd48d8a4a94bc177a86bf4e126c0099902
5
5
  SHA512:
6
- metadata.gz: 6238cac6d0d26663f856b0d2844ba3bce843a20b3a50cdaf171833f22e13c9e256ac2ca90fe46f5f9b13358fc0adb85bf1605427b5393443261d23942754b344
7
- data.tar.gz: 40da99ca7949f9c3bed8699f2f3ddb545801f1e322752a2e84d62c5fa19c0e997c0a2a55414c54472e61966f321f44c39a41562781da6e544a32c33695d1b0b2
6
+ metadata.gz: 1e69a9ce66553b954840adc834b015e942cad1846c2cb3d94e9587190707b0c2cccbdc383c2c7246b461beed99a72ccc11e0e6f6d2a71a30e77fb17cf4d95dfd
7
+ data.tar.gz: 2fcbaa9e4671afb18c60f92715a7e84a5b0e7187b82b07774badb63d54b48bdf2a23aaa3161b6ed85dcf67b63c67739dc7cbcd90b79660c7582578120b34a760
data/Changelog.md CHANGED
@@ -1,5 +1,23 @@
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
+
11
+ ## 0.10.0 / 2025-02-07
12
+
13
+ * Support Ruby 3.1 through 3.4, dropping support for Ruby 3.0 ([#106] by [mvz])
14
+ * Update `gir_ffi` and `gir_ffi-gtk` dependencies to version 0.18.0 ([#107] by [mvz])
15
+
16
+ [mvz]: https://github.com/mvz
17
+
18
+ [#106]: https://github.com/mvz/atspi_app_driver/pull/106
19
+ [#107]: https://github.com/mvz/atspi_app_driver/pull/107
20
+
3
21
  ## 0.9.0 / 2023-12-31
4
22
 
5
23
  * Drop support for Ruby version 2.7
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.9.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,43 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atspi_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-12-31 00:00:00.000000000 Z
10
+ date: 2025-03-23 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: gir_ffi
13
+ name: gir_ffi-atspi
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 0.17.0
18
+ version: 0.1.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 0.17.0
25
+ version: 0.1.0
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: gir_ffi-gtk
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: 0.17.0
32
+ version: 0.18.0
34
33
  type: :development
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: 0.17.0
39
+ version: 0.18.0
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: minitest
43
42
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +52,19 @@ dependencies:
53
52
  - !ruby/object:Gem::Version
54
53
  version: '5.12'
55
54
  - !ruby/object:Gem::Dependency
56
- name: pry
55
+ name: minitest-focus
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: 0.14.0
60
+ version: '1.4'
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: 0.14.0
67
+ version: '1.4'
69
68
  - !ruby/object:Gem::Dependency
70
69
  name: rake
71
70
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +113,14 @@ dependencies:
114
113
  requirements:
115
114
  - - "~>"
116
115
  - !ruby/object:Gem::Version
117
- version: 0.34.1
116
+ version: 0.37.1
118
117
  type: :development
119
118
  prerelease: false
120
119
  version_requirements: !ruby/object:Gem::Requirement
121
120
  requirements:
122
121
  - - "~>"
123
122
  - !ruby/object:Gem::Version
124
- version: 0.34.1
123
+ version: 0.37.1
125
124
  - !ruby/object:Gem::Dependency
126
125
  name: rubocop-packaging
127
126
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +149,6 @@ dependencies:
150
149
  - - "~>"
151
150
  - !ruby/object:Gem::Version
152
151
  version: '1.18'
153
- description:
154
152
  email:
155
153
  - matijs@matijs.net
156
154
  executables: []
@@ -169,7 +167,6 @@ metadata:
169
167
  source_code_uri: https://github.com/mvz/atspi_app_driver
170
168
  changelog_uri: https://github.com/mvz/atspi_app_driver/blob/master/Changelog.md
171
169
  rubygems_mfa_required: 'true'
172
- post_install_message:
173
170
  rdoc_options: []
174
171
  require_paths:
175
172
  - lib
@@ -177,15 +174,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
174
  requirements:
178
175
  - - ">="
179
176
  - !ruby/object:Gem::Version
180
- version: 3.0.0
177
+ version: 3.1.0
181
178
  required_rubygems_version: !ruby/object:Gem::Requirement
182
179
  requirements:
183
180
  - - ">="
184
181
  - !ruby/object:Gem::Version
185
182
  version: '0'
186
183
  requirements: []
187
- rubygems_version: 3.5.3
188
- signing_key:
184
+ rubygems_version: 3.6.2
189
185
  specification_version: 4
190
186
  summary: Test GirFFI-based applications using Atspi
191
187
  test_files: []