RecastAI 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/recastai/apis/connect/message.rb +2 -2
- data/lib/recastai/utils.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bfc3e21c8570d8547ca70b7c0d8d47d2896e4f8
|
4
|
+
data.tar.gz: d024ce01230a62e182cefaf49495226c2ae00f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e73ebcae3fc16e8f34bb02656fa908f96b6f30374f429b68b571cab3873ee34af9dbfbdacff26a2c38db26a47e6956e8979861cd2d5a266a0cc045d37d98c0a6
|
7
|
+
data.tar.gz: db01f55fa51277231e974650cde86aafdef5e320f9c71f2537c19d2aa880206509e55589912183ac2c52f3f5c53bc2119bd312cde253990194781e253505f6a1
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
RecastAI (3.
|
4
|
+
RecastAI (3.1.2)
|
5
5
|
httmultiparty (~> 0.3)
|
6
6
|
httparty (~> 0.13)
|
7
7
|
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
httparty (>= 0.7.3)
|
20
20
|
mimemagic
|
21
21
|
multipart-post
|
22
|
-
httparty (0.
|
22
|
+
httparty (0.15.5)
|
23
23
|
multi_xml (>= 0.5.2)
|
24
24
|
json (1.8.3)
|
25
25
|
mimemagic (0.3.2)
|
@@ -60,4 +60,4 @@ DEPENDENCIES
|
|
60
60
|
webmock (~> 1.24)
|
61
61
|
|
62
62
|
BUNDLED WITH
|
63
|
-
1.
|
63
|
+
1.15.1
|
@@ -19,7 +19,7 @@ module RecastAI
|
|
19
19
|
|
20
20
|
response = HTTParty.post(
|
21
21
|
"#{Utils::CONVERSATION_ENDPOINT}#{conversation_id}/messages",
|
22
|
-
body: { messages: payload },
|
22
|
+
body: { messages: payload.to_json },
|
23
23
|
headers: { 'Authorization' => "Token #{token}" }
|
24
24
|
)
|
25
25
|
raise RecastError.new(JSON.parse(response.body)['message']) if response.code != 201
|
@@ -33,7 +33,7 @@ module RecastAI
|
|
33
33
|
|
34
34
|
response = HTTParty.post(
|
35
35
|
Utils::MESSAGE_ENDPOINT,
|
36
|
-
body: { messages: payload },
|
36
|
+
body: { messages: payload.to_json },
|
37
37
|
headers: { 'Authorization' => "Token #{token}" }
|
38
38
|
)
|
39
39
|
raise RecastError.new(JSON.parse(response.body)['message']) if response.code != 201
|
data/lib/recastai/utils.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RecastAI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Renvoisé
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|