smarteru 0.0.1 → 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.
- checksums.yaml +5 -5
- data/Rakefile +1 -2
- data/lib/smarteru.rb +4 -2
- data/lib/smarteru/client.rb +32 -19
- data/lib/smarteru/error.rb +12 -0
- data/lib/smarteru/resources/base.rb +10 -0
- data/lib/smarteru/resources/users.rb +110 -0
- data/lib/smarteru/response.rb +12 -12
- data/lib/smarteru/version.rb +1 -1
- data/test/smarteru_test.rb +128 -40
- data/test/support/responses/getGroup.xml +0 -3
- data/test/test_helper.rb +42 -0
- data/test/vcr/create_user.yml +57 -0
- data/test/vcr/enroll_user.yml +57 -0
- data/test/vcr/enrolled_false.yml +59 -0
- data/test/vcr/enrolled_true.yml +59 -0
- data/test/vcr/get_group.yml +60 -0
- data/test/vcr/get_nonexistant_user.yml +57 -0
- data/test/vcr/get_user.yml +66 -0
- data/test/vcr/invalid_api_keys.yml +57 -0
- data/test/vcr/learner_report.yml +63 -0
- data/test/vcr/signin_user.yml +60 -0
- data/test/vcr/update_employee_id.yml +57 -0
- data/test/vcr/update_user.yml +57 -0
- metadata +103 -34
- data/test/helper.rb +0 -29
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.smarteru.com/apiv2/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: Package=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%20%20%20%20%20%20%20%20%3CSmarterU%3E%0A%20%20%20%20%20%20%20%20%3CAccountAPI%3Efoo%3C%2FAccountAPI%3E%0A%20%20%20%20%20%20%20%20%3CUserAPI%3Ebar%3C%2FUserAPI%3E%0A%20%20%20%20%20%20%20%20%3CMethod%3EgetGroup%3C%2FMethod%3E%0A%20%20%20%20%20%20%20%20%3CParameters%3E%3CGroup%3E%3CName%3E%3C!%5BCDATA%5BPowurU%5D%5D%3E%3C%2FName%3E%3C%2FGroup%3E%3C%2FParameters%3E%0A%20%20%20%20%20%20%20%20%3C%2FSmarterU%3E
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '481'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sun, 14 Jun 2015 23:52:33 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=UTF-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Cache-Control:
|
38
|
+
- private
|
39
|
+
Content-Language:
|
40
|
+
- en-US
|
41
|
+
Set-Cookie:
|
42
|
+
- CFID=5583569; Expires=Mon, 15-Jun-2015 23:52:33 GMT; Path=/; HttpOnly
|
43
|
+
- CFTOKEN=42826612; Expires=Mon, 15-Jun-2015 23:52:33 GMT; Path=/; HttpOnly
|
44
|
+
- SERVERID=SU-APP-2-2; path=/
|
45
|
+
Content-Encoding:
|
46
|
+
- gzip
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAAz1P3QqCMBS+1qcYu6/pXcRcCCV4EUS2Bxh6ktHc4Eyl3j7T
|
51
|
+
rXP3/fIdfnoPhsyAXjtb0HyfUQK2dZ22fUHlo9od6EmkvBkUjoBSpMnv+B38
|
52
|
+
ZEZRKW2g4yzAINb26Vh0XhAd+oCSzbEUrHRkI67PopHHPONslRcY/SFwBe9V
|
53
|
+
D0J6QKJsR8q2dZMdSXmryQs+nigEou2sjF5mrS0xE6sCHavD5s0bdnL2//cL
|
54
|
+
qPlxFyEBAAA=
|
55
|
+
http_version:
|
56
|
+
recorded_at: Sun, 14 Jun 2015 23:52:33 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.smarteru.com/apiv2/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Package=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%20%20%20%20%20%20%20%20%3CSmarterU%3E%0A%20%20%20%20%20%20%20%20%3CAccountAPI%3EC3FE6BE08120A82DB9C4555A5C0E46AF%3C%2FAccountAPI%3E%0A%20%20%20%20%20%20%20%20%3CUserAPI%3E*623jec3nad4!aic5rlg*%24mrg8n4%24itd%5Evy62xut%3C%2FUserAPI%3E%0A%20%20%20%20%20%20%20%20%3CMethod%3EgetLearnerReport%3C%2FMethod%3E%0A%20%20%20%20%20%20%20%20%3CParameters%3E%3CReport%3E%3CFilters%3E%3CGroups%3E%3CGroupNames%3E%3CGroupName%3E%3C!%5BCDATA%5BPowurU%5D%5D%3E%3C%2FGroupName%3E%3C%2FGroupNames%3E%3C%2FGroups%3E%3CLearningModules%3E%3C%2FLearningModules%3E%3CUsers%3E%3CUserIdentifier%3E%3CEmployeeID%3E%3C!%5BCDATA%5B5258029611%5D%5D%3E%3C%2FEmployeeID%3E%3C%2FUserIdentifier%3E%3C%2FUsers%3E%3C%2FFilters%3E%3CColumns%3E%3CColumnName%3E%3C!%5BCDATA%5BENROLLED_DATE%5D%5D%3E%3C%2FColumnName%3E%3CColumnName%3E%3C!%5BCDATA%5BCOMPLETED_DATE%5D%5D%3E%3C%2FColumnName%3E%3CColumnName%3E%3C!%5BCDATA%5BDUE_DATE%5D%5D%3E%3C%2FColumnName%3E%3CColumnName%3E%3C!%5BCDATA%5BLAST_ACCESSED_DATE%5D%5D%3E%3C%2FColumnName%3E%3CColumnName%3E%3C!%5BCDATA%5BSTARTED_DATE%5D%5D%3E%3C%2FColumnName%3E%3C%2FColumns%3E%3CCustomFields%3E%3C%2FCustomFields%3E%3C%2FReport%3E%3C%2FParameters%3E%0A%20%20%20%20%20%20%20%20%3C%2FSmarterU%3E
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '1274'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 15 Jun 2015 21:08:13 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=UTF-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Cache-Control:
|
38
|
+
- private
|
39
|
+
Content-Language:
|
40
|
+
- en-US
|
41
|
+
Set-Cookie:
|
42
|
+
- CFID=5650863; Expires=Tue, 16-Jun-2015 21:08:12 GMT; Path=/; HttpOnly
|
43
|
+
- CFTOKEN=78725081; Expires=Tue, 16-Jun-2015 21:08:12 GMT; Path=/; HttpOnly
|
44
|
+
- SERVERID=SU-APP-1-2; path=/
|
45
|
+
Content-Encoding:
|
46
|
+
- gzip
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAA9VVyW7bMBA9J1/B6tQeRHERK4WgFbhyDLgIiiJ2TkEOhMIU
|
51
|
+
AiTSoKimn19qiSuncOq6l1TQheS82d48jLj8UVfgu7JNafQswBAFQOnCPJT6
|
52
|
+
2yy43SzDNLjMzsW6ltYpe5udn3WfuFFNW7ls3RaFahoRjefxdaUfTSaulbRa
|
53
|
+
2Ru1NdYBa56aWRAHu/tM5Ka1jfoia5WJd3f5Yr6Z3y1l48Cq3srCgY2VpfaJ
|
54
|
+
gPfL1ebD/X0moink2pvugz+pzlzZ3vTX87K0Ly0/K617q8nblbamqtTDQrpJ
|
55
|
+
QgRhFiIWYgJwzDHilEFEaA/eR+Sm3lbKHXRAAcGcJZxQyOLBwQvIolUHgjOA
|
56
|
+
CUfI/xD1oXemXZnznoU/BEacUYiTIfDvqLXrGD5UvM8dcXzBYwbTJOkz2ANE
|
57
|
+
I9n/J7sfQ8y6AmPMcep7NBT4CrtRJnYEPE/uMCjeVXo0V97NpIv+dGQbv5qn
|
58
|
+
1oLc6E6EUjuQK+vKx7KQzsu4Z+dtCIXgv9WJ7x8CftAo5TGBlIzF7CnrQOtZ
|
59
|
+
SLxGT5TJJC6+gBQPI3CCTLzEU44TmLCTVfKG6e3bRAgnzIsFxv+mFOKZPpKu
|
60
|
+
V5TyrJlhz3gN9dtn3ERX1hrbjFvrbLyMprci2u22nwqnJW0NBwAA
|
61
|
+
http_version:
|
62
|
+
recorded_at: Mon, 15 Jun 2015 21:08:13 GMT
|
63
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.smarteru.com/apiv2/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Package=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%20%20%20%20%20%20%20%20%3CSmarterU%3E%0A%20%20%20%20%20%20%20%20%3CAccountAPI%3EC3FE6BE08120A82DB9C4555A5C0E46AF%3C%2FAccountAPI%3E%0A%20%20%20%20%20%20%20%20%3CUserAPI%3E*623jec3nad4!aic5rlg*%24mrg8n4%24itd%5Evy62xut%3C%2FUserAPI%3E%0A%20%20%20%20%20%20%20%20%3CMethod%3ErequestExternalAuthorization%3C%2FMethod%3E%0A%20%20%20%20%20%20%20%20%3CParameters%3E%3CSecurity%3E%3CEmployeeID%3E%3C!%5BCDATA%5B5258029611%5D%5D%3E%3C%2FEmployeeID%3E%3C%2FSecurity%3E%3C%2FParameters%3E%0A%20%20%20%20%20%20%20%20%3C%2FSmarterU%3E
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '595'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 15 Jun 2015 20:35:08 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=UTF-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Cache-Control:
|
38
|
+
- private
|
39
|
+
Content-Language:
|
40
|
+
- en-US
|
41
|
+
Set-Cookie:
|
42
|
+
- CFID=5648707; Expires=Tue, 16-Jun-2015 20:35:07 GMT; Path=/; HttpOnly
|
43
|
+
- CFTOKEN=34469352; Expires=Tue, 16-Jun-2015 20:35:07 GMT; Path=/; HttpOnly
|
44
|
+
- SERVERID=SU-APP-1-2; path=/
|
45
|
+
Content-Encoding:
|
46
|
+
- gzip
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAA52Ry27CMBBF1+UrIKq6qERcSEugcoJQH1LVTcVjhVgExyYv
|
51
|
+
x4k9Dglf3xQCpMvWu/GMztw7F09LnnQLKlUoUscYmA9Gl6ZE+GG6c4zV8r0/
|
52
|
+
NqZuBy+4J4HKldu5+Xl4TpVOwF1oQqhSGDV10/1ImWgm69mZhuCTVi7urV9e
|
53
|
+
Z8vZOmPEDuNRUIJmJcukZklpWY9WHsFW7nPYTooorlL/Kc4I4ZKw8WbjYnTm
|
54
|
+
nJYcReSaKvjFLuI8sguWDHcDdV+NevaB9AKrshmNo+GEimwM4FX7su7fMqG4
|
55
|
+
7R/Zc3pBtfB+KCmBLw+Cq/gAIHtGKBN7LU11Oos2ieBIUi6A9r3arpDhwYP6
|
56
|
+
pCZhfNoId/7u++6qy/m3s5aLxhtGrYTwm5RCqnNeTYSo/YvRJf9vnKJqaDEC
|
57
|
+
AAA=
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 15 Jun 2015 20:35:08 GMT
|
60
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.smarteru.com/apiv2/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Package=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%20%20%20%20%20%20%20%20%3CSmarterU%3E%0A%20%20%20%20%20%20%20%20%3CAccountAPI%3EC3FE6BE08120A82DB9C4555A5C0E46AF%3C%2FAccountAPI%3E%0A%20%20%20%20%20%20%20%20%3CUserAPI%3E*623jec3nad4!aic5rlg*%24mrg8n4%24itd%5Evy62xut%3C%2FUserAPI%3E%0A%20%20%20%20%20%20%20%20%3CMethod%3EupdateUser%3C%2FMethod%3E%0A%20%20%20%20%20%20%20%20%3CParameters%3E%3CUser%3E%3CIdentifier%3E%3CEmail%3E%3C!%5BCDATA%5Bvduplessie%40gmail.com%5D%5D%3E%3C%2FEmail%3E%3C%2FIdentifier%3E%3CInfo%3E%3CEmployeeID%3E%3C!%5BCDATA%5Bpowur.com%3A4242%5D%5D%3E%3C%2FEmployeeID%3E%3C%2FInfo%3E%3CProfile%3E%3C%2FProfile%3E%3CGroups%3E%3C%2FGroups%3E%3C%2FUser%3E%3C%2FParameters%3E%0A%20%20%20%20%20%20%20%20%3C%2FSmarterU%3E
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '760'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 15 Jun 2015 21:36:13 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=UTF-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Cache-Control:
|
38
|
+
- private
|
39
|
+
Content-Language:
|
40
|
+
- en-US
|
41
|
+
Set-Cookie:
|
42
|
+
- CFID=5652687; Expires=Tue, 16-Jun-2015 21:36:12 GMT; Path=/; HttpOnly
|
43
|
+
- CFTOKEN=22037963; Expires=Tue, 16-Jun-2015 21:36:12 GMT; Path=/; HttpOnly
|
44
|
+
- SERVERID=SU-APP-1-2; path=/
|
45
|
+
Content-Encoding:
|
46
|
+
- gzip
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAA02PMQ+CMBCFZ/kVyC4oYTDmKBLBhFVgIgykVNKktKQF1H+v
|
51
|
+
hILcdve+d+8OgnfLzJFIRQX3rZN9tEzCsagpb3wrz+6HsxUgA9K2kj2ROTJ2
|
52
|
+
U8GDqIH1KB0wJkqBo3utJvwpNLmDuK0oQ7AvblGYhcVYDx37eSi5NpNiY9GW
|
53
|
+
JQJn5uYNk6tj4kNIEv2tnXgNcuIvnuu52rRiOtvZhEMspZBqOWUhtlNw1te+
|
54
|
+
HVFflgwBAAA=
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 15 Jun 2015 21:36:13 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.smarteru.com/apiv2/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: Package=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%20%20%20%20%20%20%20%20%3CSmarterU%3E%0A%20%20%20%20%20%20%20%20%3CAccountAPI%3EC3FE6BE08120A82DB9C4555A5C0E46AF%3C%2FAccountAPI%3E%0A%20%20%20%20%20%20%20%20%3CUserAPI%3E*623jec3nad4!aic5rlg*%24mrg8n4%24itd%5Evy62xut%3C%2FUserAPI%3E%0A%20%20%20%20%20%20%20%20%3CMethod%3EupdateUser%3C%2FMethod%3E%0A%20%20%20%20%20%20%20%20%3CParameters%3E%3CUser%3E%3CIdentifier%3E%3CEmail%3E%3C!%5BCDATA%5Bvduplessie%40gmail.com%5D%5D%3E%3C%2FEmail%3E%3C%2FIdentifier%3E%3CInfo%3E%3CEmployeeID%3E%3C!%5BCDATA%5Bpowur.com%3A4242%5D%5D%3E%3C%2FEmployeeID%3E%3C%2FInfo%3E%3CProfile%3E%3C%2FProfile%3E%3CGroups%3E%3C%2FGroups%3E%3C%2FUser%3E%3C%2FParameters%3E%0A%20%20%20%20%20%20%20%20%3C%2FSmarterU%3E
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '760'
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Mon, 15 Jun 2015 01:29:44 GMT
|
29
|
+
Content-Type:
|
30
|
+
- text/html;charset=UTF-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Cache-Control:
|
38
|
+
- private
|
39
|
+
Content-Language:
|
40
|
+
- en-US
|
41
|
+
Set-Cookie:
|
42
|
+
- CFID=5587668; Expires=Tue, 16-Jun-2015 01:29:43 GMT; Path=/; HttpOnly
|
43
|
+
- CFTOKEN=51162126; Expires=Tue, 16-Jun-2015 01:29:43 GMT; Path=/; HttpOnly
|
44
|
+
- SERVERID=SU-APP-2-2; path=/
|
45
|
+
Content-Encoding:
|
46
|
+
- gzip
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
H4sIAAAAAAAAA02PMQ+CMBCFZ/kVyC4oYTDmKBLBhFVgIgykVNKktKQF1H+v
|
51
|
+
hILcdve+d+8OgnfLzJFIRQX3rZN9tEzCsagpb3wrz+6HsxUgA9K2kj2ROTJ2
|
52
|
+
U8GDqIH1KB0wJkqBo3utJvwpNLmDuK0oQ7AvblGYhcVYDx37eSi5NpNiY9GW
|
53
|
+
JQJn5uYNk6tj4kNIEv2tnXgNcuIvnuu52rRiOtvZhEMspZBqOWUhtlNw1te+
|
54
|
+
HVFflgwBAAA=
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 15 Jun 2015 01:29:44 GMT
|
57
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smarteru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sasha Shamne
|
@@ -9,92 +9,134 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: nori
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rdoc
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0
|
49
|
-
type: :
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: test-unit
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: multi_json
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: vcr
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
84
112
|
- !ruby/object:Gem::Dependency
|
85
113
|
name: webmock
|
86
114
|
requirement: !ruby/object:Gem::Requirement
|
87
115
|
requirements:
|
88
|
-
- - "
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: pry
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
89
131
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
132
|
+
version: '0'
|
91
133
|
type: :development
|
92
134
|
prerelease: false
|
93
135
|
version_requirements: !ruby/object:Gem::Requirement
|
94
136
|
requirements:
|
95
|
-
- - "
|
137
|
+
- - ">="
|
96
138
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
139
|
+
version: '0'
|
98
140
|
description: Ruby wrapper for Smarteru API
|
99
141
|
email:
|
100
142
|
- alexander.shamne@gmail.com
|
@@ -107,12 +149,27 @@ files:
|
|
107
149
|
- Rakefile
|
108
150
|
- lib/smarteru.rb
|
109
151
|
- lib/smarteru/client.rb
|
152
|
+
- lib/smarteru/error.rb
|
153
|
+
- lib/smarteru/resources/base.rb
|
154
|
+
- lib/smarteru/resources/users.rb
|
110
155
|
- lib/smarteru/response.rb
|
111
156
|
- lib/smarteru/version.rb
|
112
|
-
- test/helper.rb
|
113
157
|
- test/smarteru_test.rb
|
114
158
|
- test/support/requests/getGroup.xml
|
115
159
|
- test/support/responses/getGroup.xml
|
160
|
+
- test/test_helper.rb
|
161
|
+
- test/vcr/create_user.yml
|
162
|
+
- test/vcr/enroll_user.yml
|
163
|
+
- test/vcr/enrolled_false.yml
|
164
|
+
- test/vcr/enrolled_true.yml
|
165
|
+
- test/vcr/get_group.yml
|
166
|
+
- test/vcr/get_nonexistant_user.yml
|
167
|
+
- test/vcr/get_user.yml
|
168
|
+
- test/vcr/invalid_api_keys.yml
|
169
|
+
- test/vcr/learner_report.yml
|
170
|
+
- test/vcr/signin_user.yml
|
171
|
+
- test/vcr/update_employee_id.yml
|
172
|
+
- test/vcr/update_user.yml
|
116
173
|
homepage: http://github.com/eyecuelab/smarteru
|
117
174
|
licenses:
|
118
175
|
- MIT
|
@@ -133,12 +190,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
190
|
version: '0'
|
134
191
|
requirements: []
|
135
192
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
193
|
+
rubygems_version: 2.7.3
|
137
194
|
signing_key:
|
138
195
|
specification_version: 4
|
139
196
|
summary: Allows access to a Smarteru API operations http://help.smarteru.com/
|
140
197
|
test_files:
|
141
|
-
- test/helper.rb
|
142
198
|
- test/smarteru_test.rb
|
143
199
|
- test/support/requests/getGroup.xml
|
144
200
|
- test/support/responses/getGroup.xml
|
201
|
+
- test/test_helper.rb
|
202
|
+
- test/vcr/create_user.yml
|
203
|
+
- test/vcr/enroll_user.yml
|
204
|
+
- test/vcr/enrolled_false.yml
|
205
|
+
- test/vcr/enrolled_true.yml
|
206
|
+
- test/vcr/get_group.yml
|
207
|
+
- test/vcr/get_nonexistant_user.yml
|
208
|
+
- test/vcr/get_user.yml
|
209
|
+
- test/vcr/invalid_api_keys.yml
|
210
|
+
- test/vcr/learner_report.yml
|
211
|
+
- test/vcr/signin_user.yml
|
212
|
+
- test/vcr/update_employee_id.yml
|
213
|
+
- test/vcr/update_user.yml
|