config/hoe.rb in rubypython-0.2.8 vs config/hoe.rb in rubypython-0.2.9
- old
+ new
@@ -48,28 +48,28 @@
end
end
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
-$hoe = Hoe.new(GEM_NAME, VERS) do |p|
- p.developer(AUTHOR, EMAIL)
- p.description = DESCRIPTION
- p.summary = DESCRIPTION
- p.url = HOMEPATH
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
- p.test_globs = ["test/**/test_*.rb"]
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
-
+$hoe = Hoe.spec(GEM_NAME) do
+ self.developer(AUTHOR, EMAIL)
+ self.description = DESCRIPTION
+ self.summary = DESCRIPTION
+ self.url = HOMEPATH
+ self.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
+ self.test_globs = ["test/**/test_*.rb"]
+ self.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
+ self.version = VERS
# == Optional
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
+ self.changes = self.paragraphs_of("History.txt", 0..1).join("\n\n")
#p.extra_deps = EXTRA_DEPENDENCIES
- p.spec_extras = {
+ self.spec_extras = {
:requirements => ["Python, ~>2.4"]
} # A hash of extra values to set in the gemspec.
end
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
$hoe.rsync_args = '-av --delete --ignore-errors'
-$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
\ No newline at end of file
+$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""