forked from paul/resourceful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (32 loc) · 1.12 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 'rake'
require 'echoe'
Echoe.new('resourceful', '0.3.1') do |p|
p.description = "An HTTP library for Ruby that takes advantage of everything HTTP has to offer."
p.url = "http://github.com/paul/resourceful"
p.author = "Paul Sadauskas"
p.email = "psadauskas@gmail.com"
p.ignore_pattern = ["pkg/*", "tmp/*"]
p.dependencies = ['addressable', 'httpauth', 'rspec', 'facets', 'andand']
p.development_dependencies = ['thin', 'yard']
end
require 'spec/rake/spectask'
desc 'Run all specs'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
t.libs << 'lib'
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc 'Default: Run Specs'
task :default => :spec
desc 'Run all tests'
task :test => :spec
require 'yard'
desc "Generate Yardoc"
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.markdown']
end
desc "Update rubyforge documentation"
task :update_docs => :yardoc do
puts %x{rsync -aPz doc/* psadauskas@resourceful.rubyforge.org:/var/www/gforge-projects/resourceful/}
end