gnome_app_driver 0.3.2 → 0.3.3

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: 994d254c191d22a73bfac301b0099a02c066e1c8caab77548fb0675d8f1f77fd
4
- data.tar.gz: 8e32401c6763b98db599c65d33a47f06903fb5f5d74134428f4629f2fdb1239a
3
+ metadata.gz: 39a619ec23d07246906cdbf8d92f77b443ec3d57dbe4a5bba1db41f01beac258
4
+ data.tar.gz: 97565686b8ababd8138397c56cbbdf5e5dd4b348cd97f1763002676f5c76485b
5
5
  SHA512:
6
- metadata.gz: ce775f2b03a59782e5bbb8c83120dd2e4333930acde9680f1a574a002d984f82666c01ee8f97f4b18f0b82b68cd240f68b0ab7e6860bd8b29e1a004e74cd6397
7
- data.tar.gz: 794b23d81491b6902aa061a7c63c3ace597cace2a3ae735b43daca82cefe297090945c65e4c33eb786f7e9ca4c96fda30eca58e22641f23dd23f7226734c2728
6
+ metadata.gz: bdbf7d9ab215fb8b92bf0932b83fb20e8006f21ce495f2d7330a8cfccd9fcf8be1fbb90b2c6cc5aef673f69bf0878b0d780ae269d5bd968c6b130a94777fb8e8
7
+ data.tar.gz: 3f02377ea8f4c20ac28e460e6bd177af9a90ad14390d41293e4c4412b4215e65bb06ea5f7786072b90ffea47a2918f7bb422ddf0443a907bed7d5eb8dda0c505
data/Changelog.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change log
2
2
 
3
+ ## 0.3.3 / 2024-01-05
4
+
5
+ * Support Ruby 3.0 through 3.3, dropping support for 2.6 and 2.7
6
+ ([#77], [#78] and [#92] by [mvz])
7
+
8
+ [mvz]: https://github.com/mvz
9
+
10
+ [#77]: https://github.com/mvz/gnome_app_driver/pull/77
11
+ [#78]: https://github.com/mvz/gnome_app_driver/pull/78
12
+ [#92]: https://github.com/mvz/gnome_app_driver/pull/92
13
+
3
14
  ## 0.3.2 / 2022-09-02
4
15
 
5
16
  * Loosen dependency on gobject-introspection to allow use with version 4.0
data/README.md CHANGED
@@ -10,77 +10,62 @@ 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 'gnome_app_driver'
14
-
15
- describe 'The application' do
16
- before do
17
- @driver = GnomeAppDriver.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 'gnome_app_driver'
15
+
16
+ describe 'The application' do
17
+ before do
18
+ @driver = GnomeAppDriver.new('foo')
19
+
20
+ # This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,
21
+ # and focus it.
22
+ @driver.boot
23
+ end
24
+
25
+ it 'does stuff' do
26
+ # Fetch the main window's atspi object
27
+ frame = @driver.frame
28
+
29
+ # You can now interact with the window's objects
30
+
31
+ # Select item matching /bar/ from combo box:
32
+ box = frame.find_role :combo_box
33
+ item = box.find_role :menu_item, /bar/
34
+ box.get_action_name(0).must_equal 'press'
35
+ box.do_action 0
36
+ item.get_action_name(0).must_equal 'click'
37
+ item.do_action 0
38
+
39
+ # Fetch contents of a text box
40
+ textbox = frame.find_role :text
41
+ textbox.get_text(0, 100).must_equal 'Foo bar baz'
42
+
43
+ # Quit application
44
+ menu_item = frame.find_role :menu_item, /Quit/
45
+ menu_item.do_action 0
46
+
47
+ # Check exit status
48
+ status = @driver.cleanup
49
+ status.exitstatus.must_equal 0
50
+ end
51
+
52
+ after do
53
+ # Ensure application is cleaned up
54
+ @driver.cleanup
55
+ end
56
+ end
57
+ ```
56
58
 
57
59
  ## Installation
58
60
 
59
- gem install gnome_app_driver
61
+ ```
62
+ gem install gnome_app_driver
63
+ ```
60
64
 
61
65
  ## Dependencies
62
66
 
63
- Ruby-GNOME2 App Driver needs atspi's GIR data, and needs to be able to interact with
64
- the application via atspi and atk. The below are suggested packages to install.
65
- Corrections are welcome, of course.
66
-
67
- ### Debian
68
-
69
- This should work on Debian unstable.
70
-
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
74
-
75
- ### Ubuntu
76
-
77
- Please try the instructions for Debian. This will probably not work on Ubuntu
78
- 12.04. Again, corrections and additions are welcome.
79
-
80
- ### Other OS
81
-
82
- To be determined. Please contribute back your experience in getting Ruby-GNOME2 App
83
- Driver working on your favorite operation system.
67
+ Ruby-GNOME2 App Driver depends on the `gobject-introspection` gem. It also
68
+ requires Ruby 3.0 or higher.
84
69
 
85
70
  ## Contributing
86
71
 
@@ -89,5 +74,5 @@ on GitHub.
89
74
 
90
75
  ## License
91
76
 
92
- Copyright © 2015-2017 [Matijs van Zuijlen](http://www.matijs.net).
77
+ Copyright © 2015-2024 [Matijs van Zuijlen](http://www.matijs.net).
93
78
  See LICENSE for details.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GnomeAppDriver
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnome_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -98,28 +98,28 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '1.34'
101
+ version: '1.51'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.34'
108
+ version: '1.51'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rubocop-minitest
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: 0.21.0
115
+ version: 0.34.1
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: 0.21.0
122
+ version: 0.34.1
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: rubocop-packaging
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -140,14 +140,14 @@ dependencies:
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '1.13'
143
+ version: '1.18'
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '1.13'
150
+ version: '1.18'
151
151
  description: 'Driver to test the UI of applications using Ruby-GNOME2 by interacting
152
152
  with them via Atspi.
153
153
 
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: 2.6.0
186
+ version: 3.0.0
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - ">="
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.3.7
193
+ rubygems_version: 3.5.3
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Test Ruby-GNOME2 applications using Atspi