osxhotkey 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/Rakefile +2 -1
  3. data/ext/extconf.rb +2 -2
  4. data/ext/osxhotkey.c +9 -0
  5. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.2 / 2006-11-18
2
+
3
+ * Universal Binary
4
+
1
5
 
2
6
  == 0.0.1 / 2006-11-13
3
7
 
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ DESCRIPTION = "HotKey integration with Ruby/Cocoa"
15
15
  RUBYFORGE_PROJECT = "osxhotkey"
16
16
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
17
17
  BIN_FILES = %w( )
18
- VERS = "0.0.1"
18
+ VERS = "0.0.2"
19
19
 
20
20
 
21
21
  NAME = "osxhotkey"
@@ -96,6 +96,7 @@ Rake::RDocTask.new do |rdoc|
96
96
  else
97
97
  rdoc.rdoc_files.include('README', 'CHANGELOG')
98
98
  rdoc.rdoc_files.include('lib/**/*.rb')
99
+ rdoc.rdoc_files.include('ext/**/*.c')
99
100
  end
100
101
  end
101
102
 
data/ext/extconf.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
3
  require 'mkmf'
4
- $CFLAGS << " -framework Carbon "
5
- $LDFLAGS << " -framework Carbon "
4
+ $CFLAGS << " -framework Carbon -arch ppc -arch i386 "
5
+ $LDFLAGS << " -framework Carbon -arch ppc -arch i386 "
6
6
  create_makefile 'osxhotkey'
7
7
 
data/ext/osxhotkey.c CHANGED
@@ -13,6 +13,9 @@ rhk_alloc(VALUE klass) {
13
13
  return Data_Wrap_Struct(klass, 0, -1, ptr);
14
14
  }
15
15
 
16
+ /*
17
+ * Create Hotkey instance with keyCode and modifiers.
18
+ */
16
19
  static VALUE
17
20
  rhk_initialize(VALUE self, VALUE keyCode, VALUE modifiers) {
18
21
  rb_ivar_set(self, rb_intern("@keyCode"), keyCode);
@@ -21,6 +24,9 @@ rhk_initialize(VALUE self, VALUE keyCode, VALUE modifiers) {
21
24
  return Qnil;
22
25
  }
23
26
 
27
+ /*
28
+ * Register self as OSX hotkey.
29
+ */
24
30
  static VALUE
25
31
  rhk_register(VALUE self) {
26
32
  static UInt32 _id = 0;
@@ -54,6 +60,9 @@ rhk_register(VALUE self) {
54
60
  return INT2NUM((unsigned int)hotKeyRef);
55
61
  }
56
62
 
63
+ /*
64
+ * Unregister self from OSX hotkeys.
65
+ */
57
66
  static VALUE
58
67
  rhk_unregister(VALUE self) {
59
68
  struct rhk* ptr;
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: osxhotkey
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2006-11-14 00:00:00 +09:00
6
+ version: 0.0.2
7
+ date: 2006-11-19 00:00:00 +09:00
8
8
  summary: HotKey integration with Ruby/Cocoa
9
9
  require_paths:
10
10
  - lib