carbonculture 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,133 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://data.carbonculture.net/number10
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Server:
16
+ - nginx/1.2.7
17
+ Date:
18
+ - Thu, 20 Jun 2013 12:03:03 GMT
19
+ Content-Type:
20
+ - application/json; charset=utf-8
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Access-Control-Allow-Headers:
26
+ - X-Requested-With
27
+ Vary:
28
+ - Authorization, Host
29
+ Access-Control-Allow-Credentials:
30
+ - 'false'
31
+ Api-Version:
32
+ - v1
33
+ Access-Control-Allow-Origin:
34
+ - ! '*'
35
+ Access-Control-Allow-Methods:
36
+ - POST,GET,OPTIONS
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\n \"status\": \"ok\", \n \"organisation\": \"number10\",
40
+ \n \"places\": [\n \"10-downing-street\"\n ], \n \"title\":
41
+ \"Number 10\"\n}"
42
+ http_version:
43
+ recorded_at: Thu, 20 Jun 2013 12:03:03 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://data.carbonculture.net/unknown
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers: {}
51
+ response:
52
+ status:
53
+ code: 404
54
+ message: NOT FOUND
55
+ headers:
56
+ Server:
57
+ - nginx/1.2.7
58
+ Date:
59
+ - Thu, 20 Jun 2013 13:13:24 GMT
60
+ Content-Type:
61
+ - text/html; charset=utf-8
62
+ Transfer-Encoding:
63
+ - chunked
64
+ Connection:
65
+ - keep-alive
66
+ Access-Control-Allow-Headers:
67
+ - X-Requested-With
68
+ Vary:
69
+ - Authorization, Host
70
+ Access-Control-Allow-Credentials:
71
+ - 'false'
72
+ Api-Version:
73
+ - v1
74
+ Access-Control-Allow-Origin:
75
+ - ! '*'
76
+ Access-Control-Allow-Methods:
77
+ - POST,GET,OPTIONS
78
+ body:
79
+ encoding: US-ASCII
80
+ string: ! 'Unknown organisation: unknown'
81
+ http_version:
82
+ recorded_at: Thu, 20 Jun 2013 13:13:24 GMT
83
+ - request:
84
+ method: get
85
+ uri: http://data.carbonculture.net/number10/10-downing-street
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ''
89
+ headers: {}
90
+ response:
91
+ status:
92
+ code: 200
93
+ message: OK
94
+ headers:
95
+ Server:
96
+ - nginx/1.2.7
97
+ Date:
98
+ - Thu, 27 Jun 2013 09:36:08 GMT
99
+ Content-Type:
100
+ - application/json; charset=utf-8
101
+ Transfer-Encoding:
102
+ - chunked
103
+ Connection:
104
+ - keep-alive
105
+ Vary:
106
+ - Accept-Encoding
107
+ - Authorization, Host
108
+ Access-Control-Allow-Headers:
109
+ - X-Requested-With
110
+ Access-Control-Allow-Credentials:
111
+ - 'false'
112
+ Api-Version:
113
+ - v1
114
+ Access-Control-Allow-Origin:
115
+ - ! '*'
116
+ Access-Control-Allow-Methods:
117
+ - POST,GET,OPTIONS
118
+ body:
119
+ encoding: US-ASCII
120
+ string: ! "{\n \"status\": \"ok\", \n \"operational_rating\": [\n {\n
121
+ \ \"end_date\": \"2011-06-27\", \n \"start_date\": \"2010-06-28\",
122
+ \n \"value\": 87\n }, \n {\n \"end_date\":
123
+ \"2012-06-27\", \n \"start_date\": \"2011-06-28\", \n \"value\":
124
+ 83\n }, \n {\n \"end_date\": \"2013-06-27\", \n \"start_date\":
125
+ \"2012-06-28\", \n \"value\": 82\n }\n ], \n \"title\":
126
+ \"10 Downing Street\", \n \"link_url\": \"http://www.carbonculture.net/orgs/number10/10-downing-street/\",
127
+ \n \"namespace\": \"number10.10-downing-street\", \n \"channels\": [\n
128
+ \ \"heat\", \n \"elec\", \n \"gas\"\n ], \n \"place\":
129
+ \"10-downing-street\", \n \"image_url\": \"http://www.carbonculture.net/uploads/places/images/no10external_carbonculture_260.png\",
130
+ \n \"building_stats\": {}\n}"
131
+ http_version:
132
+ recorded_at: Thu, 27 Jun 2013 09:36:07 GMT
133
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,529 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://data.carbonculture.net/number10/10-downing-street
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Server:
16
+ - nginx/1.2.7
17
+ Date:
18
+ - Thu, 20 Jun 2013 16:15:15 GMT
19
+ Content-Type:
20
+ - application/json; charset=utf-8
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Access-Control-Allow-Headers:
26
+ - X-Requested-With
27
+ Vary:
28
+ - Authorization, Host
29
+ Access-Control-Allow-Credentials:
30
+ - 'false'
31
+ Api-Version:
32
+ - v1
33
+ Access-Control-Allow-Origin:
34
+ - ! '*'
35
+ Access-Control-Allow-Methods:
36
+ - POST,GET,OPTIONS
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\n \"status\": \"ok\", \n \"operational_rating\": [\n {\n
40
+ \ \"end_date\": \"2011-06-27\", \n \"start_date\": \"2010-06-28\",
41
+ \n \"value\": 87\n }, \n {\n \"end_date\":
42
+ \"2012-06-27\", \n \"start_date\": \"2011-06-28\", \n \"value\":
43
+ 83\n }, \n {\n \"end_date\": \"2013-06-27\", \n \"start_date\":
44
+ \"2012-06-28\", \n \"value\": 82\n }\n ], \n \"title\":
45
+ \"10 Downing Street\", \n \"link_url\": \"http://www.carbonculture.net/orgs/number10/10-downing-street/\",
46
+ \n \"namespace\": \"number10.10-downing-street\", \n \"channels\": [\n
47
+ \ \"heat\", \n \"elec\", \n \"gas\"\n ], \n \"place\":
48
+ \"10-downing-street\", \n \"image_url\": \"http://www.carbonculture.net/uploads/places/images/no10external_carbonculture_260.png\",
49
+ \n \"building_stats\": {}\n}"
50
+ http_version:
51
+ recorded_at: Thu, 20 Jun 2013 16:15:15 GMT
52
+ - request:
53
+ method: get
54
+ uri: http://data.carbonculture.net/unknown/somewhere
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers: {}
59
+ response:
60
+ status:
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ Server:
65
+ - nginx/1.2.7
66
+ Date:
67
+ - Thu, 20 Jun 2013 16:15:15 GMT
68
+ Content-Type:
69
+ - application/json; charset=utf-8
70
+ Transfer-Encoding:
71
+ - chunked
72
+ Connection:
73
+ - keep-alive
74
+ Access-Control-Allow-Headers:
75
+ - X-Requested-With
76
+ Vary:
77
+ - Authorization, Host
78
+ Access-Control-Allow-Credentials:
79
+ - 'false'
80
+ Api-Version:
81
+ - v1
82
+ Access-Control-Allow-Origin:
83
+ - ! '*'
84
+ Access-Control-Allow-Methods:
85
+ - POST,GET,OPTIONS
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! "{\n \"status\": \"fail\"\n}"
89
+ http_version:
90
+ recorded_at: Thu, 20 Jun 2013 16:15:15 GMT
91
+ - request:
92
+ method: get
93
+ uri: http://data.carbonculture.net/number10
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers: {}
98
+ response:
99
+ status:
100
+ code: 200
101
+ message: OK
102
+ headers:
103
+ Server:
104
+ - nginx/1.2.7
105
+ Date:
106
+ - Thu, 27 Jun 2013 09:59:14 GMT
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ Transfer-Encoding:
110
+ - chunked
111
+ Connection:
112
+ - keep-alive
113
+ Vary:
114
+ - Accept-Encoding
115
+ - Authorization, Host
116
+ Access-Control-Allow-Headers:
117
+ - X-Requested-With
118
+ Access-Control-Allow-Credentials:
119
+ - 'false'
120
+ Api-Version:
121
+ - v1
122
+ Access-Control-Allow-Origin:
123
+ - ! '*'
124
+ Access-Control-Allow-Methods:
125
+ - POST,GET,OPTIONS
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ! "{\n \"status\": \"ok\", \n \"organisation\": \"number10\",
129
+ \n \"places\": [\n \"10-downing-street\"\n ], \n \"title\":
130
+ \"Number 10\"\n}"
131
+ http_version:
132
+ recorded_at: Thu, 27 Jun 2013 09:59:13 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://data.carbonculture.net/number10/10-downing-street/heat
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers: {}
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Server:
146
+ - nginx/1.2.7
147
+ Date:
148
+ - Thu, 27 Jun 2013 10:29:36 GMT
149
+ Content-Type:
150
+ - application/json; charset=utf-8
151
+ Transfer-Encoding:
152
+ - chunked
153
+ Connection:
154
+ - keep-alive
155
+ Vary:
156
+ - Accept-Encoding
157
+ - Authorization, Host
158
+ Access-Control-Allow-Headers:
159
+ - X-Requested-With
160
+ Access-Control-Allow-Credentials:
161
+ - 'false'
162
+ Api-Version:
163
+ - v1
164
+ Access-Control-Allow-Origin:
165
+ - ! '*'
166
+ Access-Control-Allow-Methods:
167
+ - POST,GET,OPTIONS
168
+ body:
169
+ encoding: US-ASCII
170
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.heat\"\n
171
+ \ ], \n \"start_time\": \"2013-06-26T10:00:00\", \n \"results\": [\n
172
+ \ [\n null\n ], \n [\n null\n ],
173
+ \n [\n null\n ], \n [\n null\n
174
+ \ ], \n [\n null\n ], \n [\n null\n
175
+ \ ], \n [\n null\n ], \n [\n null\n
176
+ \ ], \n [\n null\n ], \n [\n null\n
177
+ \ ], \n [\n null\n ], \n [\n null\n
178
+ \ ], \n [\n null\n ], \n [\n null\n
179
+ \ ], \n [\n null\n ], \n [\n null\n
180
+ \ ], \n [\n null\n ], \n [\n null\n
181
+ \ ], \n [\n null\n ], \n [\n null\n
182
+ \ ], \n [\n null\n ], \n [\n null\n
183
+ \ ], \n [\n null\n ], \n [\n null\n
184
+ \ ], \n [\n null\n ], \n [\n null\n
185
+ \ ], \n [\n null\n ], \n [\n null\n
186
+ \ ], \n [\n null\n ], \n [\n null\n
187
+ \ ], \n [\n null\n ], \n [\n null\n
188
+ \ ], \n [\n null\n ], \n [\n null\n
189
+ \ ], \n [\n null\n ], \n [\n null\n
190
+ \ ], \n [\n null\n ], \n [\n null\n
191
+ \ ], \n [\n null\n ], \n [\n null\n
192
+ \ ], \n [\n null\n ], \n [\n null\n
193
+ \ ], \n [\n null\n ], \n [\n null\n
194
+ \ ], \n [\n null\n ], \n [\n null\n
195
+ \ ], \n [\n null\n ], \n [\n null\n
196
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-06-27T10:00:00\"\n}"
197
+ http_version:
198
+ recorded_at: Thu, 27 Jun 2013 10:29:35 GMT
199
+ - request:
200
+ method: get
201
+ uri: http://data.carbonculture.net/number10/10-downing-street/elec
202
+ body:
203
+ encoding: US-ASCII
204
+ string: ''
205
+ headers: {}
206
+ response:
207
+ status:
208
+ code: 200
209
+ message: OK
210
+ headers:
211
+ Server:
212
+ - nginx/1.2.7
213
+ Date:
214
+ - Thu, 27 Jun 2013 10:29:37 GMT
215
+ Content-Type:
216
+ - application/json; charset=utf-8
217
+ Transfer-Encoding:
218
+ - chunked
219
+ Connection:
220
+ - keep-alive
221
+ Vary:
222
+ - Accept-Encoding
223
+ - Authorization, Host
224
+ Access-Control-Allow-Headers:
225
+ - X-Requested-With
226
+ Access-Control-Allow-Credentials:
227
+ - 'false'
228
+ Api-Version:
229
+ - v1
230
+ Access-Control-Allow-Origin:
231
+ - ! '*'
232
+ Access-Control-Allow-Methods:
233
+ - POST,GET,OPTIONS
234
+ body:
235
+ encoding: US-ASCII
236
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.elec\"\n
237
+ \ ], \n \"start_time\": \"2013-06-26T10:00:00\", \n \"results\": [\n
238
+ \ [\n \"88.12\"\n ], \n [\n \"92.82\"\n
239
+ \ ], \n [\n \"92.34\"\n ], \n [\n \"87.49\"\n
240
+ \ ], \n [\n \"83.78\"\n ], \n [\n \"84.66\"\n
241
+ \ ], \n [\n \"88.29\"\n ], \n [\n \"86.98\"\n
242
+ \ ], \n [\n \"91.87\"\n ], \n [\n \"93.15\"\n
243
+ \ ], \n [\n \"87.61\"\n ], \n [\n \"90.94\"\n
244
+ \ ], \n [\n \"86.61\"\n ], \n [\n \"83.11\"\n
245
+ \ ], \n [\n \"82.54\"\n ], \n [\n \"76.97\"\n
246
+ \ ], \n [\n \"80.58\"\n ], \n [\n \"78.64\"\n
247
+ \ ], \n [\n \"75.54\"\n ], \n [\n \"72.24\"\n
248
+ \ ], \n [\n \"68.61\"\n ], \n [\n \"63.10\"\n
249
+ \ ], \n [\n \"60.13\"\n ], \n [\n \"59.83\"\n
250
+ \ ], \n [\n \"58.22\"\n ], \n [\n \"60.40\"\n
251
+ \ ], \n [\n \"58.20\"\n ], \n [\n \"56.65\"\n
252
+ \ ], \n [\n \"55.67\"\n ], \n [\n \"53.92\"\n
253
+ \ ], \n [\n \"52.61\"\n ], \n [\n \"52.55\"\n
254
+ \ ], \n [\n \"52.83\"\n ], \n [\n \"54.33\"\n
255
+ \ ], \n [\n \"55.32\"\n ], \n [\n \"55.77\"\n
256
+ \ ], \n [\n \"56.88\"\n ], \n [\n \"57.34\"\n
257
+ \ ], \n [\n \"60.89\"\n ], \n [\n \"79.19\"\n
258
+ \ ], \n [\n \"86.37\"\n ], \n [\n \"86.93\"\n
259
+ \ ], \n [\n \"88.98\"\n ], \n [\n \"88.08\"\n
260
+ \ ], \n [\n \"88.81\"\n ], \n [\n \"93.87\"\n
261
+ \ ], \n [\n \"89.94\"\n ], \n [\n \"84.21\"\n
262
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-06-27T10:00:00\"\n}"
263
+ http_version:
264
+ recorded_at: Thu, 27 Jun 2013 10:29:36 GMT
265
+ - request:
266
+ method: get
267
+ uri: http://data.carbonculture.net/number10/10-downing-street/gas
268
+ body:
269
+ encoding: US-ASCII
270
+ string: ''
271
+ headers: {}
272
+ response:
273
+ status:
274
+ code: 200
275
+ message: OK
276
+ headers:
277
+ Server:
278
+ - nginx/1.2.7
279
+ Date:
280
+ - Thu, 27 Jun 2013 10:29:38 GMT
281
+ Content-Type:
282
+ - application/json; charset=utf-8
283
+ Transfer-Encoding:
284
+ - chunked
285
+ Connection:
286
+ - keep-alive
287
+ Vary:
288
+ - Accept-Encoding
289
+ - Authorization, Host
290
+ Access-Control-Allow-Headers:
291
+ - X-Requested-With
292
+ Access-Control-Allow-Credentials:
293
+ - 'false'
294
+ Api-Version:
295
+ - v1
296
+ Access-Control-Allow-Origin:
297
+ - ! '*'
298
+ Access-Control-Allow-Methods:
299
+ - POST,GET,OPTIONS
300
+ body:
301
+ encoding: US-ASCII
302
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.gas\"\n
303
+ \ ], \n \"start_time\": \"2013-06-26T10:00:00\", \n \"results\": [\n
304
+ \ [\n \"20.40\"\n ], \n [\n \"21.09\"\n
305
+ \ ], \n [\n \"18.96\"\n ], \n [\n \"18.73\"\n
306
+ \ ], \n [\n \"20.84\"\n ], \n [\n \"20.13\"\n
307
+ \ ], \n [\n \"18.72\"\n ], \n [\n \"18.48\"\n
308
+ \ ], \n [\n \"20.23\"\n ], \n [\n \"20.89\"\n
309
+ \ ], \n [\n \"18.38\"\n ], \n [\n \"18.10\"\n
310
+ \ ], \n [\n \"18.99\"\n ], \n [\n \"20.61\"\n
311
+ \ ], \n [\n \"20.49\"\n ], \n [\n \"21.10\"\n
312
+ \ ], \n [\n \"19.96\"\n ], \n [\n \"19.06\"\n
313
+ \ ], \n [\n \"18.62\"\n ], \n [\n \"18.96\"\n
314
+ \ ], \n [\n \"21.41\"\n ], \n [\n \"20.06\"\n
315
+ \ ], \n [\n \"19.05\"\n ], \n [\n \"18.56\"\n
316
+ \ ], \n [\n \"18.90\"\n ], \n [\n \"19.00\"\n
317
+ \ ], \n [\n \"19.54\"\n ], \n [\n \"19.01\"\n
318
+ \ ], \n [\n \"18.65\"\n ], \n [\n \"18.87\"\n
319
+ \ ], \n [\n \"17.98\"\n ], \n [\n \"17.19\"\n
320
+ \ ], \n [\n \"19.17\"\n ], \n [\n \"20.95\"\n
321
+ \ ], \n [\n \"18.62\"\n ], \n [\n \"18.74\"\n
322
+ \ ], \n [\n \"20.59\"\n ], \n [\n \"23.68\"\n
323
+ \ ], \n [\n \"22.67\"\n ], \n [\n \"19.79\"\n
324
+ \ ], \n [\n \"22.39\"\n ], \n [\n \"24.85\"\n
325
+ \ ], \n [\n \"20.96\"\n ], \n [\n \"19.15\"\n
326
+ \ ], \n [\n \"23.51\"\n ], \n [\n \"22.03\"\n
327
+ \ ], \n [\n \"22.05\"\n ], \n [\n \"21.59\"\n
328
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-06-27T10:00:00\"\n}"
329
+ http_version:
330
+ recorded_at: Thu, 27 Jun 2013 10:29:37 GMT
331
+ - request:
332
+ method: get
333
+ uri: http://data.carbonculture.net/number10/10-downing-street/heat?
334
+ body:
335
+ encoding: US-ASCII
336
+ string: ''
337
+ headers: {}
338
+ response:
339
+ status:
340
+ code: 200
341
+ message: OK
342
+ headers:
343
+ Server:
344
+ - nginx/1.2.7
345
+ Date:
346
+ - Tue, 02 Jul 2013 16:56:13 GMT
347
+ Content-Type:
348
+ - application/json; charset=utf-8
349
+ Transfer-Encoding:
350
+ - chunked
351
+ Connection:
352
+ - keep-alive
353
+ Vary:
354
+ - Accept-Encoding
355
+ - Authorization, Host
356
+ Access-Control-Allow-Headers:
357
+ - X-Requested-With
358
+ Access-Control-Allow-Credentials:
359
+ - 'false'
360
+ Api-Version:
361
+ - v1
362
+ Access-Control-Allow-Origin:
363
+ - ! '*'
364
+ Access-Control-Allow-Methods:
365
+ - POST,GET,OPTIONS
366
+ body:
367
+ encoding: US-ASCII
368
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.heat\"\n
369
+ \ ], \n \"start_time\": \"2013-07-01T16:30:00\", \n \"results\": [\n
370
+ \ [\n null\n ], \n [\n null\n ],
371
+ \n [\n null\n ], \n [\n null\n
372
+ \ ], \n [\n null\n ], \n [\n null\n
373
+ \ ], \n [\n null\n ], \n [\n null\n
374
+ \ ], \n [\n null\n ], \n [\n null\n
375
+ \ ], \n [\n null\n ], \n [\n null\n
376
+ \ ], \n [\n null\n ], \n [\n null\n
377
+ \ ], \n [\n null\n ], \n [\n null\n
378
+ \ ], \n [\n null\n ], \n [\n null\n
379
+ \ ], \n [\n null\n ], \n [\n null\n
380
+ \ ], \n [\n null\n ], \n [\n null\n
381
+ \ ], \n [\n null\n ], \n [\n null\n
382
+ \ ], \n [\n null\n ], \n [\n null\n
383
+ \ ], \n [\n null\n ], \n [\n null\n
384
+ \ ], \n [\n null\n ], \n [\n null\n
385
+ \ ], \n [\n null\n ], \n [\n null\n
386
+ \ ], \n [\n null\n ], \n [\n null\n
387
+ \ ], \n [\n null\n ], \n [\n null\n
388
+ \ ], \n [\n null\n ], \n [\n null\n
389
+ \ ], \n [\n null\n ], \n [\n null\n
390
+ \ ], \n [\n null\n ], \n [\n null\n
391
+ \ ], \n [\n null\n ], \n [\n null\n
392
+ \ ], \n [\n null\n ], \n [\n null\n
393
+ \ ], \n [\n null\n ], \n [\n null\n
394
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-07-02T16:30:00\"\n}"
395
+ http_version:
396
+ recorded_at: Tue, 02 Jul 2013 16:56:11 GMT
397
+ - request:
398
+ method: get
399
+ uri: http://data.carbonculture.net/number10/10-downing-street/elec?
400
+ body:
401
+ encoding: US-ASCII
402
+ string: ''
403
+ headers: {}
404
+ response:
405
+ status:
406
+ code: 200
407
+ message: OK
408
+ headers:
409
+ Server:
410
+ - nginx/1.2.7
411
+ Date:
412
+ - Tue, 02 Jul 2013 16:56:13 GMT
413
+ Content-Type:
414
+ - application/json; charset=utf-8
415
+ Transfer-Encoding:
416
+ - chunked
417
+ Connection:
418
+ - keep-alive
419
+ Vary:
420
+ - Accept-Encoding
421
+ - Authorization, Host
422
+ Access-Control-Allow-Headers:
423
+ - X-Requested-With
424
+ Access-Control-Allow-Credentials:
425
+ - 'false'
426
+ Api-Version:
427
+ - v1
428
+ Access-Control-Allow-Origin:
429
+ - ! '*'
430
+ Access-Control-Allow-Methods:
431
+ - POST,GET,OPTIONS
432
+ body:
433
+ encoding: US-ASCII
434
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.elec\"\n
435
+ \ ], \n \"start_time\": \"2013-07-01T16:30:00\", \n \"results\": [\n
436
+ \ [\n \"75.50\"\n ], \n [\n \"72.89\"\n
437
+ \ ], \n [\n \"71.99\"\n ], \n [\n \"72.37\"\n
438
+ \ ], \n [\n \"70.30\"\n ], \n [\n \"66.59\"\n
439
+ \ ], \n [\n \"63.28\"\n ], \n [\n \"62.36\"\n
440
+ \ ], \n [\n \"60.68\"\n ], \n [\n \"59.41\"\n
441
+ \ ], \n [\n \"65.21\"\n ], \n [\n \"60.99\"\n
442
+ \ ], \n [\n \"56.84\"\n ], \n [\n \"56.25\"\n
443
+ \ ], \n [\n \"55.78\"\n ], \n [\n \"55.73\"\n
444
+ \ ], \n [\n \"55.77\"\n ], \n [\n \"54.35\"\n
445
+ \ ], \n [\n \"56.25\"\n ], \n [\n \"54.22\"\n
446
+ \ ], \n [\n \"53.64\"\n ], \n [\n \"54.98\"\n
447
+ \ ], \n [\n \"54.55\"\n ], \n [\n \"53.62\"\n
448
+ \ ], \n [\n \"55.58\"\n ], \n [\n \"60.07\"\n
449
+ \ ], \n [\n \"75.33\"\n ], \n [\n \"79.11\"\n
450
+ \ ], \n [\n \"85.69\"\n ], \n [\n \"91.82\"\n
451
+ \ ], \n [\n \"90.93\"\n ], \n [\n \"91.63\"\n
452
+ \ ], \n [\n \"91.10\"\n ], \n [\n \"91.66\"\n
453
+ \ ], \n [\n \"95.61\"\n ], \n [\n \"91.94\"\n
454
+ \ ], \n [\n \"92.37\"\n ], \n [\n \"89.87\"\n
455
+ \ ], \n [\n \"91.47\"\n ], \n [\n \"89.40\"\n
456
+ \ ], \n [\n \"89.98\"\n ], \n [\n \"88.74\"\n
457
+ \ ], \n [\n \"90.59\"\n ], \n [\n \"95.25\"\n
458
+ \ ], \n [\n \"96.95\"\n ], \n [\n \"93.33\"\n
459
+ \ ], \n [\n \"93.41\"\n ], \n [\n \"89.97\"\n
460
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-07-02T16:30:00\"\n}"
461
+ http_version:
462
+ recorded_at: Tue, 02 Jul 2013 16:56:12 GMT
463
+ - request:
464
+ method: get
465
+ uri: http://data.carbonculture.net/number10/10-downing-street/gas?
466
+ body:
467
+ encoding: US-ASCII
468
+ string: ''
469
+ headers: {}
470
+ response:
471
+ status:
472
+ code: 200
473
+ message: OK
474
+ headers:
475
+ Server:
476
+ - nginx/1.2.7
477
+ Date:
478
+ - Tue, 02 Jul 2013 16:56:14 GMT
479
+ Content-Type:
480
+ - application/json; charset=utf-8
481
+ Transfer-Encoding:
482
+ - chunked
483
+ Connection:
484
+ - keep-alive
485
+ Vary:
486
+ - Accept-Encoding
487
+ - Authorization, Host
488
+ Access-Control-Allow-Headers:
489
+ - X-Requested-With
490
+ Access-Control-Allow-Credentials:
491
+ - 'false'
492
+ Api-Version:
493
+ - v1
494
+ Access-Control-Allow-Origin:
495
+ - ! '*'
496
+ Access-Control-Allow-Methods:
497
+ - POST,GET,OPTIONS
498
+ body:
499
+ encoding: US-ASCII
500
+ string: ! "{\n \"status\": \"ok\", \n \"fields\": [\n \"number10.10-downing-street.gas\"\n
501
+ \ ], \n \"start_time\": \"2013-07-01T16:30:00\", \n \"results\": [\n
502
+ \ [\n \"20.78\"\n ], \n [\n \"17.32\"\n
503
+ \ ], \n [\n \"17.28\"\n ], \n [\n \"18.78\"\n
504
+ \ ], \n [\n \"18.88\"\n ], \n [\n \"18.61\"\n
505
+ \ ], \n [\n \"19.70\"\n ], \n [\n \"23.54\"\n
506
+ \ ], \n [\n \"18.73\"\n ], \n [\n \"18.16\"\n
507
+ \ ], \n [\n \"16.09\"\n ], \n [\n \"16.21\"\n
508
+ \ ], \n [\n \"18.78\"\n ], \n [\n \"17.76\"\n
509
+ \ ], \n [\n \"15.25\"\n ], \n [\n \"17.43\"\n
510
+ \ ], \n [\n \"19.30\"\n ], \n [\n \"16.59\"\n
511
+ \ ], \n [\n \"15.03\"\n ], \n [\n \"18.74\"\n
512
+ \ ], \n [\n \"18.19\"\n ], \n [\n \"17.29\"\n
513
+ \ ], \n [\n \"20.96\"\n ], \n [\n \"16.79\"\n
514
+ \ ], \n [\n \"19.02\"\n ], \n [\n \"20.51\"\n
515
+ \ ], \n [\n \"19.75\"\n ], \n [\n \"17.41\"\n
516
+ \ ], \n [\n \"20.84\"\n ], \n [\n \"21.66\"\n
517
+ \ ], \n [\n \"20.38\"\n ], \n [\n \"20.16\"\n
518
+ \ ], \n [\n \"24.62\"\n ], \n [\n \"19.90\"\n
519
+ \ ], \n [\n \"15.04\"\n ], \n [\n \"20.69\"\n
520
+ \ ], \n [\n \"20.68\"\n ], \n [\n \"15.23\"\n
521
+ \ ], \n [\n \"12.61\"\n ], \n [\n \"22.03\"\n
522
+ \ ], \n [\n \"37.35\"\n ], \n [\n \"9.53\"\n
523
+ \ ], \n [\n \"10.74\"\n ], \n [\n \"21.17\"\n
524
+ \ ], \n [\n \"20.30\"\n ], \n [\n \"12.92\"\n
525
+ \ ], \n [\n \"12.47\"\n ], \n [\n \"27.26\"\n
526
+ \ ]\n ], \n \"points\": 48, \n \"end_time\": \"2013-07-02T16:30:00\"\n}"
527
+ http_version:
528
+ recorded_at: Tue, 02 Jul 2013 16:56:12 GMT
529
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,7 @@
1
+ require_relative '../../spec_helper'
2
+
3
+ describe Carbonculture do
4
+ it 'has a base url' do
5
+ Carbonculture::BASE_URL.must_equal 'http://data.carbonculture.net'
6
+ end
7
+ end