Rakefile in auser-poolparty-0.2.66 vs Rakefile in auser-poolparty-0.2.67
- old
+ new
@@ -18,11 +18,24 @@
end
desc "Generate a new manifest and a new gem"
task :build_local_gem => [:clean_tmp, :spec, :clean_pkg, :"manifest:refresh", :package]
+desc "Packge with timestamp"
+task :update_timestamp do
+ data = open("PostInstall.txt").read
+ str = "Updated at #{Time.now.strftime("%D")}"
+
+ if data.scan(/Updated at/).empty?
+ data = data.gsub(/just installed PoolParty\!/, '\0'+" (#{str})")
+ else
+ data = data ^ {:updated_at => str}
+ end
+ ::File.open("PostInstall.txt", "w+") {|f| f << data }
+end
+
desc "Release to github"
-task :github_release => [:clean_tmp, :spec, :clean_pkg, :"manifest:refresh", :package] do
+task :github_release => [:clean_tmp, :spec, :clean_pkg, :"manifest:refresh", :update_timestamp, :package] do
res = %x[rake debug_gem]
res = res.split("\n")[1..-1].join("\n")
::File.open("#{GEM_NAME.downcase}.gemspec", "w+") do |f|
f << res
end
\ No newline at end of file