Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (31 sloc) 1.047 kB
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
1 # encoding: UTF-8
2
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
3 require 'rake'
4 require 'rake/testtask'
5 require 'rake/rdoctask'
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
6 require File.join(File.dirname(__FILE__), 'lib', 'devise', 'version')
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
7
35a8d13 @josevalim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
8 desc 'Default: run tests for all ORMs.'
9 task :default => :pre_commit
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
10
35a8d13 @josevalim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
11 desc 'Run Devise tests for all ORMs.'
12 task :pre_commit do
13 Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
14 orm = File.basename(file).split(".").first
42f2196 @joliss Rakefile: exit on failing test
joliss authored
15 # "Some day, my son, rake's inner wisdom will reveal itself. Until then,
16 # take this `system` -- may its brute force protect you well."
17 exit 1 unless system "rake test DEVISE_ORM=#{orm}"
35a8d13 @josevalim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
18 end
19 end
20
21 desc 'Run Devise unit tests.'
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
22 Rake::TestTask.new(:test) do |t|
23 t.libs << 'lib'
24 t.libs << 'test'
25 t.pattern = 'test/**/*_test.rb'
26 t.verbose = true
27 end
28
2fe1a69 @josevalim Added jeweler to rakefile and version.
josevalim authored
29 desc 'Generate documentation for Devise.'
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
30 Rake::RDocTask.new(:rdoc) do |rdoc|
31 rdoc.rdoc_dir = 'rdoc'
32 rdoc.title = 'Devise'
33 rdoc.options << '--line-numbers' << '--inline-source'
4fd5d09 @carlosantoniodasilva Adding README to rdoc and rdoc dir to gitignore
carlosantoniodasilva authored
34 rdoc.rdoc_files.include('README.rdoc')
955c338 @carlosantoniodasilva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
35 rdoc.rdoc_files.include('lib/**/*.rb')
9f832d2 @josevalim Remove Jeweler.
josevalim authored
36 end
Something went wrong with that request. Please try again.