elementary-rpc 2.1.1.39 → 2.1.2.41

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTc3OGY5MjkxMzdhODU3MzM2NjkzOTBjZDI2MWY4ODA5YzQ1ZmYwZA==
4
+ MGU3MzAxZDYwNjllOWQ2ZTMwMWQ5Zjc5ZDMwMTc4ZjNhZTcwMWI2Mg==
5
5
  data.tar.gz: !binary |-
6
- OTg2MTNkMzJmZTg5M2NiZmM3ZDIwMzFlYmYzMzFlZTY4M2UwMmI0ZQ==
6
+ N2I4NGY0OTQ5ZjBmODhlNjM4ODQxZjZkOWViYzM5ZTg2YjQ3ZDVjMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjFhZTBiMzhlNzFmYjJiYTdlZTQyOTI4MTcyNzk5MjlhMGNkM2U4MjljNGVh
10
- MGNjZGU2NGJkMTE0YzQ4NWIyMWMxMzdhMzQ3MmRmYTBkMDNlMTVmN2M5YTc5
11
- MWQwYzc2ZWEzYzM4OWQzYTBiMDk2MGJiNDg2MzM1ZTE3NjdiYmM=
9
+ ODAyODBmYTViNWQwODQ2NWU1YzNiZDQ0ZmU2NzcxNGQ5ZWEzYWJkOGYyYmM2
10
+ MjczOTNlMGU1MGFlZmI3NTc0ZTE2N2UzZmQ4MWZiMjYwZjRjOTU2OGRlZTY2
11
+ Njg1NDQzZGE4YTQwNmQ4NWQ2ZWU0NDZhMDQwNTY0MDk0MzIwZWE=
12
12
  data.tar.gz: !binary |-
13
- ZmFlZDY4OGE2Njg2OWQ1NjM1YTY5NjRjZmI0ZTJmMWIyNzY4OTJjOGFiNTE4
14
- YzVjOTg2MGU1YjE0MzAxZmMwY2VkMDBlNzhjYTM3OWEzOGEwZmY2YjVmOWY4
15
- NTBiYTY3ODEzZDcyNGY4Y2IyYTgyNWMwZDVlYjY2ZmUyNjZiYzk=
13
+ NTBjZjk0MmRiY2JjNzY5YjEzMTYxZjEyMThkZTE2NTA1OGY4YWRiZGIwMzM2
14
+ MjIyMjU5ZWRjMzU0N2VhMDk1ZjQ1NTAzNzU5MTU5MWU5MWQ3ZmEyNWJiMmUx
15
+ MmUxYzUxYTI1OGYwMTI5ODQzNDU3MDkxNWM5MjAwN2I3OWZmMzc=
@@ -31,7 +31,7 @@ module Elementary
31
31
 
32
32
  return rpc_method[:response_type].decode(response.body)
33
33
  rescue StandardError => e
34
- raise
34
+ raise e.exception("#{service.name}##{rpc_method.method}: #{e.message}")
35
35
  end
36
36
  end
37
37
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Elementary
3
- VERSION = "2.1.1"
3
+ VERSION = "2.1.2"
4
4
  end
@@ -116,7 +116,7 @@ describe Elementary::Connection do
116
116
  it { should be_instance_of Elementary::Future }
117
117
  it 'should have a connection refused reason' do
118
118
  expect(response.reason).not_to be_nil
119
- expect(response.reason.to_s).to eq("connection refused: localhost:8090")
119
+ expect(response.reason.to_s).to include("connection refused: localhost:8090")
120
120
  end
121
121
  end
122
122
 
@@ -7,6 +7,7 @@ def send_and_verify_http_error_503(msg)
7
7
  expect(response).to be_rejected
8
8
  expect(response.reason.class).to be Elementary::Middleware::HttpStatusError
9
9
  expect(response.reason.message).to include("returned an HTTP response status of 503, so an exception was raised.")
10
+ expect(response.reason.message).to include("Elementary::Rspec::Simple#error")
10
11
  end
11
12
 
12
13
  def send_and_verify_http_error_500(msg)
@@ -14,6 +15,7 @@ def send_and_verify_http_error_500(msg)
14
15
  expect(response).to be_rejected
15
16
  expect(response.reason.class).to be Elementary::Errors::RPCFailure
16
17
  expect(response.reason.message).to include("sample failure")
18
+ expect(response.reason.message).to include("Elementary::Rspec::Simple#error")
17
19
  end
18
20
 
19
21
  def send_and_verify_http_error_400(msg)
@@ -21,6 +23,7 @@ def send_and_verify_http_error_400(msg)
21
23
  expect(response).to be_rejected
22
24
  expect(response.reason.class).to be Elementary::Errors::RPCFailure
23
25
  expect(response.reason.message).to include("sample bad request data failure")
26
+ expect(response.reason.message).to include("Elementary::Rspec::Simple#bad_request_data_method")
24
27
  end
25
28
 
26
29
  def send_and_verify_http_error_404(msg)
@@ -28,6 +31,7 @@ def send_and_verify_http_error_404(msg)
28
31
  expect(response).to be_rejected
29
32
  expect(response.reason.class).to be Elementary::Errors::RPCFailure
30
33
  expect(response.reason.message).to include("sample service not found failure")
34
+ expect(response.reason.message).to include("Elementary::Rspec::Simple#service_not_found_method")
31
35
  end
32
36
 
33
37
  def send_and_verify_connection_refused(msg)
@@ -35,6 +39,7 @@ def send_and_verify_connection_refused(msg)
35
39
  expect(response).to be_rejected
36
40
  expect(response.reason.class).to be Elementary::Middleware::HttpStatusError
37
41
  expect(response.reason.message).to include("connection refused: localhost:8090")
42
+ expect(response.reason.message).to include("Elementary::Rspec::Simple#error")
38
43
  end
39
44
 
40
45
  # This test requires ha-proxy to be listening at localhost:8080, but no real rpc to be available
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elementary-rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1.39
4
+ version: 2.1.2.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - R. Tyler Croy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-02 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler