lib/hoe.rb in hoe-1.12.1 vs lib/hoe.rb in hoe-1.12.2

- old
+ new

@@ -132,11 +132,11 @@ # This will set the +Gem::Specification+ platform to the one indicated in # +FORCE_PLATFORM+ (instead of default Gem::Platform::CURRENT) # class Hoe - VERSION = '1.12.1' + VERSION = '1.12.2' GEMURL = URI.parse 'http://gems.rubyforge.org' # for namespace :deps below ruby_prefix = Config::CONFIG['prefix'] sitelibdir = Config::CONFIG['sitelibdir'] @@ -405,11 +405,11 @@ # Defaults self.author = [] self.blog_categories = [name] self.clean_globs = %w(diff diff.txt email.txt ri deps .source_index - *.gem **/*~ **/.*~ **/*.rbc) + *.gem **/*~ **/.*~ **/*.rbc coverage*) self.description_sections = %w(description) self.email = [] self.extra_deps = [] self.extra_dev_deps = [] self.extra_rdoc_files = [] @@ -557,24 +557,19 @@ Rcov::RcovTask.new do |t| pattern = ENV['PATTERN'] || 'test/test_*.rb' t.test_files = FileList[pattern] t.verbose = true - t.rcov_opts << "--threshold 80" t.rcov_opts << "--no-color" + t.rcov_opts << "--save coverage.info" t.rcov_opts << "-x ^/" end - # this is for autotest's rcov... also used by my emacs integration - task :rcov_info do - pattern = ENV['PATTERN'] || "test/test_*.rb" - ruby "-Ilib -S rcov --text-report --save coverage.info --test-unit-only #{pattern}" - end - # this is for my emacs rcov overlay stuff on emacswiki. task :rcov_overlay do - rcov, eol = Marshal.load(File.read("coverage.info")).last[ENV["FILE"]], 1 + path = ENV["FILE"] + rcov, eol = Marshal.load(File.read("coverage.info")).last[path], 1 puts rcov[:lines].zip(rcov[:coverage]).map { |line, coverage| bol, eol = eol, eol + line.length [bol, eol, "#ffcccc"] unless coverage }.compact.inspect end @@ -958,22 +953,24 @@ desc 'Create a fresh ~/.hoerc file.' task :config_hoe do with_config do |config, path| default_config = { - "exclude" => /tmp$|CVS|\.svn|\.log$/, + "exclude" => /tmp$|CVS|\.svn|\.log$/, "publish_on_announce" => false, - "signing_key_file" => "~/.gem/gem-private_key.pem", - "signing_cert_file" => "~/.gem/gem-public_cert.pem", - "blogs" => [ { - "user" => "user", - "url" => "url", - "extra_headers" => { - "mt_convert_breaks" => "markdown" - }, - "blog_id" => "blog_id", - "password"=>"password", - } ], + "signing_key_file" => "~/.gem/gem-private_key.pem", + "signing_cert_file" => "~/.gem/gem-public_cert.pem", + "blogs" => [ + { + "user" => "user", + "password" => "password", + "url" => "url", + "blog_id" => "blog_id", + "extra_headers" => { + "mt_convert_breaks" => "markdown" + }, + } + ], } File.open(path, "w") do |f| YAML.dump(default_config.merge(config), f) end