openstax_exchange 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Exchange
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"f2964886eb9c7cd1f64e2739e98321e4"
34
+ - W/"03f293f138bbd2bf1064b52be6c9e7cb"
35
35
  X-Request-Id:
36
- - 457cd5be-08c5-460f-9f75-a6ae65f8cf33
36
+ - 24af8899-1708-416f-92b0-f462bea31c7f
37
37
  X-Runtime:
38
- - '0.017691'
38
+ - '0.017257'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"24a5e62794ef61812b4ade1da0a3741a446a87c448cf8ffa267b6a95c97b6cea","token_type":"bearer","scope":"read
46
- write","created_at":1431390441}'
45
+ string: ! '{"access_token":"7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e","token_type":"bearer","scope":"read
46
+ write","created_at":1431459538}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:27:21 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer 24a5e62794ef61812b4ade1da0a3741a446a87c448cf8ffa267b6a95c97b6cea
63
+ - Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,41 +75,41 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:27:21 GMT
78
+ - Tue, 12 May 2015 19:38:58 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"2430efaf9cc9bc89900d4eaa04400807"
82
+ - W/"180f629bb7600b7156b64d0aca0f90b3"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - 44d442fe-ef13-4e08-bd07-d0d9947abd78
88
+ - 97dac4b3-98ea-4038-bc3a-6147a33b51c5
89
89
  X-Runtime:
90
- - '0.062409'
90
+ - '0.058647'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"8b23c3d2299a1fc6478e28b1f7024a4f14a7945c818b57864616f02149883065","write":"8fc97bc59e6bf2df9fb6612c74c63bf38292b5011f2266b5b78276aed7bd1b86"}'
97
+ string: ! '{"read":"f857ccae138bf17c1edeedbb109803e66d3f7110af961b0c81915e86ae629292","write":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:27:21 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/events/platforms/gradings
103
103
  body:
104
104
  encoding: UTF-8
105
- string: ! '{"identifier":"8fc97bc59e6bf2df9fb6612c74c63bf38292b5011f2266b5b78276aed7bd1b86","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"0.0","grader":"openstax"}'
105
+ string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":0.0,"grader":"openstax"}'
106
106
  headers:
107
107
  User-Agent:
108
108
  - Faraday v0.9.1
109
109
  Accept:
110
110
  - application/vnd.exchange.openstax.v1
111
111
  Authorization:
112
- - Bearer 24a5e62794ef61812b4ade1da0a3741a446a87c448cf8ffa267b6a95c97b6cea
112
+ - Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
113
113
  Content-Type:
114
114
  - application/json
115
115
  response:
@@ -124,41 +124,41 @@ http_interactions:
124
124
  X-Content-Type-Options:
125
125
  - nosniff
126
126
  Date:
127
- - Tue, 12 May 2015 00:27:21 GMT
127
+ - Tue, 12 May 2015 19:38:58 GMT
128
128
  Content-Type:
129
129
  - application/json; charset=utf-8
130
130
  Etag:
131
- - W/"bfe8018341200e22df35c585e2a0ec5d"
131
+ - W/"10d2d286170ea47e44280dcc1b1205b1"
132
132
  Cache-Control:
133
133
  - max-age=0, private, must-revalidate
134
134
  Set-Cookie:
135
135
  - request_method=POST; path=/
136
136
  X-Request-Id:
137
- - db32c35a-413c-4482-92f0-d4c2baa49173
137
+ - 3bc19b73-aa48-4c2a-ad99-ee0d05af4a61
138
138
  X-Runtime:
139
- - '0.094311'
139
+ - '0.093433'
140
140
  Connection:
141
141
  - close
142
142
  Server:
143
143
  - thin
144
144
  body:
145
145
  encoding: US-ASCII
146
- string: ! '{"identifier":"8fc97bc59e6bf2df9fb6612c74c63bf38292b5011f2266b5b78276aed7bd1b86","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:27:21.280Z","grader":"openstax","grade":"0.0"}'
146
+ string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.633Z","grader":"openstax","grade":0.0}'
147
147
  http_version:
148
- recorded_at: Tue, 12 May 2015 00:27:21 GMT
148
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
149
149
  - request:
150
150
  method: post
151
151
  uri: http://localhost:3003/api/events/platforms/gradings
152
152
  body:
153
153
  encoding: UTF-8
154
- string: ! '{"identifier":"8fc97bc59e6bf2df9fb6612c74c63bf38292b5011f2266b5b78276aed7bd1b86","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"tutor"}'
154
+ string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"tutor"}'
155
155
  headers:
156
156
  User-Agent:
157
157
  - Faraday v0.9.1
158
158
  Accept:
159
159
  - application/vnd.exchange.openstax.v1
160
160
  Authorization:
161
- - Bearer 24a5e62794ef61812b4ade1da0a3741a446a87c448cf8ffa267b6a95c97b6cea
161
+ - Bearer 7364cf1902bbfa67bbd3036804a09e940e2cbca56a48946d2aa89de1d861886e
162
162
  Content-Type:
163
163
  - application/json
164
164
  response:
@@ -173,26 +173,26 @@ http_interactions:
173
173
  X-Content-Type-Options:
174
174
  - nosniff
175
175
  Date:
176
- - Tue, 12 May 2015 00:27:21 GMT
176
+ - Tue, 12 May 2015 19:38:58 GMT
177
177
  Content-Type:
178
178
  - application/json; charset=utf-8
179
179
  Etag:
