Skip to content
This repository
Newer
Older
100644 56 lines (46 sloc) 1.55 kb
0a59e0c0 » yabawock
2010-09-27 Always use # encoding: utf-8 declaration
1 # encoding: utf-8
6c57b541 » yabawock
2011-12-26 Test formtastic with Rails 3.0-3.2 using appraisals
2 require 'bundler/setup'
3 require 'appraisal'
f8f761ef » yabawock
2011-12-26 Use rdoc/task instead of deprecated rake/rdoctask
4 require 'rdoc/task'
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
5 require 'rspec/core/rake_task'
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
6 require 'tasks/verify_rcov'
7f01af4b » kou
2011-06-03 switch to gemspec generated by bundler. #535 #548
7
8 Bundler::GemHelper.install_tasks
dcf8bebb » Justin French
2008-04-07 Initial Commit
9
281dd186 » xaviershay
2008-07-05 rspec support - test_helper and rake task
10 desc 'Default: run unit specs.'
6c57b541 » yabawock
2011-12-26 Test formtastic with Rails 3.0-3.2 using appraisals
11 task :default => :all
12
13 desc 'Test formtastic with all supported Rails versions.'
14 task :all => ["appraisal:install"] do
15 exec('rake appraisal spec')
16 end
dcf8bebb » Justin French
2008-04-07 Initial Commit
17
18 desc 'Generate documentation for the formtastic plugin.'
19 Rake::RDocTask.new(:rdoc) do |rdoc|
20 rdoc.rdoc_dir = 'rdoc'
21 rdoc.title = 'Formtastic'
22 rdoc.options << '--line-numbers' << '--inline-source'
8e2ca3a1 »
2009-02-17 modified Rakefile to build with README.textile
23 rdoc.rdoc_files.include('README.textile')
dcf8bebb » Justin French
2008-04-07 Initial Commit
24 rdoc.rdoc_files.include('lib/**/*.rb')
25 end
7fef4132 »
2008-09-20 added a rake task 'specdoc' for running the specs with specdoc format…
26
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
27 desc 'Test the formtastic plugin.'
28 RSpec::Core::RakeTask.new('spec') do |t|
29 t.pattern = FileList['spec/**/*_spec.rb']
a27aa2ba »
2008-11-15 Added in a Rake task for running the specs with rcov, plus a line in …
30 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
31
bd81cc74 »
2011-03-18 Added a rspec:inputs task for testing just the inputs that I'm focusi…
32 desc 'Test the formtastic inputs.'
33 RSpec::Core::RakeTask.new('spec:inputs') do |t|
10b7d3a9 »
2011-03-18 include check_boxes in inputs spec rake task
34 t.pattern = FileList['spec/inputs/*_spec.rb']
bd81cc74 »
2011-03-18 Added a rspec:inputs task for testing just the inputs that I'm focusi…
35 end
36
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
37 desc 'Test the formtastic plugin with specdoc formatting and colors'
38 RSpec::Core::RakeTask.new('specdoc') do |t|
39 t.pattern = FileList['spec/**/*_spec.rb']
40 end
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
41
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
42 desc 'Run all examples with RCov'
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
43 RSpec::Core::RakeTask.new('rcov') do |t|
34848c4a » sobrinho
2010-09-30 Cleanup Rakefile
44 t.pattern = FileList['spec/**/*_spec.rb']
45 t.rcov = true
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
46 t.rcov_opts = %w(--exclude gems/*,spec/*,.bundle/*, --aggregate coverage.data)
47 end
48
49 RCov::VerifyTask.new(:verify_coverage) do |t|
50 t.require_exact_threshold = false
b66cb771 »
2011-08-16 Remove coverage requirement for 1.9.2 & 1.9.3, add back to Travis.
51 t.threshold = (RUBY_VERSION == "1.8.7" ? 95 : 0)
050ef126 »
2011-03-29 Added new rcov tasks, made spec_and_verify_coverage the default rake …
52 end
53
54 desc "Run all examples and verify coverage"
55 task :spec_and_verify_coverage => [:rcov, :verify_coverage] do
b77e11ad » yabawock
2010-04-15 Make Rakefile compatible with rails2 & rails3
56 end
Something went wrong with that request. Please try again.