Skip to content
This repository
Newer
Older
100644 58 lines (50 sloc) 1.747 kb
dcf8bebb » Justin French
2008-04-07 Initial Commit
1 require 'rake'
2 require 'rake/rdoctask'
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
3 require 'spec/rake/spectask'
dcf8bebb » Justin French
2008-04-07 Initial Commit
4
350bf0a2 »
2009-03-08 first cut of a gem rake task, gemspec and version 0.1.0 gem (I hope)
5 begin
6 GEM = "formtastic"
7 AUTHOR = "Justin French"
8 EMAIL = "justin@indent.com.au"
9 SUMMARY = "A Rails form builder plugin/gem with semantically rich and accessible markup"
10 HOMEPAGE = "http://github.com/justinfrench/formtastic/tree/master"
11
12 require 'jeweler'
13 Jeweler::Tasks.new do |s|
14 s.name = GEM
15 s.summary = SUMMARY
16 s.email = EMAIL
17 s.homepage = HOMEPAGE
18 s.description = SUMMARY
19 s.author = AUTHOR
20
21 s.require_path = 'lib'
22 s.autorequire = GEM
0735d1ad »
2009-04-10 updated the gem Rake task to include generators too
23 s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,generators,spec}/**/*")
350bf0a2 »
2009-03-08 first cut of a gem rake task, gemspec and version 0.1.0 gem (I hope)
24 end
25 rescue LoadError
26 puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
27 end
28
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
29 desc 'Default: run unit specs.'
30 task :default => :spec
dcf8bebb » Justin French
2008-04-07 Initial Commit
31
32 desc 'Test the formtastic plugin.'
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
33 Spec::Rake::SpecTask.new('spec') do |t|
34 t.spec_files = FileList['spec/**/*_spec.rb']
40d1857a »
2008-09-20 use color formatting in the main spec rake task too
35 t.spec_opts = ["-c"]
dcf8bebb » Justin French
2008-04-07 Initial Commit
36 end
37
7fef4132 »
2008-09-20 added a rake task 'specdoc' for running the specs with specdoc format…
38 desc 'Test the formtastic plugin with specdoc formatting and colors'
39 Spec::Rake::SpecTask.new('specdoc') do |t|
40 t.spec_files = FileList['spec/**/*_spec.rb']
41 t.spec_opts = ["--format specdoc", "-c"]
42 end
43
dcf8bebb » Justin French
2008-04-07 Initial Commit
44 desc 'Generate documentation for the formtastic plugin.'
45 Rake::RDocTask.new(:rdoc) do |rdoc|
46 rdoc.rdoc_dir = 'rdoc'
47 rdoc.title = 'Formtastic'
48 rdoc.options << '--line-numbers' << '--inline-source'
8e2ca3a1 »
2009-02-17 modified Rakefile to build with README.textile
49 rdoc.rdoc_files.include('README.textile')
dcf8bebb » Justin French
2008-04-07 Initial Commit
50 rdoc.rdoc_files.include('lib/**/*.rb')
51 end
7fef4132 »
2008-09-20 added a rake task 'specdoc' for running the specs with specdoc format…
52
a27aa2ba »
2008-11-15 Added in a Rake task for running the specs with rcov, plus a line in …
53 desc "Run all examples with RCov"
54 Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
55 t.spec_files = FileList['spec/**/*_spec.rb']
56 t.rcov = true
57 t.rcov_opts = ['--exclude', 'spec,Library']
58 end
Something went wrong with that request. Please try again.