rhuidean 1.1.4 → 1.1.5
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.md +11 -6
- data/lib/rhuidean.rb +1 -1
- data/lib/rhuidean/client.rb +2 -2
- data/lib/rhuidean/methods.rb +5 -0
- data/rakefile +12 -25
- metadata +21 -31
data/README.md
CHANGED
|
@@ -13,14 +13,19 @@ TABLE OF CONTENTS
|
|
|
13
13
|
2. Installation
|
|
14
14
|
3. Contact and support
|
|
15
15
|
|
|
16
|
-
1
|
|
17
|
-
|
|
16
|
+
1\. CREDITS
|
|
17
|
+
-----------
|
|
18
18
|
|
|
19
19
|
Rhuidean is not based on any other code. I wrote the majority of it in a
|
|
20
20
|
single day as a way to try out a Ruby-based event system and as an exercise
|
|
21
21
|
writing in The Ruby Way. As such, rhuidean's code is very clean and concise,
|
|
22
22
|
and it also offers clever ways of accomplishing basic and advanced tasks.
|
|
23
23
|
|
|
24
|
+
Reference implementations can be found in [rhubot][] and [rhuhub][].
|
|
25
|
+
|
|
26
|
+
[rhubot]: http://github.com/rakaur/rhubot/
|
|
27
|
+
[rhuhub]: http://github.com/rakaur/rhuhub/
|
|
28
|
+
|
|
24
29
|
The current active development/maintenance is done by:
|
|
25
30
|
|
|
26
31
|
- rakaur, Eric Will <rakaur@malkier.net>
|
|
@@ -32,8 +37,8 @@ Almost all of the testing was also done by me, with help from:
|
|
|
32
37
|
|
|
33
38
|
And others on irc.malkier.net.
|
|
34
39
|
|
|
35
|
-
2
|
|
36
|
-
|
|
40
|
+
2\. INSTALLATION
|
|
41
|
+
----------------
|
|
37
42
|
|
|
38
43
|
This should be as simple as:
|
|
39
44
|
|
|
@@ -47,8 +52,8 @@ based on the current code and install it by doing:
|
|
|
47
52
|
|
|
48
53
|
There's just not much else to it.
|
|
49
54
|
|
|
50
|
-
3
|
|
51
|
-
|
|
55
|
+
3\. CONTACT AND SUPPORT
|
|
56
|
+
-----------------------
|
|
52
57
|
|
|
53
58
|
For bug or feature reports, please use GitHub's [issue tracking][1].
|
|
54
59
|
|
data/lib/rhuidean.rb
CHANGED
data/lib/rhuidean/client.rb
CHANGED
|
@@ -26,7 +26,7 @@ class Client
|
|
|
26
26
|
# Our TCPSocket.
|
|
27
27
|
attr_reader :socket
|
|
28
28
|
|
|
29
|
-
# A simple
|
|
29
|
+
# A simple Exception class.
|
|
30
30
|
class Error < Exception
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -359,7 +359,7 @@ class Client
|
|
|
359
359
|
# manage themselves in separate threads. Unfortunately,
|
|
360
360
|
# Ruby has a global lock and the scheduler isn't great, so
|
|
361
361
|
# this tells select() to timeout when the next timer needs to run.
|
|
362
|
-
timeout = (Timer.next_time - Time.now.to_f).round
|
|
362
|
+
timeout = (Timer.next_time - Time.now.to_f).round
|
|
363
363
|
timeout = 1 if timeout == 0 # Don't want 0, that's forever
|
|
364
364
|
timeout = 60 if timeout < 0 # Less than zero means no timers
|
|
365
365
|
|
data/lib/rhuidean/methods.rb
CHANGED
data/rakefile
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# Import required Ruby modules.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
require 'rdoc'
|
|
10
|
+
require 'rake/testtask'
|
|
11
|
+
require 'rubygems/package_task'
|
|
12
|
+
|
|
12
13
|
|
|
13
14
|
$: << Dir.getwd
|
|
14
15
|
$: << 'lib'
|
|
@@ -26,17 +27,6 @@ Rake::TestTask.new do |t|
|
|
|
26
27
|
t.test_files = %w(test/ts_rhuidean.rb)
|
|
27
28
|
end
|
|
28
29
|
|
|
29
|
-
#
|
|
30
|
-
# Documentation generation.
|
|
31
|
-
#
|
|
32
|
-
# $ rake rdoc
|
|
33
|
-
#
|
|
34
|
-
Rake::RDocTask.new do |r|
|
|
35
|
-
r.rdoc_dir = 'doc/rdoc'
|
|
36
|
-
r.options << '--line-numbers' << '--inline-source'
|
|
37
|
-
r.rdoc_files.include('lib/rhuidean.rb lib/rhuidean/**/*')
|
|
38
|
-
end
|
|
39
|
-
|
|
40
30
|
#
|
|
41
31
|
# Package generation.
|
|
42
32
|
#
|
|
@@ -46,14 +36,6 @@ PKG_FILES = FileList['README.md', 'rakefile',
|
|
|
46
36
|
'lib/rhuidean.rb', 'lib/rhuidean/**/*.rb',
|
|
47
37
|
'test/*.rb']
|
|
48
38
|
|
|
49
|
-
Rake::PackageTask.new('package') do |p|
|
|
50
|
-
p.name = 'rhuidean'
|
|
51
|
-
p.version = Rhuidean::VERSION
|
|
52
|
-
p.need_tar = false
|
|
53
|
-
p.need_zip = false
|
|
54
|
-
p.package_files = PKG_FILES
|
|
55
|
-
end
|
|
56
|
-
|
|
57
39
|
spec = Gem::Specification.new do |s|
|
|
58
40
|
s.name = 'rhuidean'
|
|
59
41
|
s.version = Rhuidean::VERSION
|
|
@@ -61,14 +43,19 @@ spec = Gem::Specification.new do |s|
|
|
|
61
43
|
s.email = 'rakaur@malkier.net'
|
|
62
44
|
s.homepage = 'http://github.com/rakaur/rhuidean/'
|
|
63
45
|
s.platform = Gem::Platform::RUBY
|
|
64
|
-
s.summary = 'a small, lightweight IRC client library'
|
|
65
46
|
s.files = PKG_FILES.to_a
|
|
66
47
|
|
|
67
48
|
s.require_paths = %w(lib)
|
|
68
49
|
s.test_file = 'test/ts_rhuidean.rb'
|
|
69
50
|
s.has_rdoc = true
|
|
51
|
+
s.description = 'a small, lightweight IRC client library'
|
|
52
|
+
s.summary = 'a small lightweight IRC client library'
|
|
70
53
|
end
|
|
71
54
|
|
|
72
|
-
|
|
55
|
+
Gem::PackageTask.new(spec) do |p|
|
|
56
|
+
p.name = 'rhuidean'
|
|
57
|
+
p.version = Rhuidean::VERSION
|
|
58
|
+
p.need_tar = false
|
|
59
|
+
p.need_zip = false
|
|
60
|
+
p.package_files = PKG_FILES
|
|
73
61
|
end
|
|
74
|
-
|
metadata
CHANGED
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rhuidean
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.1.5
|
|
4
5
|
prerelease:
|
|
5
|
-
version: 1.1.4
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
7
|
+
authors:
|
|
8
8
|
- Eric Will
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
date: 2011-04-05 00:00:00 -04:00
|
|
14
|
-
default_executable:
|
|
12
|
+
date: 2011-08-31 00:00:00.000000000Z
|
|
15
13
|
dependencies: []
|
|
16
|
-
|
|
17
|
-
description:
|
|
14
|
+
description: a small, lightweight IRC client library
|
|
18
15
|
email: rakaur@malkier.net
|
|
19
16
|
executables: []
|
|
20
|
-
|
|
21
17
|
extensions: []
|
|
22
|
-
|
|
23
18
|
extra_rdoc_files: []
|
|
24
|
-
|
|
25
|
-
files:
|
|
19
|
+
files:
|
|
26
20
|
- README.md
|
|
27
21
|
- rakefile
|
|
28
22
|
- lib/rhuidean.rb
|
|
@@ -37,33 +31,29 @@ files:
|
|
|
37
31
|
- lib/rhuidean/timer.rb
|
|
38
32
|
- test/tc_client.rb
|
|
39
33
|
- test/ts_rhuidean.rb
|
|
40
|
-
has_rdoc: true
|
|
41
34
|
homepage: http://github.com/rakaur/rhuidean/
|
|
42
35
|
licenses: []
|
|
43
|
-
|
|
44
36
|
post_install_message:
|
|
45
37
|
rdoc_options: []
|
|
46
|
-
|
|
47
|
-
require_paths:
|
|
38
|
+
require_paths:
|
|
48
39
|
- lib
|
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
50
41
|
none: false
|
|
51
|
-
requirements:
|
|
52
|
-
- -
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
55
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
47
|
none: false
|
|
57
|
-
requirements:
|
|
58
|
-
- -
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
48
|
+
requirements:
|
|
49
|
+
- - ! '>='
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
61
52
|
requirements: []
|
|
62
|
-
|
|
63
53
|
rubyforge_project:
|
|
64
|
-
rubygems_version: 1.
|
|
54
|
+
rubygems_version: 1.8.6
|
|
65
55
|
signing_key:
|
|
66
56
|
specification_version: 3
|
|
67
|
-
summary: a small
|
|
68
|
-
test_files:
|
|
57
|
+
summary: a small lightweight IRC client library
|
|
58
|
+
test_files:
|
|
69
59
|
- test/ts_rhuidean.rb
|