Rakefile in gogyou-0.2.4 vs Rakefile in gogyou-0.2.5

- old
+ new

@@ -22,11 +22,12 @@ EXTCONF.reject! { |n| !File.file?(n) } GEMSTUB.extensions += EXTCONF GEMSTUB.executables += FileList["bin/*"].map { |n| File.basename n } GEMSTUB.executables.sort! -GEMFILE = "#{GEMSTUB.name}-#{GEMSTUB.version}.gem" +PACKAGENAME = "#{GEMSTUB.name}-#{GEMSTUB.version}" +GEMFILE = "#{PACKAGENAME}.gem" GEMSPEC = "#{GEMSTUB.name}.gemspec" GEMSTUB.files += DOC + EXT + EXTCONF + BIN + LIB + SPEC + TEST + EXAMPLE + RAKEFILE + EXTRA GEMSTUB.files.sort! if GEMSTUB.rdoc_options.nil? || GEMSTUB.rdoc_options.empty? @@ -140,9 +141,14 @@ desc "build gem package" task gem: GEMFILE desc "generate gemspec" task gemspec: GEMSPEC + +desc "print package name" +task "package-name" do + puts PACKAGENAME +end file GEMFILE => DOC + EXT + EXTCONF + BIN + LIB + SPEC + TEST + EXAMPLE + RAKEFILE + [GEMSPEC] do sh "gem build #{GEMSPEC}" end