diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-18 14:27:43 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-18 14:27:43 +0000 |
commit | edd1cf77be07ae507014574141e920ad23eb164d (patch) | |
tree | ff4e21c5ba40f32d0713391c9a04dc90cb2742c2 /lib/rbot/core/utils | |
parent | 1dc872c99dccc0c34cb15c4083b7a70d4266d635 (diff) |
Plugin header boilerplating.
New plugin.header file provided, to be used as model for the header of new plugins. Many existing plugins have been adjusted to provide the same info the same way. I might have misplaced some information, so please let me know if this is the case.
Also augmented a couple of copyright notices to include the 'rbot development team' alongside Tom Gilbert.
Diffstat (limited to 'lib/rbot/core/utils')
-rw-r--r-- | lib/rbot/core/utils/extends.rb | 14 | ||||
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 14 | ||||
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 14 |
3 files changed, 40 insertions, 2 deletions
diff --git a/lib/rbot/core/utils/extends.rb b/lib/rbot/core/utils/extends.rb index 44487e0d..e882148b 100644 --- a/lib/rbot/core/utils/extends.rb +++ b/lib/rbot/core/utils/extends.rb @@ -1,10 +1,19 @@ #-- vim:sw=2:et #++ # -# Extensions to standard classes, to be used by the various plugins +# :title: Standard classes extensions +# +# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com> +# Copyright:: (C) 2006,2007 Giuseppe Bilotta +# License:: GPL v2 +# +# This file collects extensions to standard Ruby classes and to some core rbot +# classes to be used by the various plugins +# # Please note that global symbols have to be prefixed by :: because this plugin # will be read into an anonymous module + # Extensions to the Array class # class ::Array @@ -18,6 +27,7 @@ class ::Array end end + # Extensions to the String class # # TODO make ircify_html() accept an Hash of options, and make riphtml() just @@ -66,6 +76,7 @@ class ::String end end + # Extensions to the Regexp class, with some common and/or complex regular # expressions. # @@ -139,6 +150,7 @@ class ::Regexp end + module ::Irc diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index 7566aca4..ff2fb6c6 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -1,3 +1,15 @@ +#-- vim:sw=2:et +#++ +# +# :title: rbot HTTP provider +# +# Author:: Tom Gilbert <tom@linuxbrit.co.uk> +# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com> +# +# Copyright:: (C) 2002-2005 Tom Gilbert +# Copyright:: (C) 2006 Tom Gilbert, Giuseppe Bilotta +# Copyright:: (C) 2006,2007 Giuseppe Bilotta + module ::Irc module Utils @@ -6,7 +18,7 @@ require 'net/http' begin require 'net/https' rescue LoadError => e - error "Coudln't load 'net/https': #{e.inspect}" + error "Couldn't load 'net/https': #{e.inspect}" error "Secured HTTP connections will fail" end diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index c2b7d7b1..ac60735d 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -1,3 +1,17 @@ +#-- vim:sw=2:et +#++ +# +# :title: rbot utilities provider +# +# Author:: Tom Gilbert <tom@linuxbrit.co.uk> +# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com> +# +# Copyright:: (C) 2002-2006 Tom Gilbert +# Copyright:: (C) 2007 Giuseppe Bilotta +# +# TODO some of these Utils should be rewritten as extensions to the approriate +# standard Ruby classes and accordingly be moved to extends.rb + require 'net/http' require 'uri' require 'tempfile' |