gnome_app_driver 0.3.1 → 0.3.3

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: a7b95a34fc56c8ccd362498d4af26379b8df067db00afedc5ac25598139e4bca
4
- data.tar.gz: 7eea27a9fc2dffdd2bac6579fb91f7bb45b99c581ad42043402f0e15d8e8b71b
3
+ metadata.gz: 39a619ec23d07246906cdbf8d92f77b443ec3d57dbe4a5bba1db41f01beac258
4
+ data.tar.gz: 97565686b8ababd8138397c56cbbdf5e5dd4b348cd97f1763002676f5c76485b
5
5
  SHA512:
6
- metadata.gz: dd4c110014b268c8efaf7e3bbfbeebca7ecab3e39a177144626a77fe94f2a7c39904f8453d40c5b11b077fc090c06aac0ba0a6856298e8fc5565455f9b44a203
7
- data.tar.gz: 9bc1f5be27e18184d729be763de4fcba80dbac7dc0a84fb6505fe55771546be89eff585e89b2145498f97d0d6e041679b3d080c3ab2df76952ffc3af79d8fe7e
6
+ metadata.gz: bdbf7d9ab215fb8b92bf0932b83fb20e8006f21ce495f2d7330a8cfccd9fcf8be1fbb90b2c6cc5aef673f69bf0878b0d780ae269d5bd968c6b130a94777fb8e8
7
+ data.tar.gz: 3f02377ea8f4c20ac28e460e6bd177af9a90ad14390d41293e4c4412b4215e65bb06ea5f7786072b90ffea47a2918f7bb422ddf0443a907bed7d5eb8dda0c505
data/Changelog.md CHANGED
@@ -1,5 +1,20 @@
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
+
14
+ ## 0.3.2 / 2022-09-02
15
+
16
+ * Loosen dependency on gobject-introspection to allow use with version 4.0
17
+
3
18
  ## 0.3.1 / 2022-01-26
4
19
 
5
20
  * Drop support for Ruby version 2.5
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.1"
4
+ VERSION = "0.3.3"
5
5
  end
metadata CHANGED
@@ -1,43 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnome_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
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-01-26 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: gtk3
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - "~>"
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '3.2'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '5.0'
34
43
  type: :development
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - "~>"
47
+ - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '3.2'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '5.0'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: minitest
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -86,56 +98,56 @@ dependencies:
86
98
  requirements:
87
99
  - - "~>"
88
100
  - !ruby/object:Gem::Version
89
- version: '1.25'
101
+ version: '1.51'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
93
105
  requirements:
94
106
  - - "~>"
95
107
  - !ruby/object:Gem::Version
96
- version: '1.25'
108
+ version: '1.51'
97
109
  - !ruby/object:Gem::Dependency
98
110
  name: rubocop-minitest
99
111
  requirement: !ruby/object:Gem::Requirement
100
112
  requirements:
101
113
  - - "~>"
102
114
  - !ruby/object:Gem::Version
103
- version: 0.17.0
115
+ version: 0.34.1
104
116
  type: :development
105
117
  prerelease: false
106
118
  version_requirements: !ruby/object:Gem::Requirement
107
119
  requirements:
108
120
  - - "~>"
109
121
  - !ruby/object:Gem::Version
110
- version: 0.17.0
122
+ version: 0.34.1
111
123
  - !ruby/object:Gem::Dependency
112
124
  name: rubocop-packaging
113
125
  requirement: !ruby/object:Gem::Requirement
114
126
  requirements:
115
127
  - - "~>"
116
128
  - !ruby/object:Gem::Version
117
- version: 0.5.0
129
+ version: 0.5.1
118
130
  type: :development
119
131
  prerelease: false
120
132
  version_requirements: !ruby/object:Gem::Requirement
121
133
  requirements:
122
134
  - - "~>"
123
135
  - !ruby/object:Gem::Version
124
- version: 0.5.0
136
+ version: 0.5.1
125
137
  - !ruby/object:Gem::Dependency
126
138
  name: rubocop-performance
127
139
  requirement: !ruby/object:Gem::Requirement
128
140
  requirements:
129
141
  - - "~>"
130
142
  - !ruby/object:Gem::Version
131
- version: '1.13'
143
+ version: '1.18'
132
144
  type: :development
133
145
  prerelease: false
134
146
  version_requirements: !ruby/object:Gem::Requirement
135
147
  requirements:
136
148
  - - "~>"
137
149
  - !ruby/object:Gem::Version
138
- version: '1.13'
150
+ version: '1.18'
139
151
  description: 'Driver to test the UI of applications using Ruby-GNOME2 by interacting
140
152
  with them via Atspi.
141
153
 
@@ -171,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
183
  requirements:
172
184
  - - ">="
173
185
  - !ruby/object:Gem::Version
174
- version: 2.6.0
186
+ version: 3.0.0
175
187
  required_rubygems_version: !ruby/object:Gem::Requirement
176
188
  requirements:
177
189
  - - ">="
178
190
  - !ruby/object:Gem::Version
179
191
  version: '0'
180
192
  requirements: []
181
- rubygems_version: 3.3.3
193
+ rubygems_version: 3.5.3
182
194
  signing_key:
183
195
  specification_version: 4
184
196
  summary: Test Ruby-GNOME2 applications using Atspi