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.
- data/Gemfile +2 -2
- data/lib/cartodb-rb-client/cartodb/client/connection/cartodb.rb +1 -1
- data/lib/cartodb-rb-client/cartodb/model/base.rb +1 -1
- data/lib/cartodb-rb-client/cartodb/model/getters.rb +6 -9
- data/lib/cartodb-rb-client/cartodb/model/schema.rb +13 -2
- data/lib/cartodb-rb-client/cartodb/model/setters.rb +5 -9
- data/lib/cartodb-rb-client/version.rb +1 -1
- data/spec/client_spec.rb +3 -3
- data/spec/fixtures/cassettes/CartoDB_client/should_add_and_remove_colums_in_a_previously_created_table.yml +376 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_allow_reserved_words_in_columns_names.yml +121 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_change_a_previously_created_column.yml +174 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_and_get_its_table_definition.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_forcing_the_schema_and_get_its_table_definition.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_from_a_csv_file.yml +1971 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTILINESTRING_type_geometry.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTIPOLYGON_type_geometry.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_POINT_type_geometry.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_delete_a_table_s_row.yml +221 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_drop_a_table.yml +278 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_escape_properly_input_data_in_insert_queries.yml +121 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_execute_a_select_query_and_return_results.yml +615 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_get_a_table_by_its_name.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_import_any_kind_of_data_file.yml +6612 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_insert_a_row_in_a_table.yml +121 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_paginate_records.yml +2624 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_rename_an_existing_table.yml +123 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_return_errors_on_invalid_queries.yml +59 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_return_nil_when_requesting_a_table_which_does_not_exists.yml +68 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_return_user_s_table_list.yml +176 -0
- data/spec/fixtures/cassettes/CartoDB_client/should_update_a_row_in_a_table.yml +170 -0
- data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_destroy_a_previously_created_record.yml +1398 -0
- data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_initialize_attributes_of_the_model_without_persisting_them.yml +223 -0
- data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_save_method.yml +1406 -0
- data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_static_create_method.yml +1299 -0
- data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_update_an_existing_record.yml +2028 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_add_more_columns_if_the_table_previously_exists.yml +990 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_contain_an_array_of_columns.yml +1443 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_a_table_with_custom_name_if_specified.yml +270 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_custom_data_types_columns.yml +421 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_polygon_type_geometry_columns.yml +272 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_the_table_in_cartodb_if_it_doesn_t_exists.yml +780 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_CartoDB_Client_instance_as_a_connection_object.yml +682 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_table_name.yml +727 -0
- data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_return_only_data_columns.yml +829 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_allow_to_select_the_specified_fiels.yml +17953 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_count_all_records.yml +15596 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_find_a_record_by_its_id.yml +15197 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_order_results.yml +16439 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_paginate_results.yml +24501 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_return_all_records_paginated.yml +16488 -0
- data/spec/fixtures/cassettes/CartoDB_model_scopes/should_search_records_by_certain_filters.yml +4950 -0
- data/spec/fixtures/cassettes/cartodb_spec_models.yml +2467 -0
- data/spec/fixtures/cassettes/clean_tables.yml +266 -0
- data/spec/model/data_spec.rb +6 -6
- data/spec/model/metadata_spec.rb +11 -3
- data/spec/model/scopes_spec.rb +2 -2
- data/spec/model_specs_helper.rb +2 -0
- data/spec/spec_helper.rb +18 -5
- data/spec/support/cartodb_factories.rb +3 -3
- data/spec/support/cartodb_helpers.rb +1 -1
- data/spec/support/cartodb_models.rb +26 -19
- metadata +97 -7
- data/spec/support/data/ngos.xlsx +0 -0
@@ -0,0 +1,682 @@
|
|
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="FM0hWkA2vYJtgU9z05yAMLjvExH0ry0guLZHdY2DJ4",
|
30
|
+
oauth_signature="AZ3eMfYN5COiW66Su4gegceXHYk%3D", oauth_signature_method="HMAC-SHA1",
|
31
|
+
oauth_timestamp="1337784766", 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:46 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
|
+
- ! '"d38cbc6fe8748444b5bc161dcdf4df91"'
|
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=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNzM4N2Q3YWRmMGMwOWRjMzg3OGQxNjEyZTJmMjc3YjBJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--151b681fd5fd7faa29f51950d7b2414eabfcfb72;
|
60
|
+
domain=.cartodb.com; path=/; HttpOnly
|
61
|
+
X-Runtime:
|
62
|
+
- '0.009864'
|
63
|
+
Content-Encoding:
|
64
|
+
- gzip
|
65
|
+
body:
|
66
|
+
encoding: ASCII-8BIT
|
67
|
+
string: ! '{"total_entries":0,"tables":[]}'
|
68
|
+
http_version: '1.1'
|
69
|
+
recorded_at: Wed, 23 May 2012 14:52:46 GMT
|
70
|
+
- request:
|
71
|
+
method: get
|
72
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
|
73
|
+
body:
|
74
|
+
encoding: US-ASCII
|
75
|
+
string: ''
|
76
|
+
headers:
|
77
|
+
Accept:
|
78
|
+
- *70259176453560
|
79
|
+
Authorization:
|
80
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="uEaXfx5z8gDQE2EZJsYj6djCMfAqq9xF1VATpBKnY",
|
81
|
+
oauth_signature="JMsPzSdEuELFa0V5pd%2B0gDjRYyg%3D", oauth_signature_method="HMAC-SHA1",
|
82
|
+
oauth_timestamp="1337784766", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
83
|
+
oauth_version="1.0"
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 404
|
87
|
+
message: Not Found
|
88
|
+
headers:
|
89
|
+
Server:
|
90
|
+
- nginx
|
91
|
+
Date:
|
92
|
+
- Wed, 23 May 2012 14:52:46 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
|
+
- 404 Not Found
|
103
|
+
Cache-Control:
|
104
|
+
- no-cache
|
105
|
+
X-Ua-Compatible:
|
106
|
+
- IE=Edge,chrome=1
|
107
|
+
Set-Cookie:
|
108
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYzkwYWIyZGJiMTg3NDRkOTAyMzUyYzdkMGE4OGQzODlJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--83bc9251b378d9e16e983599bec602f7d744fa3c;
|
109
|
+
domain=.cartodb.com; path=/; HttpOnly
|
110
|
+
X-Runtime:
|
111
|
+
- '0.008847'
|
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:46 GMT
|
119
|
+
- request:
|
120
|
+
method: get
|
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="eNxUHan21jHLqKZGfMCh7J6wMilwAHC9eLI80",
|
130
|
+
oauth_signature="Ji25i9bv4Y%2Fz4dt59WonrwH9YuM%3D", oauth_signature_method="HMAC-SHA1",
|
131
|
+
oauth_timestamp="1337784766", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
132
|
+
oauth_version="1.0"
|
133
|
+
response:
|
134
|
+
status:
|
135
|
+
code: 404
|
136
|
+
message: Not Found
|
137
|
+
headers:
|
138
|
+
Server:
|
139
|
+
- nginx
|
140
|
+
Date:
|
141
|
+
- Wed, 23 May 2012 14:52:46 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
|
+
- 404 Not Found
|
152
|
+
Cache-Control:
|
153
|
+
- no-cache
|
154
|
+
X-Ua-Compatible:
|
155
|
+
- IE=Edge,chrome=1
|
156
|
+
Set-Cookie:
|
157
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNDU3NGI3MDhiMTA2MDZjN2U4NjA5MjM0MjVhMjNhMTlJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--67d5690b6f11fa3500cac4fe97320928aee98762;
|
158
|
+
domain=.cartodb.com; path=/; HttpOnly
|
159
|
+
X-Runtime:
|
160
|
+
- '0.009564'
|
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:46 GMT
|
168
|
+
- request:
|
169
|
+
method: post
|
170
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ''
|
174
|
+
headers:
|
175
|
+
Accept:
|
176
|
+
- *70259176453560
|
177
|
+
Authorization:
|
178
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="mf6vMaUx2yTh9PtZyN55mm6Ip5uLK9dpoyTlt5bpI",
|
179
|
+
oauth_signature="EJVl9R%2FLzM9E6OMm9FXl%2BTZZ2dc%3D", oauth_signature_method="HMAC-SHA1",
|
180
|
+
oauth_timestamp="1337784766", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
181
|
+
oauth_version="1.0"
|
182
|
+
response:
|
183
|
+
status:
|
184
|
+
code: 200
|
185
|
+
message: OK
|
186
|
+
headers:
|
187
|
+
Server:
|
188
|
+
- nginx
|
189
|
+
Date:
|
190
|
+
- Wed, 23 May 2012 14:52:47 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
|
+
- 200 OK
|
201
|
+
Location:
|
202
|
+
- /tables/4652
|
203
|
+
Etag:
|
204
|
+
- ! '"b866f336b2279a8a31d49bab3e4710b9"'
|
205
|
+
Cache-Control:
|
206
|
+
- max-age=0, private, must-revalidate
|
207
|
+
X-Ua-Compatible:
|
208
|
+
- IE=Edge,chrome=1
|
209
|
+
Set-Cookie:
|
210
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMTg2MDk5NjE1NDFjODcwMzIzY2VkODJlZmQxMDMzMThJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--da772d51c331a58e283c083f556e87af7df4a449;
|
211
|
+
domain=.cartodb.com; path=/; HttpOnly
|
212
|
+
X-Runtime:
|
213
|
+
- '0.720681'
|
214
|
+
Content-Encoding:
|
215
|
+
- gzip
|
216
|
+
body:
|
217
|
+
encoding: ASCII-8BIT
|
218
|
+
string: ! '{"id":4652,"name":"moto_gp_circuit","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
219
|
+
http_version: '1.1'
|
220
|
+
recorded_at: Wed, 23 May 2012 14:52:47 GMT
|
221
|
+
- request:
|
222
|
+
method: post
|
223
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
224
|
+
body:
|
225
|
+
encoding: US-ASCII
|
226
|
+
string: ''
|
227
|
+
headers:
|
228
|
+
Accept:
|
229
|
+
- *70259176453560
|
230
|
+
Authorization:
|
231
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="Fr2d23ezMEytvLqBWdFl4VLkkt8hcRVRylvEMUTcwU",
|
232
|
+
oauth_signature="x6%2FOgEF6rmYzLOPaD1TtJV54qx0%3D", oauth_signature_method="HMAC-SHA1",
|
233
|
+
oauth_timestamp="1337784767", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
234
|
+
oauth_version="1.0"
|
235
|
+
response:
|
236
|
+
status:
|
237
|
+
code: 200
|
238
|
+
message: OK
|
239
|
+
headers:
|
240
|
+
Server:
|
241
|
+
- nginx
|
242
|
+
Date:
|
243
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
244
|
+
Content-Type:
|
245
|
+
- application/json; charset=utf-8
|
246
|
+
Transfer-Encoding:
|
247
|
+
- chunked
|
248
|
+
Connection:
|
249
|
+
- keep-alive
|
250
|
+
Vary:
|
251
|
+
- Accept-Encoding
|
252
|
+
Status:
|
253
|
+
- 200 OK
|
254
|
+
Etag:
|
255
|
+
- ! '"1d8ec3575e09ff60ecad35605669b22c"'
|
256
|
+
Cache-Control:
|
257
|
+
- max-age=0, private, must-revalidate
|
258
|
+
X-Ua-Compatible:
|
259
|
+
- IE=Edge,chrome=1
|
260
|
+
Set-Cookie:
|
261
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlOGU0NjM4ODYzODE5N2M4Y2I2NGMzYWQ4OTUxZDlkMWNJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--bb371ac4eccf0392f496f23592c79658d1d3e51a;
|
262
|
+
domain=.cartodb.com; path=/; HttpOnly
|
263
|
+
X-Runtime:
|
264
|
+
- '0.154556'
|
265
|
+
Content-Encoding:
|
266
|
+
- gzip
|
267
|
+
body:
|
268
|
+
encoding: ASCII-8BIT
|
269
|
+
string: ! '{"name":"length","type":"text","cartodb_type":"string"}'
|
270
|
+
http_version: '1.1'
|
271
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
272
|
+
- request:
|
273
|
+
method: post
|
274
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
275
|
+
body:
|
276
|
+
encoding: US-ASCII
|
277
|
+
string: ''
|
278
|
+
headers:
|
279
|
+
Accept:
|
280
|
+
- *70259176453560
|
281
|
+
Authorization:
|
282
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="6toimInpVOtfT78P7te8JpQQ759YUMOi1OatD01pyw",
|
283
|
+
oauth_signature="Su72MCfCSEBXwfIkjx0KjXC0A6w%3D", oauth_signature_method="HMAC-SHA1",
|
284
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
285
|
+
oauth_version="1.0"
|
286
|
+
response:
|
287
|
+
status:
|
288
|
+
code: 200
|
289
|
+
message: OK
|
290
|
+
headers:
|
291
|
+
Server:
|
292
|
+
- nginx
|
293
|
+
Date:
|
294
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
295
|
+
Content-Type:
|
296
|
+
- application/json; charset=utf-8
|
297
|
+
Transfer-Encoding:
|
298
|
+
- chunked
|
299
|
+
Connection:
|
300
|
+
- keep-alive
|
301
|
+
Vary:
|
302
|
+
- Accept-Encoding
|
303
|
+
Status:
|
304
|
+
- 200 OK
|
305
|
+
Etag:
|
306
|
+
- ! '"e82b080654b5df6f5d5f582aae439d58"'
|
307
|
+
Cache-Control:
|
308
|
+
- max-age=0, private, must-revalidate
|
309
|
+
X-Ua-Compatible:
|
310
|
+
- IE=Edge,chrome=1
|
311
|
+
Set-Cookie:
|
312
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYTY1MzZhNzhiNmI5ZDdmOGM4MDU2NWJlODY3MzA5ODdJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--9f9ceddb849096dee26d22eccb937a463a45b692;
|
313
|
+
domain=.cartodb.com; path=/; HttpOnly
|
314
|
+
X-Runtime:
|
315
|
+
- '0.047315'
|
316
|
+
Content-Encoding:
|
317
|
+
- gzip
|
318
|
+
body:
|
319
|
+
encoding: ASCII-8BIT
|
320
|
+
string: ! '{"name":"width","type":"text","cartodb_type":"string"}'
|
321
|
+
http_version: '1.1'
|
322
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
323
|
+
- request:
|
324
|
+
method: post
|
325
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
326
|
+
body:
|
327
|
+
encoding: US-ASCII
|
328
|
+
string: ''
|
329
|
+
headers:
|
330
|
+
Accept:
|
331
|
+
- *70259176453560
|
332
|
+
Authorization:
|
333
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="7h2bde5DQr1i2HwFXnwlDDCa9imxLJAwf2m759qk",
|
334
|
+
oauth_signature="WE7k1F7zw29TFVl8k4lk2H%2B5Ahw%3D", oauth_signature_method="HMAC-SHA1",
|
335
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
336
|
+
oauth_version="1.0"
|
337
|
+
response:
|
338
|
+
status:
|
339
|
+
code: 200
|
340
|
+
message: OK
|
341
|
+
headers:
|
342
|
+
Server:
|
343
|
+
- nginx
|
344
|
+
Date:
|
345
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
346
|
+
Content-Type:
|
347
|
+
- application/json; charset=utf-8
|
348
|
+
Transfer-Encoding:
|
349
|
+
- chunked
|
350
|
+
Connection:
|
351
|
+
- keep-alive
|
352
|
+
Vary:
|
353
|
+
- Accept-Encoding
|
354
|
+
Status:
|
355
|
+
- 200 OK
|
356
|
+
Etag:
|
357
|
+
- ! '"72d9dc37fa77b74502b76efdaff059d5"'
|
358
|
+
Cache-Control:
|
359
|
+
- max-age=0, private, must-revalidate
|
360
|
+
X-Ua-Compatible:
|
361
|
+
- IE=Edge,chrome=1
|
362
|
+
Set-Cookie:
|
363
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYWIzMzhhNTA0MGZmMzBmMzI1ZWE3OTc2YjY1ODczZDZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c921cd3864d59c7f2324633e89469c2dc503a553;
|
364
|
+
domain=.cartodb.com; path=/; HttpOnly
|
365
|
+
X-Runtime:
|
366
|
+
- '0.040712'
|
367
|
+
Content-Encoding:
|
368
|
+
- gzip
|
369
|
+
body:
|
370
|
+
encoding: ASCII-8BIT
|
371
|
+
string: ! '{"name":"longest_straight","type":"text","cartodb_type":"string"}'
|
372
|
+
http_version: '1.1'
|
373
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
374
|
+
- request:
|
375
|
+
method: post
|
376
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
377
|
+
body:
|
378
|
+
encoding: US-ASCII
|
379
|
+
string: ''
|
380
|
+
headers:
|
381
|
+
Accept:
|
382
|
+
- *70259176453560
|
383
|
+
Authorization:
|
384
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="8ghtdmR1aTgqgFpYGSuwuuOwCWU8lCZqzk5nejVKNM",
|
385
|
+
oauth_signature="DYTKc%2B2%2BJtB2SiyaDVgaHPNiGwM%3D", oauth_signature_method="HMAC-SHA1",
|
386
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
387
|
+
oauth_version="1.0"
|
388
|
+
response:
|
389
|
+
status:
|
390
|
+
code: 200
|
391
|
+
message: OK
|
392
|
+
headers:
|
393
|
+
Server:
|
394
|
+
- nginx
|
395
|
+
Date:
|
396
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
397
|
+
Content-Type:
|
398
|
+
- application/json; charset=utf-8
|
399
|
+
Transfer-Encoding:
|
400
|
+
- chunked
|
401
|
+
Connection:
|
402
|
+
- keep-alive
|
403
|
+
Vary:
|
404
|
+
- Accept-Encoding
|
405
|
+
Status:
|
406
|
+
- 200 OK
|
407
|
+
Etag:
|
408
|
+
- ! '"b602480fcc0e512dc48fc82a407d693c"'
|
409
|
+
Cache-Control:
|
410
|
+
- max-age=0, private, must-revalidate
|
411
|
+
X-Ua-Compatible:
|
412
|
+
- IE=Edge,chrome=1
|
413
|
+
Set-Cookie:
|
414
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlZTNlZmJmNjQxYTZiMWQzNDZlNzA2Zjg0MWI1NjRjMjJJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--be9b87e1cb80ae6dca5d073c196d33f74f54bda4;
|
415
|
+
domain=.cartodb.com; path=/; HttpOnly
|
416
|
+
X-Runtime:
|
417
|
+
- '0.068553'
|
418
|
+
Content-Encoding:
|
419
|
+
- gzip
|
420
|
+
body:
|
421
|
+
encoding: ASCII-8BIT
|
422
|
+
string: ! '{"name":"left_corners","type":"numeric","cartodb_type":"number"}'
|
423
|
+
http_version: '1.1'
|
424
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
425
|
+
- request:
|
426
|
+
method: post
|
427
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
428
|
+
body:
|
429
|
+
encoding: US-ASCII
|
430
|
+
string: ''
|
431
|
+
headers:
|
432
|
+
Accept:
|
433
|
+
- *70259176453560
|
434
|
+
Authorization:
|
435
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="Ru4WxPCFM1oIHsexMvEw4eHt3NWpAIos98CpBG5891g",
|
436
|
+
oauth_signature="I7xZEsguGHXfqabBs5y%2B%2FZElLfQ%3D", oauth_signature_method="HMAC-SHA1",
|
437
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
438
|
+
oauth_version="1.0"
|
439
|
+
response:
|
440
|
+
status:
|
441
|
+
code: 200
|
442
|
+
message: OK
|
443
|
+
headers:
|
444
|
+
Server:
|
445
|
+
- nginx
|
446
|
+
Date:
|
447
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
448
|
+
Content-Type:
|
449
|
+
- application/json; charset=utf-8
|
450
|
+
Transfer-Encoding:
|
451
|
+
- chunked
|
452
|
+
Connection:
|
453
|
+
- keep-alive
|
454
|
+
Vary:
|
455
|
+
- Accept-Encoding
|
456
|
+
Status:
|
457
|
+
- 200 OK
|
458
|
+
Etag:
|
459
|
+
- ! '"2830789a168cdfba40b91cbc98711d74"'
|
460
|
+
Cache-Control:
|
461
|
+
- max-age=0, private, must-revalidate
|
462
|
+
X-Ua-Compatible:
|
463
|
+
- IE=Edge,chrome=1
|
464
|
+
Set-Cookie:
|
465
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlN2Q2MTU5MTI3M2VkNTQwZTU1ZTExYTkxYzEwOTE1NDZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--dc6e4304337403a6e39acb41ec4cec8deb93c43f;
|
466
|
+
domain=.cartodb.com; path=/; HttpOnly
|
467
|
+
X-Runtime:
|
468
|
+
- '0.039148'
|
469
|
+
Content-Encoding:
|
470
|
+
- gzip
|
471
|
+
body:
|
472
|
+
encoding: ASCII-8BIT
|
473
|
+
string: ! '{"name":"right_corners","type":"numeric","cartodb_type":"number"}'
|
474
|
+
http_version: '1.1'
|
475
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
476
|
+
- request:
|
477
|
+
method: post
|
478
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
479
|
+
body:
|
480
|
+
encoding: US-ASCII
|
481
|
+
string: ''
|
482
|
+
headers:
|
483
|
+
Accept:
|
484
|
+
- *70259176453560
|
485
|
+
Authorization:
|
486
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="inhirhvSenXS692GI6p6bLkZoLd1iWFACuUxJ0R70",
|
487
|
+
oauth_signature="2N9N0JST5STcUY9eVGXCJPfuEx4%3D", oauth_signature_method="HMAC-SHA1",
|
488
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
489
|
+
oauth_version="1.0"
|
490
|
+
response:
|
491
|
+
status:
|
492
|
+
code: 200
|
493
|
+
message: OK
|
494
|
+
headers:
|
495
|
+
Server:
|
496
|
+
- nginx
|
497
|
+
Date:
|
498
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
499
|
+
Content-Type:
|
500
|
+
- application/json; charset=utf-8
|
501
|
+
Transfer-Encoding:
|
502
|
+
- chunked
|
503
|
+
Connection:
|
504
|
+
- keep-alive
|
505
|
+
Vary:
|
506
|
+
- Accept-Encoding
|
507
|
+
Status:
|
508
|
+
- 200 OK
|
509
|
+
Etag:
|
510
|
+
- ! '"b4f11f170f581e46523ca91965371c28"'
|
511
|
+
Cache-Control:
|
512
|
+
- max-age=0, private, must-revalidate
|
513
|
+
X-Ua-Compatible:
|
514
|
+
- IE=Edge,chrome=1
|
515
|
+
Set-Cookie:
|
516
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYzZjOTBmZjU0NWIwODEyZWMxZTRmMGE5YjQ1ODZlNmVJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--2505e31448dfa1cccd1f0e4f79c9ab11524fcd77;
|
517
|
+
domain=.cartodb.com; path=/; HttpOnly
|
518
|
+
X-Runtime:
|
519
|
+
- '0.032007'
|
520
|
+
Content-Encoding:
|
521
|
+
- gzip
|
522
|
+
body:
|
523
|
+
encoding: ASCII-8BIT
|
524
|
+
string: ! '{"name":"constructed","type":"timestamp","cartodb_type":"date"}'
|
525
|
+
http_version: '1.1'
|
526
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
527
|
+
- request:
|
528
|
+
method: post
|
529
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit/columns
|
530
|
+
body:
|
531
|
+
encoding: US-ASCII
|
532
|
+
string: ''
|
533
|
+
headers:
|
534
|
+
Accept:
|
535
|
+
- *70259176453560
|
536
|
+
Authorization:
|
537
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="ozimWstLMAvcMD7Bfgxm15sl8AwUNeHO2Iqg5OrnUc",
|
538
|
+
oauth_signature="pBzN87CAwU8JdTRhfC%2FLL1IqT6A%3D", oauth_signature_method="HMAC-SHA1",
|
539
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
540
|
+
oauth_version="1.0"
|
541
|
+
response:
|
542
|
+
status:
|
543
|
+
code: 200
|
544
|
+
message: OK
|
545
|
+
headers:
|
546
|
+
Server:
|
547
|
+
- nginx
|
548
|
+
Date:
|
549
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
550
|
+
Content-Type:
|
551
|
+
- application/json; charset=utf-8
|
552
|
+
Transfer-Encoding:
|
553
|
+
- chunked
|
554
|
+
Connection:
|
555
|
+
- keep-alive
|
556
|
+
Vary:
|
557
|
+
- Accept-Encoding
|
558
|
+
Status:
|
559
|
+
- 200 OK
|
560
|
+
Etag:
|
561
|
+
- ! '"5b673b3f4b869a800810f0a965941052"'
|
562
|
+
Cache-Control:
|
563
|
+
- max-age=0, private, must-revalidate
|
564
|
+
X-Ua-Compatible:
|
565
|
+
- IE=Edge,chrome=1
|
566
|
+
Set-Cookie:
|
567
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMzY2NDliOGY3ODExNmU5ZTU1ZDQ3YzNkYWU2MjI2MWZJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--63226ec9087e358a5b86f8968c24828eb9281f19;
|
568
|
+
domain=.cartodb.com; path=/; HttpOnly
|
569
|
+
X-Runtime:
|
570
|
+
- '0.052532'
|
571
|
+
Content-Encoding:
|
572
|
+
- gzip
|
573
|
+
body:
|
574
|
+
encoding: ASCII-8BIT
|
575
|
+
string: ! '{"name":"modified","type":"timestamp","cartodb_type":"date"}'
|
576
|
+
http_version: '1.1'
|
577
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
578
|
+
- request:
|
579
|
+
method: get
|
580
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/moto_gp_circuit?
|
581
|
+
body:
|
582
|
+
encoding: US-ASCII
|
583
|
+
string: ''
|
584
|
+
headers:
|
585
|
+
Accept:
|
586
|
+
- *70259176453560
|
587
|
+
Authorization:
|
588
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="WpP6R11JSu65nsImObrXhGAquyQYJ3sCrSetCc3Waw",
|
589
|
+
oauth_signature="LCz2kTBZuQoL2m89bjPORFE4S%2FI%3D", oauth_signature_method="HMAC-SHA1",
|
590
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
591
|
+
oauth_version="1.0"
|
592
|
+
response:
|
593
|
+
status:
|
594
|
+
code: 200
|
595
|
+
message: OK
|
596
|
+
headers:
|
597
|
+
Server:
|
598
|
+
- nginx
|
599
|
+
Date:
|
600
|
+
- Wed, 23 May 2012 14:52:48 GMT
|
601
|
+
Content-Type:
|
602
|
+
- application/json; charset=utf-8
|
603
|
+
Transfer-Encoding:
|
604
|
+
- chunked
|
605
|
+
Connection:
|
606
|
+
- keep-alive
|
607
|
+
Vary:
|
608
|
+
- Accept-Encoding
|
609
|
+
Status:
|
610
|
+
- 200 OK
|
611
|
+
Etag:
|
612
|
+
- ! '"bd7a9beec13a3f6e4b1159ca6e859684"'
|
613
|
+
Cache-Control:
|
614
|
+
- max-age=0, private, must-revalidate
|
615
|
+
X-Ua-Compatible:
|
616
|
+
- IE=Edge,chrome=1
|
617
|
+
Set-Cookie:
|
618
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYTRjNDI0MjVjYzZjOWNiNDRiZmI4OGIzY2IzMDc4MGNJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--6ae4b1f82e9e859e9a832702f5c067362cfbc1be;
|
619
|
+
domain=.cartodb.com; path=/; HttpOnly
|
620
|
+
X-Runtime:
|
621
|
+
- '0.017725'
|
622
|
+
Content-Encoding:
|
623
|
+
- gzip
|
624
|
+
body:
|
625
|
+
encoding: ASCII-8BIT
|
626
|
+
string: ! '{"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"]]}'
|
627
|
+
http_version: '1.1'
|
628
|
+
recorded_at: Wed, 23 May 2012 14:52:48 GMT
|
629
|
+
- request:
|
630
|
+
method: post
|
631
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
632
|
+
body:
|
633
|
+
encoding: US-ASCII
|
634
|
+
string: ''
|
635
|
+
headers:
|
636
|
+
Accept:
|
637
|
+
- *70259176453560
|
638
|
+
Authorization:
|
639
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="NSUuv0WF56UtHXaad2XFZuvtfs0PvyX3OtPUHWwUM",
|
640
|
+
oauth_signature="sI1RkN0Gw9dEbDAqrHzDzoE33Qw%3D", oauth_signature_method="HMAC-SHA1",
|
641
|
+
oauth_timestamp="1337784768", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
642
|
+
oauth_version="1.0"
|
643
|
+
response:
|
644
|
+
status:
|
645
|
+
code: 200
|
646
|
+
message: OK
|
647
|
+
headers:
|
648
|
+
Server:
|
649
|
+
- nginx
|
650
|
+
Date:
|
651
|
+
- Wed, 23 May 2012 14:52:49 GMT
|
652
|
+
Content-Type:
|
653
|
+
- application/json; charset=utf-8
|
654
|
+
Transfer-Encoding:
|
655
|
+
- chunked
|
656
|
+
Connection:
|
657
|
+
- keep-alive
|
658
|
+
Vary:
|
659
|
+
- Accept-Encoding
|
660
|
+
Status:
|
661
|
+
- 200 OK
|
662
|
+
Location:
|
663
|
+
- /tables/4653
|
664
|
+
Etag:
|
665
|
+
- ! '"708ba1938ff3842d6aa1988298a9d67d"'
|
666
|
+
Cache-Control:
|
667
|
+
- max-age=0, private, must-revalidate
|
668
|
+
X-Ua-Compatible:
|
669
|
+
- IE=Edge,chrome=1
|
670
|
+
Set-Cookie:
|
671
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYmUzYzkyZTVhZDFjMjljMmJjZTk5ZTM4Y2U4ZmRjNjJJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c7e6d04284d0471dffdf1f05655e6f5b0478bfa3;
|
672
|
+
domain=.cartodb.com; path=/; HttpOnly
|
673
|
+
X-Runtime:
|
674
|
+
- '0.941011'
|
675
|
+
Content-Encoding:
|
676
|
+
- gzip
|
677
|
+
body:
|
678
|
+
encoding: ASCII-8BIT
|
679
|
+
string: ! '{"id":4653,"name":"model_connection_test","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
680
|
+
http_version: '1.1'
|
681
|
+
recorded_at: Wed, 23 May 2012 14:52:50 GMT
|
682
|
+
recorded_with: VCR 2.1.1
|