gnome_app_driver 0.3.0 → 0.3.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: 0ee50930853f322229cbb62376c1cf7f008665bf908bf9f45eb993d75602f716
4
- data.tar.gz: 0c78c6df67945f1d8626cbf200937b4465bb5b23f93c4936f131974b20e685c5
3
+ metadata.gz: a7b95a34fc56c8ccd362498d4af26379b8df067db00afedc5ac25598139e4bca
4
+ data.tar.gz: 7eea27a9fc2dffdd2bac6579fb91f7bb45b99c581ad42043402f0e15d8e8b71b
5
5
  SHA512:
6
- metadata.gz: dfaa21c9a44c23c38999cb2d387df02d3d2c79c5f7d886fc86eb16e6e2a64ce416f6cd62afeac4cefdd6a7ab80cabb64766b2413f8f861a389fb0c6e8f393650
7
- data.tar.gz: 322f24bc77df2a0fc95c9becc8d59a850e52210bbea05bbd0241a7e11e8592b6c2cef5fb7977a4a274aa55bcac330f5a06431605816148c739aa698e4faf4212
6
+ metadata.gz: dd4c110014b268c8efaf7e3bbfbeebca7ecab3e39a177144626a77fe94f2a7c39904f8453d40c5b11b077fc090c06aac0ba0a6856298e8fc5565455f9b44a203
7
+ data.tar.gz: 9bc1f5be27e18184d729be763de4fcba80dbac7dc0a84fb6505fe55771546be89eff585e89b2145498f97d0d6e041679b3d080c3ab2df76952ffc3af79d8fe7e
data/Changelog.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## 0.3.1 / 2022-01-26
4
+
5
+ * Drop support for Ruby version 2.5
6
+ * Support up to Ruby 3.1
7
+
3
8
  ## 0.3.0 / 2020-11-14
4
9
 
5
10
  * Drop support for Ruby version 2.3 and 2.4
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class GnomeAppDriver
4
+ VERSION = "0.3.1"
5
+ end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "gobject-introspection"
4
+ require "gnome_app_driver/version"
4
5
 
5
6
  # Namespace for Atspi classes.
6
7
  module Atspi
@@ -18,19 +19,20 @@ module AtspiAccessiblePatches
18
19
  end
19
20
  end
20
21
 
21
- def find_role(role, regex = //)
22
- role = Atspi::Role.new role
22
+ # Find an element with the given role and label regex
23
+ def find_role(role_name, regex = //)
24
+ role = Atspi::Role.new role_name
23
25
  return self if role == self.role && name =~ regex
24
26
 
25
27
  each_child do |child|
26
- result = child.find_role role, regex
28
+ result = child.find_role role_name, regex
27
29
  return result if result
28
30
  end
29
31
  nil
30
32
  end
31
33
 
32
34
  def inspect_recursive(level = 0, maxlevel = 5)
33
- puts "#{' ' * level} > name: #{name}; role: #{role}"
35
+ puts "#{" " * level} > name: #{name}; role: #{role}"
34
36
  each_child do |child|
35
37
  child.inspect_recursive(level + 1) unless level >= maxlevel
36
38
  end
@@ -71,7 +73,7 @@ class GnomeAppDriver
71
73
  end
72
74
 
73
75
  def spawn_process(arguments)
74
- command = "ruby -I#{@lib_dir} #{@app_file} #{arguments.join(' ')}"
76
+ command = "ruby -I#{@lib_dir} #{@app_file} #{arguments.join(" ")}"
75
77
  log "About to spawn: `#{command}`"
76
78
  @pid = Process.spawn command
77
79
  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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-14 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.13.1
61
+ version: 0.14.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.13.1
68
+ version: 0.14.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.0
89
+ version: '1.25'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.3.0
96
+ version: '1.25'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-minitest
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.10.1
103
+ version: 0.17.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.10.1
110
+ version: 0.17.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-packaging
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.8.0
131
+ version: '1.13'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.8.0
138
+ version: '1.13'
139
139
  description: 'Driver to test the UI of applications using Ruby-GNOME2 by interacting
140
140
  with them via Atspi.
141
141
 
@@ -152,6 +152,7 @@ files:
152
152
  - LICENSE
153
153
  - README.md
154
154
  - lib/gnome_app_driver.rb
155
+ - lib/gnome_app_driver/version.rb
155
156
  homepage: http://www.github.com/mvz/ruby-gnome2_app_driver
156
157
  licenses:
157
158
  - LGPL-2.1+
@@ -159,7 +160,8 @@ metadata:
159
160
  homepage_uri: http://www.github.com/mvz/ruby-gnome2_app_driver
160
161
  source_code_uri: https://github.com/mvz/ruby-gnome2_app_driver
161
162
  changelog_uri: https://github.com/mvzruby-gnome2_app_driver/blob/master/Changelog.md
162
- post_install_message:
163
+ rubygems_mfa_required: 'true'
164
+ post_install_message:
163
165
  rdoc_options:
164
166
  - "--main"
165
167
  - README.md
@@ -169,15 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
171
  requirements:
170
172
  - - ">="
171
173
  - !ruby/object:Gem::Version
172
- version: 2.5.0
174
+ version: 2.6.0
173
175
  required_rubygems_version: !ruby/object:Gem::Requirement
174
176
  requirements:
175
177
  - - ">="
176
178
  - !ruby/object:Gem::Version
177
179
  version: '0'
178
180
  requirements: []
179
- rubygems_version: 3.1.2
180
- signing_key:
181
+ rubygems_version: 3.3.3
182
+ signing_key:
181
183
  specification_version: 4
182
184
  summary: Test Ruby-GNOME2 applications using Atspi
183
185
  test_files: []