180
- - W/"8a5afe915582c7458850da40c2f35e79"
180
+ - W/"bff9e7f3681cebefecdcd3dcdfbbfba2"
181
181
  Cache-Control:
182
182
  - max-age=0, private, must-revalidate
183
183
  Set-Cookie:
184
184
  - request_method=POST; path=/
185
185
  X-Request-Id:
186
- - 7f825b12-c4a7-4b6a-aea3-97db28fcee8a
186
+ - d3bf30b0-2d49-4fb5-ad4d-9bcf1cc84702
187
187
  X-Runtime:
188
- - '0.086670'
188
+ - '0.093759'
189
189
  Connection:
190
190
  - close
191
191
  Server:
192
192
  - thin
193
193
  body:
194
194
  encoding: US-ASCII
195
- string: ! '{"identifier":"8fc97bc59e6bf2df9fb6612c74c63bf38292b5011f2266b5b78276aed7bd1b86","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:27:21.372Z","grader":"tutor","grade":"1.0"}'
195
+ string: ! '{"identifier":"65ee0e5050d8d81e81fddc5dad4fbeda000e41cf6a708d376be96925543d8d7f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.725Z","grader":"tutor","grade":1.0}'
196
196
  http_version:
197
- recorded_at: Tue, 12 May 2015 00:27:21 GMT
197
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
198
198
  recorded_with: VCR 2.9.3
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"671e0a562337a825aa19d4a1e8b75206"
34
+ - W/"b667674ab8f17ea292c252ed62acf673"
35
35
  X-Request-Id:
36
- - 0c7e053f-e805-4c4a-9bf3-a1478d4f00ce
36
+ - ce1d8659-c6f6-4e31-b90c-e39e1cf84fff
37
37
  X-Runtime:
38
- - '0.016269'
38
+ - '0.016185'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131","token_type":"bearer","scope":"read
46
- write","created_at":1431390182}'
45
+ string: ! '{"access_token":"47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec","token_type":"bearer","scope":"read
46
+ write","created_at":1431459538}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131
63
+ - Bearer 47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,41 +75,41 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:23:02 GMT
78
+ - Tue, 12 May 2015 19:38:58 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"8e5c3fe6bde08de633da0d6153d8d0cc"
82
+ - W/"756a833b2f264f2fa7f424c228380628"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - 64d5effc-e4a5-4180-a31f-38e3ddff9f8b
88
+ - 464ac99d-1dcd-4e49-ba09-be14001f256e
89
89
  X-Runtime:
90
- - '0.063133'
90
+ - '0.077354'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"383cc2fee618697bf70d7cec3298b05733bb007ce9f18032de065b90709c26d4","write":"e26218f6aa93129c2b4fc84b2548264e3256308d53164212b3d0285b40575843"}'
97
+ string: ! '{"read":"0533432f0cf27843a1d76173afca3cf1d948534f2b78f797f36ddf4da8a223ea","write":"ec5a520c954e5ffec7418887c423e385a19782142d574202b200c9392342dea2"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/events/platforms/gradings
103
103
  body:
104
104
  encoding: UTF-8
105
- string: ! '{"identifier":"e26218f6aa93129c2b4fc84b2548264e3256308d53164212b3d0285b40575843","resource":"https://example.com/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
105
+ string: ! '{"identifier":"ec5a520c954e5ffec7418887c423e385a19782142d574202b200c9392342dea2","resource":"https://example.com/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
106
106
  headers:
107
107
  User-Agent:
108
108
  - Faraday v0.9.1
109
109
  Accept:
110
110
  - application/vnd.exchange.openstax.v1
111
111
  Authorization:
112
- - Bearer c0ca319e2588f9f74b8b14c960fd5f4e157a6edf060c36d764a390e082f7f131
112
+ - Bearer 47fda39d1b5592e9d1c2a58682a26a2dcade0b8a7a9e6d3d800944d08ad1ebec
113
113
  Content-Type:
114
114
  - application/json
115
115
  response:
@@ -124,7 +124,7 @@ http_interactions:
124
124
  X-Content-Type-Options:
125
125
  - nosniff
126
126
  Date:
127
- - Tue, 12 May 2015 00:23:02 GMT
127
+ - Tue, 12 May 2015 19:38:58 GMT
128
128
  Content-Type:
129
129
  - application/json; charset=utf-8
130
130
  Cache-Control:
@@ -132,17 +132,17 @@ http_interactions:
132
132
  Set-Cookie:
133
133
  - request_method=POST; path=/
134
134
  X-Request-Id:
135
- - 09a3a36a-5172-46fe-aca0-115a7077df12
135
+ - e55de558-1fbe-4613-afe6-6f0857be713c
136
136
  X-Runtime:
137
- - '0.039371'
137
+ - '0.035829'
138
138
  Connection:
139
139
  - close
140
140
  Server:
141
141
  - thin
142
142
  body:
143
143
  encoding: US-ASCII
144
- string: ! '[{"code":"blank","data":{"model":{"id":null,"identifier_id":15,"resource_id":null,"trial":"1","due_at":null,"created_at":null,"updated_at":null},"attribute":"resource"},"kind":"activerecord","message":"can''t
144
+ string: ! '[{"code":"blank","data":{"model":{"id":null,"identifier_id":7,"resource_id":null,"trial":"1","due_at":null,"created_at":null,"updated_at":null},"attribute":"resource"},"kind":"activerecord","message":"can''t
145
145
  be blank","offending_inputs":"resource"}]'
146
146
  http_version:
