Rakefile in twitter-bootstrap-markup-rails-0.3.0 vs Rakefile in twitter-bootstrap-markup-rails-0.3.1

- old
+ new

@@ -16,5 +16,17 @@ YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] #t.options = ['--plugin', 'yard-tomdoc'] end +if RUBY_VERSION =~ /^1\.9/ + desc "Code coverage detail" + task :simplecov do + ENV['COVERAGE'] = "true" + Rake::Task['spec'].execute + end +else + RSpec::Core::RakeTask.new(:rcov) do |spec| + spec.pattern = 'spec/**/*_spec.rb' + spec.rcov = true + end +end