1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/Rakefile

50 lines
1.1 KiB
Text
Raw Normal View History

begin
# optionally load `rake build/install/release tasks'
require 'bundler/gem_tasks'
rescue LoadError
2009-06-20 18:19:56 -04:00
end
require "rspec/core/rake_task"
2008-03-07 20:07:17 -05:00
desc "Run all specs"
RSpec::Core::RakeTask.new('spec')
desc "Run unit specs"
RSpec::Core::RakeTask.new('spec:unit') do |t|
t.pattern = 'spec/unit/*_spec.rb'
2008-03-07 20:07:17 -05:00
end
desc "Run integration specs"
RSpec::Core::RakeTask.new('spec:integration') do |t|
t.pattern = 'spec/integration/*_spec.rb'
end
2008-03-07 20:07:17 -05:00
desc "Print specdocs"
RSpec::Core::RakeTask.new(:doc) do |t|
t.rspec_opts = ["--format", "specdoc", "--dry-run"]
t.pattern = 'spec/**/*_spec.rb'
2008-03-07 20:07:17 -05:00
end
desc "Run all examples with RCov"
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = 'spec/*_spec.rb'
2010-02-08 16:08:18 -05:00
t.rcov = true
t.rcov_opts = ['--exclude', 'examples']
2008-03-07 20:07:17 -05:00
end
task :default => :spec
2008-03-08 01:18:28 -05:00
2009-06-20 18:19:56 -04:00
############################
2008-03-08 01:18:28 -05:00
require 'rdoc/task'
2008-03-08 01:18:28 -05:00
2008-03-09 16:31:52 -04:00
Rake::RDocTask.new do |t|
2010-02-08 16:08:18 -05:00
t.rdoc_dir = 'rdoc'
t.title = "rest-client, fetch RESTful resources effortlessly"
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
t.options << '--charset' << 'utf-8'
t.rdoc_files.include('README.rdoc')
t.rdoc_files.include('lib/*.rb')
2008-03-09 16:31:52 -04:00
end