147
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
147
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
148
148
  recorded_with: VCR 2.9.3
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"ab670f60e3a9b5c0efbe4129f1d37624"
34
+ - W/"34023d121e0bbfacbcb8299293e8f5b3"
35
35
  X-Request-Id:
36
- - 7cc8251c-b438-44c1-ac7c-7d97aacbf814
36
+ - 8eb3cf8a-ba49-47a6-9a26-960e23e972ad
37
37
  X-Runtime:
38
- - '0.017613'
38
+ - '0.016734'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"958660c63a1f4909480a222d1da43bdf57f9e4aae3c63fb735645fe81d4f19d7","token_type":"bearer","scope":"read
46
- write","created_at":1431390181}'
45
+ string: ! '{"access_token":"1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e","token_type":"bearer","scope":"read
46
+ write","created_at":1431459537}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer 958660c63a1f4909480a222d1da43bdf57f9e4aae3c63fb735645fe81d4f19d7
63
+ - Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,28 +75,28 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:23:01 GMT
78
+ - Tue, 12 May 2015 19:38:57 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"789d410da7b2991db05829ab261f60e3"
82
+ - W/"771571f441efdcb5336cdbd0560b22b6"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - f6fcebdb-65dc-4930-baa6-41d70df78f92
88
+ - 93447241-6a84-4757-b072-9840f35ae6f2
89
89
  X-Runtime:
90
- - '0.061422'
90
+ - '0.059090'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"062be8afc3cfd2dc5ddc418c735d5c00783495b4947815b69289df6865e81ccd","write":"43afc96d250fa4bf6cc62c63c4b5ba22668345e2ac618edc6fdcf4813d44b5d0"}'
97
+ string: ! '{"read":"e911c684a7bac0029f6af9fde014ddd4772dea6da417fffd4104d5845d3885a8","write":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/identifiers
@@ -111,7 +111,7 @@ http_interactions:
111
111
  Content-Type:
112
112
  - application/json
113
113
  Authorization:
114
- - Bearer 958660c63a1f4909480a222d1da43bdf57f9e4aae3c63fb735645fe81d4f19d7
114
+ - Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
115
115
  Content-Length:
116
116
  - '0'
117
117
  response:
@@ -126,41 +126,41 @@ http_interactions:
126
126
  X-Content-Type-Options:
127
127
  - nosniff
128
128
  Date:
129
- - Tue, 12 May 2015 00:23:01 GMT
129
+ - Tue, 12 May 2015 19:38:57 GMT
130
130
  Content-Type:
131
131
  - application/json; charset=utf-8
132
132
  Etag:
133
- - W/"90bb024d74098622bdbed99fea1d62f0"
133
+ - W/"f17b8bfa7bbe81e7a43f0794b3b85b45"
134
134
  Cache-Control:
135
135
  - max-age=0, private, must-revalidate
136
136
  Set-Cookie:
137
137
  - request_method=POST; path=/
138
138
  X-Request-Id:
139
- - b4afb357-2b92-45c1-91dd-f407ee2e37c2
139
+ - e1c5817d-2280-44a7-b036-ed1f56118c27
140
140
  X-Runtime:
141
- - '0.054959'
141
+ - '0.056557'
142
142
  Connection:
143
143
  - close
144
144
  Server:
145
145
  - thin
146
146
  body:
147
147
  encoding: US-ASCII
148
- string: ! '{"read":"0d659139fa13163cfd60e6e365646505dad2ac6cff0afece9f01daa7db2b72d7","write":"8ffc8b438bca8f79e4b1ac7b1dfdb55c447e96099e19faf74e57718681e041d0"}'
148
+ string: ! '{"read":"31411af4d499727273ddc055d4a5f75160267b298e608461ccb4bd7b55b59b9c","write":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1"}'
149
149
  http_version:
150
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
150
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
151
151
  - request:
152
152
  method: post
153
153
  uri: http://localhost:3003/api/events/platforms/gradings
154
154
  body:
155
155
  encoding: UTF-8
156
- string: ! '{"identifier":"43afc96d250fa4bf6cc62c63c4b5ba22668345e2ac618edc6fdcf4813d44b5d0","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
156
+ string: ! '{"identifier":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
157
157
  headers:
158
158
  User-Agent:
159
159
  - Faraday v0.9.1
160
160
  Accept:
161
161
  - application/vnd.exchange.openstax.v1
162
162
  Authorization:
163
- - Bearer 958660c63a1f4909480a222d1da43bdf57f9e4aae3c63fb735645fe81d4f19d7
163
+ - Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
164
164
  Content-Type:
165
165
  - application/json
166
166
  response:
@@ -175,41 +175,41 @@ http_interactions:
175
175
  X-Content-Type-Options:
176
176
  - nosniff
177
177
  Date:
178
- - Tue, 12 May 2015 00:23:01 GMT
178
+ - Tue, 12 May 2015 19:38:57 GMT
179
179
  Content-Type:
180
180
  - application/json; charset=utf-8
181
181
  Etag:
182
- - W/"b8477e35034c555e8d5851ab64cc2670"
182
+ - W/"6d0cb9333f44290b552c7a77c7b0152a"
183
183
  Cache-Control:
184
184
  - max-age=0, private, must-revalidate
185
185
  Set-Cookie:
186
186
  - request_method=POST; path=/
187
187
  X-Request-Id:
188
- - 8e004a6a-a92b-466b-bab2-8a90d7467884
188
+ - adcb07f2-6408-45db-a830-58255aba6cbf
189
189
  X-Runtime:
