atspi_app_driver 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/atspi_app_driver.rb +6 -4
  3. metadata +11 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df63371ac632f75cd2adf3e2d625df3964e92954
4
- data.tar.gz: 7ded8612f8651e44609f6daae615aadd3ebb2ddd
3
+ metadata.gz: 608854c5df464534c8d9dc1493fda99c90b65779
4
+ data.tar.gz: 74057890222b0a99f9fa40e4f756555c20c9618c
5
5
  SHA512:
6
- metadata.gz: 4e1d27313bd4f2bbb7b9f2d518776a32ebe94dc1acdbb269054ff3bde19ee127f5781872e4b45f7310995113cb4173d4fb108e1ea4f2af2360f60ad31e424c6d
7
- data.tar.gz: d3063870266ab9de64f410a618bfb15b37832057accd050f8dff15d09ec58497ca9fe822e99150747e6a99eed310c412039a73ba33fe94dbb8a54ca07dffcc95
6
+ metadata.gz: 663709fb6cdc2b0ccf7ae8923bd5560c8075c4fdc9ed8c81224596be613077adaf2c7aa32178d1ad862868fb9fcdce2ef2be935790e3586238f8a340ed52815f
7
+ data.tar.gz: c339f289dd8ba394484f055a3ffcce64e0b9e23f6a16308f696ed2534bdb2db0ab0859e06729e0c158e2ca7e4b7cd4c045fbcc058b05558f3809a61f9219aa57
@@ -41,6 +41,7 @@ class AtspiAppDriver
41
41
  @pid = nil
42
42
  @verbose = verbose
43
43
  @frame = nil
44
+ @thread = nil
44
45
  end
45
46
 
46
47
  attr_reader :frame
@@ -114,17 +115,18 @@ class AtspiAppDriver
114
115
  nil
115
116
  end
116
117
 
117
- # TODO: User timeout
118
+ # TODO: Use timeout
118
119
  def wait_for(description, _timeout)
119
120
  start = Time.now
121
+ result = nil
120
122
  # Try for 0.01 * 50 * (50 + 1) / 2 = 12.75 seconds
121
- value = 50.times.each do |num|
123
+ 50.times do |num|
122
124
  result = yield
123
- break result if result
125
+ break if result
124
126
  sleep 0.01 * (num + 1)
125
127
  end
126
128
  log "Waited #{Time.now - start} seconds for #{description}"
127
- value
129
+ result
128
130
  end
129
131
 
130
132
  def exit_status
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atspi_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.8.0
20
- - - "<"
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: 0.10.0
19
+ version: 0.9.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.8.0
30
- - - "<"
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 0.10.0
26
+ version: 0.9.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: bundler
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -76,22 +70,16 @@ dependencies:
76
70
  name: gir_ffi-gtk
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: 0.8.0
82
- - - "<"
73
+ - - "~>"
83
74
  - !ruby/object:Gem::Version
84
- version: 0.10.0
75
+ version: 0.9.0
85
76
  type: :development
86
77
  prerelease: false
87
78
  version_requirements: !ruby/object:Gem::Requirement
88
79
  requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: 0.8.0
92
- - - "<"
80
+ - - "~>"
93
81
  - !ruby/object:Gem::Version
94
- version: 0.10.0
82
+ version: 0.9.0
95
83
  description:
96
84
  email:
97
85
  - matijs@matijs.net
@@ -123,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
111
  version: '0'
124
112
  requirements: []
125
113
  rubyforge_project:
126
- rubygems_version: 2.5.0
114
+ rubygems_version: 2.5.1
127
115
  signing_key:
128
116
  specification_version: 4
129
117
  summary: Test GNOME applications using Atspi