cartodb-rb-client 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/Gemfile +2 -2
  2. data/lib/cartodb-rb-client/cartodb/client/connection/cartodb.rb +1 -1
  3. data/lib/cartodb-rb-client/cartodb/model/base.rb +1 -1
  4. data/lib/cartodb-rb-client/cartodb/model/getters.rb +6 -9
  5. data/lib/cartodb-rb-client/cartodb/model/schema.rb +13 -2
  6. data/lib/cartodb-rb-client/cartodb/model/setters.rb +5 -9
  7. data/lib/cartodb-rb-client/version.rb +1 -1
  8. data/spec/client_spec.rb +3 -3
  9. data/spec/fixtures/cassettes/CartoDB_client/should_add_and_remove_colums_in_a_previously_created_table.yml +376 -0
  10. data/spec/fixtures/cassettes/CartoDB_client/should_allow_reserved_words_in_columns_names.yml +121 -0
  11. data/spec/fixtures/cassettes/CartoDB_client/should_change_a_previously_created_column.yml +174 -0
  12. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_and_get_its_table_definition.yml +123 -0
  13. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_forcing_the_schema_and_get_its_table_definition.yml +123 -0
  14. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_from_a_csv_file.yml +1971 -0
  15. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTILINESTRING_type_geometry.yml +123 -0
  16. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTIPOLYGON_type_geometry.yml +123 -0
  17. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_POINT_type_geometry.yml +123 -0
  18. data/spec/fixtures/cassettes/CartoDB_client/should_delete_a_table_s_row.yml +221 -0
  19. data/spec/fixtures/cassettes/CartoDB_client/should_drop_a_table.yml +278 -0
  20. data/spec/fixtures/cassettes/CartoDB_client/should_escape_properly_input_data_in_insert_queries.yml +121 -0
  21. data/spec/fixtures/cassettes/CartoDB_client/should_execute_a_select_query_and_return_results.yml +615 -0
  22. data/spec/fixtures/cassettes/CartoDB_client/should_get_a_table_by_its_name.yml +123 -0
  23. data/spec/fixtures/cassettes/CartoDB_client/should_import_any_kind_of_data_file.yml +6612 -0
  24. data/spec/fixtures/cassettes/CartoDB_client/should_insert_a_row_in_a_table.yml +121 -0
  25. data/spec/fixtures/cassettes/CartoDB_client/should_paginate_records.yml +2624 -0
  26. data/spec/fixtures/cassettes/CartoDB_client/should_rename_an_existing_table.yml +123 -0
  27. data/spec/fixtures/cassettes/CartoDB_client/should_return_errors_on_invalid_queries.yml +59 -0
  28. data/spec/fixtures/cassettes/CartoDB_client/should_return_nil_when_requesting_a_table_which_does_not_exists.yml +68 -0
  29. data/spec/fixtures/cassettes/CartoDB_client/should_return_user_s_table_list.yml +176 -0
  30. data/spec/fixtures/cassettes/CartoDB_client/should_update_a_row_in_a_table.yml +170 -0
  31. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_destroy_a_previously_created_record.yml +1398 -0
  32. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_initialize_attributes_of_the_model_without_persisting_them.yml +223 -0
  33. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_save_method.yml +1406 -0
  34. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_static_create_method.yml +1299 -0
  35. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_update_an_existing_record.yml +2028 -0
  36. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_add_more_columns_if_the_table_previously_exists.yml +990 -0
  37. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_contain_an_array_of_columns.yml +1443 -0
  38. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_a_table_with_custom_name_if_specified.yml +270 -0
  39. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_custom_data_types_columns.yml +421 -0
  40. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_polygon_type_geometry_columns.yml +272 -0
  41. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_the_table_in_cartodb_if_it_doesn_t_exists.yml +780 -0
  42. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_CartoDB_Client_instance_as_a_connection_object.yml +682 -0
  43. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_table_name.yml +727 -0
  44. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_return_only_data_columns.yml +829 -0
  45. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_allow_to_select_the_specified_fiels.yml +17953 -0
  46. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_count_all_records.yml +15596 -0
  47. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_find_a_record_by_its_id.yml +15197 -0
  48. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_order_results.yml +16439 -0
  49. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_paginate_results.yml +24501 -0
  50. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_return_all_records_paginated.yml +16488 -0
  51. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_search_records_by_certain_filters.yml +4950 -0
  52. data/spec/fixtures/cassettes/cartodb_spec_models.yml +2467 -0
  53. data/spec/fixtures/cassettes/clean_tables.yml +266 -0
  54. data/spec/model/data_spec.rb +6 -6
  55. data/spec/model/metadata_spec.rb +11 -3
  56. data/spec/model/scopes_spec.rb +2 -2
  57. data/spec/model_specs_helper.rb +2 -0
  58. data/spec/spec_helper.rb +18 -5
  59. data/spec/support/cartodb_factories.rb +3 -3
  60. data/spec/support/cartodb_helpers.rb +1 -1
  61. data/spec/support/cartodb_models.rb +26 -19
  62. metadata +97 -7
  63. data/spec/support/data/ngos.xlsx +0 -0
