lib/hoe.rb in hoe-2.10.0 vs lib/hoe.rb in hoe-2.11.0
- old
+ new
@@ -1,10 +1,11 @@
# -*- ruby -*-
require 'rubygems'
require 'rake'
require 'rake/testtask'
+require 'rbconfig'
begin
require 'psych'
rescue LoadError
# do nothing
@@ -65,11 +66,11 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = '2.10.0'
+ VERSION = '2.11.0'
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
:publish, :rcov, :gemcutter, :signing, :test]
##
@@ -94,10 +95,10 @@
}
##
# True if you're a masochistic developer. Used for building commands.
- WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM unless defined? WINDOZE
+ WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/ unless defined? WINDOZE
##
# *MANDATORY*: The author(s) of the package. (can be array)
#
# Use the #developer method to fill in both author and email cleanly.