face_detect 0.1.0 → 0.1.1

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: aa441dc7c2d9525533a9b65f43813791871a4c9d
4
- data.tar.gz: 862176e4951cb4ceee392d0c2480da02a202f714
3
+ metadata.gz: b37ad69e41e1e661025cc9c0872767ec41ed2d19
4
+ data.tar.gz: 8d1e5b665aab9cc39faf4492d448d36c13ee1a8d
5
5
  SHA512:
6
- metadata.gz: 16b5de33d46972b9cb274f76f4c5c8538c6b9abbb4c367be5f4d65b08bd86ad0e0cc9f3af68099bce936bb047cf37fa05b2b894e5b8af39f30fe7bc57e5b1112
7
- data.tar.gz: 5771a878d9bc011a2a5b25c706c94f9cc22a2fa1da23016d5537b6720a49e898ac8f10b3b3108783433be7edb15a642b3caea706318ec6588c5c9ab2955cd815
6
+ metadata.gz: 9a3461ef2e261413abb83d751a49420313aa1641c6d5c7ed11907345880dc6c72a923db07ae543621110f59fbeabe1911573d3f50fed33bb719f2617936d6e0f
7
+ data.tar.gz: 94ebcc1e1f0b033063665f64435a2099dc7bd1d320db9d1b03ffabe30c5c7d8491998351749064c67d69cfbcb0a773a7c2f34989e268de4fdcc523e848f3c483
data/.travis.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.12.1
4
+ - 2.1.10
5
+ - 2.3.1
6
+ before_install: gem update bundler
7
+ cache: bundler
@@ -13,8 +13,12 @@ class FaceDetect
13
13
  def run
14
14
  batch_response = execute
15
15
  response = batch_response.responses.first
16
- response.face_annotations.map do |annotation|
17
- convert_face(annotation)
16
+ if response && response.face_annotations
17
+ response.face_annotations.map do |annotation|
18
+ convert_face(annotation)
19
+ end
20
+ else
21
+ []
18
22
  end
19
23
  end
20
24
 
@@ -1,3 +1,3 @@
1
1
  class FaceDetect
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: face_detect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aidan Feldman