Sha256: 4855f0f2dbaaed8e11f1810bd72c8dc2700dcc66d92e0b515eccdb54b52e7e7a

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require "rdoc/task"
load './lib/tasks/textcaptcha.rake'

# generate docs
RDoc::Task.new do |rd|
  rd.main     = "README.md"
  rd.title    = 'ActsAsTextcaptcha'
  rd.rdoc_dir = 'doc'
  rd.options  << "--all"
  rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
end

# run tests
Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

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

task :default => ['test:coverage']

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_textcaptcha-4.5.0 Rakefile
acts_as_textcaptcha-4.4.1 Rakefile