Sha256: 6d642c5a1838996b1cd946fdedb0ba53563d92ced3b0147249c69e8682eaf0ff

Contents?: true

Size: 971 Bytes

Versions: 10

Compression:

Stored size: 971 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

10 entries across 10 versions & 3 rubygems

Version Path
devise-otp-0.4.0 Rakefile
devise-otp-0.3.0 Rakefile
devise-otp2-0.2.6 Rakefile
devise-otp2-0.2.5 Rakefile
devise-otp2-0.2.4 Rakefile
devise-otp-rails5-0.2.4 Rakefile
devise-otp-0.2.3 Rakefile
devise-otp-0.2.2 Rakefile
devise-otp-0.2.0 Rakefile
devise-otp-0.1.1 Rakefile