lib/hoe.rb in hoe-4.0.5 vs lib/hoe.rb in hoe-4.1.0

- old
+ new

@@ -85,11 +85,11 @@ class Hoe include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = "4.0.5" + VERSION = "4.1.0" @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] @bad_plugins = [] @@ -907,11 +907,11 @@ value = self.send(field) abort "Hoe #{field} value not set. aborting" if value.nil? or value.empty? end end - def skip_intuit_values? + def skip_intuit_values? # :nodoc: %w[summary description homepage].all? { |field| send field } end ## # Loads ~/.hoerc, merges it with a .hoerc in the current pwd (if @@ -931,11 +931,11 @@ config = config.merge localconfig yield config, rc end - def maybe_load_yaml path + def maybe_load_yaml path # :nodoc: if File.exist? path then if YAML.respond_to? :safe_load_file then YAML.safe_load_file path, permitted_classes: [Regexp, Symbol] else YAML.load_file path @@ -944,11 +944,11 @@ {} end end end -class File +class File # :nodoc: # Like File::read, but strips out a BOM marker if it exists. def self.read_utf path r19 = "<3".respond_to? :encoding opt = r19 ? "r:bom|utf-8" : "rb" @@ -959,9 +959,5 @@ f.read.sub %r%\A\xEF\xBB\xBF%, "" end end end end - -def Gem.bin_wrapper name # :nodoc: HACK - File.join Gem.bindir, Gem.default_exec_format % name -end unless Gem.respond_to? :bin_wrapper