irc 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/irc/bot.rb +1 -1
  2. data/lib/irc/connection.rb +1 -4
  3. metadata +2 -2
@@ -62,7 +62,7 @@ module IRC
62
62
  end
63
63
 
64
64
  def reset!
65
- Callback.reset!
65
+ Callback.clear!
66
66
  @channels = []
67
67
  end
68
68
 
@@ -21,10 +21,7 @@ module IRC
21
21
  end
22
22
 
23
23
  def write *strings
24
- strings.each do |string|
25
- puts '-> ' + string
26
- socket.print string + "\r\n"
27
- end
24
+ socket.print *strings.map { |str| str + "\r\n" }
28
25
  end
29
26
 
30
27
  def join *channels
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
- rubygems_version: 1.8.24
67
+ rubygems_version: 1.8.23
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: a simple ruby irc (bot) framework