cognitive_vision 0.4.1 → 0.4.3

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
  SHA1:
3
- metadata.gz: 9c7bde936c94e50e857a2b7314f2d2dd41e5d671
4
- data.tar.gz: 7f42da3a1874cceddff9d4bed246caca7fd3cfd9
3
+ metadata.gz: bcb511e764d76b177d665736d8c6074daec3bb0e
4
+ data.tar.gz: b6d251fb44eb9148bd475519f6a9ccb023d1b354
5
5
  SHA512:
6
- metadata.gz: 5e633a4d7cd78a027eebaff6d88993bce3049d6ba9fac70a8183e38ac887c6c643df7600ee3a776a4506de1182fd281d14008e62ede177af1c8f2f6a9b027dca
7
- data.tar.gz: 096612f7def3ee9ed8cf2c6984dafcc9e87ca5af36c90b5feb4386c09ad36a3872697359719159a824b78577b50488bb9b4e87304efad3aa07995ab80296b5e5
6
+ metadata.gz: 036cb0aefc28856d98c81a5cf0788a46ac376ccc02447637d35c33e2d0a866b0920aed887a7d5a10240c587cda780e528eed5dc5b12a286a136faa75cf5af3fd
7
+ data.tar.gz: c7360c6b5db66239f445e23fd8c754f0d9d83a4532329995674d4f6eb52658d23d2e0b1c594f4d4c32225713f60cd97534765e0db774616502905bbd9a22dca5
@@ -6,8 +6,8 @@ require 'cognitive_vision/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'cognitive_vision'
8
8
  spec.version = CognitiveVision::VERSION
9
- spec.authors = ['Carlos Ribeiro']
10
- spec.email = ['mail@carlosribeiro.me']
9
+ spec.authors = ['Carlos Ribeiro', 'Jason Adkison']
10
+ spec.email = ['mail@carlosribeiro.me', 'jadkison@gmail.com']
11
11
 
12
12
  spec.summary = 'Client to integrate with Microsoft Cognitive - Computer Vision API'
13
13
  spec.description = 'Client to integrate with Microsoft Cognitive - Computer Vision API'
@@ -6,6 +6,7 @@ module CognitiveVision
6
6
  end
7
7
 
8
8
  def parse(response)
9
+ return [] unless response[key].is_a?(Array)
9
10
  response[key].map { |category| CognitiveVision::Category.new(name: category['name'], score: category['score']) }
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module CognitiveVision
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cognitive_vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro
8
+ - Jason Adkison
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
12
+ date: 2017-05-12 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -153,6 +154,7 @@ dependencies:
153
154
  description: Client to integrate with Microsoft Cognitive - Computer Vision API
154
155
  email:
155
156
  - mail@carlosribeiro.me
157
+ - jadkison@gmail.com
156
158
  executables: []
157
159
  extensions: []
158
160
  extra_rdoc_files: []
@@ -207,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
209
  version: '0'
208
210
  requirements: []
209
211
  rubyforge_project:
210
- rubygems_version: 2.4.5
212
+ rubygems_version: 2.6.8
211
213
  signing_key:
212
214
  specification_version: 4
213
215
  summary: Client to integrate with Microsoft Cognitive - Computer Vision API