accessibility_core 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.markdown +6 -0
- data/ext/accessibility/bridge/bridge.h +1 -4
- data/ext/accessibility/core/core.c +1 -1
- data/ext/accessibility/extras/extras.c +2 -2
- data/ext/accessibility/highlighter/highlighter.c +6 -6
- data/ext/accessibility/screen_shooter/screen_shooter.c +4 -4
- data/lib/accessibility/bridge/mri.rb +1 -1
- data/lib/accessibility/core/version.rb +1 -1
- data/test/helper.rb +1 -1
- metadata +19 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bf68757a9f58ea43f2e17b6ffa12f5a8b833ecc
|
4
|
+
data.tar.gz: c5b06387125c13ef1c1e49b7c1d4ad182df2e937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172afb698780322a76aa0b269235b7b2e3e475789392a8822424fb5e2e1117a8509234f45c35fc26ee55469bc4e613a68e7f8c24253e52615d807927002eecc3
|
7
|
+
data.tar.gz: c14a2e8dae6fa5e2f02a8809c300121909110badc5b80a0db9b6297d1622b9717a8d77f678d3107b236bf467828944076ed2d377612ed1be359e77cc486bf51f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.markdown
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 0.7.0 - Fix building on Sierra
|
2
|
+
|
3
|
+
* Update deprecated constant uses (@asterix23)
|
4
|
+
* Update some documentation for Ruby 2.4
|
5
|
+
* Update test environment for Xcode 8.2 on macOS Sierra
|
6
|
+
|
1
7
|
# 0.6.2 - Fix building on The Captain
|
2
8
|
|
3
9
|
* Update AXValue constants for OS X 10.11 changes (@fjwagner)
|
@@ -1,5 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#define ACCESSIBILITY_BRIDGE
|
1
|
+
#pragma once
|
3
2
|
|
4
3
|
#include "ruby.h"
|
5
4
|
#import <Cocoa/Cocoa.h>
|
@@ -169,5 +168,3 @@ VALUE wrap_array_data(CFArrayRef const array);
|
|
169
168
|
VALUE wrap_array_nsdata(NSArray* const array);
|
170
169
|
CFDataRef unwrap_data(const VALUE data);
|
171
170
|
NSData* unwrap_nsdata(const VALUE data);
|
172
|
-
|
173
|
-
#endif
|
@@ -67,7 +67,7 @@ handle_error(VALUE self, const AXError code)
|
|
67
67
|
if (app)
|
68
68
|
rb_raise(rb_eRuntimeError,
|
69
69
|
"accessibility messaging failure. "
|
70
|
-
"Perhaps the application is busy
|
70
|
+
"Perhaps the application is busy or unresponsive?");
|
71
71
|
else
|
72
72
|
rb_raise(rb_eRuntimeError,
|
73
73
|
"application for pid=%d is no longer running. "
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
#include "../bridge/bridge.h"
|
4
4
|
|
5
|
-
#import <IOKit/
|
5
|
+
#import <IOKit/IOKitLib.h>
|
6
6
|
#import <IOKit/ps/IOPowerSources.h>
|
7
7
|
#import <IOKit/ps/IOPSKeys.h>
|
8
8
|
#import <IOKit/pwr_mgt/IOPMLib.h>
|
@@ -786,7 +786,7 @@ Init_extras()
|
|
786
786
|
WORKSPACE_CONST("NSWorkspaceLaunchWithoutAddingToRecents", NSWorkspaceLaunchWithoutAddingToRecents);
|
787
787
|
WORKSPACE_CONST("NSWorkspaceLaunchWithoutActivation", NSWorkspaceLaunchWithoutActivation);
|
788
788
|
WORKSPACE_CONST("NSWorkspaceLaunchAsync", NSWorkspaceLaunchAsync);
|
789
|
-
//Classic workspace settings deprecated in 10.11
|
789
|
+
//Classic workspace settings deprecated in 10.11
|
790
790
|
#ifndef MAC_OS_X_VERSION_10_11
|
791
791
|
WORKSPACE_CONST("NSWorkspaceLaunchAllowingClassicStartup", NSWorkspaceLaunchAllowingClassicStartup);
|
792
792
|
WORKSPACE_CONST("NSWorkspaceLaunchPreferringClassic", NSWorkspaceLaunchPreferringClassic);
|
@@ -16,7 +16,7 @@ static VALUE timeout_key;
|
|
16
16
|
|
17
17
|
static
|
18
18
|
VALUE
|
19
|
-
wrap_window(NSWindow* window)
|
19
|
+
wrap_window(NSWindow* const window)
|
20
20
|
{
|
21
21
|
return Data_Wrap_Struct(rb_cHighlighter, NULL, objc_finalizer, (void*)window);
|
22
22
|
}
|
@@ -32,7 +32,7 @@ unwrap_window(VALUE window)
|
|
32
32
|
|
33
33
|
static
|
34
34
|
VALUE
|
35
|
-
wrap_color(NSColor* color)
|
35
|
+
wrap_color(NSColor* const color)
|
36
36
|
{
|
37
37
|
return Data_Wrap_Struct(rb_cColor, NULL, objc_finalizer, (void*)color);
|
38
38
|
}
|
@@ -66,7 +66,7 @@ rb_highlighter_new(int argc, VALUE* argv, VALUE self)
|
|
66
66
|
const CGRect bounds = flip(unwrap_rect(coerce_to_rect(argv[0])));
|
67
67
|
NSWindow* const window =
|
68
68
|
[[NSWindow alloc] initWithContentRect:NSRectFromCGRect(bounds)
|
69
|
-
styleMask:
|
69
|
+
styleMask:NSWindowStyleMaskBorderless
|
70
70
|
backing:NSBackingStoreBuffered
|
71
71
|
defer:true];
|
72
72
|
|
@@ -97,10 +97,10 @@ rb_highlighter_new(int argc, VALUE* argv, VALUE self)
|
|
97
97
|
NUM2LL(rb_timeout) * NSEC_PER_SEC
|
98
98
|
);
|
99
99
|
dispatch_after(
|
100
|
-
|
101
|
-
|
100
|
+
timeout,
|
101
|
+
dispatch_get_main_queue(),
|
102
102
|
^(void) { [window close]; }
|
103
|
-
|
103
|
+
);
|
104
104
|
}
|
105
105
|
}
|
106
106
|
|
@@ -10,9 +10,9 @@ rb_ss_take_shot(__unused const VALUE self, const VALUE rbrect, const VALUE path)
|
|
10
10
|
{
|
11
11
|
NSString* const ns_path =
|
12
12
|
[[NSString alloc] initWithBytesNoCopy:RSTRING_PTR(path)
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
length:RSTRING_LEN(path)
|
14
|
+
encoding:NSUTF8StringEncoding
|
15
|
+
freeWhenDone:NO];
|
16
16
|
|
17
17
|
CGRect rect = unwrap_rect(rbrect);
|
18
18
|
if (rect.size.width < 0 || rect.size.height < 0)
|
@@ -28,7 +28,7 @@ rb_ss_take_shot(__unused const VALUE self, const VALUE rbrect, const VALUE path)
|
|
28
28
|
[[NSBitmapImageRep alloc] initWithCGImage:image];
|
29
29
|
|
30
30
|
NSData* const data = [rep representationUsingType:NSPNGFileType
|
31
|
-
|
31
|
+
properties:@{}];
|
32
32
|
|
33
33
|
const VALUE result =
|
34
34
|
[data writeToFile:ns_path atomically:NO] ? Qtrue : Qfalse;
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accessibility_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rada
|
@@ -12,25 +12,25 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDAptYXJr
|
14
14
|
cmFkYTI2MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNj
|
15
|
-
|
15
|
+
b20wHhcNMTYwNDA1MjI0MzM0WhcNMTcwNDA1MjI0MzM0WjBBMRMwEQYDVQQDDApt
|
16
16
|
YXJrcmFkYTI2MRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
FgNjb20wggEiMA0G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IMvWdL0Zui8wCw==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
34
34
|
dependencies: []
|
35
35
|
description: |
|
36
36
|
accessibility_core is a wrapper around the OS X Accessibility framework.
|
@@ -79,7 +79,7 @@ files:
|
|
79
79
|
- test/helper.rb
|
80
80
|
homepage: https://github.com/AXElements/accessibility_core
|
81
81
|
licenses:
|
82
|
-
- BSD
|
82
|
+
- BSD-3-Clause
|
83
83
|
metadata: {}
|
84
84
|
post_install_message:
|
85
85
|
rdoc_options: []
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.6.8
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: A library for building automation tools on OS X
|
metadata.gz.sig
CHANGED
Binary file
|