public
Description: A ruby library which allows you to send Growl notifications. Extracted from LimeChat.
Homepage: http://rubyforge.org/projects/growlnotifier/
Clone URL: git://github.com/psychs/growlnotifier.git
Click here to lend your support to: growlnotifier and make a donation at www.pledgie.com !
psychs (author)
Thu Nov 20 13:01:19 -0800 2008
commit  ced0e72b7b2a10be1a01d1909e331779146b5a88
tree    9e3235bc16ed1aeb364cf4c29aa4ef8d287ed1f4
parent  4323279367737d584e85dc7531f3c9c0300e9996
growlnotifier / Rakefile
100644 43 lines (36 sloc) 1.183 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'rubygems'
require 'rake/testtask'
 
require 'lib/growl.rb'
 
# Install the Hoe gem to be able to use the deploy tasks.
begin
  require 'hoe'
  
  class Hoe
    def extra_deps
      @extra_deps.reject do |x|
        Array(x).first == 'hoe'
      end
    end
  end
  
  Hoe.new('growlnotifier', Growl::Notifier::VERSION) do |p|
    p.author = ["Satoshi Nakagawa", "Eloy Duran"]
    p.description = "A ruby library which allows you to send Growl notifications."
    p.email = ["psychs@limechat.net", "e.duran@superalloy.nl"]
    p.summary = "Growl::Notifier is a OSX RubyCocoa class that allows your application to post notifications to the Growl daemon."
    p.url = "http://growlnotifier.rubyforge.org/"
    p.clean_globs = ['coverage'] # Remove this directory on "rake clean"
    p.remote_rdoc_dir = '' # Release to root
  end
rescue LoadError
end
 
task :default => :test
 
Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/*_test.rb']
  t.options = '-rs'
end
 
desc "Run code-coverage analysis using rcov"
task :coverage do
  rm_rf "coverage"
  sh "rcov test/*_test.rb --exclude=mocha,RubyCocoa.framework,osx,rcov"
  sh "open coverage/index.html"
end