forked from collectiveidea/tinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
41 lines (37 loc) · 1.2 KB
/
Rakefile
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
require 'rubygems'
require 'hoe'
begin
require 'spec/rake/spectask'
rescue LoadError
puts 'To use rspec for testing you must install rspec gem:'
puts '$ sudo gem install rspec'
exit
end
require File.join(File.dirname(__FILE__), 'lib', 'tinder', 'version')
# RDOC_OPTS = ['--quiet', '--title', "Tinder",
# "--opname", "index.html",
# "--line-numbers",
# "--main", "README",
# "--inline-source"]
#
# Generate all the Rake tasks
hoe = Hoe.new('tinder', ENV['VERSION'] || Tinder::VERSION::STRING) do |p|
p.rubyforge_name = 'tinder'
p.summary = "An (unofficial) Campfire API"
p.description = "An API for interfacing with Campfire, the 37Signals chat application."
p.author = 'Brandon Keepers'
p.email = '[email protected]'
p.url = 'http://tinder.rubyforge.org'
p.test_globs = ["test/**/*_test.rb"]
p.changes = p.paragraphs_of('CHANGELOG.txt', 0..1).join("\n\n")
p.extra_deps << ['activesupport']
p.extra_deps << ['hpricot']
p.extra_deps << ['mime-types']
end
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 "Default task is to run specs"
task :default => :spec