percy 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/percy.rb +3 -3
- metadata +3 -3
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/percy.rb
CHANGED
@@ -42,7 +42,7 @@ class Percy
|
|
42
42
|
attr_accessor :traffic_logger, :connected
|
43
43
|
end
|
44
44
|
|
45
|
-
VERSION = 'Percy 1.1.
|
45
|
+
VERSION = 'Percy 1.1.1 (http://github.com/tbuehlmann/percy)'
|
46
46
|
|
47
47
|
Config = Struct.new(:server, :port, :password, :nick, :username, :verbose, :logging, :reconnect, :reconnect_interval)
|
48
48
|
|
@@ -72,7 +72,7 @@ class Percy
|
|
72
72
|
# raw IRC messages
|
73
73
|
def self.raw(message)
|
74
74
|
@connection.send_data "#{message}\r\n"
|
75
|
-
@traffic_logger.info(">> #{message}") if @
|
75
|
+
@traffic_logger.info(">> #{message}") if @traffic_logger
|
76
76
|
puts "#{Time.now.strftime('%d.%m.%Y %H:%M:%S')} >> #{message}" if @config.verbose
|
77
77
|
end
|
78
78
|
|
@@ -238,7 +238,7 @@ class Percy
|
|
238
238
|
raise ArgumentError, "#{type} is not a supported type"
|
239
239
|
end
|
240
240
|
|
241
|
-
@events[type] = [] if @events[type].empty?
|
241
|
+
@events[type] = [] if @events[type].empty? # @events' default value is [], but it's not possible to add elements to it (weird!)
|
242
242
|
case type
|
243
243
|
when :channel || :query
|
244
244
|
@events[type] << {:match => match, :proc => block}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Tobias B\xC3\xBChlmann"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-29 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -63,6 +63,6 @@ rubyforge_project:
|
|
63
63
|
rubygems_version: 1.3.5
|
64
64
|
signing_key:
|
65
65
|
specification_version: 3
|
66
|
-
summary: IRC
|
66
|
+
summary: (DSL, EventMachine) IRC Bot Framework inspired by isaac
|
67
67
|
test_files: []
|
68
68
|
|