spunk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spunk/bot.rb +1 -1
- data/lib/spunk/helpers.rb +1 -2
- metadata +3 -2
data/lib/spunk/bot.rb
CHANGED
@@ -4,7 +4,7 @@ require 'openssl'
|
|
4
4
|
module Spunk
|
5
5
|
class Bot
|
6
6
|
attr_accessor :nickname, :server, :joined_rooms, :ssl, :server, :rooms, :token
|
7
|
-
attr_reader :processors, :request_processors, :response_processors
|
7
|
+
attr_reader :processors, :request_processors, :response_processors, :hostname
|
8
8
|
|
9
9
|
def initialize(options = {})
|
10
10
|
options.each do |option, value|
|
data/lib/spunk/helpers.rb
CHANGED
@@ -7,8 +7,7 @@ module Spunk
|
|
7
7
|
|
8
8
|
def Helpers.hashify(bot, origin, command, msg)
|
9
9
|
hash = {:bot=>bot, :origin=>origin, :command => command, :msg => msg, :room => nil}
|
10
|
-
|
11
|
-
hash[:room] = $1
|
10
|
+
hash[:room] = Helpers.parse_room(command)
|
12
11
|
return hash
|
13
12
|
end
|
14
13
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spunk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,8 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2013-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: A simple little IRCbot framework based on Sprinkles
|
14
|
+
description: A simple little IRCbot framework based on Sprinkles. Uses IOC pattern
|
15
|
+
for defining parsers.
|
15
16
|
email: parabuzzle@gmail.com
|
16
17
|
executables: []
|
17
18
|
extensions: []
|