Permalink
Browse files

bump (c) date, version; other random tweaks

  • Loading branch information...
1 parent 2b9184c commit 94f10ef9db17294d0b6fbb2a071e7b3fa862a549 @brettstimmerman committed Feb 28, 2009
Showing with 33 additions and 50 deletions.
  1. +1 −1 LICENSE
  2. +14 −16 README → README.rdoc
  3. +6 −5 Rakefile
  4. +5 −8 jabber-bot.gemspec
  5. +4 −17 lib/jabber/bot.rb
  6. +3 −3 sample/sample.rb
View
@@ -1,4 +1,4 @@
-Copyright (c) 2007 Brett Stimmerman <brettstimmerman@gmail.com>
+Copyright (c) 2009 Brett Stimmerman <brettstimmerman@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -1,30 +1,28 @@
= Jabber::Bot
-Easily create powerful Jabber bots to do your bidding.
+Easily create simple regex powered Jabber bots.
-Jabber::Bot makes it simple to create and command your own Jabber bot with
-little fuss. By adding custom commands powered by regular expressions to your
-bot's repertoire, you and your new bot will be able to accomplish nearly
-anything.
+Jabber::Bot makes it simple to create and command your own Jabber bot. Bots
+are created by defining commands powered by regular expressions and Ruby.
-Author:: Brett Stimmerman (mailto:brettstimmerman@gmail.com)
-Version:: 1.1.0
-Copyright:: Copyright (c) 2007 Brett Stimmerman. All rights reserved.
-License:: New BSD License (http://opensource.org/licenses/bsd-license.php)
-Website:: http://socket7.net/software/jabber-bot
+*Author*:: Brett Stimmerman (mailto:brettstimmerman@gmail.com)
+*Version*:: 1.1.1
+*Copyright*:: Copyright (c) 2009 Brett Stimmerman. All rights reserved.
+*License*:: New BSD License (http://opensource.org/licenses/bsd-license.php)
+*Website*:: http://github.com/brettstimmerman/jabber-bot
-== Dependencies
+== Requires
-- Ruby[http://www.ruby-lang.org] 1.8.4+
-- xmpp4r-simple[http://xmpp4r-simple.rubyforge.org/] 0.8.7+
+* RubyGems
+* Jabber::Simple 0.8.7+
-== Basic Usage
+== Usage
- # Create a public Jabber::Bot to do your bidding
+ # Create a public Jabber::Bot
config = {
:name => 'SampleBot'
:jabber_id => 'bot@example.com',
- :password => 'password',
+ :password => 'secret',
:master => 'master@example.com',
:is_public => true
}
View
@@ -1,5 +1,5 @@
#--
-# Copyright (c) 2007 Brett Stimmerman <brettstimmerman@gmail.com>
+# Copyright (c) 2009 Brett Stimmerman <brettstimmerman@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -37,12 +37,13 @@ File.open(File.join(File.dirname(__FILE__), 'jabber-bot.gemspec')) do |f|
end
Rake::GemPackageTask.new(gemspec) do |pkg|
- pkg.need_tar = true
+ pkg.need_tar = false
+ pkg.need_zip = false
end
Rake::RDocTask.new do |rd|
- rd.main = 'README'
+ rd.main = 'README.rdoc'
rd.title = 'Jabber::Bot Documentation'
- rd.rdoc_dir = 'doc/html'
- rd.rdoc_files.include('README', 'lib/**/*.rb')
+ rd.rdoc_dir = 'doc'
+ rd.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
end
View
@@ -1,14 +1,11 @@
Gem::Specification.new do |s|
s.name = 'jabber-bot'
- s.version = '1.1.0'
+ s.version = '1.1.1'
s.author = 'Brett Stimmerman'
s.email = 'brettstimmerman@gmail.com'
- s.homepage = 'http://socket7.net/software/jabber-bot'
+ s.homepage = 'http://github/brettstimmerman/jabber-bot'
s.platform = Gem::Platform::RUBY
- s.summary = "Jabber::Bot makes it simple to create and command your own " +
- "Jabber bot with little fuss. By adding custom commands " +
- "powered by regular expressions to your bot's repertoire, you " +
- "and your new bot will be able to accomplish nearly anything."
+ s.summary = 'Easily create simple regex powered Jabber bots.'
s.rubyforge_project = 'jabber-bot'
@@ -22,9 +19,9 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.has_rdoc = true
- s.extra_rdoc_files = ['README', 'LICENSE', 'HISTORY']
+ s.extra_rdoc_files = ['README.rdoc', 'LICENSE', 'HISTORY']
s.rdoc_options << '--title' << 'Jabber::Bot Documentation' <<
- '--main' << 'README' <<
+ '--main' << 'README.rdoc' <<
'--line-numbers'
s.required_ruby_version = '>=1.8.4'
View
@@ -1,5 +1,5 @@
#--
-# Copyright (c) 2007 Brett Stimmerman <brettstimmerman@gmail.com>
+# Copyright (c) 2009 Brett Stimmerman <brettstimmerman@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -31,22 +31,9 @@
module Jabber
- # = Jabber::Bot
- #
- # Jabber::Bot makes it simple to create and command a Jabber bot with little
- # fuss. By adding custom commands powered by regular expressions to your bot's
- # repertoire, you and your new bot will be able to accomplish nearly anything.
- #
- # Author:: Brett Stimmerman (mailto:brettstimmerman@gmail.com)
- # Version:: 1.1.0
- # Copyright:: Copyright (c) 2007 Brett Stimmerman. All rights reserved.
- # License:: New BSD License (http://opensource.org/licenses/bsd-license.php)
- # Website:: http://socket7.net/software/jabber-bot
- #
class Bot
- # Direct access to the underlying
- # Jabber::Simple[http://xmpp4r-simple.rubyforge.org/] object.
+ # Direct access to the underlying Jabber::Simple object.
attr_reader :jabber
# Creates a new Jabber::Bot object with the specified +config+ Hash, which
@@ -71,7 +58,7 @@ class Bot
# # A minimally confiugured private bot with a single master.
# bot = Jabber::Bot.new(
# :jabber_id => 'bot@example.com',
- # :password => 'password',
+ # :password => 'secret',
# :master => 'master@example.com'
# )
#
@@ -82,7 +69,7 @@ class Bot
# bot = Jabber::Bot.new(
# :name => 'PublicBot',
# :jabber_id => 'bot@example.com',
- # :password => 'password',
+ # :password => 'secret',
# :master => masters,
# :is_public => true,
# :presence => :chat,
View
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
#--
-# Copyright (c) 2007 Brett Stimmerman <brettstimmerman@gmail.com>
+# Copyright (c) 2009 Brett Stimmerman <brettstimmerman@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -33,9 +33,9 @@
# Configure a public bot
config = {
- :name =? 'PublicBot',
+ :name => 'PublicBot',
:jabber_id => 'bot@example.com',
- :password => 'password',
+ :password => 'secret',
:master => 'master@example.com',
:is_public => true,
:status => 'Hello, I am PublicBot.',

0 comments on commit 94f10ef

Please sign in to comment.