diff options
author | Ryan Davis <ryand@zenspider.com> | 2009-08-05 16:07:03 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2009-08-05 16:07:03 -0800 |
commit | d0084781059c6620b97f8c6b19beca1e134f9260 (patch) | |
tree | 9573899632523ada0701b7393d73397e7b652d58 /lib | |
parent | cf51ffbb40bc3b9ab19555d75fb2b648da8a020e (diff) | |
download | hoe-d0084781059c6620b97f8c6b19beca1e134f9260.tar.gz |
+ Improved doco with some code examples.
+ #plugin now uniq's contents. (asarih)
[git-p4: depot-paths = "//src/hoe/dev/": change = 5362]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hoe.rb | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -86,12 +86,14 @@ class Hoe } ## - # True if you're a masochist developer. Used for building commands. + # True if you're a masochistic developer. Used for building commands. WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM 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. attr_accessor :author @@ -113,11 +115,15 @@ class Hoe ## # *MANDATORY*: The author's email address(es). (can be array) + # + # Use the #developer method to fill in both author and email cleanly. attr_accessor :email ## # Optional: An array of rubygem dependencies. + # + # extra_deps << ['blah', '~> 1.0'] attr_accessor :extra_deps @@ -140,6 +146,8 @@ class Hoe ## # *MANDATORY*: The name of the release. + # + # Set via Hoe.spec. attr_accessor :name @@ -165,6 +173,10 @@ class Hoe ## # Optional: A hash of extra values to set in the gemspec. Value may be a proc. + # + # spec_extras[:required_rubygems_version] = '>= 1.3.2' + # + # (tho, see #pluggable! if that's all you want to do) attr_accessor :spec_extras @@ -245,6 +257,7 @@ class Hoe def self.plugin *names self.plugins.concat names + self.plugins.uniq! end ## |