elementary-rpc 2.1.1.39 → 2.1.2.41
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.
- checksums.yaml +8 -8
- data/lib/elementary/transport/http.rb +1 -1
- data/lib/elementary/version.rb +1 -1
- data/spec/connection_spec.rb +1 -1
- data/spec/sample_elementary_client_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGU3MzAxZDYwNjllOWQ2ZTMwMWQ5Zjc5ZDMwMTc4ZjNhZTcwMWI2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2I4NGY0OTQ5ZjBmODhlNjM4ODQxZjZkOWViYzM5ZTg2YjQ3ZDVjMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODAyODBmYTViNWQwODQ2NWU1YzNiZDQ0ZmU2NzcxNGQ5ZWEzYWJkOGYyYmM2
|
10
|
+
MjczOTNlMGU1MGFlZmI3NTc0ZTE2N2UzZmQ4MWZiMjYwZjRjOTU2OGRlZTY2
|
11
|
+
Njg1NDQzZGE4YTQwNmQ4NWQ2ZWU0NDZhMDQwNTY0MDk0MzIwZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTBjZjk0MmRiY2JjNzY5YjEzMTYxZjEyMThkZTE2NTA1OGY4YWRiZGIwMzM2
|
14
|
+
MjIyMjU5ZWRjMzU0N2VhMDk1ZjQ1NTAzNzU5MTU5MWU5MWQ3ZmEyNWJiMmUx
|
15
|
+
MmUxYzUxYTI1OGYwMTI5ODQzNDU3MDkxNWM5MjAwN2I3OWZmMzc=
|
data/lib/elementary/version.rb
CHANGED
data/spec/connection_spec.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|