ione 1.2.0.pre2 → 1.2.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 571332add4f394d8de9adbe6b371de13c84e3a09
4
- data.tar.gz: 006892c0ffe2f9fdb489ba5848d28be6e45ad27c
3
+ metadata.gz: 0cfb6a38285dd1cd80c9120ba6df4416a04607d4
4
+ data.tar.gz: 456d6419e88e0845dbd4b648c48acbb83ed3ad52
5
5
  SHA512:
6
- metadata.gz: f41e94213226b72a09487b4ff615ab01b3be84ffe351f5dcd78ef2e350a0bcc17b117395fdcf35944d8ab78f4ae9383821140fa43cfb15866f9e78af9cc970ec
7
- data.tar.gz: 91778d76c5ef9fdf87ec0d51a29abb495056d0e3843badaec6ca6eeb86683f4aa82948a6e0a68d93ddf0dc012e54eafe4d84ba91d4d38224de3eb658297f1c2e
6
+ metadata.gz: 7620752ee5ab3f1252acec253cd39747c4d15b5c5f1f635ce1ea271369ab76bfae2cef24769c7957d868528a8d86a0a976948c2c5e2b27e905f931cd9c4fe141
7
+ data.tar.gz: f45766a8c27a944d68121a062c142da08539b38277b51c280c849324817794aea002d37980e049169704479045847bc60d63741dc4ecbe5c5c2732ab36e2db24
@@ -29,6 +29,9 @@ module Ione
29
29
  end
30
30
  end
31
31
  @state = :closed
32
+ if cause && !cause.is_a?(IoError)
33
+ cause = ConnectionClosedError.new(cause.message)
34
+ end
32
35
  if cause
33
36
  @closed_promise.fail(cause)
34
37
  else
data/lib/ione/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Ione
4
- VERSION = '1.2.0.pre2'.freeze
4
+ VERSION = '1.2.0.pre3'.freeze
5
5
  end
@@ -245,11 +245,12 @@ shared_examples_for 'a connection' do |options|
245
245
  handler.read
246
246
  end
247
247
 
248
- it 'passes the error to the close handler' do
248
+ it 'passes an IoError to the close handler' do
249
249
  error = nil
250
250
  handler.on_closed { |e| error = e }
251
251
  handler.read
252
- error.should be_a(Exception)
252
+ error.should be_a(Ione::Io::ConnectionClosedError)
253
+ error.message.should match(/Bork\!/)
253
254
  end
254
255
  end
255
256
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ione
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.pre2
4
+ version: 1.2.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo Hultberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Reactive programming framework for Ruby, painless evented IO, futures
14
14
  and an efficient byte buffer