190
- - '0.096030'
190
+ - '0.090007'
191
191
  Connection:
192
192
  - close
193
193
  Server:
194
194
  - thin
195
195
  body:
196
196
  encoding: US-ASCII
197
- string: ! '{"identifier":"43afc96d250fa4bf6cc62c63c4b5ba22668345e2ac618edc6fdcf4813d44b5d0","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.414Z","grader":"openstax","grade":"1.0"}'
197
+ string: ! '{"identifier":"d56c357f18e997290edd6dad0e351aca690ced8a81fb2609024d02a184828d9f","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:57.932Z","grader":"openstax","grade":1.0}'
198
198
  http_version:
199
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
199
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
200
200
  - request:
201
201
  method: post
202
202
  uri: http://localhost:3003/api/events/platforms/gradings
203
203
  body:
204
204
  encoding: UTF-8
205
- string: ! '{"identifier":"8ffc8b438bca8f79e4b1ac7b1dfdb55c447e96099e19faf74e57718681e041d0","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
205
+ string: ! '{"identifier":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
206
206
  headers:
207
207
  User-Agent:
208
208
  - Faraday v0.9.1
209
209
  Accept:
210
210
  - application/vnd.exchange.openstax.v1
211
211
  Authorization:
212
- - Bearer 958660c63a1f4909480a222d1da43bdf57f9e4aae3c63fb735645fe81d4f19d7
212
+ - Bearer 1aecd6a0f124ca39cc4398c39dec58fad94a2b49e6f14f10741f89075479f52e
213
213
  Content-Type:
214
214
  - application/json
215
215
  response:
@@ -224,26 +224,26 @@ http_interactions:
224
224
  X-Content-Type-Options:
225
225
  - nosniff
226
226
  Date:
227
- - Tue, 12 May 2015 00:23:01 GMT
227
+ - Tue, 12 May 2015 19:38:58 GMT
228
228
  Content-Type:
229
229
  - application/json; charset=utf-8
230
230
  Etag:
231
- - W/"2e96a53698c31e33a3cbaaa39d125557"
231
+ - W/"0af130279ca9b7e11d21333fadaf987a"
232
232
  Cache-Control:
233
233
  - max-age=0, private, must-revalidate
234
234
  Set-Cookie:
235
235
  - request_method=POST; path=/
236
236
  X-Request-Id:
237
- - 20a4191f-34c0-4035-9e9e-6a271a5737a6
237
+ - b36bb81b-ac91-465a-b943-29057632cf4b
238
238
  X-Runtime:
239
- - '0.102653'
239
+ - '0.090778'
240
240
  Connection:
241
241
  - close
242
242
  Server:
243
243
  - thin
244
244
  body:
245
245
  encoding: US-ASCII
246
- string: ! '{"identifier":"8ffc8b438bca8f79e4b1ac7b1dfdb55c447e96099e19faf74e57718681e041d0","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.519Z","grader":"openstax","grade":"1.0"}'
246
+ string: ! '{"identifier":"f463e513ae48ec0728cc787dcf48eb16c2a966f690786577991624f65992e3e1","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.027Z","grader":"openstax","grade":1.0}'
247
247
  http_version:
248
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
248
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
249
249
  recorded_with: VCR 2.9.3
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"0e60c9d287ffb10c20ba2ad338cb9f0e"
34
+ - W/"61ce4a44d1d6fde30854e69414319a4b"
35
35
  X-Request-Id:
36
- - 9b73bf80-b61e-4dc8-be64-58594d2736df
36
+ - 6cbb6987-a019-4712-aefd-8db8f6ac3b4c
37
37
  X-Runtime:
38
- - '0.018208'
38
+ - '0.017409'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701","token_type":"bearer","scope":"read
46
- write","created_at":1431390181}'
45
+ string: ! '{"access_token":"bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753","token_type":"bearer","scope":"read
46
+ write","created_at":1431459538}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
63
+ - Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,41 +75,41 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:23:01 GMT
78
+ - Tue, 12 May 2015 19:38:58 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"b35703fd355e2dce13c9cec98a373fe9"
82
+ - W/"828c453daed1f094d2f87236b2ceb87d"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - e664320d-91d6-461f-bfd2-3f5d5fdf89ee
88
+ - 105925f5-b2c0-40b2-a417-9a1bf5438abf
89
89
  X-Runtime:
90
- - '0.077787'
90
+ - '0.059750'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"0197c01c7419e4021d32caf59e1718ea2395f2c7a56034b686d3d311db55b818","write":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725"}'
97
+ string: ! '{"read":"51a6116c77f6b739afd3974b60b8d370d5944ae5d9e646aef127674a70b652f8","write":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/events/platforms/gradings
103
103
  body:
104
104
  encoding: UTF-8
105
- string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","grade":"1.0","grader":"openstax"}'
105
+ string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","grade":1.0,"grader":"openstax"}'
106
106
  headers:
107
107
  User-Agent:
108
108
  - Faraday v0.9.1
109
109
  Accept:
110
110
  - application/vnd.exchange.openstax.v1
111
111
  Authorization:
112
- - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
112
+ - Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
113
113
  Content-Type:
114
114
  - application/json
115
115
  response:
@@ -124,41 +124,41 @@ http_interactions:
124
124
  X-Content-Type-Options:
125
125
  - nosniff
126
126
  Date:
127
- - Tue, 12 May 2015 00:23:01 GMT
127
+ - Tue, 12 May 2015 19:39:26 GMT
128
128
  Content-Type:
