jrpc 1.1.3 → 1.1.4

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: 92d494e0cd51ab722a301cf230fa02b17fd2bfe3
4
- data.tar.gz: f0b3f46a778f6fba866e1a7708ab385329cecd57
3
+ metadata.gz: 35ff073f693838ea277b7d45a74810ed2a19bb2c
4
+ data.tar.gz: 989c280e64c040452315428b5efb66b1aae0e50d
5
5
  SHA512:
6
- metadata.gz: bb4bf3319261ddb2a17589f6bedfb624843d73ca690866e2efc456a42ffbbff19e9f24f12359590cafea74d1a9bf07a9ececa0cf6655c004b43cffb4ff77943c
7
- data.tar.gz: f2024c8bce167101e09bfa8eab07b889a7df2009cb6e46d58b6025de431b0626ba6171c2c3ccf0f888cef596152fb2bed5fdb16fa771804a6a13e1fbf5d54a4b
6
+ metadata.gz: e6da15a921442726c75a18673d97e252de6e09c157ec96b97e38f7c856cf19d0d15a02023e27b614cd9336c99d95c3e878c54ce60feca3a5c2aaea614abfcfb5
7
+ data.tar.gz: cf047524ba6c7a6cae042fb0844b71faf2b7052605622b2f34f5a0e2b320e38e40645df1ffc702b9af1d3000e3ce07484b45a8938c259dfeb19608bff98850e8
@@ -1,10 +1,10 @@
1
1
  require 'jrpc/version'
2
+ require 'jrpc/error/error'
2
3
  require 'jrpc/utils'
3
4
  require 'jrpc/base_client'
4
5
  require 'jrpc/transport/socket_base'
5
6
  require 'jrpc/transport/socket_tcp'
6
7
  require 'jrpc/tcp_client'
7
- require 'jrpc/error/error'
8
8
  require 'jrpc/error/connection_error'
9
9
  require 'jrpc/error/client_error'
10
10
  require 'jrpc/error/server_error'
@@ -2,7 +2,7 @@ module JRPC
2
2
  module Transport
3
3
  class SocketBase
4
4
 
5
- class Error < StandardError
5
+ class Error < ::JRPC::Error
6
6
  end
7
7
 
8
8
  class TimeoutError < Error
@@ -13,7 +13,7 @@ module JRPC
13
13
  length_to_read -= chunk.bytesize
14
14
  end
15
15
  received
16
- rescue Errno::EPIPE => e
16
+ rescue Errno::EPIPE, EOFError => e
17
17
  # EPIPE, in this case, means that the data connection was unexpectedly terminated.
18
18
  clear_socket!
19
19
  raise ReadFailedError, "#{e.class} #{e.message}"
@@ -1,3 +1,3 @@
1
1
  module JRPC
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netstring