Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (43 sloc) 1.215 kB
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
1 #!/usr/bin/env rake
2 begin
3 require 'bundler/setup'
4 rescue LoadError
5 puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6 end
7 begin
8 require 'rdoc/task'
9 rescue LoadError
10 require 'rdoc/rdoc'
11 require 'rake/rdoctask'
12 RDoc::Task = Rake::RDocTask
13 end
c6c31d7 @james2m Added test environment
authored
14
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
15 desc 'Generate documentation for the authlogic_facebook_shim gem.'
16 RDoc::Task.new(:rdoc) do |rdoc|
aeb3972 @james2m Initial commit
authored
17 version = File.exist?('VERSION') ? File.read('VERSION') : ""
18
19 rdoc.rdoc_dir = 'rdoc'
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
20 rdoc.title = 'authlogic_facebook_shim #{version}'
21 rdoc.main = 'README.rdoc'
22 rdoc.options << '--line-numbers' << '--inline-source'
23 rdoc.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
aeb3972 @james2m Initial commit
authored
24 end
c6c31d7 @james2m Added test environment
authored
25
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
26 Bundler::GemHelper.install_tasks
27
c6c31d7 @james2m Added test environment
authored
28 require 'rake/testtask'
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
29
30 desc 'Test the authlogic_facebook_shim gem.'
31 Rake::TestTask.new(:test) do |t|
32 t.libs << 'lib'
33 t.libs << 'test'
34 t.pattern = 'test/**/*_test.rb'
35 t.verbose = true
c6c31d7 @james2m Added test environment
authored
36 end
37
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
38 namespace :rcov do
39
40 desc "Generate a coverage report in coverage/"
41 task :gen do
42 sh "rcov --output coverage test/*_test.rb --exclude 'gems/*'"
c6c31d7 @james2m Added test environment
authored
43 end
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
44
45 desc "Remove generated coverage files."
46 task :clobber do
47 sh "rm -rdf coverage"
c6c31d7 @james2m Added test environment
authored
48 end
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
49
c6c31d7 @james2m Added test environment
authored
50 end
51
07324f8 @james2m Updated Rakefile to new Rake syntax.
authored
52 desc 'Default: run unit tests.'
c6c31d7 @james2m Added test environment
authored
53 task :default => :test
Something went wrong with that request. Please try again.