recommender_api 0.0.1
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.
- checksums.yaml +7 -0
- data/.autotest +2 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/api.gemspec +33 -0
- data/lib/api/handler.rb +47 -0
- data/lib/api/version.rb +3 -0
- data/lib/api/web.rb +65 -0
- data/lib/api.rb +12 -0
- data/spec/handler_spec.rb +92 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/web_spec.rb +70 -0
- metadata +202 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 36c955fb73d46e02e901f2c6f4bc9920ec5eae86
|
4
|
+
data.tar.gz: dde2ce0a3e0246da73eb116cfde9ee592ca625db
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: be62a1890cc045758cada09fdf822b08054b93d51e0e786d2a051d3f039e654f7755ecdb97ab06e645ce64dec34a85125560c27f51d74c367a37329990fb8718
|
7
|
+
data.tar.gz: f577d22c95567cda3bee2588a8393290134a982e522e37b108342dc8d5e997bd58cb9b543a72494d6b11fbffbbfd1f32b4f82197ac85f7b4dcc6bc525189382a
|
data/.autotest
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 TODO: Write your name
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Api
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'api'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install api
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it ( http://github.com/<my-github-username>/api/fork )
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/api.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "recommender_api"
|
8
|
+
spec.version = Api::VERSION
|
9
|
+
spec.authors = ["binette && atacraft"]
|
10
|
+
spec.email = ["atacraft@gmail.com, fabira90@gmail.com"]
|
11
|
+
spec.summary = %q{Api for the recommender plateform}
|
12
|
+
spec.description = %q{Entry point of the as a service plateform}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
|
22
|
+
spec.required_ruby_version = ">= 2.0"
|
23
|
+
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "auth_manager"
|
26
|
+
spec.add_development_dependency "redis"
|
27
|
+
spec.add_development_dependency "uuid"
|
28
|
+
spec.add_development_dependency "session_manager"
|
29
|
+
spec.add_development_dependency "sinatra"
|
30
|
+
spec.add_development_dependency "rack"
|
31
|
+
spec.add_development_dependency "rspec"
|
32
|
+
spec.add_development_dependency "rack-test"
|
33
|
+
end
|
data/lib/api/handler.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'auth_manager'
|
2
|
+
require 'session_manager'
|
3
|
+
|
4
|
+
class Api::Handler
|
5
|
+
|
6
|
+
def self.create_account(param, option)
|
7
|
+
added = AuthManager::Adder.save?(param, option)
|
8
|
+
session_response = SessionManager::Handler.create_session(param, option) if added
|
9
|
+
if session_response
|
10
|
+
(session_response[:code] == 200) && added
|
11
|
+
else
|
12
|
+
false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.connect(param, option)
|
17
|
+
found = AuthManager::Finder.find_object?(param, option)
|
18
|
+
session_response = SessionManager::Handler.create_session(param, option) if found
|
19
|
+
if session_response
|
20
|
+
((session_response[:code] == 200) && found)
|
21
|
+
else
|
22
|
+
false
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.valid_session(object, token, option)
|
27
|
+
login = return_id(object, option)
|
28
|
+
to_verify = {login: login, token: token}.to_json
|
29
|
+
session_response = SessionManager::Handler.verify_session(to_verify, option)
|
30
|
+
if session_response
|
31
|
+
(session_response[:code] == 200)
|
32
|
+
else
|
33
|
+
false
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
private ###############################
|
38
|
+
|
39
|
+
def self.return_id(param, option)
|
40
|
+
if AuthManager::Finder.find_object?(param, option)
|
41
|
+
tmp = JSON.parse(param)
|
42
|
+
return tmp['login'] if option.fetch(:user)
|
43
|
+
return tmp['api_key'] if option.fetch(:app)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
data/lib/api/version.rb
ADDED
data/lib/api/web.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'sinatra'
|
2
|
+
require_relative 'handler'
|
3
|
+
|
4
|
+
class Api::Web < Sinatra::Application
|
5
|
+
|
6
|
+
post '/apps' do
|
7
|
+
if create(params)
|
8
|
+
status 200
|
9
|
+
body ['Successfully created!']
|
10
|
+
else
|
11
|
+
status 400
|
12
|
+
body ['Sorry, an error occured']
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
post '/users' do
|
18
|
+
if create(params)
|
19
|
+
status 200
|
20
|
+
body ['Successfully created!']
|
21
|
+
else
|
22
|
+
status 400
|
23
|
+
body ['Sorry, an error occured']
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
post '/users/connect' do
|
28
|
+
if connect(params)
|
29
|
+
status 200
|
30
|
+
body ['Successfully logged!']
|
31
|
+
else
|
32
|
+
status 400
|
33
|
+
body ['Sorry, an error occured']
|
34
|
+
end
|
35
|
+
end
|
36
|
+
post '/apps/connect' do
|
37
|
+
if connect(params)
|
38
|
+
status 200
|
39
|
+
body ['Successfully logged!']
|
40
|
+
else
|
41
|
+
status 400
|
42
|
+
body ['Sorry, an error occured']
|
43
|
+
end
|
44
|
+
end
|
45
|
+
after do
|
46
|
+
response
|
47
|
+
end
|
48
|
+
|
49
|
+
private ################
|
50
|
+
|
51
|
+
def format_option(params)
|
52
|
+
option = {}
|
53
|
+
option = {user: true, app: false} if (params[:option][:user] == 'true')
|
54
|
+
option = {user: false, app: true} if (params[:option][:app] == 'true')
|
55
|
+
option
|
56
|
+
end
|
57
|
+
|
58
|
+
def create(params)
|
59
|
+
Api::Handler.create_account(params[:object].to_json, format_option(params))
|
60
|
+
end
|
61
|
+
|
62
|
+
def connect(params)
|
63
|
+
Api::Handler.connect(params[:object].to_json, format_option(params))
|
64
|
+
end
|
65
|
+
end
|
data/lib/api.rb
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
describe Api::Handler do
|
4
|
+
let(:user) { {login: 'login', password: 'password'} }
|
5
|
+
let(:app) { {api_key: 'api_key'} }
|
6
|
+
let(:opt) { {user: true, app: false} }
|
7
|
+
let(:token) { 'a token' }
|
8
|
+
let(:session_info) { {login: 'login', token: token} }
|
9
|
+
describe '#connect' do
|
10
|
+
before(:each) do
|
11
|
+
AuthManager::Base.redis_del({list: 'users'})
|
12
|
+
AuthManager::Base.redis_del({list: 'applications'})
|
13
|
+
AuthManager::Base.redis_sadd({list: 'users', object: user})
|
14
|
+
AuthManager::Base.redis_sadd({list: 'applications', object: app})
|
15
|
+
end
|
16
|
+
context 'When user connected' do
|
17
|
+
it {
|
18
|
+
swap_option_to('user')
|
19
|
+
expect(Api::Handler.connect(user.to_json, opt)).to be_true
|
20
|
+
}
|
21
|
+
end
|
22
|
+
context 'When app connected' do
|
23
|
+
it {
|
24
|
+
swap_option_to('app')
|
25
|
+
app[:api_key] = 'api_key'
|
26
|
+
expect(Api::Handler.connect(app.to_json, opt)).to be_true
|
27
|
+
}
|
28
|
+
end
|
29
|
+
context 'When user fails to connect' do
|
30
|
+
it {
|
31
|
+
swap_option_to('user')
|
32
|
+
user[:login] = 'not a login'
|
33
|
+
expect(Api::Handler.connect(user.to_json, opt)).to be_false
|
34
|
+
}
|
35
|
+
end
|
36
|
+
context 'When app fails to connect' do
|
37
|
+
it {
|
38
|
+
swap_option_to('app')
|
39
|
+
app[:api_key] = 'not an api_key'
|
40
|
+
expect(Api::Handler.connect(app.to_json, opt)).to be_false
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
describe '#create_account' do
|
45
|
+
before(:each) do
|
46
|
+
AuthManager::Base.redis_del({list: 'users'})
|
47
|
+
AuthManager::Base.redis_del({list: 'applications'})
|
48
|
+
end
|
49
|
+
context 'When user account created' do
|
50
|
+
it {
|
51
|
+
swap_option_to('user')
|
52
|
+
user[:login] = 'login'
|
53
|
+
expect(Api::Handler.create_account(user.to_json, opt)).to be_true
|
54
|
+
}
|
55
|
+
end
|
56
|
+
context 'When user account not created' do
|
57
|
+
it {
|
58
|
+
user[:login] = 'login'
|
59
|
+
swap_option_to('user')
|
60
|
+
expect(Api::Handler.create_account(user.to_json, opt)).to be_true
|
61
|
+
expect(Api::Handler.create_account(user.to_json, opt)).to be_false
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
describe '#valid_session' do
|
66
|
+
before(:each) do
|
67
|
+
AuthManager::Base.redis_del({list: 'users'})
|
68
|
+
AuthManager::Base.redis_del({list: 'applications_sessions'})
|
69
|
+
AuthManager::Base.redis_del({list: 'users_sessions'})
|
70
|
+
AuthManager::Base.redis_sadd({list: 'users', object: user })
|
71
|
+
AuthManager::Base.redis_sadd({list: 'users_sessions', object: session_info })
|
72
|
+
end
|
73
|
+
context 'When session is active' do
|
74
|
+
it {
|
75
|
+
swap_option_to('user')
|
76
|
+
user[:login] = 'login'
|
77
|
+
expect(Api::Handler.valid_session(user.to_json, token, opt)).to be_true
|
78
|
+
}
|
79
|
+
end
|
80
|
+
context 'When session is not active' do
|
81
|
+
it {
|
82
|
+
swap_option_to('user')
|
83
|
+
user[:login] = 'not a login'
|
84
|
+
expect(Api::Handler.valid_session(user.to_json, token, opt)).to be_false
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
#to do later
|
89
|
+
describe '#request' do
|
90
|
+
|
91
|
+
end
|
92
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'api'
|
2
|
+
|
3
|
+
def swap_option_to(list)
|
4
|
+
if list == 'user'
|
5
|
+
opt[:user] = true
|
6
|
+
opt[:app] = false
|
7
|
+
else
|
8
|
+
opt[:user] = false
|
9
|
+
opt[:app] = true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def parameter_for(object_type)
|
14
|
+
if object_type == 'app'
|
15
|
+
{ object: {api_key: 'an api_key'}, option: {user: false,app: true} }
|
16
|
+
else
|
17
|
+
{object: {login: 'a login',password: 'a password'}, option: {user: true,app: false} }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def bad_parameter_for(object_type)
|
22
|
+
if object_type == 'user'
|
23
|
+
{object: {login: 'not a login',password: 'not a password'}, option: {user: true,app: false} }
|
24
|
+
else
|
25
|
+
{object: {api_key: 'not an api_key'}, option: {user: false,app: true} }
|
26
|
+
end
|
27
|
+
end
|
data/spec/web_spec.rb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
ENV['RACK_ENV'] = 'test'
|
2
|
+
require_relative 'spec_helper'
|
3
|
+
require 'rack/test'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
describe Api::Web do
|
7
|
+
include Rack::Test::Methods
|
8
|
+
|
9
|
+
def app
|
10
|
+
Api::Web.new
|
11
|
+
end
|
12
|
+
|
13
|
+
before(:all) do
|
14
|
+
AuthManager::Base.redis_del({list: 'applications'})
|
15
|
+
AuthManager::Base.redis_del({ list: 'users' })
|
16
|
+
AuthManager::Base.redis_del({ list: 'users_sessions' })
|
17
|
+
AuthManager::Base.redis_del({ list: 'applications_sessions' } )
|
18
|
+
end
|
19
|
+
|
20
|
+
context "POST '/apps'" do
|
21
|
+
it "returns 200 when an object is created" do
|
22
|
+
post '/apps', parameter_for('app')
|
23
|
+
expect(last_response.status).to eq(200)
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
it "returns 400 when the creation fails" do
|
28
|
+
post '/apps', parameter_for('app')
|
29
|
+
expect(last_response.status).to eq(400)
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
context "POST '/users'" do
|
35
|
+
|
36
|
+
it "returns 200 when a object is created" do
|
37
|
+
post '/users', parameter_for('user')
|
38
|
+
expect(last_response.status).to eq(200)
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
it "returns 400 when the creation fails" do
|
43
|
+
post '/users', parameter_for('user')
|
44
|
+
expect(last_response.status).to eq(400)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context 'When a user attemps to log in' do
|
49
|
+
it 'returns 200 code status for success' do
|
50
|
+
post '/users/connect', parameter_for('user')
|
51
|
+
expect(last_response.status).to eq(200)
|
52
|
+
end
|
53
|
+
it 'returns 400 code status for faillure' do
|
54
|
+
post '/users/connect', bad_parameter_for('user')
|
55
|
+
expect(last_response.status).to eq(400)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context 'When an app attemps to log in' do
|
60
|
+
it 'returns 200 code status for success' do
|
61
|
+
post '/apps/connect', parameter_for('app')
|
62
|
+
expect(last_response.status).to eq(200)
|
63
|
+
end
|
64
|
+
it 'returns 400 code status for faillure' do
|
65
|
+
post '/apps/connect', bad_parameter_for('app')
|
66
|
+
expect(last_response.status).to eq(400)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: recommender_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- binette && atacraft
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-28 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: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: auth_manager
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redis
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: uuid
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: session_manager
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sinatra
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rack
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rack-test
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Entry point of the as a service plateform
|
154
|
+
email:
|
155
|
+
- atacraft@gmail.com, fabira90@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".autotest"
|
161
|
+
- ".gitignore"
|
162
|
+
- ".rspec"
|
163
|
+
- Gemfile
|
164
|
+
- LICENSE.txt
|
165
|
+
- README.md
|
166
|
+
- Rakefile
|
167
|
+
- api.gemspec
|
168
|
+
- lib/api.rb
|
169
|
+
- lib/api/handler.rb
|
170
|
+
- lib/api/version.rb
|
171
|
+
- lib/api/web.rb
|
172
|
+
- spec/handler_spec.rb
|
173
|
+
- spec/spec_helper.rb
|
174
|
+
- spec/web_spec.rb
|
175
|
+
homepage: ''
|
176
|
+
licenses:
|
177
|
+
- MIT
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '2.0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.2.2
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: Api for the recommender plateform
|
199
|
+
test_files:
|
200
|
+
- spec/handler_spec.rb
|
201
|
+
- spec/spec_helper.rb
|
202
|
+
- spec/web_spec.rb
|