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: 39e925f6844d37eeebbebfb1e39ff405a88e73d98c9ac17132b4884c8d36c6ab
4
- data.tar.gz: cd57ff7e6d36132f415aad355ebae50f09b79c64f649e08b6d3bd3e5559fa926
3
+ metadata.gz: cc2e00e3c94492615469feecfee8a4f1f6b8c3584d050972433c11c2753c295b
4
+ data.tar.gz: 04003279a5d372eaeb79e0fa060df144d2cf075ecee46e8295976fbf42d1c19f
5
5
  SHA512:
6
- metadata.gz: a86e448912a28076ff77fc3a81de35b0c022da99bf25595c171f80767315c5941867937cc44c1275b2790c8f0316cc557ea65457e7dc1a8c3141658cc795420e
7
- data.tar.gz: c1903e079f5f41a3218ea182ffd99f00b043521ff57798ad25282e033407e73a8685d44a434063190db7b81743b21d080bd7e4196b6f488f6a8a850e4d7d6675
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 == "application/json" && content.instance_of?(Hash)
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 == "application/json" && tone_input.instance_of?(Hash)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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-18 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby