lib/hoe.rb in hoe-2.15.0 vs lib/hoe.rb in hoe-2.16.0
- old
+ new
@@ -1,8 +1,14 @@
# -*- mode: ruby; coding: us-ascii; -*-
require 'rubygems'
+
+begin
+ gem 'rake'
+rescue Gem::LoadError
+ warn "Using the crusty system installed rake... you probably want to upgrade"
+end
require 'rake'
require 'rake/testtask'
require 'rbconfig'
begin
@@ -66,14 +72,14 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = '2.15.0'
+ VERSION = '2.16.0'
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
- :publish, :rcov, :gemcutter, :signing, :test]
+ :publish, :gemcutter, :signing, :test]
@bad_plugins = []
##
# Used to add extra flags to RUBY_FLAGS.
@@ -91,11 +97,11 @@
##
# Default configuration values for .hoerc. Plugins should populate
# this on load.
DEFAULT_CONFIG = {
- "exclude" => /tmp$|CVS|\.svn|\.log$/,
+ "exclude" => /tmp$|CVS|\.svn|TAGS|extconf.h|\.o$|\.log$/,
}
##
# True if you're a masochistic developer. Used for building commands.
@@ -813,5 +819,9 @@
f.read.sub %r/\A\xEF\xBB\xBF/, ''
end
end
end
end
+
+def Gem.bin_wrapper name # HACK
+ File.join Gem.dir, "bin", Gem.default_exec_format % name
+end unless Gem.respond_to? :bin_wrapper