lib/hoe.rb in hoe-3.14.2 vs lib/hoe.rb in hoe-3.15.0
- old
+ new
@@ -89,11 +89,11 @@
class Hoe
include Rake::DSL if defined?(Rake::DSL)
# duh
- VERSION = "3.14.2"
+ VERSION = "3.15.0"
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
:publish, :gemcutter, :signing, :test]
@bad_plugins = []
@@ -828,9 +828,51 @@
##
# Declare that your gem requires a specific ruby version. Last one wins.
def require_ruby_version *versions
spec_extras[:required_ruby_version] = versions
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 1.8+ family.
+
+ def ruby18!
+ require_ruby_version "~> 1.8"
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 1.9 family.
+
+ def ruby19!
+ require_ruby_version "~> 1.9"
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 2.0+ family.
+
+ def ruby20!
+ require_ruby_version "~> 2.0"
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 2.1+ family.
+
+ def ruby21!
+ require_ruby_version "~> 2.1"
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 2.2+ family.
+
+ def ruby22!
+ require_ruby_version "~> 2.2"
+ end
+
+ ##
+ # Declare that this gem requires ruby to be in the 2.3+ family.
+
+ def ruby23!
+ require_ruby_version "~> 2.3"
end
##
# Provide a linear degrading value from n to m over start to finis
# dates. If not provided, start and finis will default to 1/1 and