face 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- Note: This gem is still under development , create issues if you meet any problem when using it https://github.com/rociiu/face/issues
1
+ Note: This gem is still under development, create issues if you meet any problem when using it https://github.com/rociiu/face/issues
2
2
 
3
- Face is a ruby library of http://developers.face.com/.
3
+ Face is a ruby library of SkyBiometry Face Detection and Recognition API.
4
4
 
5
5
  == Getting Started
6
6
 
@@ -18,11 +18,6 @@ Detect Faces with Raw image data:
18
18
 
19
19
  >> client.faces_detect(:file => File.new('image.jpg', 'rb'))
20
20
 
21
- With user auth:
22
-
23
- >> client.twitter_credentials = { :twitter_username => 'twitter_screen_name', :twitter_password => 'twitter_password' }
24
- >> client.faces_recognize(:urls => ['http://test.com/1.jpg'], :uids => ['uiicor']) # will make request with twitter credentials
25
-
26
- More Documentation refer to http://developers.face.com/.
21
+ More Documentation refer to http://www.skybiometry.com/Documentation.
27
22
 
28
23
  Author: Roc Yu (rociiu.yu@gmail.com)
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Roc Yu"]
10
10
  s.email = ["rociiu.yu@gmail.com"]
11
11
  s.homepage = "http://rubygems.org/gems/face"
12
- s.summary = %q{Ruby wraper of face.com api}
12
+ s.summary = %q{Ruby wraper of SkyBiometry Face Detection and Recognition API}
13
13
  s.description = %q{}
14
14
 
15
15
  s.rubyforge_project = "face"
@@ -1,7 +1,6 @@
1
1
  module Face
2
2
  module Client
3
3
  module Recognition
4
- # http://api.face.com/faces/detect.json
5
4
  def faces_detect(opts={})
6
5
  opts.assert_valid_keys(:urls, :file, :detector, :attributes, :callback, :callback_url)
7
6
  make_request(:faces_detect, opts)
@@ -5,16 +5,16 @@ module Face
5
5
  class FaceError < StandardError; end
6
6
 
7
7
  API_METHODS = {
8
- :faces_detect => 'http://api.face.com/faces/detect.json',
9
- :faces_recognize => 'http://api.face.com/faces/recognize.json',
10
- :faces_train => 'http://api.face.com/faces/train.json',
11
- :faces_status => 'http://api.face.com/faces/status.json',
12
- :tags_get => 'http://api.face.com/tags/get.json',
13
- :tags_add => 'http://api.face.com/tags/add.json',
14
- :tags_save => 'http://api.face.com/tags/save.json',
15
- :tags_remove => 'http://api.face.com/tags/remove.json',
16
- :account_limits => 'http://api.face.com/account/limits.json',
17
- :account_users => 'http://api.face.com/account/users.json'
8
+ :faces_detect => 'http://api.skybiometry.com/fc/faces/detect.json',
9
+ :faces_recognize => 'http://api.skybiometry.com/fc/faces/recognize.json',
10
+ :faces_train => 'http://api.skybiometry.com/fc/faces/train.json',
11
+ :faces_status => 'http://api.skybiometry.com/fc/faces/status.json',
12
+ :tags_get => 'http://api.skybiometry.com/fc/tags/get.json',
13
+ :tags_add => 'http://api.skybiometry.com/fc/tags/add.json',
14
+ :tags_save => 'http://api.skybiometry.com/fc/tags/save.json',
15
+ :tags_remove => 'http://api.skybiometry.com/fc/tags/remove.json',
16
+ :account_limits => 'http://api.skybiometry.com/fc/account/limits.json',
17
+ :account_users => 'http://api.skybiometry.com/fc/account/users.json'
18
18
  }
19
19
 
20
20
  def api_crendential
@@ -1,3 +1,3 @@
1
1
  module Face
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,60 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: face
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 5
9
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Roc Yu
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-04-18 00:00:00 +08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rest-client
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 6
30
- - 1
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
31
21
  version: 1.6.1
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: json
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 4
44
- - 6
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
45
37
  version: 1.4.6
46
38
  type: :runtime
47
- version_requirements: *id002
48
- description: ""
49
- email:
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.4.6
46
+ description: ''
47
+ email:
50
48
  - rociiu.yu@gmail.com
51
49
  executables: []
52
-
53
50
  extensions: []
54
-
55
51
  extra_rdoc_files: []
56
-
57
- files:
52
+ files:
58
53
  - .gitignore
59
54
  - Gemfile
60
55
  - LICENSE
@@ -71,35 +66,28 @@ files:
71
66
  - lib/face/client/tags.rb
72
67
  - lib/face/client/utils.rb
73
68
  - lib/face/version.rb
74
- has_rdoc: true
75
69
  homepage: http://rubygems.org/gems/face
76
70
  licenses: []
77
-
78
71
  post_install_message:
79
72
  rdoc_options: []
80
-
81
- require_paths:
73
+ require_paths:
82
74
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
- version: "0"
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
97
87
  requirements: []
98
-
99
88
  rubyforge_project: face
100
- rubygems_version: 1.3.6
89
+ rubygems_version: 1.8.24
101
90
  signing_key:
102
91
  specification_version: 3
103
- summary: Ruby wraper of face.com api
92
+ summary: Ruby wraper of SkyBiometry Face Detection and Recognition API
104
93
  test_files: []
105
-