129
129
  - application/json; charset=utf-8
130
130
  Etag:
131
- - W/"c8d33ed7e979bdddb9ee255b9fc71ef4"
131
+ - W/"cf1c1f95250b0de2df9f514fe765dee5"
132
132
  Cache-Control:
133
133
  - max-age=0, private, must-revalidate
134
134
  Set-Cookie:
135
135
  - request_method=POST; path=/
136
136
  X-Request-Id:
137
- - 8abb7d71-1c18-46e8-8535-566ce118f4c0
137
+ - 1e7369e9-ff6d-401e-b263-ddc037afb667
138
138
  X-Runtime:
139
- - '0.099400'
139
+ - '0.485617'
140
140
  Connection:
141
141
  - close
142
142
  Server:
143
143
  - thin
144
144
  body:
145
145
  encoding: US-ASCII
146
- string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","created_at":"2015-05-12T00:23:01.748Z","grader":"openstax","grade":"1.0"}'
146
+ string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/12@1","trial":"1","created_at":"2015-05-12T19:39:26.016Z","grader":"openstax","grade":1.0}'
147
147
  http_version:
148
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
148
+ recorded_at: Tue, 12 May 2015 19:39:26 GMT
149
149
  - request:
150
150
  method: post
151
151
  uri: http://localhost:3003/api/events/platforms/gradings
152
152
  body:
153
153
  encoding: UTF-8
154
- string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
154
+ string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
155
155
  headers:
156
156
  User-Agent:
157
157
  - Faraday v0.9.1
158
158
  Accept:
159
159
  - application/vnd.exchange.openstax.v1
160
160
  Authorization:
161
- - Bearer 39efd7d752431a76d1f8509592c344f4fa81728d0ec25631b9bc7565427a8701
161
+ - Bearer bdc96307a18ee57bdcbc4b756abfab9c480f53ab006074be78f78b398283d753
162
162
  Content-Type:
163
163
  - application/json
164
164
  response:
@@ -173,26 +173,26 @@ http_interactions:
173
173
  X-Content-Type-Options:
174
174
  - nosniff
175
175
  Date:
176
- - Tue, 12 May 2015 00:23:01 GMT
176
+ - Tue, 12 May 2015 19:39:26 GMT
177
177
  Content-Type:
178
178
  - application/json; charset=utf-8
179
179
  Etag:
180
- - W/"6e9216502f37b6a3e103e05fd17351e8"
180
+ - W/"fa58c02548bba7e8414b7e04179c31e3"
181
181
  Cache-Control:
182
182
  - max-age=0, private, must-revalidate
183
183
  Set-Cookie:
184
184
  - request_method=POST; path=/
185
185
  X-Request-Id:
186
- - b24655ee-481d-43b2-ba32-525db75f4dd2
186
+ - 8a62b3c1-7711-4ecd-99b8-7a1d06d1a8f9
187
187
  X-Runtime:
188
- - '0.095929'
188
+ - '0.096533'
189
189
  Connection:
190
190
  - close
191
191
  Server:
192
192
  - thin
193
193
  body:
194
194
  encoding: US-ASCII
195
- string: ! '{"identifier":"280f998aeecd27de526b71670846d0bdba64ccc9dd6096bd3edb081c48965725","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.852Z","grader":"openstax","grade":"1.0"}'
195
+ string: ! '{"identifier":"1c4d86055d7c7a24a26600b7c6d061cf148cac3b9733338263472de9632908e4","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:39:26.120Z","grader":"openstax","grade":1.0}'
196
196
  http_version:
197
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
197
+ recorded_at: Tue, 12 May 2015 19:39:26 GMT
198
198
  recorded_with: VCR 2.9.3
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"c8094843b234419f28a3e47ec191f382"
34
+ - W/"4b900c4a0c259e67c74efca0b5ebce6e"
35
35
  X-Request-Id:
36
- - be7935e9-c73b-42f2-853d-d8dd2552843e
36
+ - 892a00cb-2d33-46d5-a264-1bc157a3586a
37
37
  X-Runtime:
38
- - '0.017937'
38
+ - '0.033564'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92","token_type":"bearer","scope":"read
46
- write","created_at":1431390181}'
45
+ string: ! '{"access_token":"a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5","token_type":"bearer","scope":"read
46
+ write","created_at":1431459538}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
63
+ - Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,41 +75,41 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:23:02 GMT
78
+ - Tue, 12 May 2015 19:38:58 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"5555eb9de0bb252a57cb0ec7407fa2d4"
82
+ - W/"0e27f14228b4648cb1c2391923d1d580"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - 53e15ab5-e868-4395-adde-a0b0fc722272
88
+ - a927344c-2d9e-4946-93d7-5aa143beb711
89
89
  X-Runtime:
90
- - '0.061855'
90
+ - '0.063835'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"4bf37e33b2b655c2663822d6f735ec5c4fd2eb2cd509dc305165f6fe5aa62aad","write":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2"}'
97
+ string: ! '{"read":"66538ad57ffbb7980488d7147c9481617ac35045551bc802d6175e6613895807","write":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/events/platforms/gradings
103
103
  body:
104
104
  encoding: UTF-8
105
- string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
105
+ string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
106
106
  headers:
107
107
  User-Agent:
108
108
  - Faraday v0.9.1
109
109
  Accept:
110
110
  - application/vnd.exchange.openstax.v1
111
111
  Authorization:
112
- - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
112
+ - Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
113
113
  Content-Type:
114
114
  - application/json
115
115
  response:
