Skip to content
Newer
Older
100644 50 lines (42 sloc) 1.32 KB
5e824d1 Initial commit to formtastic-bootstrap.
Matthew Bellantoni authored Nov 1, 2011
1 # encoding: utf-8
2
3 require 'rubygems'
4 require 'bundler'
5 begin
6 Bundler.setup(:default, :development)
7 rescue Bundler::BundlerError => e
8 $stderr.puts e.message
9 $stderr.puts "Run `bundle install` to install missing gems"
10 exit e.status_code
11 end
12 require 'rake'
13
14 require 'jeweler'
15 Jeweler::Tasks.new do |gem|
16 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17 gem.name = "formtastic-bootstrap"
18 gem.homepage = "http://github.com/mjbellantoni/formtastic-bootstrap"
19 gem.license = "MIT"
51c6bf4 @mjbellantoni Add gem summary.
authored Nov 8, 2011
20 gem.summary = %Q{Formtastic form builder to generate Twitter Bootstrap-friendly markup.}
21 gem.description = gem.summary
5e824d1 Initial commit to formtastic-bootstrap.
Matthew Bellantoni authored Nov 1, 2011
22 gem.email = "mjbellantoni@yahoo.com"
23 gem.authors = ["Matthew Bellantoni"]
24 # dependencies defined in Gemfile
25 end
26 Jeweler::RubygemsDotOrgTasks.new
27
28 require 'rspec/core'
29 require 'rspec/core/rake_task'
30 RSpec::Core::RakeTask.new(:spec) do |spec|
31 spec.pattern = FileList['spec/**/*_spec.rb']
32 end
33
34 RSpec::Core::RakeTask.new(:rcov) do |spec|
35 spec.pattern = 'spec/**/*_spec.rb'
36 spec.rcov = true
37 end
38
39 task :default => :spec
40
7b745cf @mjbellantoni Update inclusion of RDoc tasks to silence deprecation warning from Rake.
authored Apr 14, 2012
41 require 'rdoc/task'
5e824d1 Initial commit to formtastic-bootstrap.
Matthew Bellantoni authored Nov 1, 2011
42 Rake::RDocTask.new do |rdoc|
43 version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
45 rdoc.rdoc_dir = 'rdoc'
46 rdoc.title = "formtastic-bootstrap #{version}"
47 rdoc.rdoc_files.include('README*')
48 rdoc.rdoc_files.include('lib/**/*.rb')
49 end
Something went wrong with that request. Please try again.