summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-08-23 13:54:59 -0700
committerCarl Lerche <carllerche@mac.com>2010-08-23 14:13:36 -0700
commit67e33109bd9d82dd770ffa65e207ed17ed425dd1 (patch)
tree5c82d3fa3d81cac6a6620c7be8d56f6ecc6dacc3 /Rakefile
parent1012be895c22241d65bf9f378a886b8c38a674f7 (diff)
downloadbundler-67e33109bd9d82dd770ffa65e207ed17ed425dd1.tar.gz
Integrate the new bundler man pages with bundle help
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 3dd42f097c..7e08fbb16a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -28,7 +28,7 @@ begin
t.spec_opts = %w(-fs --color)
t.warning = true
end
- task :spec
+ task :spec => :build
namespace :spec do
task :sudo do
@@ -146,7 +146,7 @@ else
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
- task :gem => :gemspec
+ task :gem => [:build, :gemspec]
end
desc "install the gem locally"
@@ -159,5 +159,14 @@ task :gemspec do
gemspec.validate
end
-task :package => :gemspec
-task :default => :spec
+desc "Build the gem"
+task :gem => [:gemspec, :build] do
+ mkdir_p "pkg"
+ sh "gem build bundler.gemspec"
+ mv "#{gemspec.full_name}.gem pkg"
+end
+
+desc "Install bundler"
+task :install => :gem do
+ sh "gem install pkg/#{gemspec.full_name}.gem"
+end