irc-socket 0.9.5 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +18 -22
  3. metadata +17 -23
  4. data/Rakefile +0 -53
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Lee Jarvis
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,39 +1,35 @@
1
1
  == Description
2
2
 
3
- IRCSocket is an IRC wrapper around a TCPSocket. It implements all of the major
3
+ IRCSocket is an IRC wrapper around a TCPSocket. It implements all of the major
4
4
  commands laid out in {RFC 2812}[http://irchelp.org/irchelp/rfc/rfc2812.txt].
5
5
  All these commands are available as instance methods of an IRCSocket Object.
6
6
 
7
7
  API documentation is available {here}[http://rdoc.injekt.net/irc-socket]
8
8
 
9
9
  == Example
10
- irc = IRCSocket.new('irc.freenode.org')
11
- irc.connect
10
+ irc = IRCSocket.new('irc.freenode.org')
11
+ irc.connect
12
12
 
13
- if irc.connected?
14
- irc.nick "HulkHogan"
15
- irc.user "Hulk", 0, "*", "I am Hulk Hogan"
13
+ if irc.connected?
14
+ irc.nick "HulkHogan"
15
+ irc.user "Hulk", 0, "*", "I am Hulk Hogan"
16
16
 
17
- while line = irc.read
18
-
19
- # Join a channel after MOTD
20
- if line.split[1] == '376'
21
- irc.join "#mychannel"
22
- end
17
+ while line = irc.read
23
18
 
24
- puts "Received: #{line}"
25
- end
26
- end
19
+ # Join a channel after MOTD
20
+ if line.split[1] == '376'
21
+ irc.join "#mychannel"
22
+ end
23
+
24
+ puts "Received: #{line}"
25
+ end
26
+ end
27
27
 
28
28
  == Installation
29
- gem install irc-socket
29
+ gem install irc-socket
30
30
 
31
31
  Or alternatively you can clone the Github repository
32
- git clone https://github.com/injekt/irc-socket
33
-
34
-
35
- == Author
36
- * Lee Jarvis - ljjarvis@gmail.com
32
+ git clone https://github.com/injekt/irc-socket
37
33
 
38
34
  == Notes
39
- I may have missed something in the RFC. Patches welcome.
35
+ I may have missed something in the RFC. Patches welcome.
metadata CHANGED
@@ -1,21 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irc-socket
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
5
4
  prerelease: false
6
5
  segments:
6
+ - 1
7
7
  - 0
8
- - 9
9
- - 5
10
- version: 0.9.5
8
+ - 1
9
+ version: 1.0.1
11
10
  platform: ruby
12
11
  authors:
13
- - Lee 'injekt' Jarvis
12
+ - Lee Jarvis
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-05-23 00:00:00 +01:00
17
+ date: 2010-11-21 00:00:00 +00:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,36 +25,33 @@ dependencies:
26
25
  requirements:
27
26
  - - "="
28
27
  - !ruby/object:Gem::Version
29
- hash: 27
30
28
  segments:
29
+ - 2
31
30
  - 1
32
- - 3
33
31
  - 0
34
- version: 1.3.0
32
+ version: 2.1.0
35
33
  type: :development
36
34
  version_requirements: *id001
37
35
  description: An IRC wrapper around TCPSocket
38
- email: ljjarvis@gmail.com
36
+ email: lee@jarvis.co
39
37
  executables: []
40
38
 
41
39
  extensions: []
42
40
 
43
- extra_rdoc_files:
44
- - README.rdoc
41
+ extra_rdoc_files: []
42
+
45
43
  files:
46
44
  - README.rdoc
47
- - Rakefile
48
- - spec/irc-socket_spec.rb
45
+ - LICENSE
49
46
  - lib/irc-socket.rb
47
+ - spec/irc-socket_spec.rb
50
48
  has_rdoc: true
51
- homepage: http://rdoc.injekt.net/irc-socket
49
+ homepage: http://rubydoc.info/github/injekt/irc-socket
52
50
  licenses: []
53
51
 
54
52
  post_install_message:
55
- rdoc_options:
56
- - --quiet
57
- - --main
58
- - README.rdoc
53
+ rdoc_options: []
54
+
59
55
  require_paths:
60
56
  - lib
61
57
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -63,18 +59,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
59
  requirements:
64
60
  - - ">="
65
61
  - !ruby/object:Gem::Version
66
- hash: 63
67
62
  segments:
68
63
  - 1
69
64
  - 8
70
- - 4
71
- version: 1.8.4
65
+ - 6
66
+ version: 1.8.6
72
67
  required_rubygems_version: !ruby/object:Gem::Requirement
73
68
  none: false
74
69
  requirements:
75
70
  - - ">="
76
71
  - !ruby/object:Gem::Version
77
- hash: 3
78
72
  segments:
79
73
  - 0
80
74
  version: "0"
data/Rakefile DELETED
@@ -1,53 +0,0 @@
1
- require "rake"
2
- require "rake/clean"
3
- require "rake/gempackagetask"
4
- require "spec/rake/spectask"
5
- require "rake/rdoctask"
6
-
7
- NAME = 'irc-socket'
8
- VERSION = '0.9.5'
9
- CLEAN.include ["*.gem", "rdoc"]
10
-
11
- RDOC_OPTS = [
12
- "-U", "--main", "README.rdoc",
13
- "--op", "rdoc",
14
- ]
15
-
16
- Rake::RDocTask.new(:rdoc) do |rdoc|
17
- rdoc.rdoc_dir = "rdoc"
18
- rdoc.options += RDOC_OPTS
19
- rdoc.rdoc_files.add %w(README.rdoc lib/irc-socket.rb)
20
- end
21
-
22
- desc "Run specs"
23
- Spec::Rake::SpecTask.new('spec') do |t|
24
- t.spec_files = Dir['spec/*.rb']
25
- end
26
-
27
- desc "Package"
28
- task :package => [:clean] do |p|
29
- sh "gem build #{NAME}.gemspec"
30
- end
31
-
32
- desc "Install gem"
33
- task :install => [:package] do
34
- sh "sudo gem install ./#{NAME}-#{VERSION} --local"
35
- end
36
-
37
- desc "Uninstall gem"
38
- task :uninstall => [:clean] do
39
- sh "sudo gem uninstall #{NAME}"
40
- end
41
-
42
- desc "Upload gem to gemcutter"
43
- task :release => [:package] do
44
- sh "gem push ./#{NAME}-#{VERSION}.gem"
45
- end
46
-
47
- desc "Print #{NAME} version"
48
- task :version do
49
- puts VERSION
50
- end
51
-
52
- task :default => [:spec]
53
-