Rakefile in mix-rails-0.26.3 vs Rakefile in mix-rails-1.0.0.alpha.1

- old
+ new

@@ -1,21 +1,27 @@ -require "bundler/gem_tasks" +#!/usr/bin/env rake +begin + require 'bundler/setup' +rescue LoadError + puts 'You must `gem install bundler` and `bundle install` to run rake tasks' +end +begin + require 'rdoc/task' +rescue LoadError + require 'rdoc/rdoc' + require 'rake/rdoctask' + RDoc::Task = Rake::RDocTask +end -$:.unshift File.expand_path('..', __FILE__) -require "tasks/release" +RDoc::Task.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'MixRails' + rdoc.options << '--line-numbers' + rdoc.rdoc_files.include('README.rdoc') + rdoc.rdoc_files.include('lib/**/*.rb') +end -desc "Build gem files for all projects" -task :build => "all:build" -desc "Release all gems to gemcutter and create a tag" -task :release => "all:release" -desc 'Run all tests by default' -task :default => %w(test test:isolated) -task 'test' do - true -end +Bundler::GemHelper.install_tasks -task 'test:isolated' do - true -end \ No newline at end of file