Sha256: 9e48dc5f2abed5fb507002cc9051d11956116ef29713df19151ebeff277a478f
Contents?: true
Size: 970 Bytes
Versions: 3
Compression:
Stored size: 970 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.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
assert_value-1.5.2 | Rakefile |
assert_value-1.5.1 | Rakefile |
assert_value-1.5 | Rakefile |