mouse 1.0.1 → 1.0.2
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 +1 -1
- data/Rakefile +5 -2
- data/ext/{cmouse → mouse}/extconf.rb +1 -1
- data/ext/{cmouse/cmouse.c → mouse/mouse.c} +3 -2
- data/ext/{cmouse/mouse.c → mouse/mouser.c} +2 -2
- data/ext/{cmouse/mouse.h → mouse/mouser.h} +1 -1
- data/lib/mouse.rb +3 -1
- data/lib/mouse/version.rb +1 -1
- metadata +13 -7
data/History.markdown
CHANGED
data/README.markdown
CHANGED
@@ -55,7 +55,7 @@ change in the future if there are enough complaints.
|
|
55
55
|
## TODO
|
56
56
|
|
57
57
|
* Support for mouse gestures
|
58
|
-
* Make animation duration accurate (
|
58
|
+
* Make animation duration accurate (current naiveté has a bit of error)
|
59
59
|
|
60
60
|
## Copyright
|
61
61
|
|
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/
|
8
|
+
sh "clang --analyze ext/mouse/mouser.c"
|
9
9
|
end
|
10
10
|
|
11
11
|
desc 'Startup an IRb console with Mouse loaded'
|
@@ -35,4 +35,7 @@ task :install => :gem do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
require 'rake/extensiontask'
|
38
|
-
Rake::ExtensionTask.new('
|
38
|
+
Rake::ExtensionTask.new('mouse', mouse_spec) do |t|
|
39
|
+
t.lib_dir = 'lib/mouse'
|
40
|
+
end
|
41
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#include "
|
1
|
+
#include "mouser.h"
|
2
2
|
#include "ruby.h"
|
3
3
|
|
4
4
|
static VALUE rb_mMouse;
|
@@ -16,6 +16,7 @@ static
|
|
16
16
|
VALUE
|
17
17
|
rb_mouse_wrap_point(CGPoint point)
|
18
18
|
{
|
19
|
+
// TODO: Data_Wrap_Struct instead
|
19
20
|
#if NOT_MACRUBY
|
20
21
|
return rb_struct_new(rb_cCGPoint, DBL2NUM(point.x), DBL2NUM(point.y));
|
21
22
|
#else
|
@@ -443,7 +444,7 @@ rb_mouse_triple_click(int argc, VALUE *argv, VALUE self)
|
|
443
444
|
}
|
444
445
|
|
445
446
|
void
|
446
|
-
|
447
|
+
Init_mouse()
|
447
448
|
{
|
448
449
|
// on either supported Ruby, this should be defined by now
|
449
450
|
rb_cCGPoint = rb_const_get(rb_cObject, rb_intern("CGPoint"));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
//
|
2
|
+
// Mouser.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 "mouser.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.2
|
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: 2012-12-
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yard
|
@@ -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/mouse/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/
|
81
|
-
- ext/
|
82
|
-
- ext/
|
79
|
+
- ext/mouse/mouse.c
|
80
|
+
- ext/mouse/mouser.c
|
81
|
+
- ext/mouse/mouser.h
|
82
|
+
- ext/mouse/extconf.rb
|
83
83
|
- Rakefile
|
84
84
|
- README.markdown
|
85
85
|
- History.markdown
|
@@ -98,12 +98,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
- - ! '>='
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
|
+
segments:
|
102
|
+
- 0
|
103
|
+
hash: -2445184066854593062
|
101
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
105
|
none: false
|
103
106
|
requirements:
|
104
107
|
- - ! '>='
|
105
108
|
- !ruby/object:Gem::Version
|
106
109
|
version: '0'
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
hash: -2445184066854593062
|
107
113
|
requirements: []
|
108
114
|
rubyforge_project:
|
109
115
|
rubygems_version: 1.8.24
|