Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (30 sloc) 0.978 kb
2fe1a69 José Valim 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 Carlos Antonio da Silva 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 Carlos Antonio da Silva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
5
35a8d13 José Valim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
6 desc 'Default: run tests for all ORMs.'
515b727 José Valim Change default rake.
josevalim authored
7 task :default => :test
955c338 Carlos Antonio da Silva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
8
35a8d13 José Valim 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 Jo Liss 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 José Valim Tests passing for ActiveRecord and MongoMapper.
josevalim authored
16 end
17 end
18
19 desc 'Run Devise unit tests.'
955c338 Carlos Antonio da Silva 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
25 end
26
2fe1a69 José Valim Added jeweler to rakefile and version.
josevalim authored
27 desc 'Generate documentation for Devise.'
955c338 Carlos Antonio da Silva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
28 Rake::RDocTask.new(:rdoc) do |rdoc|
29 rdoc.rdoc_dir = 'rdoc'
30 rdoc.title = 'Devise'
31 rdoc.options << '--line-numbers' << '--inline-source'
f0d48a9 Carlos Antonio da Silva Fix rdoc rake task [ci skip]
carlosantoniodasilva authored
32 rdoc.rdoc_files.include('README.md')
955c338 Carlos Antonio da Silva Authenticable module: generating salt and encrypting password
carlosantoniodasilva authored
33 rdoc.rdoc_files.include('lib/**/*.rb')
e1c3b91 Carlos Antonio da Silva Remove require to rake and devise version from Rakefile
carlosantoniodasilva authored
34 end
Something went wrong with that request. Please try again.