lib/hoe.rb in hoe-3.0.7 vs lib/hoe.rb in hoe-3.0.8
- old
+ new
@@ -89,11 +89,11 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = '3.0.7'
+ VERSION = '3.0.8'
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
:publish, :gemcutter, :signing, :test]
@bad_plugins = []
@@ -512,11 +512,11 @@
s.executables = s.files.grep(/^bin/) { |f| File.basename(f) }
s.bindir = "bin"
s.require_paths = dirs unless dirs.empty?
s.rdoc_options = ['--main', readme_file]
s.post_install_message = post_install_message
- s.test_files = Dir[*self.test_globs]
+ s.test_files = Dir[*self.test_globs].uniq
missing "Manifest.txt" if s.files.empty?
case author
when Array
@@ -597,10 +597,11 @@
self.rubyforge_name = name.downcase
self.spec = nil
self.spec_extras = {}
self.summary = nil
self.summary_sentences = 1
- self.test_globs = ['test/**/test_*.rb']
+ self.test_globs = ['test/**/{test,spec}_*.rb',
+ 'test/**/*_{test,spec}.rb']
if manifest = read_manifest then
self.readme_file = manifest.grep(/^README\./).first
self.history_file = manifest.grep(/^History\./).first
end