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,278 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- &70178368991240 !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="nSEYPFQcrjyRcu91XOD48IFwUJXWsRCHwZuaxc8A",
|
30
|
+
oauth_signature="rLoe9zcSNXhGYDODzBScur4bZkE%3D", oauth_signature_method="HMAC-SHA1",
|
31
|
+
oauth_timestamp="1337787414", 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 15:36:55 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
|
+
Location:
|
53
|
+
- /tables/4707
|
54
|
+
Etag:
|
55
|
+
- ! '"a846e542b34b5d905b369e207c9ac75e"'
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Ua-Compatible:
|
59
|
+
- IE=Edge,chrome=1
|
60
|
+
Set-Cookie:
|
61
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlY2E0NjM4ZTIwMzU0ZDBlNDNjNTJkNDUzNzYwYjQ2OGRJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--918af999bd570c924569e550abcd6661f620dc9b;
|
62
|
+
domain=.cartodb.com; path=/; HttpOnly
|
63
|
+
X-Runtime:
|
64
|
+
- '0.837242'
|
65
|
+
Content-Encoding:
|
66
|
+
- gzip
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: ! '{"id":4707,"name":"table_1","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
70
|
+
http_version: '1.1'
|
71
|
+
recorded_at: Wed, 23 May 2012 15:36:55 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- *70178368991240
|
81
|
+
Authorization:
|
82
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="p3sMCLbpRQ43IlmkczECUfa7D9EVdvZqoFUcmXimE",
|
83
|
+
oauth_signature="tFTy4XTCuljnAMx0PkuN%2FEiMr7g%3D", oauth_signature_method="HMAC-SHA1",
|
84
|
+
oauth_timestamp="1337787415", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
85
|
+
oauth_version="1.0"
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 200
|
89
|
+
message: OK
|
90
|
+
headers:
|
91
|
+
Server:
|
92
|
+
- nginx
|
93
|
+
Date:
|
94
|
+
- Wed, 23 May 2012 15:36:56 GMT
|
95
|
+
Content-Type:
|
96
|
+
- application/json; charset=utf-8
|
97
|
+
Transfer-Encoding:
|
98
|
+
- chunked
|
99
|
+
Connection:
|
100
|
+
- keep-alive
|
101
|
+
Vary:
|
102
|
+
- Accept-Encoding
|
103
|
+
Status:
|
104
|
+
- 200 OK
|
105
|
+
Location:
|
106
|
+
- /tables/4708
|
107
|
+
Etag:
|
108
|
+
- ! '"0ed2cf6c4e4db76132e73aa439defbcd"'
|
109
|
+
Cache-Control:
|
110
|
+
- max-age=0, private, must-revalidate
|
111
|
+
X-Ua-Compatible:
|
112
|
+
- IE=Edge,chrome=1
|
113
|
+
Set-Cookie:
|
114
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlNmVlMTk2ZmIyOTNmZjc4NTQxMjk0OGQ4ZGM5MjIwNTJJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--3273b765949ddf72786086bf57b4a58aa60b93f9;
|
115
|
+
domain=.cartodb.com; path=/; HttpOnly
|
116
|
+
X-Runtime:
|
117
|
+
- '0.951413'
|
118
|
+
Content-Encoding:
|
119
|
+
- gzip
|
120
|
+
body:
|
121
|
+
encoding: ASCII-8BIT
|
122
|
+
string: ! '{"id":4708,"name":"table_2","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
123
|
+
http_version: '1.1'
|
124
|
+
recorded_at: Wed, 23 May 2012 15:36:56 GMT
|
125
|
+
- request:
|
126
|
+
method: post
|
127
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ''
|
131
|
+
headers:
|
132
|
+
Accept:
|
133
|
+
- *70178368991240
|
134
|
+
Authorization:
|
135
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="3kySA3jMmKRShJrssA05aThR08mrtvLzeoJpWVaw0",
|
136
|
+
oauth_signature="1GOsdXkJ90SZakVfE0cYaqW8EDg%3D", oauth_signature_method="HMAC-SHA1",
|
137
|
+
oauth_timestamp="1337787416", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
138
|
+
oauth_version="1.0"
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Server:
|
145
|
+
- nginx
|
146
|
+
Date:
|
147
|
+
- Wed, 23 May 2012 15:36:57 GMT
|
148
|
+
Content-Type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
Transfer-Encoding:
|
151
|
+
- chunked
|
152
|
+
Connection:
|
153
|
+
- keep-alive
|
154
|
+
Vary:
|
155
|
+
- Accept-Encoding
|
156
|
+
Status:
|
157
|
+
- 200 OK
|
158
|
+
Location:
|
159
|
+
- /tables/4709
|
160
|
+
Etag:
|
161
|
+
- ! '"18bd6dcd3ab3c517b215e69a2477bf7b"'
|
162
|
+
Cache-Control:
|
163
|
+
- max-age=0, private, must-revalidate
|
164
|
+
X-Ua-Compatible:
|
165
|
+
- IE=Edge,chrome=1
|
166
|
+
Set-Cookie:
|
167
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMGU4NWI5Y2EwMjNlZjY4N2YxMjYwMTIwNmQ1ZDE3MmFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c784cce7003e0f7d5a470e8cca74e197ebb0f39a;
|
168
|
+
domain=.cartodb.com; path=/; HttpOnly
|
169
|
+
X-Runtime:
|
170
|
+
- '0.716530'
|
171
|
+
Content-Encoding:
|
172
|
+
- gzip
|
173
|
+
body:
|
174
|
+
encoding: ASCII-8BIT
|
175
|
+
string: ! '{"id":4709,"name":"table_3","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
176
|
+
http_version: '1.1'
|
177
|
+
recorded_at: Wed, 23 May 2012 15:36:57 GMT
|
178
|
+
- request:
|
179
|
+
method: delete
|
180
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/table_2?
|
181
|
+
body:
|
182
|
+
encoding: US-ASCII
|
183
|
+
string: ''
|
184
|
+
headers:
|
185
|
+
Accept:
|
186
|
+
- *70178368991240
|
187
|
+
Authorization:
|
188
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="UAskTDkmOYTlitZQfcWHpWwEyI0t0orYCJ3hODAwOg",
|
189
|
+
oauth_signature="M5h3zR7JqYk7lqIsIP3JCb7peFk%3D", oauth_signature_method="HMAC-SHA1",
|
190
|
+
oauth_timestamp="1337787417", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
191
|
+
oauth_version="1.0"
|
192
|
+
response:
|
193
|
+
status:
|
194
|
+
code: 200
|
195
|
+
message: OK
|
196
|
+
headers:
|
197
|
+
Server:
|
198
|
+
- nginx
|
199
|
+
Date:
|
200
|
+
- Wed, 23 May 2012 15:36:58 GMT
|
201
|
+
Content-Type:
|
202
|
+
- application/json; charset=utf-8
|
203
|
+
Transfer-Encoding:
|
204
|
+
- chunked
|
205
|
+
Connection:
|
206
|
+
- keep-alive
|
207
|
+
Vary:
|
208
|
+
- Accept-Encoding
|
209
|
+
Status:
|
210
|
+
- 200 OK
|
211
|
+
Cache-Control:
|
212
|
+
- no-cache
|
213
|
+
X-Ua-Compatible:
|
214
|
+
- IE=Edge,chrome=1
|
215
|
+
Set-Cookie:
|
216
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMGNjZmQ2MzJiMjE1ZDNhOGQ5MGYxMTFlMmQ0ZTA3ZGNJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--9ec41c4500d5b9392b2cc3e9ddd7e5bd11b098dd;
|
217
|
+
domain=.cartodb.com; path=/; HttpOnly
|
218
|
+
X-Runtime:
|
219
|
+
- '0.182817'
|
220
|
+
Content-Encoding:
|
221
|
+
- gzip
|
222
|
+
body:
|
223
|
+
encoding: ASCII-8BIT
|
224
|
+
string: ! ' '
|
225
|
+
http_version: '1.1'
|
226
|
+
recorded_at: Wed, 23 May 2012 15:36:58 GMT
|
227
|
+
- request:
|
228
|
+
method: get
|
229
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables?
|
230
|
+
body:
|
231
|
+
encoding: US-ASCII
|
232
|
+
string: ''
|
233
|
+
headers:
|
234
|
+
Accept:
|
235
|
+
- *70178368991240
|
236
|
+
Authorization:
|
237
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="GUUT6L9qxnwYzthQDBrMV8i7ipurC1PLyFTjYwBM",
|
238
|
+
oauth_signature="f3B2ltCzef%2FajFYo4b1hBki%2FHYU%3D", oauth_signature_method="HMAC-SHA1",
|
239
|
+
oauth_timestamp="1337787418", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
240
|
+
oauth_version="1.0"
|
241
|
+
response:
|
242
|
+
status:
|
243
|
+
code: 200
|
244
|
+
message: OK
|
245
|
+
headers:
|
246
|
+
Server:
|
247
|
+
- nginx
|
248
|
+
Date:
|
249
|
+
- Wed, 23 May 2012 15:36:58 GMT
|
250
|
+
Content-Type:
|
251
|
+
- application/json; charset=utf-8
|
252
|
+
Transfer-Encoding:
|
253
|
+
- chunked
|
254
|
+
Connection:
|
255
|
+
- keep-alive
|
256
|
+
Vary:
|
257
|
+
- Accept-Encoding
|
258
|
+
Status:
|
259
|
+
- 200 OK
|
260
|
+
Etag:
|
261
|
+
- ! '"6af6959c71802d9e9e48f0fa51c81311"'
|
262
|
+
Cache-Control:
|
263
|
+
- max-age=0, private, must-revalidate
|
264
|
+
X-Ua-Compatible:
|
265
|
+
- IE=Edge,chrome=1
|
266
|
+
Set-Cookie:
|
267
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlMjJhOGMxYzI1N2M0Njg3MDg4NjZjZmE4MWVmYzEwZmFJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--ca71da8760cf1eb40bac3586a679d055478d6ccc;
|
268
|
+
domain=.cartodb.com; path=/; HttpOnly
|
269
|
+
X-Runtime:
|
270
|
+
- '0.034239'
|
271
|
+
Content-Encoding:
|
272
|
+
- gzip
|
273
|
+
body:
|
274
|
+
encoding: ASCII-8BIT
|
275
|
+
string: ! '{"total_entries":2,"tables":[{"id":4709,"name":"table_3","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-23T17:36:56+02:00","rows_counted":0},{"id":4707,"name":"table_1","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-23T17:36:54+02:00","rows_counted":0}]}'
|
276
|
+
http_version: '1.1'
|
277
|
+
recorded_at: Wed, 23 May 2012 15:36:58 GMT
|
278
|
+
recorded_with: VCR 2.1.1
|
data/spec/fixtures/cassettes/CartoDB_client/should_escape_properly_input_data_in_insert_queries.yml
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- &70320899829600 !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="JqAt15us9nToTQAqZmLNwxe1nq5ER4QNjzX9mFs8",
|
30
|
+
oauth_signature="sfQZgSole2T2OYd9UI%2FEl2kJU50%3D", oauth_signature_method="HMAC-SHA1",
|
31
|
+
oauth_timestamp="1337787561", 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 15:39:22 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
|
+
Location:
|
53
|
+
- /tables/4717
|
54
|
+
Etag:
|
55
|
+
- ! '"5bf30b6d401338f915c5ee2666391064"'
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Ua-Compatible:
|
59
|
+
- IE=Edge,chrome=1
|
60
|
+
Set-Cookie:
|
61
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlOWIyZmFjZDUzYzVjMDViZjkwMmQ0ODc4ZDA2YTU5MGJJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--c473194124b21d4815f28409a004ab8f2b83ba1f;
|
62
|
+
domain=.cartodb.com; path=/; HttpOnly
|
63
|
+
X-Runtime:
|
64
|
+
- '0.856911'
|
65
|
+
Content-Encoding:
|
66
|
+
- gzip
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: ! '{"id":4717,"name":"table_1","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","multipolygon"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
70
|
+
http_version: '1.1'
|
71
|
+
recorded_at: Wed, 23 May 2012 15:39:22 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- *70320899829600
|
81
|
+
Authorization:
|
82
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="x4KwDc2g0GhiqvFJf0D2qx3knqJFUfo4Iz8iq8k8s",
|
83
|
+
oauth_signature="xB6xeIqBXLONzzifnXxjZ2iqQUI%3D", oauth_signature_method="HMAC-SHA1",
|
84
|
+
oauth_timestamp="1337787562", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
85
|
+
oauth_version="1.0"
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 200
|
89
|
+
message: OK
|
90
|
+
headers:
|
91
|
+
Server:
|
92
|
+
- nginx
|
93
|
+
Date:
|
94
|
+
- Wed, 23 May 2012 15:39:22 GMT
|
95
|
+
Content-Type:
|
96
|
+
- application/json; charset=utf-8
|
97
|
+
Connection:
|
98
|
+
- keep-alive
|
99
|
+
X-Powered-By:
|
100
|
+
- Express
|
101
|
+
Content-Disposition:
|
102
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:39:22
|
103
|
+
GMT";
|
104
|
+
Access-Control-Allow-Origin:
|
105
|
+
- ! '*'
|
106
|
+
Access-Control-Allow-Headers:
|
107
|
+
- X-Requested-With
|
108
|
+
Last-Modified:
|
109
|
+
- Wed, 23 May 2012 15:39:22 GMT
|
110
|
+
Cache-Control:
|
111
|
+
- no-cache,max-age=3600,must-revalidate, public
|
112
|
+
X-Cache-Channel:
|
113
|
+
- cartodb_user_384_db:table_1
|
114
|
+
Content-Length:
|
115
|
+
- '573'
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: ! '{"time":0.073,"total_rows":1,"rows":[{"id":1,"cartodb_id":1,"name":null,"description":null,"created_at":"2012-05-23T17:39:22.915Z","updated_at":"2012-05-23T17:39:22.915Z","the_geom":"0106000020E6100000010000000103000000010000000400000090275C8F5EEB57400876CE2B7DF24D4090275C8F5EB05640CAFDDE469D154B4090275C8F5EDA5940B99F85771E614C4090275C8F5EEB57400876CE2B7DF24D40","the_geom_webmercator":"0106000020110F00000100000001030000000100000004000000B1CD615C945064417A2B6AA7F4F35F41C90495C80C4563419B17217766795B411E775AB2FBF4654148B12FAE3D6A5D41B1CD615C945064417A2B6AA7F4F35F41"}]}'
|
119
|
+
http_version: '1.1'
|
120
|
+
recorded_at: Wed, 23 May 2012 15:39:23 GMT
|
121
|
+
recorded_with: VCR 2.1.1
|
data/spec/fixtures/cassettes/CartoDB_client/should_execute_a_select_query_and_return_results.yml
ADDED
@@ -0,0 +1,615 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- &70295817892440 !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="3N8sTz6j8uLwFHvXcLlr4V1x2QtzVPjhOAjUNwIEP8",
|
30
|
+
oauth_signature="FD%2FDUCEKfpAOTabhZ8wDViQcsTw%3D", oauth_signature_method="HMAC-SHA1",
|
31
|
+
oauth_timestamp="1337787472", 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 15:37:53 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
|
+
Location:
|
53
|
+
- /tables/4713
|
54
|
+
Etag:
|
55
|
+
- ! '"269a1385280854c1d65484bfadb845e4"'
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Ua-Compatible:
|
59
|
+
- IE=Edge,chrome=1
|
60
|
+
Set-Cookie:
|
61
|
+
- _cartodb_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiIlYmU2MjFmZjRiY2E0NDQ3NzYyZDlmODg2NjA3ZDBjYzBJIiZ3YXJkZW4udXNlci5jYXJ0b2RiLXJiLWNsaWVudC5rZXkGOwBUSSIWY2FydG9kYi1yYi1jbGllbnQGOwBU--43e90877c996c9956f24b48822580bd1e701e562;
|
62
|
+
domain=.cartodb.com; path=/; HttpOnly
|
63
|
+
X-Runtime:
|
64
|
+
- '0.748308'
|
65
|
+
Content-Encoding:
|
66
|
+
- gzip
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: ! '{"id":4713,"name":"table_1","schema":[["cartodb_id","number"],["the_geom","geometry","geometry","point"],["description","string"],["name","string"],["created_at","date"],["updated_at","date"]]}'
|
70
|
+
http_version: '1.1'
|
71
|
+
recorded_at: Wed, 23 May 2012 15:37:53 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
75
|
+
body:
|
76
|
+
encoding: US-ASCII
|
77
|
+
string: ''
|
78
|
+
headers:
|
79
|
+
Accept:
|
80
|
+
- *70295817892440
|
81
|
+
Authorization:
|
82
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="H6AqGTsw7qxToOr7tCss700AFnuPCMFhU3ONUs839o",
|
83
|
+
oauth_signature="qmJnVRhRSMP6y3URHqnoBILGul0%3D", oauth_signature_method="HMAC-SHA1",
|
84
|
+
oauth_timestamp="1337787473", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
85
|
+
oauth_version="1.0"
|
86
|
+
response:
|
87
|
+
status:
|
88
|
+
code: 200
|
89
|
+
message: OK
|
90
|
+
headers:
|
91
|
+
Server:
|
92
|
+
- nginx
|
93
|
+
Date:
|
94
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
95
|
+
Content-Type:
|
96
|
+
- application/json; charset=utf-8
|
97
|
+
Connection:
|
98
|
+
- keep-alive
|
99
|
+
X-Powered-By:
|
100
|
+
- Express
|
101
|
+
Content-Disposition:
|
102
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:53
|
103
|
+
GMT";
|
104
|
+
Access-Control-Allow-Origin:
|
105
|
+
- ! '*'
|
106
|
+
Access-Control-Allow-Headers:
|
107
|
+
- X-Requested-With
|
108
|
+
Last-Modified:
|
109
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
110
|
+
Cache-Control:
|
111
|
+
- no-cache,max-age=3600,must-revalidate, public
|
112
|
+
X-Cache-Channel:
|
113
|
+
- cartodb_user_384_db:table_1
|
114
|
+
Content-Length:
|
115
|
+
- '350'
|
116
|
+
body:
|
117
|
+
encoding: ASCII-8BIT
|
118
|
+
string: ! '{"time":0.051,"total_rows":1,"rows":[{"id":1,"cartodb_id":1,"name":"fyizprbogdhuemw","description":"nkbxrjchegtfwsuavoqmldyzip","created_at":"2012-05-23T17:37:53.610Z","updated_at":"2012-05-23T17:37:53.610Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
119
|
+
http_version: '1.1'
|
120
|
+
recorded_at: Wed, 23 May 2012 15:37:53 GMT
|
121
|
+
- request:
|
122
|
+
method: post
|
123
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
124
|
+
body:
|
125
|
+
encoding: US-ASCII
|
126
|
+
string: ''
|
127
|
+
headers:
|
128
|
+
Accept:
|
129
|
+
- *70295817892440
|
130
|
+
Authorization:
|
131
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="N4QQM36oTI8r4fAhrTIRmHrvUl4oqZqJbloZvzEnY",
|
132
|
+
oauth_signature="TylvilY6kTcjUlKpGJS2aQEC0mE%3D", oauth_signature_method="HMAC-SHA1",
|
133
|
+
oauth_timestamp="1337787473", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
134
|
+
oauth_version="1.0"
|
135
|
+
response:
|
136
|
+
status:
|
137
|
+
code: 200
|
138
|
+
message: OK
|
139
|
+
headers:
|
140
|
+
Server:
|
141
|
+
- nginx
|
142
|
+
Date:
|
143
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
144
|
+
Content-Type:
|
145
|
+
- application/json; charset=utf-8
|
146
|
+
Connection:
|
147
|
+
- keep-alive
|
148
|
+
X-Powered-By:
|
149
|
+
- Express
|
150
|
+
Content-Disposition:
|
151
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:53
|
152
|
+
GMT";
|
153
|
+
Access-Control-Allow-Origin:
|
154
|
+
- ! '*'
|
155
|
+
Access-Control-Allow-Headers:
|
156
|
+
- X-Requested-With
|
157
|
+
Last-Modified:
|
158
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
159
|
+
Cache-Control:
|
160
|
+
- no-cache,max-age=3600,must-revalidate, public
|
161
|
+
X-Cache-Channel:
|
162
|
+
- cartodb_user_384_db:table_1
|
163
|
+
Content-Length:
|
164
|
+
- '350'
|
165
|
+
body:
|
166
|
+
encoding: ASCII-8BIT
|
167
|
+
string: ! '{"time":0.066,"total_rows":1,"rows":[{"id":2,"cartodb_id":2,"name":"vbtwuxmohijcprg","description":"zwbrdvxpoafteqimgyksjuhlnc","created_at":"2012-05-23T17:37:53.753Z","updated_at":"2012-05-23T17:37:53.753Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
168
|
+
http_version: '1.1'
|
169
|
+
recorded_at: Wed, 23 May 2012 15:37:53 GMT
|
170
|
+
- request:
|
171
|
+
method: post
|
172
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
173
|
+
body:
|
174
|
+
encoding: US-ASCII
|
175
|
+
string: ''
|
176
|
+
headers:
|
177
|
+
Accept:
|
178
|
+
- *70295817892440
|
179
|
+
Authorization:
|
180
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="sEAxEwoewPHy5XLNMv7OxtnOAQ5H9W8qDX2NUCSTg",
|
181
|
+
oauth_signature="JBOPwYyFmS2%2FvcaOgOle2M%2FAcUk%3D", oauth_signature_method="HMAC-SHA1",
|
182
|
+
oauth_timestamp="1337787473", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
183
|
+
oauth_version="1.0"
|
184
|
+
response:
|
185
|
+
status:
|
186
|
+
code: 200
|
187
|
+
message: OK
|
188
|
+
headers:
|
189
|
+
Server:
|
190
|
+
- nginx
|
191
|
+
Date:
|
192
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
193
|
+
Content-Type:
|
194
|
+
- application/json; charset=utf-8
|
195
|
+
Connection:
|
196
|
+
- keep-alive
|
197
|
+
X-Powered-By:
|
198
|
+
- Express
|
199
|
+
Content-Disposition:
|
200
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:53
|
201
|
+
GMT";
|
202
|
+
Access-Control-Allow-Origin:
|
203
|
+
- ! '*'
|
204
|
+
Access-Control-Allow-Headers:
|
205
|
+
- X-Requested-With
|
206
|
+
Last-Modified:
|
207
|
+
- Wed, 23 May 2012 15:37:53 GMT
|
208
|
+
Cache-Control:
|
209
|
+
- no-cache,max-age=3600,must-revalidate, public
|
210
|
+
X-Cache-Channel:
|
211
|
+
- cartodb_user_384_db:table_1
|
212
|
+
Content-Length:
|
213
|
+
- '350'
|
214
|
+
body:
|
215
|
+
encoding: ASCII-8BIT
|
216
|
+
string: ! '{"time":0.043,"total_rows":1,"rows":[{"id":3,"cartodb_id":3,"name":"rmhetpqojazicvf","description":"ixfhpkvduswlzbmynojacgtrqe","created_at":"2012-05-23T17:37:53.933Z","updated_at":"2012-05-23T17:37:53.933Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
217
|
+
http_version: '1.1'
|
218
|
+
recorded_at: Wed, 23 May 2012 15:37:53 GMT
|
219
|
+
- request:
|
220
|
+
method: post
|
221
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
222
|
+
body:
|
223
|
+
encoding: US-ASCII
|
224
|
+
string: ''
|
225
|
+
headers:
|
226
|
+
Accept:
|
227
|
+
- *70295817892440
|
228
|
+
Authorization:
|
229
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="7r8qEdOZZBVYTpgTBrGRbawS0ibktnZ010JjuTRNzw",
|
230
|
+
oauth_signature="fWssjYKL7d1OBo0p1bG3qYdnltM%3D", oauth_signature_method="HMAC-SHA1",
|
231
|
+
oauth_timestamp="1337787473", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
232
|
+
oauth_version="1.0"
|
233
|
+
response:
|
234
|
+
status:
|
235
|
+
code: 200
|
236
|
+
message: OK
|
237
|
+
headers:
|
238
|
+
Server:
|
239
|
+
- nginx
|
240
|
+
Date:
|
241
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
242
|
+
Content-Type:
|
243
|
+
- application/json; charset=utf-8
|
244
|
+
Connection:
|
245
|
+
- keep-alive
|
246
|
+
X-Powered-By:
|
247
|
+
- Express
|
248
|
+
Content-Disposition:
|
249
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:54
|
250
|
+
GMT";
|
251
|
+
Access-Control-Allow-Origin:
|
252
|
+
- ! '*'
|
253
|
+
Access-Control-Allow-Headers:
|
254
|
+
- X-Requested-With
|
255
|
+
Last-Modified:
|
256
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
257
|
+
Cache-Control:
|
258
|
+
- no-cache,max-age=3600,must-revalidate, public
|
259
|
+
X-Cache-Channel:
|
260
|
+
- cartodb_user_384_db:table_1
|
261
|
+
Content-Length:
|
262
|
+
- '350'
|
263
|
+
body:
|
264
|
+
encoding: ASCII-8BIT
|
265
|
+
string: ! '{"time":0.058,"total_rows":1,"rows":[{"id":4,"cartodb_id":4,"name":"dwsktfvhmbzuyxn","description":"ldasvconfbkxrpeugwqhymijtz","created_at":"2012-05-23T17:37:54.058Z","updated_at":"2012-05-23T17:37:54.058Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
266
|
+
http_version: '1.1'
|
267
|
+
recorded_at: Wed, 23 May 2012 15:37:54 GMT
|
268
|
+
- request:
|
269
|
+
method: post
|
270
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
271
|
+
body:
|
272
|
+
encoding: US-ASCII
|
273
|
+
string: ''
|
274
|
+
headers:
|
275
|
+
Accept:
|
276
|
+
- *70295817892440
|
277
|
+
Authorization:
|
278
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="HpAWMdwiGD4EPnNCG03wciD85hjtwPfezLyLlUuJeo8",
|
279
|
+
oauth_signature="twNH8hgEWpn%2BizksoYKZiuVi748%3D", oauth_signature_method="HMAC-SHA1",
|
280
|
+
oauth_timestamp="1337787474", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
281
|
+
oauth_version="1.0"
|
282
|
+
response:
|
283
|
+
status:
|
284
|
+
code: 200
|
285
|
+
message: OK
|
286
|
+
headers:
|
287
|
+
Server:
|
288
|
+
- nginx
|
289
|
+
Date:
|
290
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
291
|
+
Content-Type:
|
292
|
+
- application/json; charset=utf-8
|
293
|
+
Connection:
|
294
|
+
- keep-alive
|
295
|
+
X-Powered-By:
|
296
|
+
- Express
|
297
|
+
Content-Disposition:
|
298
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:54
|
299
|
+
GMT";
|
300
|
+
Access-Control-Allow-Origin:
|
301
|
+
- ! '*'
|
302
|
+
Access-Control-Allow-Headers:
|
303
|
+
- X-Requested-With
|
304
|
+
Last-Modified:
|
305
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
306
|
+
Cache-Control:
|
307
|
+
- no-cache,max-age=3600,must-revalidate, public
|
308
|
+
X-Cache-Channel:
|
309
|
+
- cartodb_user_384_db:table_1
|
310
|
+
Content-Length:
|
311
|
+
- '350'
|
312
|
+
body:
|
313
|
+
encoding: ASCII-8BIT
|
314
|
+
string: ! '{"time":0.077,"total_rows":1,"rows":[{"id":5,"cartodb_id":5,"name":"shpitbmfjerovgc","description":"vzfoqxwhybcdsnpakiugtrjelm","created_at":"2012-05-23T17:37:54.225Z","updated_at":"2012-05-23T17:37:54.225Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
315
|
+
http_version: '1.1'
|
316
|
+
recorded_at: Wed, 23 May 2012 15:37:54 GMT
|
317
|
+
- request:
|
318
|
+
method: post
|
319
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
320
|
+
body:
|
321
|
+
encoding: US-ASCII
|
322
|
+
string: ''
|
323
|
+
headers:
|
324
|
+
Accept:
|
325
|
+
- *70295817892440
|
326
|
+
Authorization:
|
327
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="tXbq9T295BjVjjwb2QSr93pqH3rSMktAWT6dq3EE",
|
328
|
+
oauth_signature="2l2%2BNwGOqQ561MZr4%2FP8zIjMSn8%3D", oauth_signature_method="HMAC-SHA1",
|
329
|
+
oauth_timestamp="1337787474", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
330
|
+
oauth_version="1.0"
|
331
|
+
response:
|
332
|
+
status:
|
333
|
+
code: 200
|
334
|
+
message: OK
|
335
|
+
headers:
|
336
|
+
Server:
|
337
|
+
- nginx
|
338
|
+
Date:
|
339
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
340
|
+
Content-Type:
|
341
|
+
- application/json; charset=utf-8
|
342
|
+
Connection:
|
343
|
+
- keep-alive
|
344
|
+
X-Powered-By:
|
345
|
+
- Express
|
346
|
+
Content-Disposition:
|
347
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:54
|
348
|
+
GMT";
|
349
|
+
Access-Control-Allow-Origin:
|
350
|
+
- ! '*'
|
351
|
+
Access-Control-Allow-Headers:
|
352
|
+
- X-Requested-With
|
353
|
+
Last-Modified:
|
354
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
355
|
+
Cache-Control:
|
356
|
+
- no-cache,max-age=3600,must-revalidate, public
|
357
|
+
X-Cache-Channel:
|
358
|
+
- cartodb_user_384_db:table_1
|
359
|
+
Content-Length:
|
360
|
+
- '350'
|
361
|
+
body:
|
362
|
+
encoding: ASCII-8BIT
|
363
|
+
string: ! '{"time":0.166,"total_rows":1,"rows":[{"id":6,"cartodb_id":6,"name":"qymjuracwnlgsbd","description":"ncpqijdysrwtmoluhzeagbxfkv","created_at":"2012-05-23T17:37:54.391Z","updated_at":"2012-05-23T17:37:54.391Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
364
|
+
http_version: '1.1'
|
365
|
+
recorded_at: Wed, 23 May 2012 15:37:54 GMT
|
366
|
+
- request:
|
367
|
+
method: post
|
368
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
369
|
+
body:
|
370
|
+
encoding: US-ASCII
|
371
|
+
string: ''
|
372
|
+
headers:
|
373
|
+
Accept:
|
374
|
+
- *70295817892440
|
375
|
+
Authorization:
|
376
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="aPDYbWt6AA6SC3WuRGOUPSzN5LAIHyoESImqsiAb8",
|
377
|
+
oauth_signature="b%2By606zb0ir8oKS%2FqLiAV7vIEqY%3D", oauth_signature_method="HMAC-SHA1",
|
378
|
+
oauth_timestamp="1337787474", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
379
|
+
oauth_version="1.0"
|
380
|
+
response:
|
381
|
+
status:
|
382
|
+
code: 200
|
383
|
+
message: OK
|
384
|
+
headers:
|
385
|
+
Server:
|
386
|
+
- nginx
|
387
|
+
Date:
|
388
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
389
|
+
Content-Type:
|
390
|
+
- application/json; charset=utf-8
|
391
|
+
Connection:
|
392
|
+
- keep-alive
|
393
|
+
X-Powered-By:
|
394
|
+
- Express
|
395
|
+
Content-Disposition:
|
396
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:54
|
397
|
+
GMT";
|
398
|
+
Access-Control-Allow-Origin:
|
399
|
+
- ! '*'
|
400
|
+
Access-Control-Allow-Headers:
|
401
|
+
- X-Requested-With
|
402
|
+
Last-Modified:
|
403
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
404
|
+
Cache-Control:
|
405
|
+
- no-cache,max-age=3600,must-revalidate, public
|
406
|
+
X-Cache-Channel:
|
407
|
+
- cartodb_user_384_db:table_1
|
408
|
+
Content-Length:
|
409
|
+
- '350'
|
410
|
+
body:
|
411
|
+
encoding: ASCII-8BIT
|
412
|
+
string: ! '{"time":0.054,"total_rows":1,"rows":[{"id":7,"cartodb_id":7,"name":"gkfspzujremlwon","description":"phseovcyurgkwxdatiflbzmnjq","created_at":"2012-05-23T17:37:54.665Z","updated_at":"2012-05-23T17:37:54.665Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
413
|
+
http_version: '1.1'
|
414
|
+
recorded_at: Wed, 23 May 2012 15:37:54 GMT
|
415
|
+
- request:
|
416
|
+
method: post
|
417
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
418
|
+
body:
|
419
|
+
encoding: US-ASCII
|
420
|
+
string: ''
|
421
|
+
headers:
|
422
|
+
Accept:
|
423
|
+
- *70295817892440
|
424
|
+
Authorization:
|
425
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="KJxcAxCsXxmHsdMdkJ2TJ2ukSWzExybCcCMEYM0qc",
|
426
|
+
oauth_signature="75iCre1mGhDZ59O88fhtXZxB3Gs%3D", oauth_signature_method="HMAC-SHA1",
|
427
|
+
oauth_timestamp="1337787474", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
428
|
+
oauth_version="1.0"
|
429
|
+
response:
|
430
|
+
status:
|
431
|
+
code: 200
|
432
|
+
message: OK
|
433
|
+
headers:
|
434
|
+
Server:
|
435
|
+
- nginx
|
436
|
+
Date:
|
437
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
438
|
+
Content-Type:
|
439
|
+
- application/json; charset=utf-8
|
440
|
+
Connection:
|
441
|
+
- keep-alive
|
442
|
+
X-Powered-By:
|
443
|
+
- Express
|
444
|
+
Content-Disposition:
|
445
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:54
|
446
|
+
GMT";
|
447
|
+
Access-Control-Allow-Origin:
|
448
|
+
- ! '*'
|
449
|
+
Access-Control-Allow-Headers:
|
450
|
+
- X-Requested-With
|
451
|
+
Last-Modified:
|
452
|
+
- Wed, 23 May 2012 15:37:54 GMT
|
453
|
+
Cache-Control:
|
454
|
+
- no-cache,max-age=3600,must-revalidate, public
|
455
|
+
X-Cache-Channel:
|
456
|
+
- cartodb_user_384_db:table_1
|
457
|
+
Content-Length:
|
458
|
+
- '350'
|
459
|
+
body:
|
460
|
+
encoding: ASCII-8BIT
|
461
|
+
string: ! '{"time":0.076,"total_rows":1,"rows":[{"id":8,"cartodb_id":8,"name":"jovqtlfhgwrknbc","description":"ovdwuksjptzicnemlgayqhbxrf","created_at":"2012-05-23T17:37:54.867Z","updated_at":"2012-05-23T17:37:54.867Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
462
|
+
http_version: '1.1'
|
463
|
+
recorded_at: Wed, 23 May 2012 15:37:54 GMT
|
464
|
+
- request:
|
465
|
+
method: post
|
466
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
467
|
+
body:
|
468
|
+
encoding: US-ASCII
|
469
|
+
string: ''
|
470
|
+
headers:
|
471
|
+
Accept:
|
472
|
+
- *70295817892440
|
473
|
+
Authorization:
|
474
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="6ivksK33KBZphdBPru0ZYBUrC3PbvX2WriAo3s",
|
475
|
+
oauth_signature="1Rb2kgOMH22npdOd4lsq9hGzxvQ%3D", oauth_signature_method="HMAC-SHA1",
|
476
|
+
oauth_timestamp="1337787474", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
477
|
+
oauth_version="1.0"
|
478
|
+
response:
|
479
|
+
status:
|
480
|
+
code: 200
|
481
|
+
message: OK
|
482
|
+
headers:
|
483
|
+
Server:
|
484
|
+
- nginx
|
485
|
+
Date:
|
486
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
487
|
+
Content-Type:
|
488
|
+
- application/json; charset=utf-8
|
489
|
+
Connection:
|
490
|
+
- keep-alive
|
491
|
+
X-Powered-By:
|
492
|
+
- Express
|
493
|
+
Content-Disposition:
|
494
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:55
|
495
|
+
GMT";
|
496
|
+
Access-Control-Allow-Origin:
|
497
|
+
- ! '*'
|
498
|
+
Access-Control-Allow-Headers:
|
499
|
+
- X-Requested-With
|
500
|
+
Last-Modified:
|
501
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
502
|
+
Cache-Control:
|
503
|
+
- no-cache,max-age=3600,must-revalidate, public
|
504
|
+
X-Cache-Channel:
|
505
|
+
- cartodb_user_384_db:table_1
|
506
|
+
Content-Length:
|
507
|
+
- '349'
|
508
|
+
body:
|
509
|
+
encoding: ASCII-8BIT
|
510
|
+
string: ! '{"time":0.08,"total_rows":1,"rows":[{"id":9,"cartodb_id":9,"name":"nxqotrljyvcdfsk","description":"zfloervxiuqspghyajdbwtmnck","created_at":"2012-05-23T17:37:55.032Z","updated_at":"2012-05-23T17:37:55.032Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
511
|
+
http_version: '1.1'
|
512
|
+
recorded_at: Wed, 23 May 2012 15:37:55 GMT
|
513
|
+
- request:
|
514
|
+
method: post
|
515
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
516
|
+
body:
|
517
|
+
encoding: US-ASCII
|
518
|
+
string: ''
|
519
|
+
headers:
|
520
|
+
Accept:
|
521
|
+
- *70295817892440
|
522
|
+
Authorization:
|
523
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="LlxEUT9raaRlCgEJg1kzQ6fOxDS8JYtOHe5qlkjIMg",
|
524
|
+
oauth_signature="9CyMsbbO66s%2BG0IPa%2FoWWHrMkXg%3D", oauth_signature_method="HMAC-SHA1",
|
525
|
+
oauth_timestamp="1337787475", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
526
|
+
oauth_version="1.0"
|
527
|
+
response:
|
528
|
+
status:
|
529
|
+
code: 200
|
530
|
+
message: OK
|
531
|
+
headers:
|
532
|
+
Server:
|
533
|
+
- nginx
|
534
|
+
Date:
|
535
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
536
|
+
Content-Type:
|
537
|
+
- application/json; charset=utf-8
|
538
|
+
Connection:
|
539
|
+
- keep-alive
|
540
|
+
X-Powered-By:
|
541
|
+
- Express
|
542
|
+
Content-Disposition:
|
543
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:55
|
544
|
+
GMT";
|
545
|
+
Access-Control-Allow-Origin:
|
546
|
+
- ! '*'
|
547
|
+
Access-Control-Allow-Headers:
|
548
|
+
- X-Requested-With
|
549
|
+
Last-Modified:
|
550
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
551
|
+
Cache-Control:
|
552
|
+
- no-cache,max-age=3600,must-revalidate, public
|
553
|
+
X-Cache-Channel:
|
554
|
+
- cartodb_user_384_db:table_1
|
555
|
+
Content-Length:
|
556
|
+
- '352'
|
557
|
+
body:
|
558
|
+
encoding: ASCII-8BIT
|
559
|
+
string: ! '{"time":0.072,"total_rows":1,"rows":[{"id":10,"cartodb_id":10,"name":"uoipjtlcfvwhrds","description":"nabtqehcvymjpsxurldfizkwgo","created_at":"2012-05-23T17:37:55.252Z","updated_at":"2012-05-23T17:37:55.252Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
560
|
+
http_version: '1.1'
|
561
|
+
recorded_at: Wed, 23 May 2012 15:37:55 GMT
|
562
|
+
- request:
|
563
|
+
method: post
|
564
|
+
uri: https://cartodb-rb-client.cartodb.com/api/v1/sql
|
565
|
+
body:
|
566
|
+
encoding: US-ASCII
|
567
|
+
string: ''
|
568
|
+
headers:
|
569
|
+
Accept:
|
570
|
+
- *70295817892440
|
571
|
+
Authorization:
|
572
|
+
- OAuth oauth_consumer_key="0gRpcgKQK8bpcvSzM5ED4NqaSbNQ8ivS4q0pVdJF", oauth_nonce="3pRZ4FkiO4YSYTV8015wtavQueAXiYR6xkpyd6KumqA",
|
573
|
+
oauth_signature="iTQCeHNTlvT91yjVGUtrVmmE8uQ%3D", oauth_signature_method="HMAC-SHA1",
|
574
|
+
oauth_timestamp="1337787475", oauth_token="7PalByYmKY8Dzh76fnt05e0YPXRJino0dyqHZYCw",
|
575
|
+
oauth_version="1.0"
|
576
|
+
response:
|
577
|
+
status:
|
578
|
+
code: 200
|
579
|
+
message: OK
|
580
|
+
headers:
|
581
|
+
Server:
|
582
|
+
- nginx
|
583
|
+
Date:
|
584
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
585
|
+
Content-Type:
|
586
|
+
- application/json; charset=utf-8
|
587
|
+
Transfer-Encoding:
|
588
|
+
- chunked
|
589
|
+
Connection:
|
590
|
+
- keep-alive
|
591
|
+
Vary:
|
592
|
+
- Accept-Encoding
|
593
|
+
X-Powered-By:
|
594
|
+
- Express
|
595
|
+
Content-Disposition:
|
596
|
+
- inline; filename=cartodb-query.json; modification-date="Wed, 23 May 2012 15:37:55
|
597
|
+
GMT";
|
598
|
+
Access-Control-Allow-Origin:
|
599
|
+
- ! '*'
|
600
|
+
Access-Control-Allow-Headers:
|
601
|
+
- X-Requested-With
|
602
|
+
Last-Modified:
|
603
|
+
- Wed, 23 May 2012 15:37:55 GMT
|
604
|
+
Cache-Control:
|
605
|
+
- no-cache,max-age=3600,must-revalidate, public
|
606
|
+
X-Cache-Channel:
|
607
|
+
- cartodb_user_384_db:table_1
|
608
|
+
Content-Encoding:
|
609
|
+
- gzip
|
610
|
+
body:
|
611
|
+
encoding: ASCII-8BIT
|
612
|
+
string: ! '{"time":0.006,"total_rows":10,"rows":[{"cartodb_id":1,"name":"fyizprbogdhuemw","description":"nkbxrjchegtfwsuavoqmldyzip","created_at":"2012-05-23T17:37:53.610Z","updated_at":"2012-05-23T17:37:53.610Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":2,"name":"vbtwuxmohijcprg","description":"zwbrdvxpoafteqimgyksjuhlnc","created_at":"2012-05-23T17:37:53.753Z","updated_at":"2012-05-23T17:37:53.753Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":3,"name":"rmhetpqojazicvf","description":"ixfhpkvduswlzbmynojacgtrqe","created_at":"2012-05-23T17:37:53.933Z","updated_at":"2012-05-23T17:37:53.933Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":4,"name":"dwsktfvhmbzuyxn","description":"ldasvconfbkxrpeugwqhymijtz","created_at":"2012-05-23T17:37:54.058Z","updated_at":"2012-05-23T17:37:54.058Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":5,"name":"shpitbmfjerovgc","description":"vzfoqxwhybcdsnpakiugtrjelm","created_at":"2012-05-23T17:37:54.225Z","updated_at":"2012-05-23T17:37:54.225Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":6,"name":"qymjuracwnlgsbd","description":"ncpqijdysrwtmoluhzeagbxfkv","created_at":"2012-05-23T17:37:54.391Z","updated_at":"2012-05-23T17:37:54.391Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":7,"name":"gkfspzujremlwon","description":"phseovcyurgkwxdatiflbzmnjq","created_at":"2012-05-23T17:37:54.665Z","updated_at":"2012-05-23T17:37:54.665Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":8,"name":"jovqtlfhgwrknbc","description":"ovdwuksjptzicnemlgayqhbxrf","created_at":"2012-05-23T17:37:54.867Z","updated_at":"2012-05-23T17:37:54.867Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":9,"name":"nxqotrljyvcdfsk","description":"zfloervxiuqspghyajdbwtmnck","created_at":"2012-05-23T17:37:55.032Z","updated_at":"2012-05-23T17:37:55.032Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"},{"cartodb_id":10,"name":"uoipjtlcfvwhrds","description":"nabtqehcvymjpsxurldfizkwgo","created_at":"2012-05-23T17:37:55.252Z","updated_at":"2012-05-23T17:37:55.252Z","the_geom":"0101000020E61000000005DD5ED2980DC0CBDB114E0B364440","the_geom_webmercator":"0101000020110F00008EC91342FF2219C107FF7B4B00CC5241"}]}'
|
613
|
+
http_version: '1.1'
|
614
|
+
recorded_at: Wed, 23 May 2012 15:37:55 GMT
|
615
|
+
recorded_with: VCR 2.1.1
|