@@ -124,41 +124,41 @@ http_interactions:
124
124
  X-Content-Type-Options:
125
125
  - nosniff
126
126
  Date:
127
- - Tue, 12 May 2015 00:23:02 GMT
127
+ - Tue, 12 May 2015 19:38:58 GMT
128
128
  Content-Type:
129
129
  - application/json; charset=utf-8
130
130
  Etag:
131
- - W/"e67967db3f3ea35bb368ca2a811e1944"
131
+ - W/"27a9735444d620f79a03d93fa69dbb35"
132
132
  Cache-Control:
133
133
  - max-age=0, private, must-revalidate
134
134
  Set-Cookie:
135
135
  - request_method=POST; path=/
136
136
  X-Request-Id:
137
- - adc86379-ca5e-4f84-9e05-506ffc65cccb
137
+ - 8d83242c-ad64-408e-bdc3-8d54b6e7c73d
138
138
  X-Runtime:
139
- - '0.096917'
139
+ - '0.087885'
140
140
  Connection:
141
141
  - close
142
142
  Server:
143
143
  - thin
144
144
  body:
145
145
  encoding: US-ASCII
146
- string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:02.054Z","grader":"openstax","grade":"1.0"}'
146
+ string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:58.339Z","grader":"openstax","grade":1.0}'
147
147
  http_version:
148
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
148
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
149
149
  - request:
150
150
  method: post
151
151
  uri: http://localhost:3003/api/events/platforms/gradings
152
152
  body:
153
153
  encoding: UTF-8
154
- string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","grade":"1.0","grader":"openstax"}'
154
+ string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","grade":1.0,"grader":"openstax"}'
155
155
  headers:
156
156
  User-Agent:
157
157
  - Faraday v0.9.1
158
158
  Accept:
159
159
  - application/vnd.exchange.openstax.v1
160
160
  Authorization:
161
- - Bearer 6c2c0af97c3e4e238e3367d76c31a5811987723199f7fac157111965e62b9d92
161
+ - Bearer a831336e5b0aa288b46bc414513fe8a4c42f15860fe8f70bbd0680ec93d76ac5
162
162
  Content-Type:
163
163
  - application/json
164
164
  response:
@@ -173,26 +173,26 @@ http_interactions:
173
173
  X-Content-Type-Options:
174
174
  - nosniff
175
175
  Date:
176
- - Tue, 12 May 2015 00:23:02 GMT
176
+ - Tue, 12 May 2015 19:38:58 GMT
177
177
  Content-Type:
178
178
  - application/json; charset=utf-8
179
179
  Etag:
180
- - W/"833ba5c8efecf3850e5045d58fbc702d"
180
+ - W/"a92d6cdb6b4254be9e7be0aeaad53b4a"
181
181
  Cache-Control:
182
182
  - max-age=0, private, must-revalidate
183
183
  Set-Cookie:
184
184
  - request_method=POST; path=/
185
185
  X-Request-Id:
186
- - a78bebbd-5ee2-401b-bb45-e9393e22dbcf
186
+ - 43b2717d-4165-433e-954f-6dac94d847b5
187
187
  X-Runtime:
188
- - '0.102921'
188
+ - '0.097029'
189
189
  Connection:
190
190
  - close
191
191
  Server:
192
192
  - thin
193
193
  body:
194
194
  encoding: US-ASCII
195
- string: ! '{"identifier":"51b451df43d0560abc97780f3f30686bff9270105ff705911551d51716a45bf2","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","created_at":"2015-05-12T00:23:02.159Z","grader":"openstax","grade":"1.0"}'
195
+ string: ! '{"identifier":"e317db1a3a486642177a5bf6c0c1bc19e1280edaaa0dd33495b0458e3f460f23","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"2","created_at":"2015-05-12T19:38:58.435Z","grader":"openstax","grade":1.0}'
196
196
  http_version:
197
- recorded_at: Tue, 12 May 2015 00:23:02 GMT
197
+ recorded_at: Tue, 12 May 2015 19:38:58 GMT
198
198
  recorded_with: VCR 2.9.3
@@ -31,21 +31,21 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
33
  Etag:
34
- - W/"a9b87e5f1e32f2a38c9a0462d18947ea"
34
+ - W/"5eadf4e60913f09e27ef83bef0a35640"
35
35
  X-Request-Id:
36
- - 9d816e5f-00cf-4178-a63f-7b7aee1df705
36
+ - a5892a07-d682-46c0-aed7-e09a0e1b3260
37
37
  X-Runtime:
38
- - '0.017724'
38
+ - '0.029457'
39
39
  Connection:
40
40
  - close
41
41
  Server:
42
42
  - thin
43
43
  body:
44
44
  encoding: US-ASCII
45
- string: ! '{"access_token":"29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111","token_type":"bearer","scope":"read
46
- write","created_at":1431390181}'
45
+ string: ! '{"access_token":"a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa","token_type":"bearer","scope":"read
46
+ write","created_at":1431459536}'
47
47
  http_version:
48
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
48
+ recorded_at: Tue, 12 May 2015 19:38:56 GMT
49
49
  - request:
50
50
  method: post
51
51
  uri: http://localhost:3003/api/identifiers
@@ -60,7 +60,7 @@ http_interactions:
60
60
  Content-Type:
61
61
  - application/json
62
62
  Authorization:
63
- - Bearer 29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111
63
+ - Bearer a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa
64
64
  Content-Length:
65
65
  - '0'
66
66
  response:
@@ -75,41 +75,41 @@ http_interactions:
75
75
  X-Content-Type-Options:
