Permalink
Browse files

Add Bundler::GemHelper.install_tasks

  • Loading branch information...
1 parent 2b73481 commit 1b8722224c7ae76465c5e41a1b87141d7020cc83 @sferik sferik committed Aug 28, 2011
Showing with 17 additions and 1 deletion.
  1. +17 −1 Thorfile
View
@@ -5,8 +5,24 @@ require 'thor/rake_compat'
class Default < Thor
include Thor::RakeCompat
+ Bundler::GemHelper.install_tasks
- desc "spec", "run the specs"
+ desc "build", "Build thor-#{Thor::VERSION}.gem into the pkg directory"
+ def build
+ Rake::Task["build"].execute
+ end
+
+ desc "install", "Build and install thor-#{Thor::VERSION}.gem into system gems"
+ def install
+ Rake::Task["install"].execute
+ end
+
+ desc "release", "Create tag v1.6.2 and build and push twitter-1.6.2.gem to Rubygems"
+ def release
+ Rake::Task["release"].execute
+ end
+
+ desc "spec", "Run RSpec code examples"
def spec
exec "rspec -cfs spec"
end

0 comments on commit 1b87222

Please sign in to comment.