Thorfile 733 B

123456789101112131415161718192021222324252627282930
  1. # encoding: utf-8
  2. $:.unshift File.expand_path("../lib", __FILE__)
  3. require 'bundler'
  4. require 'thor/rake_compat'
  5. class Default < Thor
  6. include Thor::RakeCompat
  7. Bundler::GemHelper.install_tasks
  8. desc "build", "Build thor-#{Thor::VERSION}.gem into the pkg directory"
  9. def build
  10. Rake::Task["build"].execute
  11. end
  12. desc "install", "Build and install thor-#{Thor::VERSION}.gem into system gems"
  13. def install
  14. Rake::Task["install"].execute
  15. end
  16. desc "release", "Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems"
  17. def release
  18. Rake::Task["release"].execute
  19. end
  20. desc "spec", "Run RSpec code examples"
  21. def spec
  22. exec "rspec --color --format=documentation spec"
  23. end
  24. end