From b1f6bf78cdb585619caf8d831e918946fa247c83 Mon Sep 17 00:00:00 2001 From: Mark Redding Date: Tue, 21 Jun 2011 00:37:46 -0400 Subject: [PATCH 1/3] added file as an option for faces_recognize --- lib/face/client/recognition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/face/client/recognition.rb b/lib/face/client/recognition.rb index f14af61..9cdc464 100644 --- a/lib/face/client/recognition.rb +++ b/lib/face/client/recognition.rb @@ -8,7 +8,7 @@ def faces_detect(opts={}) end def faces_recognize(opts={}) - opts.assert_valid_keys(:uids, :urls, :namespace, :detector, :attributes, :callback, :callback_url) + opts.assert_valid_keys(:uids, :file, :urls, :namespace, :detector, :attributes, :callback, :callback_url) make_request(:faces_recognize, opts.merge(user_auth_param)) end From 17de28c117f20d38ec6d9cd8dd910d4ed8516311 Mon Sep 17 00:00:00 2001 From: Mark Redding Date: Sat, 9 Jul 2011 00:09:18 -0400 Subject: [PATCH 2/3] trying to move these to all https --- lib/face/client/utils.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/face/client/utils.rb b/lib/face/client/utils.rb index 25a5a84..366562e 100644 --- a/lib/face/client/utils.rb +++ b/lib/face/client/utils.rb @@ -5,16 +5,16 @@ module Utils class FaceError < StandardError; end API_METHODS = { - :faces_detect => 'http://api.face.com/faces/detect.json', - :faces_recognize => 'http://api.face.com/faces/recognize.json', - :faces_train => 'http://api.face.com/faces/train.json', - :faces_status => 'http://api.face.com/faces/status.json', - :tags_get => 'http://api.face.com/tags/get.json', - :tags_add => 'http://api.face.com/tags/add.json', - :tags_save => 'http://api.face.com/tags/save.json', - :tags_remove => 'http://api.face.com/tags/remove.json', - :account_limits => 'http://api.face.com/account/limits.json', - :account_users => 'http://api.face.com/account/users.json' + :faces_detect => 'https://api.face.com/faces/detect.json', + :faces_recognize => 'https://api.face.com/faces/recognize.json', + :faces_train => 'https://api.face.com/faces/train.json', + :faces_status => 'https://api.face.com/faces/status.json', + :tags_get => 'https://api.face.com/tags/get.json', + :tags_add => 'https://api.face.com/tags/add.json', + :tags_save => 'https://api.face.com/tags/save.json', + :tags_remove => 'https://api.face.com/tags/remove.json', + :account_limits => 'https://api.face.com/account/limits.json', + :account_users => 'https://api.face.com/account/users.json' } def api_crendential From a0c0af2caaaf9e8176bd557e8c6b3e4dfdc71bd0 Mon Sep 17 00:00:00 2001 From: Mark Redding Date: Sat, 9 Jul 2011 00:15:41 -0400 Subject: [PATCH 3/3] learning the version bump thing --- lib/face/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/face/version.rb b/lib/face/version.rb index 86a0406..f7dff54 100644 --- a/lib/face/version.rb +++ b/lib/face/version.rb @@ -1,3 +1,3 @@ module Face - VERSION = "0.0.4" + VERSION = "0.0.5" end