circuit-api 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/circuit_api/resources/conversation.rb +10 -1
- data/lib/circuit_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb15fa96b8e646060129334e62e288aa47628ab8d136b5ccca0f12c5d01a58f7
|
4
|
+
data.tar.gz: 6f0175045cd1749da32b86e2717be3fa673bc3b7283dcea0b94c7e15bcda9ba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 765cdcff0d7019ec8fd7a6dc9192d449826905b5487b6066da0fe3046473994a5e88193fb7e83111524ecd92e9603634098b95369409bee39c0f2fd83235dfc9
|
7
|
+
data.tar.gz: 88fb3b5bd00daa37b65488f4c722b4b2985cb07d3ce4373f02d58998bc107e9b566c26c829c1d7d053956a82dd136b1fea0d6b3cf5aa1b592b34b2ac67fdc6a4
|
@@ -6,7 +6,16 @@ module CircuitApi
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def create_direct(participant)
|
9
|
-
result =
|
9
|
+
result = nil
|
10
|
+
|
11
|
+
begin
|
12
|
+
result = connection("#{api_resource}/direct", participant: participant).post
|
13
|
+
rescue CircuitApi::HttpError => e
|
14
|
+
raise unless e.error_code.to_i == 409
|
15
|
+
|
16
|
+
result = JSON.parse(e.error_body)
|
17
|
+
end
|
18
|
+
|
10
19
|
response_to_object(result)
|
11
20
|
end
|
12
21
|
end
|
data/lib/circuit_api/version.rb
CHANGED