Sha256: 674476c4cd1ad7be6b79fb7a247ee2cd53fba1940adb257ca81f1eb429a7737f

Contents?: true

Size: 1.7 KB

Versions: 7

Compression:

Stored size: 1.7 KB

Contents

require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'

begin
  GEM = "formtastic"
  AUTHOR = "Justin French"
  EMAIL = "justin@indent.com.au"
  SUMMARY = "A Rails form builder plugin/gem with semantically rich and accessible markup"
  HOMEPAGE = "http://github.com/justinfrench/formtastic/tree/master"
  
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = GEM
    s.summary = SUMMARY
    s.email = EMAIL
    s.homepage = HOMEPAGE
    s.description = SUMMARY
    s.author = AUTHOR
    
    s.require_path = 'lib'
    s.autorequire = GEM
    s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,spec}/**/*")
  end
rescue LoadError
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

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

desc 'Test the formtastic plugin.'
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = ["-c"]
end

desc 'Test the formtastic plugin with specdoc formatting and colors'
Spec::Rake::SpecTask.new('specdoc') do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = ["--format specdoc", "-c"]
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 "Run all examples with RCov"
Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec,Library']
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
ShadowBelmolve-formtastic-0.1.6 Rakefile
fermion-formtastic-0.1.3 Rakefile
justinfrench-formtastic-0.1.1 Rakefile
justinfrench-formtastic-0.1.2 Rakefile
justinfrench-formtastic-0.1.3 Rakefile
nofxx-formtastic-0.1.5 Rakefile
nofxx-formtastic-0.1.6 Rakefile