microsoft-cognitive-face 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +124 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/examples/dhh.jpg +0 -0
- data/lib/cognitive/face.rb +6 -0
- data/lib/cognitive/face/client.rb +171 -0
- data/lib/cognitive/face/response.rb +29 -0
- data/lib/cognitive/face/version.rb +6 -0
- data/microsoft-cognitive-face.gemspec +36 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3dc03879782a07de1c1718d85c4a6e441b8993a9
|
4
|
+
data.tar.gz: 02e571bd869cdd8ef7025a4525d19d63ac595b66
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 57fc6e015a9369c30add408b6949c5c5ab070cb701cf736f3cd815fecf2de16454c4bd3dcbbe2b4b1ff31d16c275b8b1a148d3c5d848914a34f762214b8b8b51
|
7
|
+
data.tar.gz: ba6191c82c306a74eae4333cfafd019dba7436c167260d2c686f552397c86197d4e1a18ba6b8191c8603d7946b0e3503ba9777ff125ca28911560c24ad1e628b
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jdaviderb@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 jdaviderb
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,124 @@
|
|
1
|
+
# Microsoft Cognitive Services Face for Ruby
|
2
|
+
|
3
|
+
Detect human faces and compare similar ones, organize people into groups according to visual similarity, and identify previously tagged people in images
|
4
|
+
|
5
|
+
https://www.microsoft.com/cognitive-services/en-us/face-api
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'microsoft-cognitive-face'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install microsoft-cognitive-face
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
client = Cognitive::Face::Client.new key: 'MICROSOFT_FACE_KEY'
|
27
|
+
```
|
28
|
+
|
29
|
+
Face - Detect
|
30
|
+
|
31
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
face = client.detect File.read('dhh.png')
|
35
|
+
# => #<OpenStruct faceId="6c6a4eea-795f-4ab8-92d2-a99735af6f31", faceRectangle={"top"=>153, "left"=>98, "width"=>203, "height"=>203}>
|
36
|
+
```
|
37
|
+
|
38
|
+
Face List - Create a Face List
|
39
|
+
|
40
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524b
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
secure_face_list_id = SecureRandom.uuid
|
44
|
+
face_list = client.create_face_list(
|
45
|
+
name: 'Ruby test',
|
46
|
+
face_list_id: secure_face_list_id
|
47
|
+
)
|
48
|
+
#=> true
|
49
|
+
```
|
50
|
+
|
51
|
+
Face List - Add a Face to a Face List
|
52
|
+
|
53
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395250
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
face = face_client.add_face_to_face_list(
|
57
|
+
face: File.read('dhh.jpg'),
|
58
|
+
face_list_id: secure_face_list_id
|
59
|
+
)
|
60
|
+
#=> #<OpenStruct persistedFaceId="d91bc779-66ac-4fa6-a4e2-62552c3f5404">
|
61
|
+
|
62
|
+
```
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
Face - Find Similar
|
67
|
+
|
68
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395237
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
face_client.find_similar(
|
72
|
+
face_list_id: secure_face_list_id,
|
73
|
+
face_id: 'd91bc779-66ac-4fa6-a4e2-62552c3f5404'
|
74
|
+
)
|
75
|
+
# => [#<OpenStruct persistedFaceId="47e5313c-efb6-47f4-ab3e-80b71b2ba381", confidence=1.0>]
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
|
80
|
+
Face List - Delete a Face from a Face List
|
81
|
+
|
82
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395251
|
83
|
+
|
84
|
+
```ruby
|
85
|
+
face_client.delete_face_to_face_list(
|
86
|
+
face_id: 'd91bc779-66ac-4fa6-a4e2-62552c3f5404',
|
87
|
+
face_list_id: secure_face_list_id
|
88
|
+
)
|
89
|
+
# => true
|
90
|
+
```
|
91
|
+
|
92
|
+
|
93
|
+
Face List - Delete a Face List
|
94
|
+
|
95
|
+
https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
face_client.delete_face_list(
|
101
|
+
face_list_id: secure_face_list_id
|
102
|
+
)
|
103
|
+
# => true
|
104
|
+
```
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
## Development
|
111
|
+
|
112
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `MICROSOFT_FACE_KEY=APIKEY rake spec ` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
113
|
+
|
114
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
115
|
+
|
116
|
+
## Contributing
|
117
|
+
|
118
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jdaviderb/microsoft-cognitive-face-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
119
|
+
|
120
|
+
|
121
|
+
## License
|
122
|
+
|
123
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
124
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "microsoft/cognitive/face"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/examples/dhh.jpg
ADDED
Binary file
|
@@ -0,0 +1,171 @@
|
|
1
|
+
module Cognitive
|
2
|
+
module Face
|
3
|
+
|
4
|
+
class Client
|
5
|
+
# Constructor
|
6
|
+
#
|
7
|
+
# @param key [String] Subscription key which provides access to this API
|
8
|
+
|
9
|
+
def initialize(key:)
|
10
|
+
@key = key
|
11
|
+
@headers = {
|
12
|
+
'Ocp-Apim-Subscription-Key' => @key,
|
13
|
+
'Content-Type': 'application/json'
|
14
|
+
}
|
15
|
+
@endpoints = {
|
16
|
+
detect:'https://api.projectoxford.ai/face/v1.0/detect',
|
17
|
+
facelist: 'https://api.projectoxford.ai/face/v1.0/facelists/',
|
18
|
+
findsimilar: 'https://api.projectoxford.ai/face/v1.0/findsimilars'
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
# Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes
|
23
|
+
# Api rest documentation https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236
|
24
|
+
#
|
25
|
+
# @param face [File] JPEG, PNG, GIF
|
26
|
+
# @param return_face_id [Boolean] return face id or not. default true
|
27
|
+
|
28
|
+
def detect(face:,return_face_id: true,
|
29
|
+
returnFaceLandmarks:false,
|
30
|
+
returnFaceAttributes: nil)
|
31
|
+
query_params = {
|
32
|
+
returnFaceId: return_face_id,
|
33
|
+
returnFaceLandmarks: returnFaceLandmarks
|
34
|
+
}
|
35
|
+
|
36
|
+
headers = @headers.merge(
|
37
|
+
params: query_params,
|
38
|
+
'Content-Type': 'application/octet-stream'
|
39
|
+
)
|
40
|
+
|
41
|
+
client = RestClient.post(
|
42
|
+
@endpoints[:detect],
|
43
|
+
face,
|
44
|
+
headers
|
45
|
+
)
|
46
|
+
Response.new(client).get
|
47
|
+
end
|
48
|
+
|
49
|
+
# Get information a face list id
|
50
|
+
# Api rest documentation https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524c
|
51
|
+
# @param face_list_id [String]
|
52
|
+
|
53
|
+
def get_face_list(face_list_id:)
|
54
|
+
client = RestClient.get(
|
55
|
+
@endpoints[:facelist] + face_list_id.to_s,
|
56
|
+
@headers
|
57
|
+
)
|
58
|
+
Response.new(client).get
|
59
|
+
end
|
60
|
+
|
61
|
+
# Delete face list
|
62
|
+
# @param face_list_id[String]
|
63
|
+
# Api rest documentation https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524f
|
64
|
+
|
65
|
+
def delete_face_list(face_list_id:)
|
66
|
+
client = RestClient.delete(
|
67
|
+
@endpoints[:facelist] + face_list_id.to_s,
|
68
|
+
@headers
|
69
|
+
)
|
70
|
+
Response.new(
|
71
|
+
client,
|
72
|
+
json: false,
|
73
|
+
response_custom: lambda {|client| client.code == 200}
|
74
|
+
).get
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
# Get all face lists
|
79
|
+
# Api rest documentation https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f3039524c
|
80
|
+
|
81
|
+
def get_face_lists
|
82
|
+
client = RestClient.get(
|
83
|
+
@endpoints[:facelist],
|
84
|
+
@headers
|
85
|
+
)
|
86
|
+
Response.new(client).get
|
87
|
+
end
|
88
|
+
|
89
|
+
# Create face list
|
90
|
+
# @param face_list_id[String] unique indentify
|
91
|
+
# @param name[String] name face list
|
92
|
+
# @param user_data[String] Optinal info
|
93
|
+
|
94
|
+
def create_face_list(face_list_id:,name:,user_data: nil)
|
95
|
+
params = {
|
96
|
+
name: name,
|
97
|
+
userData: user_data
|
98
|
+
}.to_json
|
99
|
+
client = RestClient.put(
|
100
|
+
@endpoints[:facelist]+face_list_id.to_s,
|
101
|
+
params,
|
102
|
+
@headers
|
103
|
+
)
|
104
|
+
Response.new(
|
105
|
+
client,
|
106
|
+
json: false,
|
107
|
+
response_custom: lambda {|client| client.code == 200}
|
108
|
+
).get
|
109
|
+
end
|
110
|
+
|
111
|
+
# Add face to face list
|
112
|
+
# @param face[File] Image
|
113
|
+
# @param face_list_id[String]
|
114
|
+
# @param user_data[String] Optinal
|
115
|
+
# @param target_face Optional
|
116
|
+
def add_face_to_face_list(face:, face_list_id:, user_data: nil, target_face: nil)
|
117
|
+
headers = @headers.merge(
|
118
|
+
params: {
|
119
|
+
userData: user_data,
|
120
|
+
targetFace: target_face
|
121
|
+
},
|
122
|
+
'Content-Type': 'application/octet-stream'
|
123
|
+
)
|
124
|
+
client = RestClient.post(
|
125
|
+
@endpoints[:facelist]+"#{face_list_id}/persistedFaces",
|
126
|
+
face,
|
127
|
+
headers
|
128
|
+
)
|
129
|
+
Response.new(client).get
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deleted face from a face list
|
133
|
+
# @param face_id[String]
|
134
|
+
# @param face_list_id[String]
|
135
|
+
|
136
|
+
def delete_face_to_face_list(face_id:, face_list_id:)
|
137
|
+
client = RestClient.delete(
|
138
|
+
@endpoints[:facelist]+"#{face_list_id}/persistedFaces/#{face_id}",
|
139
|
+
@headers
|
140
|
+
)
|
141
|
+
Response.new(
|
142
|
+
client,
|
143
|
+
json: false,
|
144
|
+
response_custom: lambda {|client| client.code == 200}
|
145
|
+
).get
|
146
|
+
end
|
147
|
+
|
148
|
+
# Find face from a face list
|
149
|
+
# @param face_id[String]
|
150
|
+
# @param face_list_id[String]
|
151
|
+
# @param mode[String]
|
152
|
+
|
153
|
+
def find_similar(face_id:, face_list_id:, mode: 'matchPerson')
|
154
|
+
data = {
|
155
|
+
faceId: face_id,
|
156
|
+
faceListId: face_list_id,
|
157
|
+
mode: mode
|
158
|
+
}
|
159
|
+
client = RestClient.post(
|
160
|
+
@endpoints[:findsimilar],
|
161
|
+
data.to_json,
|
162
|
+
@headers
|
163
|
+
)
|
164
|
+
Response.new(client).get
|
165
|
+
end
|
166
|
+
|
167
|
+
end
|
168
|
+
|
169
|
+
|
170
|
+
end
|
171
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Cognitive
|
2
|
+
module Face
|
3
|
+
class Response
|
4
|
+
def initialize(http_response,json: true, response_custom: nil)
|
5
|
+
@json = json
|
6
|
+
@response_custom = response_custom
|
7
|
+
@http_response = http_response
|
8
|
+
end
|
9
|
+
|
10
|
+
def get
|
11
|
+
return @response_custom.call(@http_response) unless @response_custom.nil?
|
12
|
+
if @json
|
13
|
+
data = JSON.parse @http_response.body
|
14
|
+
data.map! { |data|
|
15
|
+
OpenStruct.new(data)
|
16
|
+
} if data.kind_of?(Array)
|
17
|
+
data = OpenStruct.new(data) if data.kind_of?(Hash)
|
18
|
+
return data
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cognitive/face/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "microsoft-cognitive-face"
|
8
|
+
spec.version = Cognitive::Face::VERSION
|
9
|
+
spec.authors = ["jdaviderb"]
|
10
|
+
spec.email = ["jdaviderb@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = 'Microsoft cognitive face client for ruby'
|
13
|
+
spec.homepage = "https://github.com/jdaviderb/microsoft-cognitive-face-ruby"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
+
spec.add_development_dependency "rest-client", "~>2.0"
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: microsoft-cognitive-face
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- jdaviderb
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rest-client
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- jdaviderb@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- examples/dhh.jpg
|
87
|
+
- lib/cognitive/face.rb
|
88
|
+
- lib/cognitive/face/client.rb
|
89
|
+
- lib/cognitive/face/response.rb
|
90
|
+
- lib/cognitive/face/version.rb
|
91
|
+
- microsoft-cognitive-face.gemspec
|
92
|
+
homepage: https://github.com/jdaviderb/microsoft-cognitive-face-ruby
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata:
|
96
|
+
allowed_push_host: https://rubygems.org
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.5.1
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: Microsoft cognitive face client for ruby
|
117
|
+
test_files: []
|