Sha256: d1bcdda4e144b1a50e7455977670976e8c9e0c3fa6493af6e636d2175f5353f1

Contents?: true

Size: 800 Bytes

Versions: 1

Compression:

Stored size: 800 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Test the encryptor gem'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

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

if RUBY_VERSION < '1.9.3'
  require 'rcov/rcovtask'

  task :rcov do
    system "rcov -o coverage/rcov --exclude '^(?!lib)' " + FileList[ 'test/**/*_test.rb' ].join(' ')
  end

  desc 'Default: run unit tests under rcov.'
  task :default => :rcov
else
  desc 'Default: run unit tests.'
  task :default => :test
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
encryptor-1.3.0 Rakefile