real-growl 0.3.0 → 0.4.0

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/ext/real_growl_api.c CHANGED
@@ -8,7 +8,7 @@ build_nsstring(VALUE string) {
8
8
  if(string == Qnil) {
9
9
  return nil;
10
10
  } else {
11
- return [NSString stringWithCString:STR2CSTR(string) encoding: NSASCIIStringEncoding];
11
+ return [NSString stringWithCString:StringValuePtr(string) encoding: NSASCIIStringEncoding];
12
12
  }
13
13
  }
14
14
 
data/ext/real_growl_api.h CHANGED
@@ -2,4 +2,10 @@
2
2
  #include "ruby.h"
3
3
  #include <objc/runtime.h>
4
4
  #include <Growl/Growl.h>
5
- #include <Foundation/Foundation.h>
5
+ #include <Foundation/Foundation.h>
6
+
7
+ static NSString* build_nsstring(VALUE string);
8
+ static NSData* get_icon_data(VALUE pathOrUrl);
9
+ static NSAutoreleasePool* create_autorelease_pool();
10
+ static void free_delegate(id delegate);
11
+ static VALUE alloc_delegate(VALUE klass);
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: real-growl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Justin DeWind
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-02-05 00:00:00 -05:00
18
+ date: 2010-09-28 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -29,6 +35,7 @@ files:
29
35
  - ext/ruby_delegate.h
30
36
  - lib/real_growl.rb
31
37
  - README.md
38
+ - ext/extconf.rb
32
39
  has_rdoc: true
33
40
  homepage: http://github.com/dewind/real-growl
34
41
  licenses: []
@@ -39,21 +46,27 @@ rdoc_options:
39
46
  require_paths:
40
47
  - lib
41
48
  required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
42
50
  requirements:
43
51
  - - ">="
44
52
  - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
45
56
  version: "0"
46
- version:
47
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
48
59
  requirements:
49
60
  - - ">="
50
61
  - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
51
65
  version: "0"
52
- version:
53
66
  requirements: []
54
67
 
55
68
  rubyforge_project:
56
- rubygems_version: 1.3.5
69
+ rubygems_version: 1.3.7
57
70
  signing_key:
58
71
  specification_version: 3
59
72
  summary: Growl notification library that uses native c bindings.