mouse 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +4 -0
- data/Rakefile +2 -2
- data/ext/{mouse/mouse.c → cmouse/cmouse.c} +2 -2
- data/ext/{mouse → cmouse}/extconf.rb +1 -1
- data/ext/{mouse/mouser.c → cmouse/mouse.c} +2 -2
- data/ext/{mouse/mouser.h → cmouse/mouse.h} +1 -1
- data/lib/mouse.rb +1 -1
- data/lib/mouse/version.rb +1 -1
- metadata +6 -6
data/History.markdown
CHANGED
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ CLEAN.include '*.plist', '*.gch'
|
|
5
5
|
|
6
6
|
desc 'Run the Clang static analyzer'
|
7
7
|
task :analyze do
|
8
|
-
sh "clang --analyze ext/mouse
|
8
|
+
sh "clang --analyze ext/cmouse/mouse.c"
|
9
9
|
end
|
10
10
|
|
11
11
|
desc 'Startup an IRb console with Mouse loaded'
|
@@ -35,4 +35,4 @@ task :install => :gem do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
require 'rake/extensiontask'
|
38
|
-
Rake::ExtensionTask.new('
|
38
|
+
Rake::ExtensionTask.new('cmouse', mouse_spec)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#include "
|
1
|
+
#include "mouse.h"
|
2
2
|
#include "ruby.h"
|
3
3
|
|
4
4
|
static VALUE rb_mMouse;
|
@@ -443,7 +443,7 @@ rb_mouse_triple_click(int argc, VALUE *argv, VALUE self)
|
|
443
443
|
}
|
444
444
|
|
445
445
|
void
|
446
|
-
|
446
|
+
Init_cmouse()
|
447
447
|
{
|
448
448
|
// on either supported Ruby, this should be defined by now
|
449
449
|
rb_cCGPoint = rb_const_get(rb_cObject, rb_intern("CGPoint"));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
//
|
2
|
+
// Mouse.c
|
3
3
|
// MRMouse
|
4
4
|
//
|
5
5
|
// Created by Mark Rada on 12-03-17.
|
@@ -7,7 +7,7 @@
|
|
7
7
|
//
|
8
8
|
|
9
9
|
#include <ApplicationServices/ApplicationServices.h>
|
10
|
-
#include "
|
10
|
+
#include "mouse.h"
|
11
11
|
|
12
12
|
static const uint_t FPS = 240;
|
13
13
|
static const uint_t QUANTUM = 1000000 / 240; // should be FPS, but GCC sucks
|
data/lib/mouse.rb
CHANGED
data/lib/mouse/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -71,15 +71,15 @@ description: ! 'mouse is a rich, high level wrapper around OS X CGEvent APIs tha
|
|
71
71
|
email: markrada26@gmail.com
|
72
72
|
executables: []
|
73
73
|
extensions:
|
74
|
-
- ext/
|
74
|
+
- ext/cmouse/extconf.rb
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- lib/mouse/version.rb
|
78
78
|
- lib/mouse.rb
|
79
|
-
- ext/
|
80
|
-
- ext/mouse
|
81
|
-
- ext/mouse
|
82
|
-
- ext/
|
79
|
+
- ext/cmouse/cmouse.c
|
80
|
+
- ext/cmouse/mouse.c
|
81
|
+
- ext/cmouse/mouse.h
|
82
|
+
- ext/cmouse/extconf.rb
|
83
83
|
- Rakefile
|
84
84
|
- README.markdown
|
85
85
|
- History.markdown
|