Rakefile in bootstrap_actioncell-0.0.4 vs Rakefile in bootstrap_actioncell-0.0.5
- old
+ new
@@ -1,12 +1,27 @@
#!/usr/bin/env rake
-require "bundler/gem_tasks"
-
-require 'rake/testtask'
-
-Rake::TestTask.new do |t|
- t.libs << 'lib/bootstrap_actioncell'
- t.test_files = FileList['test/lib/bootstrap_actioncell/*_test.rb']
- t.verbose = true
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
-
-task :default => :test
\ No newline at end of file
+begin
+ require 'rdoc/task'
+rescue LoadError
+ require 'rdoc/rdoc'
+ require 'rake/rdoctask'
+ RDoc::Task = Rake::RDocTask
+end
+
+RDoc::Task.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'BootstrapActioncell'
+ rdoc.options << '--line-numbers'
+ rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+
+
+
+Bundler::GemHelper.install_tasks
+