Rakefile in tricycle-rack-contrib-0.9.3 vs Rakefile in tricycle-rack-contrib-0.9.5

- old
+ new

@@ -42,14 +42,14 @@ # PACKAGING ================================================================= # load gemspec like github's gem builder to surface any SAFE issues. require 'rubygems/specification' -$spec = eval(File.read('rack-contrib.gemspec')) +$spec = eval(File.read('tricycle-rack-contrib.gemspec')) def package(ext='') - "pkg/rack-contrib-#{$spec.version}" + ext + "pkg/tricycle-rack-contrib-#{$spec.version}" + ext end desc 'Build packages' task :package => %w[.gem .tar.gz].map {|e| package(e)} @@ -58,29 +58,29 @@ sh "gem install #{package('.gem')}" end directory 'pkg/' -file package('.gem') => %w[pkg/ rack-contrib.gemspec] + $spec.files do |f| - sh "gem build rack-contrib.gemspec" +file package('.gem') => %w[pkg/ tricycle-rack-contrib.gemspec] + $spec.files do |f| + sh "gem build tricycle-rack-contrib.gemspec" mv File.basename(f.name), f.name end file package('.tar.gz') => %w[pkg/] + $spec.files do |f| sh "git archive --format=tar HEAD | gzip > #{f.name}" end desc 'Publish gem and tarball to rubyforge' task 'publish:gem' => [package('.gem'), package('.tar.gz')] do |t| sh <<-end - rubyforge add_release rack rack-contrib #{$spec.version} #{package('.gem')} && - rubyforge add_file rack rack-contrib #{$spec.version} #{package('.tar.gz')} + rubyforge add_release rack tricycle-rack-contrib #{$spec.version} #{package('.gem')} && + rubyforge add_file rack tricycle-rack-contrib #{$spec.version} #{package('.tar.gz')} end end # GEMSPEC =================================================================== -file 'rack-contrib.gemspec' => FileList['{lib,test}/**','Rakefile', 'README.rdoc'] do |f| +file 'tricycle-rack-contrib.gemspec' => FileList['{lib,test}/**','Rakefile', 'README.rdoc'] do |f| # read spec file and split out manifest section spec = File.read(f.name) parts = spec.split(" # = MANIFEST =\n") fail 'bad spec' if parts.length != 3 # determine file list from git ls-files