Permalink
Browse files

Make the Thorfile simpler

  • Loading branch information...
1 parent 018b258 commit 1d5b217e40f8f02ac964b07aeafab3c0c617e26f @wycats wycats committed Jul 3, 2011
Showing with 5 additions and 16 deletions.
  1. +5 −16 Thorfile
View
@@ -1,24 +1,13 @@
# enconding: utf-8
+$:.unshift File.expand_path("../lib", __FILE__)
+
require 'thor/rake_compat'
class Default < Thor
include Thor::RakeCompat
- require 'rspec/core/rake_task'
- RSpec::Core::RakeTask.new(:spec)
-
- require 'bundler'
- Bundler::GemHelper.install_tasks
-
- require 'rdoc/task'
- if defined?(RDoc)
- RDoc::Task.new do |rdoc|
- rdoc.main = 'README.md'
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'thor'
- rdoc.rdoc_files.include('README.md', 'LICENSE', 'CHANGELOG.rdoc', 'Thorfile')
- rdoc.rdoc_files.include('lib/**/*.rb')
- rdoc.options << '--line-numbers' << '--inline-source'
- end
+ desc "spec", "run the specs"
+ def spec
+ exec "rspec -cfs spec"
end
end

0 comments on commit 1d5b217

Please sign in to comment.