lib/hoe.rb in hoe-3.6.3 vs lib/hoe.rb in hoe-3.7.0

- old
+ new

@@ -89,11 +89,11 @@ class Hoe include Rake::DSL if defined?(Rake::DSL) # duh - VERSION = "3.6.3" + VERSION = "3.7.0" @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package, :publish, :gemcutter, :signing, :test] @bad_plugins = [] @@ -182,10 +182,12 @@ attr_accessor :history_file ## # Optional: An array containing the license(s) under which this gem is released. + # + # Warns and defaults to "MIT" if not set. attr_accessor :licenses ## # *MANDATORY*: The name of the release. @@ -555,10 +557,16 @@ s.extra_rdoc_files += @extra_rdoc_files end check_for_version - spec.licenses = licenses unless licenses.empty? + if licenses.empty? + warn "Defaulting gemspec to MIT license." + warn "Call license in hoe spec to change." + license "MIT" + end + + spec.licenses = licenses run_spec_extras end def check_for_version # :nodoc: