Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update Rakefile

  • Loading branch information...
commit 34c28e59d032d0ad703f29684dd3cf3fb29257b8 1 parent d3ee73c
@mislav mislav authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 Rakefile
View
15 Rakefile
@@ -5,18 +5,20 @@ task :default => :spec
spec_opts = 'spec/spec.opts'
spec_glob = FileList['spec/**/*_spec.rb']
+libs = ['lib', 'spec']
desc 'Run all specs in spec directory'
Spec::Rake::SpecTask.new(:spec) do |t|
- t.libs = ['lib', 'spec']
+ t.libs = libs
t.spec_opts = ['--options', spec_opts]
t.spec_files = spec_glob
+ # t.warning = true
end
namespace :spec do
desc 'Analyze spec coverage with RCov'
Spec::Rake::SpecTask.new(:rcov) do |t|
- t.libs = ['lib', 'spec']
+ t.libs = libs
t.spec_files = spec_glob
t.spec_opts = ['--options', spec_opts]
t.rcov = true
@@ -25,18 +27,17 @@ namespace :spec do
end
end
-
desc 'Print Specdoc for all specs'
Spec::Rake::SpecTask.new(:doc) do |t|
- t.libs = ['lib', 'spec']
+ t.libs = libs
t.spec_opts = ['--format', 'specdoc', '--dry-run']
t.spec_files = spec_glob
end
desc 'Generate HTML report'
Spec::Rake::SpecTask.new(:html) do |t|
- t.libs = ['lib', 'spec']
- t.spec_opts = ['--format', 'html:doc/spec_results.html', '--diff']
+ t.libs = libs
+ t.spec_opts = ['--format', 'html:doc/spec.html', '--diff']
t.spec_files = spec_glob
t.fail_on_error = false
end
@@ -46,7 +47,7 @@ desc 'Generate RDoc documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.add ['README.rdoc', 'MIT-LICENSE', 'lib/**/*.rb']
rdoc.main = 'README.rdoc'
- rdoc.title = 'Google Contacts API'
+ rdoc.title = 'Ruby Contacts library'
rdoc.rdoc_dir = 'doc'
rdoc.options << '--inline-source'
Please sign in to comment.
Something went wrong with that request. Please try again.