gnome_app_driver 0.1.2 → 0.2.0

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
- SHA1:
3
- metadata.gz: c6b65ca2e0606b079cdbb7573c3dd4bf91d09eb2
4
- data.tar.gz: 3b2d715bdeba926e5dac22874142f6e8a33d8e98
2
+ SHA256:
3
+ metadata.gz: 286c85113b64f50fc87b95327e7d1c4f646b8792109e1cd030f5a30d81267645
4
+ data.tar.gz: e0defc54a1fb544daf812a1f7f9323c234881c953238ccd23d17ace59638034b
5
5
  SHA512:
6
- metadata.gz: e537ba3fa17179e47560c8c867f16648de1e3e950c5477e24f53bd7e081b670931281e22358ec6e751ad4966c2850d73560a4cf970c36c72fc459bdb76217157
7
- data.tar.gz: d1378bc91adb7ab28a6d9bbe73555cf3671cd1cfae2821b0b37c3c40f122a0e81ede89ccb6e41ed44374fe343868c96c3ab5ed5cb9a22d21eeedb6819c395757
6
+ metadata.gz: 557bc319b548c52ddf78ad73ee8932847c7e20364992e8530d5cd7bc412f37d57ea7b4442bb85f2890b2b1326259f21067c364321fa14391629c71cbff54026b
7
+ data.tar.gz: 2031d28e901b22ad160446d7045430c4946b858c6c501e30ffd9bc49311313160261cbda47b6e6b532b8756b9898f5b967740d757ded30d63c2c95565d51ed81
data/Changelog.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Change log
2
2
 
3
+ ## 0.2.0 / 2018-09-23
4
+
5
+ * Update dependencies
6
+ * Target Ruby 2.3+
7
+ * Fix `#find_role` to handle symbolic role names
8
+
3
9
  ## 0.1.2 / 2017-11-11
4
10
 
5
11
  * Update dependencies
6
12
 
7
13
  ## 0.1.1 / 2017-11-05
8
14
 
9
- * Release Ruby-GNOME2 version under a new name: gnome_app_driver
15
+ * Release Ruby-GNOME2 version under a new name: `gnome_app_driver`
10
16
 
11
17
  ## 0.1.0 / 2017-04-25
12
18
 
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake/clean'
2
4
  require 'bundler/gem_tasks'
3
5
  require 'rake/testtask'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gobject-introspection'
2
4
 
3
5
  # Namespace for Atspi classes.
@@ -17,7 +19,9 @@ module AtspiAccessiblePatches
17
19
  end
18
20
 
19
21
  def find_role(role, regex = //)
22
+ role = Atspi::Role.new role
20
23
  return self if role == self.role && name =~ regex
24
+
21
25
  each_child do |child|
22
26
  result = child.find_role role, regex
23
27
  return result if result
@@ -81,7 +85,7 @@ class GnomeAppDriver
81
85
  def cleanup
82
86
  status = exit_status
83
87
  @pid = nil
84
- @thread.join if @thread
88
+ @thread&.join
85
89
  status
86
90
  end
87
91
 
@@ -127,6 +131,7 @@ class GnomeAppDriver
127
131
  50.times do |num|
128
132
  result = yield
129
133
  break if result
134
+
130
135
  sleep 0.01 * (num + 1)
131
136
  end
132
137
  log "Waited #{Time.now - start} seconds for #{description}"
@@ -135,6 +140,7 @@ class GnomeAppDriver
135
140
 
136
141
  def exit_status
137
142
  return unless @pid
143
+
138
144
  @cleanup = true
139
145
  _, status = Process.wait2 @pid
140
146
  status
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.1.2
4
+ version: 0.2.0
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: 2017-11-11 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gobject-introspection
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: '0'
107
+ version: 2.3.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.6.13
115
+ rubygems_version: 2.7.6
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Test Ruby-GNOME2 applications using Atspi