Rakefile in markerb-1.0.0 vs Rakefile in markerb-1.0.1
- old
+ new
@@ -1,29 +1,25 @@
-# encoding: UTF-8
-require 'rubygems'
-begin
- require 'bundler/setup'
-rescue LoadError
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
-require 'rake'
-require 'rake/rdoctask'
-
require 'rake/testtask'
+require 'rdoc/task'
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the simple_form plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
- t.verbose = false
+ t.verbose = true
end
-task :default => :test
-
-Rake::RDocTask.new(:rdoc) do |rdoc|
+desc 'Generate documentation for the markerb plugin.'
+RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Handlers'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README.rdoc')
+ rdoc.title = 'Markerb'
+ rdoc.options << '--line-numbers'
+ rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
-end
\ No newline at end of file
+end