ibm_watson 0.1.2 → 0.1.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc2e00e3c94492615469feecfee8a4f1f6b8c3584d050972433c11c2753c295b
|
4
|
+
data.tar.gz: 04003279a5d372eaeb79e0fa060df144d2cf075ecee46e8295976fbf42d1c19f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2361ba117f53cb543afbab363167be2b539c5b882a3394073ed3717860ddd9c0ec7d448d72b06ad9c29f3e5367a78f625ee5121e54951a963c1e5f0dec97c567
|
7
|
+
data.tar.gz: 8dece04d437689bce2bfc5c84199c5ededf81df9cdf1fd786a3cf9d6cb7350d4ff057f7dd581f3c2d238e18c8f719d19b3ce8522d63a65e5ef94f661d5dd2c43
|
@@ -241,7 +241,7 @@ module IBMWatson
|
|
241
241
|
"csv_headers" => csv_headers,
|
242
242
|
"consumption_preferences" => consumption_preferences
|
243
243
|
}
|
244
|
-
if content_type
|
244
|
+
if content_type.start_with?("application/json") && content.instance_of?(Hash)
|
245
245
|
data = content.to_json
|
246
246
|
else
|
247
247
|
data = content
|
@@ -214,7 +214,7 @@ module IBMWatson
|
|
214
214
|
"sentences" => sentences,
|
215
215
|
"tones" => tones.to_a
|
216
216
|
}
|
217
|
-
if content_type
|
217
|
+
if content_type.start_with?("application/json") && tone_input.instance_of?(Hash)
|
218
218
|
data = tone_input.to_json
|
219
219
|
else
|
220
220
|
data = tone_input
|
data/lib/ibm_watson/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm_watson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Nussbaum
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|