Permalink
Browse files

Add push task for publishing gem

  • Loading branch information...
1 parent 600b5ec commit 31edd9a77a3a7b1d13ca8bd45f59d55b8aa4be97 John Pignata committed Aug 24, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
@@ -9,9 +9,8 @@ begin
gem.summary = "Operations support gem for Efficiency 2.0 projects"
gem.email = "tech@efficiency20.com"
gem.homepage = "http://github.com/efficiency20/ops_middleware"
- gem.description = "Operations support gem for Efficiency 2.0 projects"
+ gem.description = "Adds middleware for debugging purposes"
gem.authors = ["Efficiency 2.0"]
-
gem.add_dependency "uuid", "~> 2.1.0"
gem.add_development_dependency "rspec", "~> 1.3.0"
end
@@ -26,4 +25,10 @@ Spec::Rake::SpecTask.new("spec") do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
end
+desc "Push to internal gem server"
+task :push => :build do
+ puts "Pushing to gems.efficiency20.com"
+ %x{RUBYGEMS_HOST="http://localhost:2000" gem push pkg/*.gem}
+end
+
task :default => :spec

0 comments on commit 31edd9a

Please sign in to comment.