real-growl 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/realgrowl +4 -4
  2. metadata +4 -4
data/bin/realgrowl CHANGED
@@ -5,9 +5,9 @@ require 'real_growl'
5
5
  require 'slop'
6
6
 
7
7
  slop = Slop.new(:strict => true, :help => true) do
8
- on :s, :sticky, "Sticky notification. Default is true", :default => true
9
- on :t, :title, "Title", :optional => false
10
- on :d, :description, "Description", :optional => false
8
+ on :s, :sticky, "Sticky notification"
9
+ on :t, :title, "Title", true
10
+ on :d, :description, "Description", :optional => true
11
11
  on :i, :icon, "Icon URL or Path", :optional => true, :default => RealGrowl::icon
12
12
  on :p, :priority, "Priority. Default is 0", :optional => true, :default => 0
13
13
  on :a, :app, "Application Name. Default is RealGrowl", :optional => true, :default => "RealGrowl"
@@ -25,7 +25,7 @@ begin
25
25
  if RealGrowl.running?
26
26
  args = {}
27
27
  slop.to_hash.each { |k, v| args[k.to_sym] = v }
28
- app = RealGrowl::Application.new(args[:app])
28
+ app = RealGrowl::Application.new(args.delete(:app))
29
29
  app.notify args
30
30
  else
31
31
  puts "It appears Growl is either not installed or is has been stopped."
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin DeWind
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-31 00:00:00 Z
18
+ date: 2011-06-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slop