76
76
  - nosniff
77
77
  Date:
78
- - Tue, 12 May 2015 00:23:01 GMT
78
+ - Tue, 12 May 2015 19:38:57 GMT
79
79
  Content-Type:
80
80
  - application/json; charset=utf-8
81
81
  Etag:
82
- - W/"974110bdcecd25409b45a67f3b985762"
82
+ - W/"0c778f494fcf5eef0b6c7de386c58655"
83
83
  Cache-Control:
84
84
  - max-age=0, private, must-revalidate
85
85
  Set-Cookie:
86
86
  - request_method=POST; path=/
87
87
  X-Request-Id:
88
- - 5abacc83-fb13-420f-af29-c13d36f4efc2
88
+ - 20990405-65eb-4aeb-98b0-f2cb08f75f26
89
89
  X-Runtime:
90
- - '0.060132'
90
+ - '0.118303'
91
91
  Connection:
92
92
  - close
93
93
  Server:
94
94
  - thin
95
95
  body:
96
96
  encoding: US-ASCII
97
- string: ! '{"read":"3604f61daf0fca2cc50b0dd4417b919ca8c5f2956563eb3d05599b610281ae3f","write":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b"}'
97
+ string: ! '{"read":"7381441470e915839601c17944c966a41548132d372c8456cfcdec1235bad61f","write":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d"}'
98
98
  http_version:
99
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
99
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
100
100
  - request:
101
101
  method: post
102
102
  uri: http://localhost:3003/api/events/platforms/gradings
103
103
  body:
104
104
  encoding: UTF-8
105
- string: ! '{"identifier":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":"1.0","grader":"openstax"}'
105
+ string: ! '{"identifier":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","grade":1.0,"grader":"openstax"}'
106
106
  headers:
107
107
  User-Agent:
108
108
  - Faraday v0.9.1
109
109
  Accept:
110
110
  - application/vnd.exchange.openstax.v1
111
111
  Authorization:
112
- - Bearer 29e016f1157cbe6b55950212a53c83b1d1f2505ac5261bc66e9b4065168b1111
112
+ - Bearer a0c9547dc92578caa50ae7d2df89f9843969a492e74e1e76098e90dfaf9642aa
113
113
  Content-Type:
114
114
  - application/json
115
115
  response:
@@ -124,26 +124,26 @@ http_interactions:
124
124
  X-Content-Type-Options:
125
125
  - nosniff
126
126
  Date:
127
- - Tue, 12 May 2015 00:23:01 GMT
127
+ - Tue, 12 May 2015 19:38:57 GMT
128
128
  Content-Type:
129
129
  - application/json; charset=utf-8
130
130
  Etag:
131
- - W/"bdd550afd50a623ed2b8b11c92eea286"
131
+ - W/"84116441735b4d6885e48deb6ad3f41a"
132
132
  Cache-Control:
133
133
  - max-age=0, private, must-revalidate
134
134
  Set-Cookie:
135
135
  - request_method=POST; path=/
136
136
  X-Request-Id:
137
- - edd5f625-c6ba-4382-bc3b-d1b34bcc6dd6
137
+ - fe1b4077-6a06-4ea1-be9c-53c425ad3532
138
138
  X-Runtime:
139
- - '0.094895'
139
+ - '0.690264'
140
140
  Connection:
141
141
  - close
142
142
  Server:
143
143
  - thin
144
144
  body:
145
145
  encoding: US-ASCII
146
- string: ! '{"identifier":"9b390d51a9d1d63e5e1621bc9c7841acd846a174a06d76252f7d549122c6873b","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T00:23:01.156Z","grader":"openstax","grade":"1.0"}'
146
+ string: ! '{"identifier":"15537880b8c79f8e79a89b6d646618d5853a692cf3dd154146fb85a6a0319c4d","resource":"https://exercises-dev1.openstax.org/api/exercises/123@1","trial":"1","created_at":"2015-05-12T19:38:57.656Z","grader":"openstax","grade":1.0}'
147
147
  http_version:
148
- recorded_at: Tue, 12 May 2015 00:23:01 GMT
148
+ recorded_at: Tue, 12 May 2015 19:38:57 GMT
149
149
  recorded_with: VCR 2.9.3
@@ -244,17 +244,17 @@ RSpec.shared_examples "exchange client api v1" do
244
244
  # (Exchange app/routines/find_or_create_resource_from_url.rb:35)
245
245
  resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
246
246
  trial = '1'
247
- grade_string = '1.0'
247
+ grade = 1.0
248
248
  grader_string = 'openstax'
249
249
 
250
250
  response = OpenStax::Exchange.record_grade(
251
- identifier, resource_string, trial, grade_string, grader_string
251
+ identifier, resource_string, trial, grade, grader_string
252
252
  )
253
253
 
254
254
  expect(response['identifier']).to eq(identifier)
255
255
  expect(response['resource']).to eq(resource_string)
256
256
  expect(response['trial']).to eq(trial)
257
- expect(response['grade']).to eq(grade_string)
257
+ expect(response['grade']).to eq(grade)
258
258
  expect(response['grader']).to eq(grader_string)
259
259
  end
260
260
  it "allows grades for distinct identifiers to be saved" do
@@ -265,21 +265,21 @@ RSpec.shared_examples "exchange client api v1" do
265
265
  # (Exchange app/routines/find_or_create_resource_from_url.rb:35)
266
266
  resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
267
267
  trial = '1'
