Sha256: fa9dbf7006d8ee4bd1d3a0f5194a27b9b7de7dcab3b44d7e2f04ec3250e91cb8

Contents?: true

Size: 964 Bytes

Versions: 6

Compression:

Stored size: 964 Bytes

Contents

#!/usr/bin/env rake
begin
  require "bundler/setup"
rescue LoadError
  puts "You must `gem install bundler` and `bundle install` to run rake tasks"
end
begin
  require "rdoc/task"
rescue LoadError
  require "rdoc/rdoc"
  require "rake/rdoctask"
  RDoc::Task = Rake::RDocTask
end

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.title = "Foobar"
  rdoc.options << "--line-numbers"
  rdoc.rdoc_files.include("README.rdoc")
  rdoc.rdoc_files.include("lib/**/*.rb")
end

Bundler::GemHelper.install_tasks

require "rake/testtask"
Rake::TestTask.new(:test) do |test|
  test.libs << "lib" << "test"
  test.pattern = "test/**/*_test.rb"
  test.verbose = true
end

desc "Run Devise tests for all ORMs."
task :tests do
  Dir[File.join(File.dirname(__FILE__), "test", "orm", "*.rb")].each do |file|
    orm = File.basename(file).split(".").first
    system "rake test DEVISE_ORM=#{orm}"
  end
end

desc "Default: run tests for all ORMs."
task default: :tests

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-otp-1.0.0 Rakefile
devise-otp-0.8.0 Rakefile
devise-otp-0.7.1 Rakefile
devise-otp-0.7.0 Rakefile
devise-otp-0.6.0 Rakefile
devise-otp-0.5.0 Rakefile