percy 1.1.0 → 1.1.1

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.
Files changed (4) hide show
  1. data/README.md +1 -1
  2. data/VERSION +1 -1
  3. data/lib/percy.rb +3 -3
  4. metadata +3 -3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Percy 1.1.0
1
+ # Percy 1.1.1
2
2
 
3
3
  ## Configuring and starting the bot
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
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.0 (http://github.com/tbuehlmann/percy)'
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 @traffic_logg
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.0
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-22 00:00:00 +01:00
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 bot framework (inspired by isaac)
66
+ summary: (DSL, EventMachine) IRC Bot Framework inspired by isaac
67
67
  test_files: []
68
68