Sha256: 7f5a9cd8cd0eb69610cc58cb22ad3843e2493dec9848d94f4e2ccf0990a34a7b

Contents?: true

Size: 762 Bytes

Versions: 3

Compression:

Stored size: 762 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rdoc/task'
require 'rspec/core/rake_task'

desc "Run specs"
RSpec::Core::RakeTask.new(:spec)

desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end

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

desc 'Default: run specs.'
task :default => :spec

task :all do
  sh "export FORMTASTIC=2.0 && bundle install && bundle exec rake"
  sh "export FORMTASTIC=1.2 && bundle install && bundle exec rake"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_enum-1.0.0.rc2 Rakefile
active_enum-1.0.0.rc1 Rakefile
active_enum-1.0.0.pre Rakefile