atspi_app_driver 0.0.7 → 0.1.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: a2589445f17e24065330ffa62169bd1dbb75f812
4
- data.tar.gz: 47e5affa9e818b14a791b07c3a52af3a75433eec
3
+ metadata.gz: 812bfe2274103cd20789da6b67e4ec010a10b00b
4
+ data.tar.gz: 781f70c42b81a23bf366be01fca0a499e198e776
5
5
  SHA512:
6
- metadata.gz: a7fb9279aaa1dced578e8fb06e679cef3a3f26c1a4d57ee8371f0ec769c8a74b356bed0069dd1ce2da850a7a9b83a2e95ba622a5c3eedb78a16de151915e7f74
7
- data.tar.gz: e760104806ba2e625f429285a60e214b951792d98bd7992e48b173107a72e6e4a0fe3f7756830d5a16929d1fcc6d070085049dc4e8419faaa2f15ebf63a1df65
6
+ metadata.gz: f282056e3514deae5c6bb776e59670f0cd53038b1369a4c7c819b9ac049443ac41d0fe9384cebf2860bcf47bd73fda0da10a67882eedc23848e13e2ca617a231
7
+ data.tar.gz: 25bfdbf41e5c964bb4afa0753a12c05116b5a79fc47c8af7be8262b74136f24996001afc6019efd5c6a408f214f0f87d5f356eb0ae7fb9afd9ac50711410507b
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 0.1.0 / 2017-04-25
4
+
5
+ * Use Ruby-GNOME2 instead of GirFFI to provide GLib bindings
6
+
3
7
  ## 0.0.7 / 2016-10-16
4
8
 
5
9
  * Depend on GirFFI 0.11.x
data/README.md CHANGED
@@ -88,5 +88,5 @@ on GitHub.
88
88
 
89
89
  ## License
90
90
 
91
- Copyright © 2015 [Matijs van Zuijlen](http://www.matijs.net).
91
+ Copyright © 2015-2017 [Matijs van Zuijlen](http://www.matijs.net).
92
92
  See LICENSE for details.
@@ -1,7 +1,26 @@
1
- require 'gir_ffi'
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
2
13
 
3
- GirFFI.setup :Atspi
4
- Atspi.load_class :Accessible
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
5
24
 
6
25
  # Utility monkey-patches for the Atspi::Accessible class
7
26
  module AtspiAccessiblePatches
@@ -92,7 +111,7 @@ class AtspiAppDriver
92
111
  raise "Frame has unexpected role #{role.inspect}" unless role == :frame
93
112
 
94
113
  wait_for('frame to be focused', 10) do
95
- frame.get_state_set.get_states.to_a.include? :active
114
+ frame.state_set.contains(Atspi::StateType::ACTIVE)
96
115
  end
97
116
 
98
117
  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.0.7
4
+ version: 0.1.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: 2016-10-16 00:00:00.000000000 Z
11
+ date: 2017-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: gir_ffi
14
+ name: gobject-introspection
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 3.1.1
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: 0.11.0
26
+ version: 3.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '11.1'
61
+ version: '12.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: '11.1'
68
+ version: '12.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: gir_ffi-gtk
70
+ name: gtk3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.11.0
75
+ version: 3.1.1
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: 0.11.0
82
+ version: 3.1.1
83
83
  description:
84
84
  email:
85
85
  - matijs@matijs.net
@@ -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.5.1
115
+ rubygems_version: 2.6.8
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Test GNOME applications using Atspi