net-yail 1.3.4 → 1.3.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/lib/net/yail.rb CHANGED
@@ -230,7 +230,7 @@ class YAIL
230
230
  include Net::IRCEvents::Defaults
231
231
  include Net::IRCOutputAPI
232
232
 
233
- VERSION = '1.3.4'
233
+ VERSION = '1.3.5'
234
234
 
235
235
  attr_reader(
236
236
  :me, # Nickname on the IRC server
@@ -294,6 +294,7 @@ class YAIL
294
294
  rescue StandardError => boom
295
295
  report "+++ERROR: Unable to open socket connection in Net::YAIL.initialize: #{boom.inspect}"
296
296
  @dead_socket = true
297
+ raise
297
298
  end
298
299
 
299
300
  # Shared resources for threads to try and coordinate.... I know very
@@ -357,7 +358,8 @@ class YAIL
357
358
  line = @socket.gets
358
359
  rescue StandardError => boom
359
360
  @dead_socket = true
360
- report "+++ERROR in read_incoming_data -> @socket.gets: #{boom.inspect}"
361
+ report "+++ERROR in read_incoming_data -> @socket.gets: #{boom.inspect}" if @loud
362
+ raise
361
363
  end
362
364
 
363
365
  # If we somehow got no data here, the socket is closed. Run away!!!
@@ -125,11 +125,11 @@ module Defaults
125
125
  nick nextnick
126
126
  else
127
127
  report '*** All nicknames in use. ***'
128
- quit 'All nicknames in use.'
128
+ raise ArgumentError.new("All nicknames in use")
129
129
  end
130
130
  rescue
131
131
  report '*** Nickname selection error. ***'
132
- quit 'Nickname selection error.'
132
+ raise
133
133
  end
134
134
  end
135
135
  end
File without changes
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 4
9
- version: 1.3.4
8
+ - 5
9
+ version: 1.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Echols
@@ -14,7 +14,7 @@ autorequire: net/yail
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-28 00:00:00 -04:00
17
+ date: 2010-08-09 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -37,6 +37,7 @@ files:
37
37
  - lib/net/yail/message_parser.rb
38
38
  - lib/net/yail/default_events.rb
39
39
  - lib/net/yail/output_api.rb
40
+ - lib/net/yail/event_manager.rb
40
41
  - tests/net_yail.rb
41
42
  - tests/tc_message_parser.rb
42
43
  - README