atspi_app_driver 0.1.0 → 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
2
  SHA1:
3
- metadata.gz: 812bfe2274103cd20789da6b67e4ec010a10b00b
4
- data.tar.gz: 781f70c42b81a23bf366be01fca0a499e198e776
3
+ metadata.gz: d96669dfa5f95113fbfda9be3163f59a9ec820fa
4
+ data.tar.gz: ee2a81cf4cac239df5693aa8eefe7e59256a98fd
5
5
  SHA512:
6
- metadata.gz: f282056e3514deae5c6bb776e59670f0cd53038b1369a4c7c819b9ac049443ac41d0fe9384cebf2860bcf47bd73fda0da10a67882eedc23848e13e2ca617a231
7
- data.tar.gz: 25bfdbf41e5c964bb4afa0753a12c05116b5a79fc47c8af7be8262b74136f24996001afc6019efd5c6a408f214f0f87d5f356eb0ae7fb9afd9ac50711410507b
6
+ metadata.gz: f0b4bf649a0a2d588490c7cbac6efa9b4e45bd8f4e83fe625f4108ea9ca1a81034974af27d86542ed10c085dc1b7a72d492d2d379b5f8d37e9dae43206e5f3ae
7
+ data.tar.gz: 25ffcfc815d52b1ef6e6308c514c99344e8a926a60c8237346c03f9e3aa753cb4226ff2599a3b500163d4d09afdc0bf291b304ba4e68b498d0ff63028ddd4ca7
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## 0.2.0 / 2017-11-05
4
+
5
+ * Revert to using GirFFI to provide GLib bindings. Use gnome_app_driver if you
6
+ want to drive a Ruby-GNOME2 application.
7
+
3
8
  ## 0.1.0 / 2017-04-25
4
9
 
5
10
  * Use Ruby-GNOME2 instead of GirFFI to provide GLib bindings
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Atspi App Driver
2
2
 
3
- Test driver for the Atspi-enabled applications. Takes care of boot and
4
- shutdown, and provides a handle on the GUI's main UI frame.
3
+ Test driver for the Atspi-enabled applications using GirFFI. Takes care of boot
4
+ and shutdown, and provides a handle on the GUI's main UI frame.
5
5
 
6
6
  ## Usage
7
7
 
@@ -1,26 +1,7 @@
1
- require 'gobject-introspection'
2
-
3
- module Atspi
4
- class << self
5
- def const_missing(name)
6
- init
7
- if const_defined?(name)
8
- const_get(name)
9
- else
10
- super
11
- end
12
- end
1
+ require 'gir_ffi'
13
2
 
14
- def init
15
- class << self
16
- remove_method(:init)
17
- remove_method(:const_missing)
18
- end
19
- loader = GObjectIntrospection::Loader.new(self)
20
- loader.load('Atspi')
21
- end
22
- end
23
- end
3
+ GirFFI.setup :Atspi
4
+ Atspi.load_class :Accessible
24
5
 
25
6
  # Utility monkey-patches for the Atspi::Accessible class
26
7
  module AtspiAccessiblePatches
@@ -111,7 +92,7 @@ class AtspiAppDriver
111
92
  raise "Frame has unexpected role #{role.inspect}" unless role == :frame
112
93
 
113
94
  wait_for('frame to be focused', 10) do
114
- frame.state_set.contains(Atspi::StateType::ACTIVE)
95
+ frame.get_state_set.get_states.to_a.include? :active
115
96
  end
116
97
 
117
98
  frame
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atspi_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
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-04-25 00:00:00.000000000 Z
11
+ date: 2017-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: gobject-introspection
14
+ name: gir_ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.1
19
+ version: 0.11.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.1.1
26
+ version: 0.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,47 +39,47 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: minitest
42
+ name: gir_ffi-gtk
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.5'
47
+ version: 0.11.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.5'
54
+ version: 0.11.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12.0'
61
+ version: '5.5'
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: '12.0'
68
+ version: '5.5'
69
69
  - !ruby/object:Gem::Dependency
70
- name: gtk3
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.1.1
75
+ version: '12.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.1.1
82
+ version: '12.0'
83
83
  description:
84
84
  email:
85
85
  - matijs@matijs.net
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.6.8
115
+ rubygems_version: 2.6.13
116
116
  signing_key:
117
117
  specification_version: 4
118
- summary: Test GNOME applications using Atspi
118
+ summary: Test GirFFI-based applications using Atspi
119
119
  test_files: []