tasks/github-gem.rake in request-log-analyzer-1.0.2 vs tasks/github-gem.rake in request-log-analyzer-1.0.3
- old
+ new
@@ -1,8 +1,10 @@
require 'rubygems'
+require 'rubyforge'
require 'rake'
require 'rake/tasklib'
+require 'rake/gempackagetask'
require 'date'
module Rake
class GithubGem < TaskLib
@@ -23,24 +25,16 @@
def register_all_tasks!
namespace(:gem) do
desc "Updates the file lists for this gem"
task(:manifest) { manifest_task }
- desc "Builds a ruby gem for #{@name}"
- task(:build => [:manifest]) { build_task }
-
- desc "Installs the ruby gem for #{@name} locally"
- task(:install => [:build]) { install_task }
-
- desc "Uninstalls the ruby gem for #{@name} locally"
- task(:uninstall) { uninstall_task }
-
desc "Releases a new version of #{@name}"
- task(:release) { release_task }
- end
+ task(:release => :package) { release_task }
+
+ Rake::GemPackageTask.new(@specification) do |pkg|
+ end
+ end
end
-
-
protected
def reload_gemspec!
raise "No gemspec file found!" if gemspec_file.nil?
\ No newline at end of file