Sha256: f57b222071be89397895b98b02f620413d7348f1aad3e56c129bca0c822be28d

Contents?: true

Size: 843 Bytes

Versions: 1

Compression:

Stored size: 843 Bytes

Contents

gem 'rdoc'

# default rake
task :default => [:test]

# helpful console
desc "Irb console that requires this gem"
task :console do
  require 'irb'
  require 'irb/completion'
  require 'acts_as_textcaptcha'
  ARGV.clear
  IRB.start
end


# bundler tasks
require 'bundler'
Bundler::GemHelper.install_tasks

# run all tests
require 'rake/testtask'
Rake::TestTask.new do |t|
  t.pattern = "test/*_test.rb"
end

# code coverage
namespace :test do
  desc "Run all tests and generate a code coverage report (simplecov)"
  task :coverage do
    ENV['COVERAGE'] = 'true'
    Rake::Task['test'].execute
  end
end

# rdoc tasks
require 'rdoc/task'
RDoc::Task.new do |rd|
  rd.main     = "README.rdoc"
  rd.title    = 'acts_as_textcaptcha'
  rd.rdoc_dir = 'doc'
  rd.options  << "--all"
  rd.rdoc_files.include("README.rdoc", "LICENSE", "lib/**/*.rb")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_textcaptcha-4.1.2 Rakefile