public
Description: A Rails form builder plugin with semantically rich and accessible markup. It's deliciously close to 1.0!
Homepage:
Clone URL: git://github.com/justinfrench/formtastic.git
Click here to lend your support to: formtastic and make a donation at www.pledgie.com !
jgdavey (author)
Sun Oct 25 10:04:33 -0700 2009
justinfrench (committer)
Mon Oct 26 14:26:40 -0700 2009
formtastic / Rakefile
100644 88 lines (69 sloc) 2.582 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# coding: utf-8
require 'rake'
require 'rake/rdoctask'
 
gem 'rspec-rails', '>= 1.0.0'
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"
  INSTALL_MESSAGE = %q{
========================================================================
 
Thanks for installing Formtastic!
You can now (optionally) run the generater to copy some stylesheets and
a config initializer into your application:
./script/generate formtastic
The following files will be added:
RAILS_ROOT/public/stylesheets/formtastic.css
RAILS_ROOT/public/stylesheets/formtastic_changes.css
RAILS_ROOT/config/initializers/formtastic.rb
Find out more and get involved:
 
http://github.com/justinfrench/formtastic
http://groups.google.com.au/group/formtastic
========================================================================
}
  
  gem 'jeweler', '>= 1.0.0'
  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.post_install_message = INSTALL_MESSAGE
    
    s.require_path = 'lib'
    s.autorequire = GEM
    s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,generators,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