Skip to content

HTTPS clone URL

Subversion checkout URL

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