@@ -0,0 +1,727 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables?
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - &70259176453560 !ruby/object:MIME::Type
12
+ content_type: application/json
13
+ raw_media_type: application
14
+ raw_sub_type: json
15
+ simplified: application/json
16
+ media_type: application
17
+ sub_type: json
18
+ extensions:
19
+ - json
20
+ encoding: 8bit
21
+ system: !!null
22
+ registered: true
23
+ url:
24
+ - IANA
25
+ - RFC4627
26
+ obsolete: !!null
27
+ docs: !!null
28
+ Authorization:
29
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="oNHN998FgviY7aogJOTJu6Gdc0ewWqpxHwdgxF6pv4",
30
+ oauth_signature="zuI5%2FcMW5v4c5PisLWBO5BYcXRQ%3D", oauth_signature_method="HMAC-SHA1",
31
+ oauth_timestamp="1337784770", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
32
+ oauth_version="1.0"
33
+ response:
34
+ status:
35
+ code: 200
36
+ message: OK
37
+ headers:
38
+ Server:
39
+ - nginx
40
+ Date:
41
+ - Wed, 23 May 2012 14:52:50 GMT
42
+ Content-Type:
43
+ - application/json; charset=utf-8
44
+ Transfer-Encoding:
45
+ - chunked
46
+ Connection:
47
+ - keep-alive
48
+ Vary:
49
+ - Accept-Encoding
50
+ Status:
51
+ - 200 OK
52
+ Etag:
53
+ - ! '"1862f44c4225451f74493b836205c57e"'
54
+ Cache-Control:
55
+ - max-age=0, private, must-revalidate
56
+ X-Ua-Compatible:
57
+ - IE=Edge,chrome=1
58
+ Set-Cookie:
59
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYjU2MjdiNGJhNmIyMjhkYmRjNzE5NDQ3YWFmZGY0OGVJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--f401388ed630381119da60980e8209c2e7acbcb0;
60
+ domain=.cartodb.com; path=/; HttpOnly
61
+ X-Runtime:
62
+ - '0.020160'
63
+ Content-Encoding:
64
+ - gzip
65
+ body:
66
+ encoding: ASCII-8BIT
67
+ string: ! '{"total_entries":2,"tables":[{"id":4653,"name":"model_connection_test","privacy":"PUBLIC","tags":"","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]],"updated_at":"2012-05-23T16:52:49+02:00","rows_counted":0},{"id":4652,"name":"moto_gp_circuit","privacy":"PUBLIC","tags":"","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["constructed","date"],["description","string"],["left_corners","number"],["length","string"],["longest_straight","string"],["modified","date"],["name","string"],["right_corners","number"],["width","string"],["created_at","date"],["updated_at","date"]],"updated_at":"2012-05-23T16:52:46+02:00","rows_counted":0}]}'
68
+ http_version: '1.1'
69
+ recorded_at: Wed, 23 May 2012 14:52:50 GMT
70
+ - request:
71
+ method: delete
72
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/model_connection_test?
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
76
+ headers:
77
+ Accept:
78
+ - *70259176453560
79
+ Authorization:
80
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="UVtyTaSCHz01m7ccN8RTklZnz6r5a5A4IjaOXONviE",
81
+ oauth_signature="dOxdh%2BbIoXN%2FGVWHXLSs3dYpPq0%3D", oauth_signature_method="HMAC-SHA1",
82
+ oauth_timestamp="1337784770", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
83
+ oauth_version="1.0"
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Server:
90
+ - nginx
91
+ Date:
92
+ - Wed, 23 May 2012 14:52:50 GMT
93
+ Content-Type:
94
+ - application/json; charset=utf-8
95
+ Transfer-Encoding:
96
+ - chunked
97
+ Connection:
98
+ - keep-alive
99
+ Vary:
100
+ - Accept-Encoding
101
+ Status:
102
+ - 200 OK
103
+ Cache-Control:
104
+ - no-cache
105
+ X-Ua-Compatible:
106
+ - IE=Edge,chrome=1
107
+ Set-Cookie:
108
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlM2ZjMmM5NzEyMTQ5NzMxMzkxMmY1MjVmZjZkZThjMDhJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--dfadfa25859ef9420dfed94d11511a8100b961e8;
109
+ domain=.cartodb.com; path=/; HttpOnly
110
+ X-Runtime:
111
+ - '0.262996'
112
+ Content-Encoding:
113
+ - gzip
114
+ body:
115
+ encoding: ASCII-8BIT
116
+ string: ! ' '
117
+ http_version: '1.1'
118
+ recorded_at: Wed, 23 May 2012 14:52:50 GMT
119
+ - request:
120
+ method: delete
121
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
122
+ body:
123
+ encoding: US-ASCII
124
+ string: ''
125
+ headers:
126
+ Accept:
127
+ - *70259176453560
128
+ Authorization:
129
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="tW0gq86nOUSSy6GnWE0ZmMQc0POggzco2J1hB7YlaE",
130
+ oauth_signature="VRPHPZP3Y%2BJvMPbcTymCoSDYFgk%3D", oauth_signature_method="HMAC-SHA1",
131
+ oauth_timestamp="1337784770", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
132
+ oauth_version="1.0"
133
+ response:
134
+ status:
135
+ code: 200
136
+ message: OK
137
+ headers:
138
+ Server:
139
+ - nginx
140
+ Date:
141
+ - Wed, 23 May 2012 14:52:50 GMT
142
+ Content-Type:
143
+ - application/json; charset=utf-8
144
+ Transfer-Encoding:
145
+ - chunked
146
+ Connection:
147
+ - keep-alive
148
+ Vary:
149
+ - Accept-Encoding
150
+ Status:
151
+ - 200 OK
152
+ Cache-Control:
153
+ - no-cache
154
+ X-Ua-Compatible:
155
+ - IE=Edge,chrome=1
156
+ Set-Cookie:
157
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNWY0MmY5OTFiNDk2ODQyOGYzZmZhMzljYzBkM2JkYTlJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--35b5fbe2d9f4490c6b5116c43cd7a197dbe912a5;
158
+ domain=.cartodb.com; path=/; HttpOnly
159
+ X-Runtime:
160
+ - '0.201445'
161
+ Content-Encoding:
162
+ - gzip
163
+ body:
164
+ encoding: ASCII-8BIT
165
+ string: ! ' '
166
+ http_version: '1.1'
167
+ recorded_at: Wed, 23 May 2012 14:52:50 GMT
168
+ - request:
169
+ method: get
170
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
171
+ body:
172
+ encoding: US-ASCII
173
+ string: ''
174
+ headers:
175
+ Accept:
176
+ - *70259176453560
177
+ Authorization:
178
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="XJN1mHha8tTEco82YSmji2rb48L8fcALcYFHzPG2D8",
179
+ oauth_signature="46cj14WS2Qc9cFlJMeFi2ZXKUq4%3D", oauth_signature_method="HMAC-SHA1",
180
+ oauth_timestamp="1337784770", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
181
+ oauth_version="1.0"
182
+ response:
183
+ status:
184
+ code: 404
185
+ message: Not Found
186
+ headers:
187
+ Server:
188
+ - nginx
189
+ Date:
190
+ - Wed, 23 May 2012 14:52:50 GMT
191
+ Content-Type:
192
+ - application/json; charset=utf-8
193
+ Transfer-Encoding:
194
+ - chunked
195
+ Connection:
196
+ - keep-alive
197
+ Vary:
198
+ - Accept-Encoding
199
+ Status:
200
+ - 404 Not Found
201
+ Cache-Control:
202
+ - no-cache
203
+ X-Ua-Compatible:
204
+ - IE=Edge,chrome=1
205
+ Set-Cookie:
206
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMjJhOGQwNTk0NTY5YThhNWQ4NmVjN2JiOGYxYmNiYWNJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--d77c4fdae26270b332ef2a4f70cefe3161f94dd5;
207
+ domain=.cartodb.com; path=/; HttpOnly
208
+ X-Runtime:
209
+ - '0.011040'
210
+ Content-Encoding:
211
+ - gzip
212
+ body:
213
+ encoding: ASCII-8BIT
214
+ string: ! ' '
215
+ http_version: '1.1'
216
+ recorded_at: Wed, 23 May 2012 14:52:50 GMT
217
+ - request:
218
+ method: get
219
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
220
+ body:
221
+ encoding: US-ASCII
222
+ string: ''
223
+ headers:
224
+ Accept:
225
+ - *70259176453560
226
+ Authorization:
227
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="M01dptWgpHlXghvQ1BViJJTX22G5W4s2nmxMyxxW6M",
228
+ oauth_signature="Nv%2BXce%2BsEm4rn5gVYzMk%2FK%2BiMik%3D", oauth_signature_method="HMAC-SHA1",
229
+ oauth_timestamp="1337784770", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
230
+ oauth_version="1.0"
231
+ response:
232
+ status:
233
+ code: 404
234
+ message: Not Found
235
+ headers:
236
+ Server:
237
+ - nginx
238
+ Date:
239
+ - Wed, 23 May 2012 14:52:51 GMT
240
+ Content-Type:
241
+ - application/json; charset=utf-8
242
+ Transfer-Encoding:
243
+ - chunked
244
+ Connection:
245
+ - keep-alive
246
+ Vary:
247
+ - Accept-Encoding
248
+ Status:
249
+ - 404 Not Found
250
+ Cache-Control:
251
+ - no-cache
252
+ X-Ua-Compatible:
253
+ - IE=Edge,chrome=1
254
+ Set-Cookie:
255
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlOGE5OWFkNTMyZmQ1ZDQ0NTlkZGVmYTgyNWU1NjNjZTFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--487bffc11bb0caf71de7091915472a86a10fb8e1;
256
+ domain=.cartodb.com; path=/; HttpOnly
257
+ X-Runtime:
258
+ - '0.011649'
259
+ Content-Encoding:
260
+ - gzip
261
+ body:
262
+ encoding: ASCII-8BIT
263
+ string: ! ' '
264
+ http_version: '1.1'
265
+ recorded_at: Wed, 23 May 2012 14:52:51 GMT
266
+ - request:
267
+ method: post
268
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
269
+ body:
270
+ encoding: US-ASCII
271
+ string: ''
272
+ headers:
273
+ Accept:
274
+ - *70259176453560
275
+ Authorization:
276
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="ZiGeZosc70PYkvxmsoxdODKN6gzMz9m0H9lcGCblrMg",
277
+ oauth_signature="VwEcIq8kpwc04P0LHV9%2BcoHt%2FlM%3D", oauth_signature_method="HMAC-SHA1",
278
+ oauth_timestamp="1337784771", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
279
+ oauth_version="1.0"
280
+ response:
281
+ status:
282
+ code: 200
283
+ message: OK
284
+ headers:
285
+ Server:
286
+ - nginx
287
+ Date:
288
+ - Wed, 23 May 2012 14:52:53 GMT
289
+ Content-Type:
290
+ - application/json; charset=utf-8
291
+ Transfer-Encoding:
292
+ - chunked
293
+ Connection:
294
+ - keep-alive
295
+ Vary:
296
+ - Accept-Encoding
297
+ Status:
298
+ - 200 OK
299
+ Location:
300
+ - /tables/4654
301
+ Etag:
302
+ - ! '"7affe57c047c460f5d362178e1c8784d"'
303
+ Cache-Control:
304
+ - max-age=0, private, must-revalidate
305
+ X-Ua-Compatible:
306
+ - IE=Edge,chrome=1
307
+ Set-Cookie:
308
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNWNkMGRjZWViZDZjMWY2ZjRhOTc4NGEzNTgwMmY1MmZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--42b7a9d902b7791bcd07603cbf83448f5edb38d1;
309
+ domain=.cartodb.com; path=/; HttpOnly
310
+ X-Runtime:
311
+ - '2.267920'
312
+ Content-Encoding:
313
+ - gzip
314
+ body:
315
+ encoding: ASCII-8BIT
316
+ string: ! '{"id":4654,"name":"moto_gp_circuit","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
317
+ http_version: '1.1'
318
+ recorded_at: Wed, 23 May 2012 14:52:53 GMT
319
+ - request:
320
+ method: post
321
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
322
+ body:
323
+ encoding: US-ASCII
324
+ string: ''
325
+ headers:
326
+ Accept:
327
+ - *70259176453560
328
+ Authorization:
329
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="uew7VDC8SIStDFvuv6i1sT8PnEkD3QprUyC74NN4",
330
+ oauth_signature="X2fyIfMYKFzlG4qcRyP%2BbtSxaJw%3D", oauth_signature_method="HMAC-SHA1",
331
+ oauth_timestamp="1337784773", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
332
+ oauth_version="1.0"
333
+ response:
334
+ status:
335
+ code: 200
336
+ message: OK
337
+ headers:
338
+ Server:
339
+ - nginx
340
+ Date:
341
+ - Wed, 23 May 2012 14:52:53 GMT
342
+ Content-Type:
343
+ - application/json; charset=utf-8
344
+ Transfer-Encoding:
345
+ - chunked
346
+ Connection:
347
+ - keep-alive
348
+ Vary:
349
+ - Accept-Encoding
350
+ Status:
351
+ - 200 OK
352
+ Etag:
353
+ - ! '"1d8ec3575e09ff60ecad35605669b22c"'
354
+ Cache-Control:
355
+ - max-age=0, private, must-revalidate
356
+ X-Ua-Compatible:
357
+ - IE=Edge,chrome=1
358
+ Set-Cookie:
359
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlZDA5Yzg1Mzg5ZWFkMjAxOWJmYjgxYThmZDc0MmIyYWZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--9fd829109b71d1fe6819b647684e193322f34b60;
360
+ domain=.cartodb.com; path=/; HttpOnly
361
+ X-Runtime:
362
+ - '0.120095'
363
+ Content-Encoding:
364
+ - gzip
365
+ body:
366
+ encoding: ASCII-8BIT
367
+ string: ! '{"name":"length","type":"text","cartodb_type":"string"}'
368
+ http_version: '1.1'
369
+ recorded_at: Wed, 23 May 2012 14:52:53 GMT
370
+ - request:
371
+ method: post
372
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
373
+ body:
374
+ encoding: US-ASCII
375
+ string: ''
376
+ headers:
377
+ Accept:
378
+ - *70259176453560
379
+ Authorization:
380
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="nJuK6vVR3312DkZndnFCvS5Xu1RT6oMlBfpkVK84",
381
+ oauth_signature="YEMWTMOMTmZz%2BpZUwJb1iaPELsU%3D", oauth_signature_method="HMAC-SHA1",
382
+ oauth_timestamp="1337784773", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
383
+ oauth_version="1.0"
384
+ response:
385
+ status:
386
+ code: 200
387
+ message: OK
388
+ headers:
389
+ Server:
390
+ - nginx
391
+ Date:
392
+ - Wed, 23 May 2012 14:52:54 GMT
393
+ Content-Type:
394
+ - application/json; charset=utf-8
395
+ Transfer-Encoding:
396
+ - chunked
397
+ Connection:
398
+ - keep-alive
399
+ Vary:
400
+ - Accept-Encoding
401
+ Status:
402
+ - 200 OK
403
+ Etag:
404
+ - ! '"e82b080654b5df6f5d5f582aae439d58"'
405
+ Cache-Control:
406
+ - max-age=0, private, must-revalidate
407
+ X-Ua-Compatible:
408
+ - IE=Edge,chrome=1
409
+ Set-Cookie:
410
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMmNkN2IzMzg4NWY1NmExOWFmNTQ1NDBkMGZkNzkyY2RJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--927113695dfd2ab2de06f5c8c16c696274318e1a;
411
+ domain=.cartodb.com; path=/; HttpOnly
412
+ X-Runtime:
413
+ - '0.064395'
414
+ Content-Encoding:
415
+ - gzip
416
+ body:
417
+ encoding: ASCII-8BIT
418
+ string: ! '{"name":"width","type":"text","cartodb_type":"string"}'
419
+ http_version: '1.1'
420
+ recorded_at: Wed, 23 May 2012 14:52:54 GMT
421
+ - request:
422
+ method: post
423
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
424
+ body:
425
+ encoding: US-ASCII
426
+ string: ''
427
+ headers:
428
+ Accept:
429
+ - *70259176453560
430
+ Authorization:
431
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="74z26XgOLLod0vUKJq33PK00k2aSFD3czMKYIgyOQc",
432
+ oauth_signature="x%2BOOTWMS4nMNznCQzDKVUX2e24E%3D", oauth_signature_method="HMAC-SHA1",
433
+ oauth_timestamp="1337784774", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
434
+ oauth_version="1.0"
435
+ response:
436
+ status:
437
+ code: 200
438
+ message: OK
439
+ headers:
440
+ Server:
441
+ - nginx
442
+ Date:
443
+ - Wed, 23 May 2012 14:52:54 GMT
444
+ Content-Type:
445
+ - application/json; charset=utf-8
446
+ Transfer-Encoding:
447
+ - chunked
448
+ Connection:
449
+ - keep-alive
450
+ Vary:
451
+ - Accept-Encoding
452
+ Status:
453
+ - 200 OK
454
+ Etag:
455
+ - ! '"72d9dc37fa77b74502b76efdaff059d5"'
456
+ Cache-Control:
457
+ - max-age=0, private, must-revalidate
458
+ X-Ua-Compatible:
459
+ - IE=Edge,chrome=1
460
+ Set-Cookie:
461
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNjA1Y2YyZDkzZmM5ZjFhNTQ4YmVhMjdmYTFjYWE1ZTZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--89afad27de99851ad58f970f1e021683d325b277;
462
+ domain=.cartodb.com; path=/; HttpOnly
463
+ X-Runtime:
464
+ - '0.056918'
465
+ Content-Encoding:
466
+ - gzip
467
+ body:
468
+ encoding: ASCII-8BIT
469
+ string: ! '{"name":"longest_straight","type":"text","cartodb_type":"string"}'
470
+ http_version: '1.1'
471
+ recorded_at: Wed, 23 May 2012 14:52:54 GMT
472
+ - request:
473
+ method: post
474
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
475
+ body:
476
+ encoding: US-ASCII
477
+ string: ''
478
+ headers:
479
+ Accept:
480
+ - *70259176453560
481
+ Authorization:
482
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="e9OzIsq6GPV6856GJ11pKfGFBejPYo7LryfV2ciY",
483
+ oauth_signature="GIfERd%2BKzGnNdhCXhSmCdd%2FnvJc%3D", oauth_signature_method="HMAC-SHA1",
484
+ oauth_timestamp="1337784774", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
485
+ oauth_version="1.0"
486
+ response:
487
+ status:
488
+ code: 200
489
+ message: OK
490
+ headers:
491
+ Server:
492
+ - nginx
493
+ Date:
494
+ - Wed, 23 May 2012 14:52:54 GMT
495
+ Content-Type:
496
+ - application/json; charset=utf-8
497
+ Transfer-Encoding:
498
+ - chunked
499
+ Connection:
500
+ - keep-alive
501
+ Vary:
502
+ - Accept-Encoding
503
+ Status:
504
+ - 200 OK
505
+ Etag:
506
+ - ! '"b602480fcc0e512dc48fc82a407d693c"'
507
+ Cache-Control:
508
+ - max-age=0, private, must-revalidate
509
+ X-Ua-Compatible:
510
+ - IE=Edge,chrome=1
511
+ Set-Cookie:
512
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMGVjYTFkMzU5OTg4OWQxOWU3Zjg2N2QxMTE3OWVhYjlJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--e81152c00d904677b8013ca6675d76f54452c5c4;
513
+ domain=.cartodb.com; path=/; HttpOnly
514
+ X-Runtime:
515
+ - '0.326404'
516
+ Content-Encoding:
517
+ - gzip
518
+ body:
519
+ encoding: ASCII-8BIT
520
+ string: ! '{"name":"left_corners","type":"numeric","cartodb_type":"number"}'
521
+ http_version: '1.1'
522
+ recorded_at: Wed, 23 May 2012 14:52:54 GMT
523
+ - request:
524
+ method: post
525
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
526
+ body:
527
+ encoding: US-ASCII
528
+ string: ''
529
+ headers:
530
+ Accept:
531
+ - *70259176453560
532
+ Authorization:
533
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="fx2UXUHnGU9CLO6jw8A7TpoDktthQLEwpYt2AXHtb4",
534
+ oauth_signature="pv7PkIU24SujsyTazjB4KeqHGoI%3D", oauth_signature_method="HMAC-SHA1",
535
+ oauth_timestamp="1337784774", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
536
+ oauth_version="1.0"
537
+ response:
538
+ status:
539
+ code: 200
540
+ message: OK
541
+ headers:
542
+ Server:
543
+ - nginx
544
+ Date:
545
+ - Wed, 23 May 2012 14:52:55 GMT
546
+ Content-Type:
547
+ - application/json; charset=utf-8
548
+ Transfer-Encoding:
549
+ - chunked
550
+ Connection:
551
+ - keep-alive
552
+ Vary:
553
+ - Accept-Encoding
554
+ Status:
555
+ - 200 OK
556
+ Etag:
557
+ - ! '"2830789a168cdfba40b91cbc98711d74"'
558
+ Cache-Control:
559
+ - max-age=0, private, must-revalidate
560
+ X-Ua-Compatible:
561
+ - IE=Edge,chrome=1
562
+ Set-Cookie:
563
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlZDZiYjA1MTRhZDYzMmVkNjUzMzU4MzFmNjM4M2UyZTFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--785c05fde238f163187cc747f9117db7aeefc42c;
564
+ domain=.cartodb.com; path=/; HttpOnly
565
+ X-Runtime:
566
+ - '0.093255'
567
+ Content-Encoding:
568
+ - gzip
569
+ body:
570
+ encoding: ASCII-8BIT
571
+ string: ! '{"name":"right_corners","type":"numeric","cartodb_type":"number"}'
572
+ http_version: '1.1'
573
+ recorded_at: Wed, 23 May 2012 14:52:55 GMT
574
+ - request:
575
+ method: post
576
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
577
+ body:
578
+ encoding: US-ASCII
579
+ string: ''
580
+ headers:
581
+ Accept:
582
+ - *70259176453560
583
+ Authorization:
584
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="K0RDNPVcLCfYTz8EVv9HYEn53uFBXLCCpDEg9r9u4",
585
+ oauth_signature="7VDDJUNalcZHaXEssR%2B7qpT0Pz4%3D", oauth_signature_method="HMAC-SHA1",
586
+ oauth_timestamp="1337784775", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
587
+ oauth_version="1.0"
588
+ response:
589
+ status:
590
+ code: 200
591
+ message: OK
592
+ headers:
593
+ Server:
594
+ - nginx
595
+ Date:
596
+ - Wed, 23 May 2012 14:52:55 GMT
597
+ Content-Type:
598
+ - application/json; charset=utf-8
599
+ Transfer-Encoding:
600
+ - chunked
601
+ Connection:
602
+ - keep-alive
603
+ Vary:
604
+ - Accept-Encoding
605
+ Status:
606
+ - 200 OK
607
+ Etag:
608
+ - ! '"b4f11f170f581e46523ca91965371c28"'
609
+ Cache-Control:
610
+ - max-age=0, private, must-revalidate
611
+ X-Ua-Compatible:
612
+ - IE=Edge,chrome=1
613
+ Set-Cookie:
614
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYWQ0YTEzMmRhNzc2ZDkzZDM0ZmRhZmJiNGY1YjkxZGNJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c5b1a9e00249b3731225d5c4204bf87db88e4720;
615
+ domain=.cartodb.com; path=/; HttpOnly
616
+ X-Runtime:
617
+ - '0.052635'
618
+ Content-Encoding:
619
+ - gzip
620
+ body:
621
+ encoding: ASCII-8BIT
622
+ string: ! '{"name":"constructed","type":"timestamp","cartodb_type":"date"}'
623
+ http_version: '1.1'
624
+ recorded_at: Wed, 23 May 2012 14:52:55 GMT
625
+ - request:
626
+ method: post
627
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
628
+ body:
629
+ encoding: US-ASCII
630
+ string: ''
631
+ headers:
632
+ Accept:
633
+ - *70259176453560
634
+ Authorization:
635
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="ApYlPmZ5YjXbhitFMlqRNh2GAwFRiVstdAwiHEKf78",
636
+ oauth_signature="RC2XrTzoZ8gMdfKmmaeA11lerP4%3D", oauth_signature_method="HMAC-SHA1",
637
+ oauth_timestamp="1337784775", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
638
+ oauth_version="1.0"
639
+ response:
640
+ status:
641
+ code: 200
642
+ message: OK
643
+ headers:
644
+ Server:
645
+ - nginx
646
+ Date:
647
+ - Wed, 23 May 2012 14:52:55 GMT
648
+ Content-Type:
649
+ - application/json; charset=utf-8
650
+ Transfer-Encoding:
651
+ - chunked
652
+ Connection:
653
+ - keep-alive
654
+ Vary:
655
+ - Accept-Encoding
656
+ Status:
657
+ - 200 OK
658
+ Etag:
659
+ - ! '"5b673b3f4b869a800810f0a965941052"'
660
+ Cache-Control:
661
+ - max-age=0, private, must-revalidate
662
+ X-Ua-Compatible:
663
+ - IE=Edge,chrome=1
664
+ Set-Cookie:
665
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlODFhYjQ4ZWU2MzkyODhlMjM3NGY0YzFlMmI1ZThkNTFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--f72fd7d93667ad6b68e589c5253fe01098b851f7;
666
+ domain=.cartodb.com; path=/; HttpOnly
667
+ X-Runtime:
668
+ - '0.060911'
669
+ Content-Encoding:
670
+ - gzip
671
+ body:
672
+ encoding: ASCII-8BIT
673
+ string: ! '{"name":"modified","type":"timestamp","cartodb_type":"date"}'
674
+ http_version: '1.1'
675
+ recorded_at: Wed, 23 May 2012 14:52:55 GMT
676
+ - request:
677
+ method: get
678
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
679
+ body:
680
+ encoding: US-ASCII
681
+ string: ''
682
+ headers:
683
+ Accept:
684
+ - *70259176453560
685
+ Authorization:
686
+ - OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="GT6roLBJQ0YxkovGT6k7h95pIGhsMtQBf81LlOUc2so",
687
+ oauth_signature="lrMC4u9Lzs6l1CAJmre6dPMg6hQ%3D", oauth_signature_method="HMAC-SHA1",
688
+ oauth_timestamp="1337784775", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
689
+ oauth_version="1.0"
690
+ response:
691
+ status:
692
+ code: 200
693
+ message: OK
694
+ headers:
695
+ Server:
696
+ - nginx
697
+ Date:
698
+ - Wed, 23 May 2012 14:52:55 GMT
699
+ Content-Type:
700
+ - application/json; charset=utf-8
701
+ Transfer-Encoding:
702
+ - chunked
703
+ Connection:
704
+ - keep-alive
705
+ Vary:
706
+ - Accept-Encoding
707
+ Status:
708
+ - 200 OK
709
+ Etag:
710
+ - ! '"6fed7be64d61478be523d51005c62b6c"'
711
+ Cache-Control:
712
+ - max-age=0, private, must-revalidate
713
+ X-Ua-Compatible:
714
+ - IE=Edge,chrome=1
715
+ Set-Cookie:
716
+ - _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMGY2Zjg2M2VkMzc1ZWJhNGJiNjkyOWIxMjQ3Y2ZhNTFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c0545f73e2280835ded6af8e76f7f6dd79d38de0;
717
+ domain=.cartodb.com; path=/; HttpOnly
718
+ X-Runtime:
719
+ - '0.017806'
720
+ Content-Encoding:
721
+ - gzip
722
+ body:
723
+ encoding: ASCII-8BIT
724
+ string: ! '{"id":4654,"name":"moto_gp_circuit","privacy":"PUBLIC","tags":"","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["constructed","date"],["description","string"],["left_corners","number"],["length","string"],["longest_straight","string"],["modified","date"],["name","string"],["right_corners","number"],["width","string"],["created_at","date"],["updated_at","date"]]}'
725
+ http_version: '1.1'
726
+ recorded_at: Wed, 23 May 2012 14:52:55 GMT
727
+ recorded_with: VCR 2.1.1