ibm_watson 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3aee888f8b5b95bd89cc0e4fcce469bb4cbf9547ca93d6c0d59b899031c5558
4
- data.tar.gz: ab13ed414ee0c6a572cc86a48c6dc49c8f3c0305586778bd4f71a8d880183248
3
+ metadata.gz: 3834857c16b6974709d114b4d0093223e322a871c9f961d19d8f47617c20e135
4
+ data.tar.gz: 90ef6a24e38b40ec0254bf7b13b62851578c20807182371eb42be16a2a92f968
5
5
  SHA512:
6
- metadata.gz: 67e25a43ec539edfb3c75fba544388238d1b155950386cb008930e77f1486a21c567ffc6574380275f0cb9302d3148365fe230367b4230400945300c456e3225
7
- data.tar.gz: 2eba798a910e335ce5cdcc290243ad4fb7ceedfaa22710c9a5137689e3d81aec034c72159b6f051dc73e257cedd20786b275d3ca4ff663f8292a769937b7bc04
6
+ metadata.gz: f14e249f5918715bb65c504206b67a65426c51611360e6f1b5661f6889d44af05345873e94afd680e229ac0cbcb4d02853101f071c3addb23bceb8e172ad3c43
7
+ data.tar.gz: b31d31588da90ebf7012a335a53537b69cf7f28ea68cd9ff928e388d05aee6b0cdd25eb5a36cc470f0a77c5c5728c4af49ee3e3088c0d229273f6d5132bb31ce
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
@@ -140,9 +140,6 @@ module IBMWatson
140
140
  images_file = images_file.instance_of?(StringIO) ? HTTP::FormData::File.new(images_file, content_type: mime_type) : HTTP::FormData::File.new(images_file.path, content_type: mime_type)
141
141
  end
142
142
  end
143
- threshold = HTTP::FormData::Part.new(threshold, content_type: "text/plain") unless threshold.nil?
144
- owners = HTTP::FormData::Part.new(owners, content_type: "text/plain") unless owners.nil?
145
- classifier_ids = HTTP::FormData::Part.new(classifier_ids, content_type: "text/plain") unless classifier_ids.nil?
146
143
  method_url = "/v3/classify"
147
144
  response = request(
148
145
  method: "POST",
@@ -29,7 +29,7 @@ if !ENV["VISUAL_RECOGNITION_IAM_APIKEY"].nil? && !ENV["VISUAL_RECOGNITION_IAM_UR
29
29
  dog_results = @service.classify(
30
30
  images_file: image_file,
31
31
  threshold: "0.1",
32
- classifier_ids: "default"
32
+ classifier_ids: %w[default food]
33
33
  ).result
34
34
  refute(dog_results.nil?)
35
35
  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.6.0
4
+ version: 0.6.1
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-09-12 00:00:00.000000000 Z
11
+ date: 2018-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby