rakefile in rockit-0.7.1 vs rakefile in rockit-0.7.2

- old
+ new

@@ -18,12 +18,13 @@ README_FILE = "README" TODO_FILE = "TODO" RAKE_FILE = "rakefile" CHANGELOG = "Changelog" +CLEAN.include("rockit_paper.pdf") -task :default => :ptest +task :default => [:ptest, :patest] ############################################################################# # Version related ############################################################################# @@ -100,18 +101,19 @@ BaseFileToIncludeGlobs = [ "README", "TODO", "BUGS", "LICENSE", "VERSION", "rakefile", "Manifest", "lib/packrat/**/*", - "lib/rockit/prettyprint/**/*", - "lib/rockit/tree/**/*", - "lib/util/**/*", + "doc/rockit_paper.pdf", + #"lib/rockit/prettyprint/**/*", + #"lib/rockit/tree/**/*", + #"lib/util/**/*", ] TestFilesToIncludeGlobs = [ - "tests/acceptance/**/*", - "tests/unit/**/*", + "tests/acceptance/packrat/**/*", + "tests/unit/packrat/**/*", ] PkgFileGlobs = BaseFileToIncludeGlobs + TestFilesToIncludeGlobs GemSpec = Gem::Specification.new do |s| @@ -163,10 +165,21 @@ fh.write reformat_svn_log_to_changelog(`svn log`) end end ############################################################################# +# Doc related +############################################################################# +task :gen_paper do + Dir.chdir("doc/rockit_paper") do + system "rake" + File.cp "rockit_paper.pdf", ".." + system "rake clobber" + end +end + +############################################################################# # Rubyforge related ############################################################################# # Create a package (a name for a top-level "item" which can then have multiple # releases where each release can have multiple files) @@ -184,16 +197,21 @@ def delete_package(packageName) system "rubyforge create_package rockit #{ARGV.last}" end # We use a temporary package name for now, should be PROJECT later... -PACKAGE_NAME = "1799" # if of the test package in rockit group +#PACKAGE_NAME = "1801" # if of the test package in rockit group +PACKAGE_NAME = "368" # Name of rockit package +task :pack => [:gen_paper, :package] + desc "Create package and release to rubyforge" -task :rubyforge_release => [:package] do +task :rubyforge_release => [:pack] do + puts "Logging in to rubyforge" system "rubyforge login" + release_name = "#{PROJECT}-#{Version()}" - files_to_release = FileList["pkg/#{release_name}.*"] + files_to_release = FileList["pkg/#{release_name}.gem"] files_to_release.each do |file| puts "Releasing #{file} to Rubyforge" release_file(file, release_name, PACKAGE_NAME) end end \ No newline at end of file