Sha256: 9a9c0c9f4d977530f44d4a39a15e018f13325cc4082e5fd1925fa6cd7a1fca09

Contents?: true

Size: 989 Bytes

Versions: 4

Compression:

Stored size: 989 Bytes

Contents

require 'rake'
require 'rake/testtask'
begin
  require 'rdoc/task'
rescue LoadError
end
begin
  require 'rspec/core/rake_task'
rescue LoadError
end
require 'bundler/setup'

Bundler::GemHelper.install_tasks

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

if defined?(RSpec)
  desc "Run the specs."
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.pattern = "test/**/*_spec.rb"
  end
end

if defined?(RSpec) and RUBY_VERSION > '1.9.3'
  desc 'Default: run specs.'
  task :default => :spec
else
  desc 'Default: run unit tests.'
  task :default => :test
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
assert_value-1.5.6 Rakefile
assert_value-1.5.5 Rakefile
assert_value-1.5.4 Rakefile
assert_value-1.5.3 Rakefile