lib/hoe.rb in hoe-1.1.4 vs lib/hoe.rb in hoe-1.1.5

- old
+ new

@@ -87,11 +87,11 @@ # * PREFIX - Used to specify a custom install location (for rake install). # * RUBY_DEBUG - Used to add extra flags to RUBY_FLAGS. # * RUBY_FLAGS - Used to specify flags to ruby [has smart default]. class Hoe - VERSION = '1.1.4' + VERSION = '1.1.5' rubyprefix = Config::CONFIG['prefix'] sitelibdir = Config::CONFIG['sitelibdir'] PREFIX = ENV['PREFIX'] || rubyprefix @@ -117,13 +117,13 @@ self.url = "http://www.zenspider.com/ZSS/Products/#{name}/" self.author = "Ryan Davis" self.email = "ryand-ruby@zenspider.com" self.clean_globs = %w(diff diff.txt email.txt ri *.gem **/*~) self.test_globs = ['test/**/test_*.rb'] - self.changes = "#{author} is too lazy to write a changeset" - self.description = "#{author} is too lazy to write a description" - self.summary = "#{author} is too lazy to write a summary" + self.changes = "The author was too lazy to write a changeset" + self.description = "The author was too lazy to write a description" + self.summary = "The author was too lazy to write a summary" self.rdoc_pattern = /^(lib|bin)|txt$/ self.extra_deps = [] self.spec_extras = {} self.need_tar = true self.need_zip = false @@ -381,10 +381,18 @@ task :announce => [:email, :post_news] desc "Verify the manifest" task :check_manifest => :clean do f = "Manifest.tmp" - system "find . -type f | egrep -v 'svn|tmp$' | cut -c3- | sort > #{f}" + require 'find' + files = [] + Find.find '.' do |path| + next unless File.file? path + next if path =~ /svn|tmp$/ + files << path[2..-1] + end + files = files.sort.join "\n" + File.open f, 'w' do |fp| fp.puts files end system "diff -du Manifest.txt #{f}" rm f end end # end define