bertrpc 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/bertrpc.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{bertrpc}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tom Preston-Werner"]
@@ -42,6 +42,8 @@ module BERTRPC
42
42
  raise ProtocolError.new("Unable to read data from server.") unless bert_response
43
43
  sock.close
44
44
  bert_response
45
+ rescue Errno::ECONNREFUSED
46
+ raise ConnectionError.new("Unable to connect to #{@svc.host}:#{@svc.port}")
45
47
  end
46
48
  end
47
49
  end
@@ -3,6 +3,10 @@ module BERTRPC
3
3
 
4
4
  end
5
5
 
6
+ class ConnectionError < BERTRPCError
7
+
8
+ end
9
+
6
10
  class ProtocolError < BERTRPCError
7
11
 
8
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bertrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner