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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d475981de2a40b76f29ad3a39288de12feb3627
4
- data.tar.gz: 359336db88d9408b7e3e2bab2af39f2ca2bc7884
3
+ metadata.gz: 4bfc3e21c8570d8547ca70b7c0d8d47d2896e4f8
4
+ data.tar.gz: d024ce01230a62e182cefaf49495226c2ae00f05
5
5
  SHA512:
6
- metadata.gz: 37dcd2110c7246f9d47547e7dcb9354c30d12960c5d48d781a757b51b891fc8d5003e116c62d01f7ce842a06997d10fedb15d8155e532e90ad0866c4e526d9a3
7
- data.tar.gz: b878159e1de59ce925601989bfad40049c0239d84fbc894e96d6ece7106f8394d4417f4341a8d6089a2d6a29fc26095a1da09c78e1b4b72234c72067fe14ee37
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.0.0)
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.14.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.14.5
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
@@ -5,7 +5,7 @@ module RecastAI
5
5
  # Versioning
6
6
  MAJOR = '3'.freeze
7
7
  MINOR = '1'.freeze
8
- MICRO = '1'.freeze
8
+ MICRO = '2'.freeze
9
9
  VERSION = "#{MAJOR}.#{MINOR}.#{MICRO}".freeze
10
10
 
11
11
  # Endpoints
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.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-05-15 00:00:00.000000000 Z
11
+ date: 2017-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty