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

Update Rakefile tasks for RDoc and RSpec; update dependencies in gemspec

This commit is contained in:
Larry Gilbert 2014-02-04 22:38:34 -08:00
parent 3782503d42
commit 82b2394cf1
2 changed files with 12 additions and 11 deletions

View file

@ -10,24 +10,24 @@ desc "Run all specs"
task :spec => ["spec:unit", "spec:integration"]
desc "Run unit specs"
Spec::Rake::SpecTask.new('spec:unit') do |t|
t.spec_files = FileList['spec/*_spec.rb']
RSpec::Core::RakeTask.new('spec:unit') do |t|
t.pattern = ['spec/*_spec.rb']
end
desc "Run integration specs"
Spec::Rake::SpecTask.new('spec:integration') do |t|
t.spec_files = FileList['spec/integration/*_spec.rb']
RSpec::Core::RakeTask.new('spec:integration') do |t|
t.pattern = ['spec/integration/*_spec.rb']
end
desc "Print specdocs"
Spec::Rake::SpecTask.new(:doc) do |t|
t.spec_opts = ["--format", "specdoc", "--dry-run"]
t.spec_files = FileList['spec/*_spec.rb']
RSpec::Core::RakeTask.new(:doc) do |t|
t.rspec_opts = ["--format", "specdoc", "--dry-run"]
t.pattern = ['spec/*_spec.rb']
end
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/*_spec.rb']
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = ['spec/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'examples']
end
@ -36,7 +36,7 @@ task :default => :spec
############################
require 'rake/rdoctask'
require 'rdoc/task'
Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc'

View file

@ -14,7 +14,8 @@ Gem::Specification.new do |s|
s.homepage = 'http://github.com/rest-client/rest-client'
s.summary = 'Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.'
s.add_runtime_dependency(%q<mime-types>, ["~> 1.16"])
s.add_dependency(%q<mime-types>, ["~> 1.16"])
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
s.add_development_dependency(%q<rake>, ["~> 10.0"])
s.add_development_dependency(%q<webmock>, ["~> 1.4"])
s.add_development_dependency(%q<rspec>, ["~> 2.4"])