edools-api 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/edools-api.gemspec +10 -3
- data/lib/edools/core.rb +1 -0
- data/lib/edools/core/collaborator.rb +18 -0
- data/spec/edools/core/collaborator_spec.rb +32 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/create_the_collaborator.yml +65 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/destroy_the_collaborator.yml +105 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_all_collaborator.yml +212 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_the_collaborator.yml +62 -0
- data/spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/update_the_collaborator.yml +176 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 655d35a88bdcb66240a2ecb1f3954e51e83c5717
|
4
|
+
data.tar.gz: 92d8a0aac07b552efe322ec4df27432a1714a206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da43331e5ace71c1d513f729491e601f9a9c03171e1f0ca9bfdb199c009f29eb465a3bd7d3de3d07b8a44f4fcfd1a83d5fa18c3a8e711211c8598f262bb3eda2
|
7
|
+
data.tar.gz: 57e472197248b9b1dffb8574e6ad5fbee251ee4a813035da4ee71f99c9a4941a28ba649b6279f046eac752c4d5908120869009d108d2968ea0172444d6484765
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/edools-api.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: edools-api 0.
|
5
|
+
# stub: edools-api 0.8.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "edools-api"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.8.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Vinicius Kastrup"]
|
14
|
-
s.date = "2015-07-
|
14
|
+
s.date = "2015-07-14"
|
15
15
|
s.description = "\n With this gem you'll be able to access and manipulate all the data of your School or Organization\n hosted at Edools.\n "
|
16
16
|
s.email = "viniciusmkm@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
"lib/edools/core/api_key.rb",
|
37
37
|
"lib/edools/core/base.rb",
|
38
38
|
"lib/edools/core/category.rb",
|
39
|
+
"lib/edools/core/collaborator.rb",
|
39
40
|
"lib/edools/core/course.rb",
|
40
41
|
"lib/edools/core/course_content.rb",
|
41
42
|
"lib/edools/core/course_module.rb",
|
@@ -58,6 +59,7 @@ Gem::Specification.new do |s|
|
|
58
59
|
"spec/edools/core/api_key_spec.rb",
|
59
60
|
"spec/edools/core/base_spec.rb",
|
60
61
|
"spec/edools/core/category_spec.rb",
|
62
|
+
"spec/edools/core/collaborator_spec.rb",
|
61
63
|
"spec/edools/core/course_content_spec.rb",
|
62
64
|
"spec/edools/core/course_module_spec.rb",
|
63
65
|
"spec/edools/core/course_spec.rb",
|
@@ -83,6 +85,11 @@ Gem::Specification.new do |s|
|
|
83
85
|
"spec/fixtures/vcr_cassettes/Edools_Core_Category/finds_all_category.yml",
|
84
86
|
"spec/fixtures/vcr_cassettes/Edools_Core_Category/finds_the_category.yml",
|
85
87
|
"spec/fixtures/vcr_cassettes/Edools_Core_Category/update_the_category.yml",
|
88
|
+
"spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/create_the_collaborator.yml",
|
89
|
+
"spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/destroy_the_collaborator.yml",
|
90
|
+
"spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_all_collaborator.yml",
|
91
|
+
"spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_the_collaborator.yml",
|
92
|
+
"spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/update_the_collaborator.yml",
|
86
93
|
"spec/fixtures/vcr_cassettes/Edools_Core_Course/create_the_course.yml",
|
87
94
|
"spec/fixtures/vcr_cassettes/Edools_Core_Course/destroy_the_course.yml",
|
88
95
|
"spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_all_course.yml",
|
data/lib/edools/core.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'edools/core/base'
|
2
|
+
require 'edools/paginated_collection'
|
3
|
+
|
4
|
+
module Edools
|
5
|
+
module Core
|
6
|
+
class Collaborator < Edools::Core::Base
|
7
|
+
self.collection_parser = Edools::PaginatedCollection
|
8
|
+
|
9
|
+
def to_json(options={})
|
10
|
+
super(include_root_in_json ? { root: 'user' }.merge(options) : options)
|
11
|
+
end
|
12
|
+
|
13
|
+
def to_xml(options={})
|
14
|
+
super({ root: 'user' }.merge(options))
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
describe Edools::Core::Collaborator, :vcr do
|
4
|
+
it 'create the collaborator' do
|
5
|
+
collaborator = Edools::Core::Collaborator.new(first_name: 'Teste', email: 'collaborator+teste2@edools.com',
|
6
|
+
password: '123456', password_confirmation: '123456', role_ids: [141])
|
7
|
+
expect(collaborator.save).to eq true
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'finds the collaborator' do
|
11
|
+
collaborator = Edools::Core::Collaborator.find(87527)
|
12
|
+
expect(collaborator.id).to eq 87527
|
13
|
+
expect(collaborator.first_name).to eq 'Teste'
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'finds all collaborator' do
|
17
|
+
collaborators = Edools::Core::Collaborator.all
|
18
|
+
expect(collaborators.count).to eq 10
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'update the collaborator' do
|
22
|
+
collaborator = Edools::Core::Collaborator.find(87527)
|
23
|
+
collaborator.phone = "1406638122"
|
24
|
+
expect(collaborator.save).to eq true
|
25
|
+
expect(Edools::Core::Collaborator.find(87527).phone).to eq collaborator.phone
|
26
|
+
end
|
27
|
+
|
28
|
+
xit 'destroy the collaborator' do
|
29
|
+
collaborator = Edools::Core::Collaborator.find(87527)
|
30
|
+
expect(collaborator.destroy.code).to eq "204"
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://core.edools.com/collaborators.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"user":{"first_name":"Teste","email":"collaborator+teste2@edools.com","password":"123456","password_confirmation":"123456","role_ids":[141]}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
14
|
+
Accept:
|
15
|
+
- application/+json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=0, private, must-revalidate
|
27
|
+
Content-Security-Policy-Report-Only:
|
28
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
29
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
30
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
31
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
32
|
+
Content-Type:
|
33
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
34
|
+
Date:
|
35
|
+
- Tue, 14 Jul 2015 19:10:06 GMT
|
36
|
+
Etag:
|
37
|
+
- '"21b21ee83ee11b498dd331bd39877966"'
|
38
|
+
Location:
|
39
|
+
- https://core.edools.com/collaborators/87527
|
40
|
+
Server:
|
41
|
+
- nginx/1.4.7
|
42
|
+
Status:
|
43
|
+
- 201 Created
|
44
|
+
Strict-Transport-Security:
|
45
|
+
- max-age=631152000; includeSubdomains
|
46
|
+
X-Content-Type-Options:
|
47
|
+
- nosniff
|
48
|
+
X-Frame-Options:
|
49
|
+
- DENY
|
50
|
+
X-Request-Id:
|
51
|
+
- d63875cd-f138-4019-94d4-e88ce95c91d7
|
52
|
+
X-Runtime:
|
53
|
+
- '0.431943'
|
54
|
+
X-Xss-Protection:
|
55
|
+
- 1; mode=block
|
56
|
+
Content-Length:
|
57
|
+
- '403'
|
58
|
+
Connection:
|
59
|
+
- keep-alive
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","cpf":null,"rg":null,"phone":null,"skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","credentials":"6b950c5cce515d4a67c0b10bf5ec3414:748fa0e39ff3a21463b32a0d7bcc8f46"}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Tue, 14 Jul 2015 19:10:06 GMT
|
65
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,105 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/collaborators/87527.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/+json
|
12
|
+
Authorization:
|
13
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Security-Policy-Report-Only:
|
26
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
27
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
28
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
29
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
30
|
+
Content-Type:
|
31
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Tue, 14 Jul 2015 19:13:04 GMT
|
34
|
+
Etag:
|
35
|
+
- '"0863462c642a3ff8d268b58fe91b8b28"'
|
36
|
+
Server:
|
37
|
+
- nginx/1.4.7
|
38
|
+
Status:
|
39
|
+
- 200 OK
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=631152000; includeSubdomains
|
42
|
+
X-Content-Type-Options:
|
43
|
+
- nosniff
|
44
|
+
X-Frame-Options:
|
45
|
+
- DENY
|
46
|
+
X-Request-Id:
|
47
|
+
- 3b536972-9351-4e46-8238-2a2f82c0ea39
|
48
|
+
X-Runtime:
|
49
|
+
- '0.045319'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '522'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","username":null,"cpf":null,"rg":null,"phone":"1406638122","skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","invitation_token":null,"type":"Collaborator","role":{"name":"Administrador
|
59
|
+
Geral"},"roles":[{"id":141,"name":"Administrador Geral"}],"course_classes":[],"library_resources":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 14 Jul 2015 19:13:04 GMT
|
62
|
+
- request:
|
63
|
+
method: delete
|
64
|
+
uri: https://core.edools.com/collaborators/87527.json
|
65
|
+
body:
|
66
|
+
encoding: US-ASCII
|
67
|
+
string: ''
|
68
|
+
headers:
|
69
|
+
Accept:
|
70
|
+
- application/+json
|
71
|
+
Authorization:
|
72
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
73
|
+
Accept-Encoding:
|
74
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
75
|
+
User-Agent:
|
76
|
+
- Ruby
|
77
|
+
response:
|
78
|
+
status:
|
79
|
+
code: 500
|
80
|
+
message: Internal Server Error
|
81
|
+
headers:
|
82
|
+
Content-Type:
|
83
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
84
|
+
Date:
|
85
|
+
- Tue, 14 Jul 2015 19:13:05 GMT
|
86
|
+
Server:
|
87
|
+
- nginx/1.4.7
|
88
|
+
Status:
|
89
|
+
- 500 Internal Server Error
|
90
|
+
Strict-Transport-Security:
|
91
|
+
- max-age=31536000
|
92
|
+
X-Request-Id:
|
93
|
+
- 828fee83-4ea0-4a07-8a8c-57fe05939993
|
94
|
+
X-Runtime:
|
95
|
+
- '0.439799'
|
96
|
+
Content-Length:
|
97
|
+
- '48'
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"status":"500","error":"Internal Server Error"}'
|
103
|
+
http_version:
|
104
|
+
recorded_at: Tue, 14 Jul 2015 19:13:05 GMT
|
105
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,212 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/collaborators.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/+json
|
12
|
+
Authorization:
|
13
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Security-Policy-Report-Only:
|
26
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
27
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
28
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
29
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
30
|
+
Content-Type:
|
31
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Tue, 14 Jul 2015 18:49:06 GMT
|
34
|
+
Etag:
|
35
|
+
- '"1396965afce77dee10765bc77b45e1bf"'
|
36
|
+
Server:
|
37
|
+
- nginx/1.4.7
|
38
|
+
Status:
|
39
|
+
- 200 OK
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=631152000; includeSubdomains
|
42
|
+
X-Content-Type-Options:
|
43
|
+
- nosniff
|
44
|
+
X-Frame-Options:
|
45
|
+
- DENY
|
46
|
+
X-Request-Id:
|
47
|
+
- 2f74068b-7468-4449-a47e-6b801c10d597
|
48
|
+
X-Runtime:
|
49
|
+
- '2.202110'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Transfer-Encoding:
|
53
|
+
- chunked
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: ASCII-8BIT
|
58
|
+
string: !binary |-
|
59
|
+
eyJjb2xsYWJvcmF0b3JzIjpbeyJpZCI6NDE4NDMsImZpcnN0X25hbWUiOiJU
|
60
|
+
dXRvciAyIiwibGFzdF9uYW1lIjpudWxsLCJlbWFpbCI6InR1dG9ycGVybWlz
|
61
|
+
c2lvbkBtYWlsaW5hdG9yLmNvbSIsInVzZXJuYW1lIjpudWxsLCJjcGYiOm51
|
62
|
+
bGwsInJnIjpudWxsLCJwaG9uZSI6bnVsbCwic2t5cGUiOm51bGwsInR3aXR0
|
63
|
+
ZXIiOm51bGwsImZhY2Vib29rIjpudWxsLCJjb21wYW55X25hbWUiOm51bGws
|
64
|
+
ImNvbXBhbnlfcG9zaXRpb24iOm51bGwsImJvcm5fYXQiOm51bGwsImJpb2dy
|
65
|
+
YXBoeSI6bnVsbCwiY292ZXJfaW1hZ2VfdXJsIjoiaHR0cHM6Ly9jZG4uZWRv
|
66
|
+
b2xzLmNvbS9hc3NldHMvaW1hZ2VzL3VzZXJzL2RlZmF1bHQuanBlZyIsImlu
|
67
|
+
dml0YXRpb25fdG9rZW4iOm51bGwsInR5cGUiOiJDb2xsYWJvcmF0b3IiLCJy
|
68
|
+
b2xlIjp7Im5hbWUiOiJUdXRvciB0ZXN0ZSJ9LCJyb2xlcyI6W3siaWQiOjg2
|
69
|
+
NCwibmFtZSI6IlR1dG9yIHRlc3RlIn1dLCJjb3Vyc2VfY2xhc3NlcyI6W10s
|
70
|
+
ImxpYnJhcnlfcmVzb3VyY2VzIjpbeyJ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|
209
|
+
NSwidG90YWxfY291bnQiOjQyfQ==
|
210
|
+
http_version:
|
211
|
+
recorded_at: Tue, 14 Jul 2015 18:49:07 GMT
|
212
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/collaborators/87527.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/+json
|
12
|
+
Authorization:
|
13
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Security-Policy-Report-Only:
|
26
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
27
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
28
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
29
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
30
|
+
Content-Type:
|
31
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Tue, 14 Jul 2015 19:12:32 GMT
|
34
|
+
Etag:
|
35
|
+
- '"49913afb771e33c208fe9530525a761c"'
|
36
|
+
Server:
|
37
|
+
- nginx/1.4.7
|
38
|
+
Status:
|
39
|
+
- 200 OK
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=631152000; includeSubdomains
|
42
|
+
X-Content-Type-Options:
|
43
|
+
- nosniff
|
44
|
+
X-Frame-Options:
|
45
|
+
- DENY
|
46
|
+
X-Request-Id:
|
47
|
+
- 1e59afec-6409-4db2-9a64-00acec38fec0
|
48
|
+
X-Runtime:
|
49
|
+
- '0.065164'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '514'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","username":null,"cpf":null,"rg":null,"phone":null,"skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","invitation_token":null,"type":"Collaborator","role":{"name":"Administrador
|
59
|
+
Geral"},"roles":[{"id":141,"name":"Administrador Geral"}],"course_classes":[],"library_resources":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 14 Jul 2015 19:12:32 GMT
|
62
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,176 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://core.edools.com/collaborators/87527.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/+json
|
12
|
+
Authorization:
|
13
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Security-Policy-Report-Only:
|
26
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
27
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
28
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
29
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
30
|
+
Content-Type:
|
31
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
32
|
+
Date:
|
33
|
+
- Tue, 14 Jul 2015 19:12:40 GMT
|
34
|
+
Etag:
|
35
|
+
- '"49913afb771e33c208fe9530525a761c"'
|
36
|
+
Server:
|
37
|
+
- nginx/1.4.7
|
38
|
+
Status:
|
39
|
+
- 200 OK
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=631152000; includeSubdomains
|
42
|
+
X-Content-Type-Options:
|
43
|
+
- nosniff
|
44
|
+
X-Frame-Options:
|
45
|
+
- DENY
|
46
|
+
X-Request-Id:
|
47
|
+
- 3f1e57c5-6c98-4414-b02c-a12744f497b6
|
48
|
+
X-Runtime:
|
49
|
+
- '0.046034'
|
50
|
+
X-Xss-Protection:
|
51
|
+
- 1; mode=block
|
52
|
+
Content-Length:
|
53
|
+
- '514'
|
54
|
+
Connection:
|
55
|
+
- keep-alive
|
56
|
+
body:
|
57
|
+
encoding: UTF-8
|
58
|
+
string: '{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","username":null,"cpf":null,"rg":null,"phone":null,"skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","invitation_token":null,"type":"Collaborator","role":{"name":"Administrador
|
59
|
+
Geral"},"roles":[{"id":141,"name":"Administrador Geral"}],"course_classes":[],"library_resources":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 14 Jul 2015 19:12:40 GMT
|
62
|
+
- request:
|
63
|
+
method: put
|
64
|
+
uri: https://core.edools.com/collaborators/87527.json
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{"user":{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","username":null,"cpf":null,"rg":null,"phone":"1406638122","skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","invitation_token":null,"type":"Collaborator","role":{"name":"Administrador
|
68
|
+
Geral"},"roles":[{"id":141,"name":"Administrador Geral"}],"course_classes":[],"library_resources":[]}}'
|
69
|
+
headers:
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
Authorization:
|
73
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
74
|
+
Accept:
|
75
|
+
- application/+json
|
76
|
+
Accept-Encoding:
|
77
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
78
|
+
User-Agent:
|
79
|
+
- Ruby
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 204
|
83
|
+
message: No Content
|
84
|
+
headers:
|
85
|
+
Cache-Control:
|
86
|
+
- no-cache
|
87
|
+
Content-Security-Policy-Report-Only:
|
88
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
89
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
90
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
91
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
92
|
+
Date:
|
93
|
+
- Tue, 14 Jul 2015 19:12:40 GMT
|
94
|
+
Server:
|
95
|
+
- nginx/1.4.7
|
96
|
+
Status:
|
97
|
+
- 204 No Content
|
98
|
+
Strict-Transport-Security:
|
99
|
+
- max-age=631152000; includeSubdomains
|
100
|
+
X-Content-Type-Options:
|
101
|
+
- nosniff
|
102
|
+
X-Frame-Options:
|
103
|
+
- DENY
|
104
|
+
X-Request-Id:
|
105
|
+
- 6417a375-bc9a-49f2-9d9b-df466a14596b
|
106
|
+
X-Runtime:
|
107
|
+
- '0.084035'
|
108
|
+
X-Xss-Protection:
|
109
|
+
- 1; mode=block
|
110
|
+
Connection:
|
111
|
+
- keep-alive
|
112
|
+
body:
|
113
|
+
encoding: UTF-8
|
114
|
+
string: ''
|
115
|
+
http_version:
|
116
|
+
recorded_at: Tue, 14 Jul 2015 19:12:41 GMT
|
117
|
+
- request:
|
118
|
+
method: get
|
119
|
+
uri: https://core.edools.com/collaborators/87527.json
|
120
|
+
body:
|
121
|
+
encoding: US-ASCII
|
122
|
+
string: ''
|
123
|
+
headers:
|
124
|
+
Accept:
|
125
|
+
- application/+json
|
126
|
+
Authorization:
|
127
|
+
- Token token=84cc0400cd52f62f2e12309b502889ab:2fee1e06d56ab6394ab9acd4c6a8c62f
|
128
|
+
Accept-Encoding:
|
129
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
130
|
+
User-Agent:
|
131
|
+
- Ruby
|
132
|
+
response:
|
133
|
+
status:
|
134
|
+
code: 200
|
135
|
+
message: OK
|
136
|
+
headers:
|
137
|
+
Cache-Control:
|
138
|
+
- max-age=0, private, must-revalidate
|
139
|
+
Content-Security-Policy-Report-Only:
|
140
|
+
- default-src https://* 'self'; connect-src https://* 'self'; font-src https://*
|
141
|
+
'self'; frame-src https://* 'self'; img-src https://* 'self' data:; media-src
|
142
|
+
https://* 'self'; object-src https://* 'self'; script-src https://* 'self';
|
143
|
+
style-src https://* 'self'; report-uri https://core.edools.com/uri-directive;
|
144
|
+
Content-Type:
|
145
|
+
- application/vnd.edools.core.v1+json; charset=utf-8
|
146
|
+
Date:
|
147
|
+
- Tue, 14 Jul 2015 19:12:41 GMT
|
148
|
+
Etag:
|
149
|
+
- '"0863462c642a3ff8d268b58fe91b8b28"'
|
150
|
+
Server:
|
151
|
+
- nginx/1.4.7
|
152
|
+
Status:
|
153
|
+
- 200 OK
|
154
|
+
Strict-Transport-Security:
|
155
|
+
- max-age=631152000; includeSubdomains
|
156
|
+
X-Content-Type-Options:
|
157
|
+
- nosniff
|
158
|
+
X-Frame-Options:
|
159
|
+
- DENY
|
160
|
+
X-Request-Id:
|
161
|
+
- 162d6502-7182-4365-b80d-ac574571b002
|
162
|
+
X-Runtime:
|
163
|
+
- '0.072116'
|
164
|
+
X-Xss-Protection:
|
165
|
+
- 1; mode=block
|
166
|
+
Content-Length:
|
167
|
+
- '522'
|
168
|
+
Connection:
|
169
|
+
- keep-alive
|
170
|
+
body:
|
171
|
+
encoding: UTF-8
|
172
|
+
string: '{"id":87527,"first_name":"Teste","last_name":null,"email":"collaborator+teste2@edools.com","username":null,"cpf":null,"rg":null,"phone":"1406638122","skype":null,"twitter":null,"facebook":null,"company_name":null,"company_position":null,"born_at":null,"biography":null,"cover_image_url":"https://cdn.edools.com/assets/images/users/default.jpeg","invitation_token":null,"type":"Collaborator","role":{"name":"Administrador
|
173
|
+
Geral"},"roles":[{"id":141,"name":"Administrador Geral"}],"course_classes":[],"library_resources":[]}'
|
174
|
+
http_version:
|
175
|
+
recorded_at: Tue, 14 Jul 2015 19:12:41 GMT
|
176
|
+
recorded_with: VCR 2.9.2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edools-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vinicius Kastrup
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- lib/edools/core/api_key.rb
|
177
177
|
- lib/edools/core/base.rb
|
178
178
|
- lib/edools/core/category.rb
|
179
|
+
- lib/edools/core/collaborator.rb
|
179
180
|
- lib/edools/core/course.rb
|
180
181
|
- lib/edools/core/course_content.rb
|
181
182
|
- lib/edools/core/course_module.rb
|
@@ -198,6 +199,7 @@ files:
|
|
198
199
|
- spec/edools/core/api_key_spec.rb
|
199
200
|
- spec/edools/core/base_spec.rb
|
200
201
|
- spec/edools/core/category_spec.rb
|
202
|
+
- spec/edools/core/collaborator_spec.rb
|
201
203
|
- spec/edools/core/course_content_spec.rb
|
202
204
|
- spec/edools/core/course_module_spec.rb
|
203
205
|
- spec/edools/core/course_spec.rb
|
@@ -223,6 +225,11 @@ files:
|
|
223
225
|
- spec/fixtures/vcr_cassettes/Edools_Core_Category/finds_all_category.yml
|
224
226
|
- spec/fixtures/vcr_cassettes/Edools_Core_Category/finds_the_category.yml
|
225
227
|
- spec/fixtures/vcr_cassettes/Edools_Core_Category/update_the_category.yml
|
228
|
+
- spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/create_the_collaborator.yml
|
229
|
+
- spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/destroy_the_collaborator.yml
|
230
|
+
- spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_all_collaborator.yml
|
231
|
+
- spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/finds_the_collaborator.yml
|
232
|
+
- spec/fixtures/vcr_cassettes/Edools_Core_Collaborator/update_the_collaborator.yml
|
226
233
|
- spec/fixtures/vcr_cassettes/Edools_Core_Course/create_the_course.yml
|
227
234
|
- spec/fixtures/vcr_cassettes/Edools_Core_Course/destroy_the_course.yml
|
228
235
|
- spec/fixtures/vcr_cassettes/Edools_Core_Course/finds_all_course.yml
|