Sha256: 90b297e4ab9c2ce2fc0b59da1df407b66a73550ba5d8369c4c45f04d021db1ed
Contents?: true
Size: 1013 Bytes
Versions: 5
Compression:
Stored size: 1013 Bytes
Contents
# encoding: utf-8 require 'bundler/setup' require 'appraisal' require 'rdoc/task' require 'rspec/core/rake_task' Bundler::GemHelper.install_tasks desc 'Default: run unit specs.' if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"] task :default => :appraisal else task :default => :spec end desc 'Generate documentation for the formtastic plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Formtastic' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.textile') rdoc.rdoc_files.include('lib/**/*.rb') end desc 'Test the formtastic plugin.' RSpec::Core::RakeTask.new('spec') do |t| t.pattern = FileList['spec/**/*_spec.rb'] end desc 'Test the formtastic inputs.' RSpec::Core::RakeTask.new('spec:inputs') do |t| t.pattern = FileList['spec/inputs/*_spec.rb'] end desc 'Test the formtastic plugin with specdoc formatting and colors' RSpec::Core::RakeTask.new('specdoc') do |t| t.pattern = FileList['spec/**/*_spec.rb'] end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
formtastic-3.1.0 | Rakefile |
formtastic-3.1.0.rc2 | Rakefile |
formtastic-3.1.0.rc1 | Rakefile |
formtastic-3.0.0 | Rakefile |
formtastic-3.0.0.rc2 | Rakefile |