karl-growl 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -8,6 +8,7 @@ lib/growl/images/ok.png
8
8
  lib/growl/images/warning.png
9
9
  lib/growl/version.rb
10
10
  lib/growl/notify/growlnotify
11
+ lib/growl/notify/growlnotify-original
11
12
  lib/growl/notify/growlnotify.com
12
13
  lib/growl.rb
13
14
  Manifest
data/growl.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{growl}
5
- s.version = "1.0.3"
5
+ s.version = "1.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk, Karl O'Keeffe"]
9
9
  s.date = %q{2009-07-17}
10
10
  s.description = %q{growlnotify bindings}
11
11
  s.email = %q{tj@vision-media.ca}
12
- s.extra_rdoc_files = ["lib/growl/growl.rb", "lib/growl/images/error.png", "lib/growl/images/info.png", "lib/growl/images/ok.png", "lib/growl/images/warning.png", "lib/growl/version.rb", "lib/growl/notify/growlnotify", "lib/growl/notify/growlnotify.com", "lib/growl.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
13
- s.files = ["examples/growl.rb", "growl.gemspec", "History.rdoc", "lib/growl/growl.rb", "lib/growl/images/error.png", "lib/growl/images/info.png", "lib/growl/images/ok.png", "lib/growl/images/warning.png", "lib/growl/version.rb", "lib/growl/notify/growlnotify", "lib/growl/notify/growlnotify.com", "lib/growl.rb", "Manifest", "Rakefile", "README.rdoc", "spec/fixtures/icon.icns", "spec/fixtures/image.png", "spec/growl_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
12
+ s.extra_rdoc_files = ["lib/growl/growl.rb", "lib/growl/images/error.png", "lib/growl/images/info.png", "lib/growl/images/ok.png", "lib/growl/images/warning.png", "lib/growl/version.rb", "lib/growl/notify/growlnotify", "lib/growl/notify/growlnotify-original", "lib/growl/notify/growlnotify.com", "lib/growl.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
13
+ s.files = ["examples/growl.rb", "growl.gemspec", "History.rdoc", "lib/growl/growl.rb", "lib/growl/images/error.png", "lib/growl/images/info.png", "lib/growl/images/ok.png", "lib/growl/images/warning.png", "lib/growl/version.rb", "lib/growl/notify/growlnotify", "lib/growl/notify/growlnotify-original", "lib/growl/notify/growlnotify.com", "lib/growl.rb", "Manifest", "Rakefile", "README.rdoc", "spec/fixtures/icon.icns", "spec/fixtures/image.png", "spec/growl_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
14
14
  s.homepage = %q{http://github.com/visionmedia/growl}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Growl", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
data/lib/growl/growl.rb CHANGED
@@ -1,7 +1,6 @@
1
1
 
2
2
  module Growl
3
3
 
4
- BIN = 'growlnotify'
5
4
  PACKAGED_BIN = File.expand_path(File.dirname(__FILE__) + '/notify/growlnotify')
6
5
 
7
6
  #--
@@ -58,13 +57,9 @@ module Growl
58
57
  # Execute +args+ against the binary.
59
58
 
60
59
  def self.exec *args
61
- bin = existing_install? ? BIN : PACKAGED_BIN
62
-
60
+ bin = PACKAGED_BIN
63
61
  bin += '.com' if is_windows?
64
-
65
- puts bin
66
- puts *args
67
-
62
+
68
63
  Kernel.system bin, *args
69
64
  end
70
65
 
@@ -72,7 +67,7 @@ module Growl
72
67
  # Return the version triple of the binary.
73
68
 
74
69
  def self.version
75
- return existing_version || packaged_version
70
+ return '0.0.0'
76
71
  end
77
72
 
78
73
  ##
@@ -81,19 +76,7 @@ module Growl
81
76
  def self.installed?
82
77
  version
83
78
  end
84
-
85
- def self.existing_version
86
- @existing_version ||= `#{BIN} --version`.split[1] rescue false
87
- end
88
-
89
- def self.existing_install?
90
- existing_version
91
- end
92
-
93
- def self.packaged_version
94
- '0.0.0'
95
- end
96
-
79
+
97
80
  ##
98
81
  # Return an instance of Growl::Base or nil when not installed.
99
82
 
Binary file
data/lib/growl/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Growl
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karl-growl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk, Karl O'Keeffe
@@ -27,6 +27,7 @@ extra_rdoc_files:
27
27
  - lib/growl/images/warning.png
28
28
  - lib/growl/version.rb
29
29
  - lib/growl/notify/growlnotify
30
+ - lib/growl/notify/growlnotify-original
30
31
  - lib/growl/notify/growlnotify.com
31
32
  - lib/growl.rb
32
33
  - README.rdoc
@@ -44,6 +45,7 @@ files:
44
45
  - lib/growl/images/warning.png
45
46
  - lib/growl/version.rb
46
47
  - lib/growl/notify/growlnotify
48
+ - lib/growl/notify/growlnotify-original
47
49
  - lib/growl/notify/growlnotify.com
48
50
  - lib/growl.rb
49
51
  - Manifest