Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make the Thorfile simpler

  • Loading branch information...
commit 1d5b217e40f8f02ac964b07aeafab3c0c617e26f 1 parent 018b258
@wycats wycats authored
Showing with 5 additions and 16 deletions.
  1. +5 −16 Thorfile
View
21 Thorfile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.