Sha256: b8decbb2aab888521e9a3b9f49606a1546af48565c52826f6c2ab0145032c1e2

Contents?: true

Size: 978 Bytes

Versions: 12

Compression:

Stored size: 978 Bytes

Contents

# encoding: UTF-8
require "bundler/gem_tasks"
require 'rake/testtask'
require 'rdoc/task'

desc 'Default: run tests for all ORMs.'
task :default => :test

desc 'Run Devise tests for all ORMs.'
task :pre_commit do
  Dir[File.join(File.dirname(__FILE__), 'test', 'orm', '*.rb')].each do |file|
    orm = File.basename(file).split(".").first
    # "Some day, my son, rake's inner wisdom will reveal itself.  Until then,
    # take this `system` -- may its brute force protect you well."
    exit 1 unless system "rake test DEVISE_ORM=#{orm}"
  end
end

desc 'Run Devise unit tests.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for Devise.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Devise'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.md')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
devise-2.1.4 Rakefile
loyal_devise-2.1.2 Rakefile
devise-warbler-2.2.3 Rakefile
devise-2.2.3 Rakefile
devise-2.1.3 Rakefile
devise-2.2.2 Rakefile
devise-2.2.1 Rakefile
devise-2.2.0 Rakefile
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/Rakefile
devise-2.2.0.rc Rakefile
af-devise-2.1.2 Rakefile
devise-2.1.2 Rakefile