mac-robot 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/ext/event_dispatcher/event_dispatcher.m +4 -0
- data/lib/mac-robot.rb +7 -0
- data/mac-robot.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
@@ -16,6 +16,8 @@ VALUE createInstance() {
|
|
16
16
|
return Data_Wrap_Struct(rb_cEventDispatcher, 0, cEventDispatcher_free, obj);
|
17
17
|
}
|
18
18
|
|
19
|
+
// https://developer.apple.com/library/mac/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/doc/uid/TP40003550-CH3g-C016985
|
20
|
+
// XXX: support right button and center button
|
19
21
|
CGEventType getEventTypeFromValue(VALUE value)
|
20
22
|
{
|
21
23
|
const char *typeStr;
|
@@ -29,6 +31,8 @@ CGEventType getEventTypeFromValue(VALUE value)
|
|
29
31
|
type = kCGEventLeftMouseUp;
|
30
32
|
} else if(strcmp(typeStr, "mouse_move") == 0) {
|
31
33
|
type = kCGEventMouseMoved;
|
34
|
+
} else if(strcmp(typeStr, "mouse_drag") == 0) {
|
35
|
+
type = kCGEventLeftMouseDragged;
|
32
36
|
} else {
|
33
37
|
type = kCGEventNull;
|
34
38
|
}
|
data/lib/mac-robot.rb
CHANGED
data/mac-robot.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "mac-robot"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["youpy"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-03-06"
|
13
13
|
s.description = "A Library to Automate User Interactions"
|
14
14
|
s.email = "youpy@buycheapviagraonlinenow.com"
|
15
15
|
s.extensions = ["ext/event_dispatcher/extconf.rb", "ext/util/extconf.rb"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mac-robot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
segments:
|
105
105
|
- 0
|
106
|
-
hash:
|
106
|
+
hash: 76449113198307385
|
107
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|