public
Description: Tinder is an Ruby API for interfacing with Campfire, the 37Signals chat application.
Homepage: http://tinder.rubyforge.org/
Clone URL: git://github.com/collectiveidea/tinder.git
Click here to lend your support to: tinder and make a donation at www.pledgie.com !
tobias (author)
Thu Oct 08 06:36:04 -0700 2009
brandon (committer)
Thu Oct 08 06:53:21 -0700 2009
tinder / Rakefile
100644 69 lines (61 sloc) 1.803 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "tinder"
    gem.summary = "An (unofficial) Campfire API"
    gem.description = "An API for interfacing with Campfire, the 37Signals chat application."
    gem.authors = ['Brandon Keepers']
    gem.email = 'brandon@opensoul.org'
    gem.homepage = 'http://github.com/collectiveidea/tinder'
    gem.rubyforge_project = "tinder"
    gem.add_dependency "activesupport"
    gem.add_dependency "hpricot"
    gem.add_dependency "mime-types"
    gem.add_development_dependency "rspec"
  end
  Jeweler::GemcutterTasks.new
  Jeweler::RubyforgeTasks.new do |rubyforge|
    rubyforge.doc_task = "rdoc"
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
 
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end
 
begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end
 
task :test => :check_dependencies
 
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end
 
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "tinder #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
require 'spec/rake/spectask'
desc "Run the specs under spec"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end
 
desc "Run tests"
task :default => [:spec, :test]