Rakefile in newgem-0.10.4 vs Rakefile in newgem-0.11.0
- old
+ new
@@ -39,18 +39,19 @@
p.email = EMAIL
p.summary = DESCRIPTION
p.url = HOMEPATH
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
p.test_globs = ["test/**/test*.rb"]
- p.clean_globs = CLEAN #An array of file patterns to delete on clean.
+ p.clean_globs |= CLEAN #An array of file patterns to delete on clean.
# == Optional
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.extra_deps = [
['hoe', '>=1.2.1'],
['RedCloth','>=3.0.4'],
- ['syntax','>=1.0.0']
+ ['syntax','>=1.0.0'],
+ ['activesupport','>=1.4.2']
]
#p.spec_extras - A hash of extra values to set in the gemspec.
end
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
@@ -74,11 +75,11 @@
local_dir = 'website'
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
end
desc 'Generate and upload website files'
-task :website => [:website_generate, :website_upload]
+task :website => [:website_generate, :website_upload, :publish_docs]
task :load_consts do
ENV['AUTHOR'] = AUTHOR
ENV['EMAIL'] = EMAIL
ENV['DESCRIPTION'] = DESCRIPTION
@@ -87,10 +88,10 @@
ENV['HOMEPATH'] = HOMEPATH
ENV['DOWNLOAD_PATH'] = DOWNLOAD_PATH
end
desc 'Release the website and new gem version'
-task :deploy => [:check_version, :website, :publish_docs, :release] do
+task :deploy => [:check_version, :website, :release] do
puts "Remember to create SVN tag:"
puts "svn copy svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/trunk " +
"svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
puts "Suggested comment:"
puts "Tagging release #{CHANGES}"