face 0.0.3 → 0.0.4

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.
@@ -3,21 +3,22 @@ module Face
3
3
  module Recognition
4
4
  # http://api.face.com/faces/detect.json
5
5
  def faces_detect(opts={})
6
- opts.assert_valid_keys(:urls)
6
+ opts.assert_valid_keys(:urls, :file, :detector, :attributes, :callback, :callback_url)
7
7
  make_request(:faces_detect, opts)
8
8
  end
9
9
 
10
10
  def faces_recognize(opts={})
11
- opts.assert_valid_keys(:uids, :urls)
11
+ opts.assert_valid_keys(:uids, :urls, :namespace, :detector, :attributes, :callback, :callback_url)
12
12
  make_request(:faces_recognize, opts.merge(user_auth_param))
13
13
  end
14
14
 
15
15
  def faces_train(opts={})
16
- opts.assert_valid_keys(:uids)
16
+ opts.assert_valid_keys(:uids, :namespace, :callback, :callback_url)
17
17
  make_request(:faces_train, opts.merge(user_auth_param))
18
18
  end
19
19
 
20
20
  def faces_status(opts={})
21
+ opts.assert_valid_keys(:uids, :namespace, :callback, :callback_url)
21
22
  make_request(:faces_status, opts.merge(user_auth_param))
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module Face
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: face
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roc Yu
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-19 00:00:00 +08:00
18
+ date: 2011-04-01 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency