mouse 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ # 1.0.2 - Re-renam
2
+
3
+ * Revert 1.0.1 changes
4
+
1
5
  # 1.0.1 - Rename
2
6
 
3
7
  * Rename mouse.bundle to cmouse.bundle to avoid name conflict
@@ -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 (currently naiveté has a bit of error)
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/cmouse/mouse.c"
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('cmouse', mouse_spec)
38
+ Rake::ExtensionTask.new('mouse', mouse_spec) do |t|
39
+ t.lib_dir = 'lib/mouse'
40
+ end
41
+
@@ -20,4 +20,4 @@ else
20
20
  $CFLAGS << ' -DNOT_MACRUBY'
21
21
  end
22
22
 
23
- create_makefile 'cmouse/cmouse'
23
+ create_makefile 'mouse/mouse'
@@ -1,4 +1,4 @@
1
- #include "mouse.h"
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
- Init_cmouse()
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
- // Mouse.c
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 "mouse.h"
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
@@ -1,5 +1,5 @@
1
1
  //
2
- // Mouse.h
2
+ // Mouser.h
3
3
  // MRMouse
4
4
  //
5
5
  // Created by Mark Rada on 12-03-17.
@@ -1,3 +1,5 @@
1
+ require 'mouse/version'
2
+
1
3
  if RUBY_ENGINE == 'macruby'
2
4
 
3
5
  framework 'AppKit'
@@ -64,4 +66,4 @@ class Array
64
66
  end
65
67
  end
66
68
 
67
- require 'cmouse'
69
+ require 'mouse/mouse'
@@ -1,4 +1,4 @@
1
1
  module Mouse
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
4
4
 
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.1
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-08 00:00:00.000000000 Z
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/cmouse/extconf.rb
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/cmouse/cmouse.c
80
- - ext/cmouse/mouse.c
81
- - ext/cmouse/mouse.h
82
- - ext/cmouse/extconf.rb
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