diff options
author | Carl Lerche <carllerche@mac.com> | 2010-08-23 13:54:59 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-08-23 14:13:36 -0700 |
commit | 67e33109bd9d82dd770ffa65e207ed17ed425dd1 (patch) | |
tree | 5c82d3fa3d81cac6a6620c7be8d56f6ecc6dacc3 /Rakefile | |
parent | 1012be895c22241d65bf9f378a886b8c38a674f7 (diff) | |
download | bundler-67e33109bd9d82dd770ffa65e207ed17ed425dd1.tar.gz |
Integrate the new bundler man pages with bundle help
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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 |