real-growl 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/real_growl.rb +4 -12
  2. metadata +5 -7
data/lib/real_growl.rb CHANGED
@@ -2,9 +2,9 @@ require 'real_growl_api'
2
2
  require 'pp'
3
3
 
4
4
  module RealGrowl
5
- module ClassMethods
5
+ class<<self
6
6
  attr_accessor :sticky, :priority, :icon
7
-
7
+
8
8
  def growl(*args)
9
9
  self.priority ||= 0
10
10
  self.sticky = true if self.sticky.nil?
@@ -35,17 +35,9 @@ module RealGrowl
35
35
  end
36
36
  end
37
37
 
38
- module InstanceMethods
39
- def rg(*args)
40
- RealGrowl::growl(*args)
41
- end
38
+ def rg(*args)
39
+ RealGrowl::growl(*args)
42
40
  end
43
-
44
- def self.included(receiver)
45
- receiver.send :include, InstanceMethods
46
- end
47
-
48
- extend self::ClassMethods
49
41
  end
50
42
 
51
43
  class Object
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: real-growl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin DeWind
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-30 00:00:00 -04:00
19
- default_executable: realgrowl
18
+ date: 2011-05-31 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: slop
@@ -50,7 +49,6 @@ files:
50
49
  - README.md
51
50
  - bin/realgrowl
52
51
  - ext/extconf.rb
53
- has_rdoc: true
54
52
  homepage: http://github.com/dewind/real-growl
55
53
  licenses: []
56
54
 
@@ -80,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
78
  requirements: []
81
79
 
82
80
  rubyforge_project:
83
- rubygems_version: 1.5.0
81
+ rubygems_version: 1.7.2
84
82
  signing_key:
85
83
  specification_version: 3
86
84
  summary: Growl notification library that was built using native c bindings.