rhuidean 0.2.1 → 0.2.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/README CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # rhuidean: a small IRC client library
2
+ # rhuidean: a small, lightweight IRC client library
3
3
  # README: at-a-glance documentation
4
4
  #
5
5
  # Copyright (c) 2004-2009 Eric Will <rakaur@malkier.net>
@@ -14,11 +14,11 @@ module IRC
14
14
  class Client
15
15
  ##
16
16
  # constants
17
- VERSION = '0.2.1'
17
+ VERSION = '0.2.2'
18
18
 
19
19
  ##
20
20
  # instance attributes
21
- attr_accessor :server, :port, :password, :debug,
21
+ attr_accessor :server, :port, :password, :debug, :thread,
22
22
  :nickname, :username, :realname, :bind_to
23
23
 
24
24
  # Our TCPSocket.
@@ -45,8 +45,8 @@ class Client
45
45
  # c.debug = false
46
46
  # end
47
47
  #
48
- # t = Thread.new { client.io_loop }
49
- # Thread.list.each { |t| t.join unless t == Thread.main } # or similar...
48
+ # client.thread = Thread.new { client.io_loop }
49
+ # clients.each { |client| client.thread.join }
50
50
  # [...]
51
51
  # client.quit("IRC quit message!")
52
52
  # client.exit
@@ -262,7 +262,7 @@ class Client
262
262
  params = nil
263
263
  end
264
264
 
265
- params = params.split if params
265
+ params &&= params.split
266
266
 
267
267
  msg = Message.new(self, line, origin, target, params)
268
268
 
@@ -443,3 +443,4 @@ class Message
443
443
  end
444
444
 
445
445
  end # module IRC
446
+
@@ -111,3 +111,4 @@ class EventQueue
111
111
  end
112
112
 
113
113
  end # module IRC
114
+
@@ -69,3 +69,4 @@ class Client
69
69
  end
70
70
 
71
71
  end # module IRC
72
+
@@ -176,3 +176,4 @@ end
176
176
  end # module Numeric
177
177
 
178
178
  end # module IRC
179
+
@@ -101,3 +101,4 @@ class Timer
101
101
  end
102
102
 
103
103
  end # module IRC
104
+
data/lib/rhuidean.rb CHANGED
@@ -9,3 +9,4 @@
9
9
  %w(client event methods numeric timer).each do |m|
10
10
  require 'rhuidean/' + m
11
11
  end
12
+
data/rakefile CHANGED
@@ -44,7 +44,7 @@ PKG_FILES = FileList['README', 'rakefile',
44
44
 
45
45
  Rake::PackageTask.new('package') do |p|
46
46
  p.name = 'rhuidean'
47
- p.version = '0.2.1'
47
+ p.version = '0.2.2'
48
48
  p.need_tar = false
49
49
  p.need_zip = false
50
50
  p.package_files = PKG_FILES
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  spec = Gem::Specification.new do |s|
54
54
  s.name = 'rhuidean'
55
- s.version = '0.2.1'
55
+ s.version = '0.2.2'
56
56
  s.author = 'Eric Will'
57
57
  s.email = 'rakaur@malkier.net'
58
58
  s.homepage = 'http://github.com/rakaur/rhuidean/'
data/test/tc_client.rb CHANGED
@@ -71,3 +71,4 @@ class TestClient < Test::Unit::TestCase
71
71
  assert(true, welcome)
72
72
  end
73
73
  end
74
+
data/test/ts_rhuidean.rb CHANGED
@@ -12,3 +12,4 @@ require 'test/unit'
12
12
  require 'rhuidean'
13
13
 
14
14
  require 'test/tc_client.rb'
15
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhuidean
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Will
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-08 00:00:00 -04:00
18
+ date: 2010-09-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -31,11 +31,11 @@ files:
31
31
  - README
32
32
  - rakefile
33
33
  - lib/rhuidean.rb
34
+ - lib/rhuidean/client.rb
35
+ - lib/rhuidean/event.rb
34
36
  - lib/rhuidean/methods.rb
35
37
  - lib/rhuidean/numeric.rb
36
- - lib/rhuidean/client.rb
37
38
  - lib/rhuidean/timer.rb
38
- - lib/rhuidean/event.rb
39
39
  - test/tc_client.rb
40
40
  - test/ts_rhuidean.rb
41
41
  has_rdoc: true