accessibility_bridge 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.markdown +4 -0
- data/README.markdown +16 -0
- data/ext/accessibility/bridge/bridge.c +4 -2
- data/lib/accessibility/bridge/version.rb +1 -1
- metadata +3 -3
data/History.markdown
CHANGED
data/README.markdown
CHANGED
@@ -9,6 +9,22 @@ This was extracted from the
|
|
9
9
|
project and is a work-in-progress.
|
10
10
|
|
11
11
|
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
Currently, integrating the bridge into your project is a bit awkward. You
|
15
|
+
will need to add the `accessibility_bridge` gem to your project as a
|
16
|
+
dependency and then also `#include "bridge.c"` from the
|
17
|
+
`ext/accessibility/bridge` directory (by copying the file or creating a
|
18
|
+
git submodule). Finally, you will need to call `Init_bridge()` in the
|
19
|
+
init function for your own C extension.
|
20
|
+
|
21
|
+
You can see how `accessibility_core` does this by inspecting the code in
|
22
|
+
that project.
|
23
|
+
|
24
|
+
Any patches from people who know what they're doing that smooth out this
|
25
|
+
process are welcome.
|
26
|
+
|
27
|
+
|
12
28
|
## Copyright
|
13
29
|
|
14
30
|
Copyright (c)2012, Mark Rada
|
@@ -450,9 +450,11 @@ to_ax(VALUE obj)
|
|
450
450
|
VALUE type = CLASS_OF(obj);
|
451
451
|
if (type == rb_cElement) return unwrap_ref(obj);
|
452
452
|
else if (type == rb_cString) return unwrap_string(obj);
|
453
|
-
else if (type == rb_cStruct) return unwrap_value(obj);
|
454
|
-
else if (type == rb_cRange) return unwrap_value(obj);
|
455
453
|
else if (type == rb_cFixnum) return unwrap_number(obj);
|
454
|
+
else if (type == rb_cCGPoint) return unwrap_value(obj);
|
455
|
+
else if (type == rb_cCGSize) return unwrap_value(obj);
|
456
|
+
else if (type == rb_cCGRect) return unwrap_value(obj);
|
457
|
+
else if (type == rb_cRange) return unwrap_value(obj);
|
456
458
|
else if (type == rb_cFloat) return unwrap_number(obj);
|
457
459
|
else if (type == rb_cTime) return unwrap_date(obj);
|
458
460
|
else if (type == rb_cURI) return unwrap_url(obj);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accessibility_bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
segments:
|
102
102
|
- 0
|
103
|
-
hash:
|
103
|
+
hash: 4551550957669688249
|
104
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
segments:
|
111
111
|
- 0
|
112
|
-
hash:
|
112
|
+
hash: 4551550957669688249
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
115
|
rubygems_version: 1.8.24
|