268
- grade_string = '1.0'
268
+ grade = 1.0
269
269
  grader_string = 'openstax'
270
270
 
271
271
  response = nil
272
272
 
273
273
  expect {
274
274
  response = OpenStax::Exchange.record_grade(
275
- identifier1, resource_string, trial, grade_string, grader_string
275
+ identifier1, resource_string, trial, grade, grader_string
276
276
  )
277
277
  }.to_not raise_error
278
278
  expect(response['identifier']).to eq(identifier1)
279
279
 
280
280
  expect {
281
281
  response = OpenStax::Exchange.record_grade(
282
- identifier2, resource_string, trial, grade_string, grader_string
282
+ identifier2, resource_string, trial, grade, grader_string
283
283
  )
284
284
  }.to_not raise_error
285
285
  expect(response['identifier']).to eq(identifier2)
@@ -292,21 +292,21 @@ RSpec.shared_examples "exchange client api v1" do
292
292
  resource_string1 = 'https://exercises-dev1.openstax.org/api/exercises/12@1'
293
293
  resource_string2 = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
294
294
  trial = '1'
295
- grade_string = '1.0'
295
+ grade = 1.0
296
296
  grader_string = 'openstax'
297
297
 
298
298
  response = nil
299
299
 
300
300
  expect {
301
301
  response = OpenStax::Exchange.record_grade(
302
- identifier, resource_string1, trial, grade_string, grader_string
302
+ identifier, resource_string1, trial, grade, grader_string
303
303
  )
304
304
  }.to_not raise_error
305
305
  expect(response['resource']).to eq(resource_string1)
306
306
 
307
307
  expect {
308
308
  response = OpenStax::Exchange.record_grade(
309
- identifier, resource_string2, trial, grade_string, grader_string
309
+ identifier, resource_string2, trial, grade, grader_string
310
310
  )
311
311
  }.to_not raise_error
312
312
  expect(response['resource']).to eq(resource_string2)
@@ -319,21 +319,21 @@ RSpec.shared_examples "exchange client api v1" do
319
319
  resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
320
320
  trial1 = '1'
321
321
  trial2 = '2'
322
- grade_string = '1.0'
322
+ grade = 1.0
323
323
  grader_string = 'openstax'
324
324
 
325
325
  response = nil
326
326
 
327
327
  expect {
328
328
  response = OpenStax::Exchange.record_grade(
329
- identifier, resource_string, trial1, grade_string, grader_string
329
+ identifier, resource_string, trial1, grade, grader_string
330
330
  )
331
331
  }.to_not raise_error
332
332
  expect(response['trial']).to eq(trial1)
333
333
 
334
334
  expect {
335
335
  response = OpenStax::Exchange.record_grade(
336
- identifier, resource_string, trial2, grade_string, grader_string
336
+ identifier, resource_string, trial2, grade, grader_string
337
337
  )
338
338
  }.to_not raise_error
339
339
  expect(response['trial']).to eq(trial2)
@@ -347,28 +347,28 @@ RSpec.shared_examples "exchange client api v1" do
347
347
  # (Exchange app/routines/find_or_create_resource_from_url.rb:35)
348
348
  resource_string = 'https://exercises-dev1.openstax.org/api/exercises/123@1'
349
349
  trial = '1'
350
- grade_string = '0.0'
351
- grade_string_2 = '1.0'
350
+ grade = 0.0
351
+ grade_2 = 1.0
352
352
  grader_string = 'openstax'
353
353
  grader_string_2 = 'tutor'
354
354
 
355
355
  response = nil
356
356
  expect {
357
357
  response = OpenStax::Exchange.record_grade(
358
- identifier, resource_string, trial, grade_string, grader_string
358
+ identifier, resource_string, trial, grade, grader_string
359
359
  )
360
360
  }.to_not raise_error
361
361
 
362
- expect(response['grade']).to eq grade_string
362
+ expect(response['grade']).to eq grade
363
363
  expect(response['grader']).to eq grader_string
364
364
 
365
365
  expect {
366
366
  response = OpenStax::Exchange.record_grade(
367
- identifier, resource_string, trial, grade_string_2, grader_string_2
367
+ identifier, resource_string, trial, grade_2, grader_string_2
368
368
  )
369
369
  }.to_not raise_error
370
370
 
371
- expect(response['grade']).to eq grade_string_2
371
+ expect(response['grade']).to eq grade_2
372
372
  expect(response['grader']).to eq grader_string_2
373
373
  end
374
374
  end
@@ -380,12 +380,12 @@ RSpec.shared_examples "exchange client api v1" do
380
380
  # (Exchange app/routines/find_or_create_resource_from_url.rb:35)
381
381
  resource_string = 'https://example.com/api/exercises/123@1'
382
382
  trial = '1'
383
- grade_string = '1.0'
383
+ grade = 1.0
384
384
  grader_string = 'openstax'
385
385
 
386
386
  expect {
387
387
  response = OpenStax::Exchange.record_grade(
388
- identifier, resource_string, trial, grade_string, grader_string
388
+ identifier, resource_string, trial, grade, grader_string
389
389
  )
390
390
  }.to raise_error(OpenStax::Exchange::ClientError)
391
391
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_exchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  segments:
207
207
  - 0
208
- hash: 911800936954346073
208
+ hash: -1140779240583800018
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  none: false
211
211
  requirements:
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 911800936954346073
217
+ hash: -1140779240583800018
218
218
  requirements: []
219
219
  rubyforge_project:
220
220
  rubygems_version: 1.8.23.2