cartodb-rb-client-rails-322 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/.gitignore +5 -0
  2. data/.rvmrc +1 -0
  3. data/.travis.yml +15 -0
  4. data/Gemfile +15 -0
  5. data/LICENSE +28 -0
  6. data/README.markdown +365 -0
  7. data/Rakefile +10 -0
  8. data/cartodb-rb-client.gemspec +34 -0
  9. data/lib/cartodb-rb-client.rb +18 -0
  10. data/lib/cartodb-rb-client/cartodb.rb +6 -0
  11. data/lib/cartodb-rb-client/cartodb/client.rb +4 -0
  12. data/lib/cartodb-rb-client/cartodb/client/authorization.rb +92 -0
  13. data/lib/cartodb-rb-client/cartodb/client/cache.rb +14 -0
  14. data/lib/cartodb-rb-client/cartodb/client/connection.rb +4 -0
  15. data/lib/cartodb-rb-client/cartodb/client/connection/base.rb +44 -0
  16. data/lib/cartodb-rb-client/cartodb/client/connection/cartodb.rb +280 -0
  17. data/lib/cartodb-rb-client/cartodb/client/connection/postgres.rb +255 -0
  18. data/lib/cartodb-rb-client/cartodb/client/error.rb +68 -0
  19. data/lib/cartodb-rb-client/cartodb/client/utils.rb +20 -0
  20. data/lib/cartodb-rb-client/cartodb/helpers.rb +1 -0
  21. data/lib/cartodb-rb-client/cartodb/helpers/sql_helper.rb +36 -0
  22. data/lib/cartodb-rb-client/cartodb/init.rb +30 -0
  23. data/lib/cartodb-rb-client/cartodb/libs.rb +2 -0
  24. data/lib/cartodb-rb-client/cartodb/libs/object.rb +15 -0
  25. data/lib/cartodb-rb-client/cartodb/libs/string.rb +116 -0
  26. data/lib/cartodb-rb-client/cartodb/model.rb +11 -0
  27. data/lib/cartodb-rb-client/cartodb/model/base.rb +20 -0
  28. data/lib/cartodb-rb-client/cartodb/model/constants.rb +30 -0
  29. data/lib/cartodb-rb-client/cartodb/model/defaults.rb +15 -0
  30. data/lib/cartodb-rb-client/cartodb/model/geo.rb +101 -0
  31. data/lib/cartodb-rb-client/cartodb/model/getters.rb +75 -0
  32. data/lib/cartodb-rb-client/cartodb/model/persistence.rb +69 -0
  33. data/lib/cartodb-rb-client/cartodb/model/query.rb +66 -0
  34. data/lib/cartodb-rb-client/cartodb/model/schema.rb +121 -0
  35. data/lib/cartodb-rb-client/cartodb/model/scope.rb +163 -0
  36. data/lib/cartodb-rb-client/cartodb/model/setters.rb +37 -0
  37. data/lib/cartodb-rb-client/cartodb/types.rb +2 -0
  38. data/lib/cartodb-rb-client/cartodb/types/metadata.rb +97 -0
  39. data/lib/cartodb-rb-client/cartodb/types/pg_result.rb +17 -0
  40. data/lib/cartodb-rb-client/install_utils.rb +19 -0
  41. data/lib/cartodb-rb-client/version.rb +7 -0
  42. data/run_tests.sh +6 -0
  43. data/spec/client_spec.rb +357 -0
  44. data/spec/fixtures/cassettes/CartoDB_client/should_add_and_remove_colums_in_a_previously_created_table.yml +635 -0
  45. data/spec/fixtures/cassettes/CartoDB_client/should_allow_reserved_words_in_columns_names.yml +284 -0
  46. data/spec/fixtures/cassettes/CartoDB_client/should_change_a_previously_created_column.yml +362 -0
  47. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_and_get_its_table_definition.yml +1634 -0
  48. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_forcing_the_schema_and_get_its_table_definition.yml +298 -0
  49. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_from_a_csv_file.yml +2947 -0
  50. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTILINESTRING_type_geometry.yml +299 -0
  51. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTIPOLYGON_type_geometry.yml +298 -0
  52. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_POINT_type_geometry.yml +580 -0
  53. data/spec/fixtures/cassettes/CartoDB_client/should_delete_a_table_s_row.yml +410 -0
  54. data/spec/fixtures/cassettes/CartoDB_client/should_drop_a_table.yml +380 -0
  55. data/spec/fixtures/cassettes/CartoDB_client/should_escape_properly_input_data_in_insert_queries.yml +295 -0
  56. data/spec/fixtures/cassettes/CartoDB_client/should_execute_a_select_query_and_return_results.yml +987 -0
  57. data/spec/fixtures/cassettes/CartoDB_client/should_get_a_table_by_its_name.yml +298 -0
  58. data/spec/fixtures/cassettes/CartoDB_client/should_import_any_kind_of_data_file.yml +6951 -0
  59. data/spec/fixtures/cassettes/CartoDB_client/should_insert_a_row_in_a_table.yml +357 -0
  60. data/spec/fixtures/cassettes/CartoDB_client/should_paginate_records.yml +3642 -0
  61. data/spec/fixtures/cassettes/CartoDB_client/should_rename_an_existing_table.yml +299 -0
  62. data/spec/fixtures/cassettes/CartoDB_client/should_return_errors_on_invalid_queries.yml +132 -0
  63. data/spec/fixtures/cassettes/CartoDB_client/should_return_nil_when_requesting_a_table_which_does_not_exists.yml +218 -0
  64. data/spec/fixtures/cassettes/CartoDB_client/should_return_user_s_table_list.yml +244 -0
  65. data/spec/fixtures/cassettes/CartoDB_client/should_update_a_row_in_a_table.yml +347 -0
  66. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_destroy_a_previously_created_record.yml +1920 -0
  67. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_initialize_attributes_of_the_model_without_persisting_them.yml +963 -0
  68. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_save_method.yml +1946 -0
  69. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_static_create_method.yml +1796 -0
  70. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_save_polygons_in_different_formats.yml +1801 -0
  71. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_update_an_existing_record.yml +2856 -0
  72. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_add_more_columns_if_the_table_previously_exists.yml +1509 -0
  73. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_contain_an_array_of_columns.yml +2007 -0
  74. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_a_table_with_custom_name_if_specified.yml +357 -0
  75. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_custom_data_types_columns.yml +565 -0
  76. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_polygon_type_geometry_columns.yml +493 -0
  77. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_the_table_in_cartodb_if_it_doesn_t_exists.yml +1048 -0
  78. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_CartoDB_Client_instance_as_a_connection_object.yml +971 -0
  79. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_table_name.yml +970 -0
  80. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_return_only_data_columns.yml +1096 -0
  81. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_allow_to_select_the_specified_fiels.yml +25828 -0
  82. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_count_all_records.yml +22401 -0
  83. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_find_a_record_by_its_id.yml +21852 -0
  84. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_order_results.yml +23701 -0
  85. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_paginate_results.yml +35644 -0
  86. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_return_all_records_paginated.yml +23699 -0
  87. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_search_records_by_certain_filters.yml +7080 -0
  88. data/spec/fixtures/cassettes/cartodb_spec_models.yml +3409 -0
  89. data/spec/fixtures/cassettes/clean_tables.yml +224 -0
  90. data/spec/model/data_spec.rb +157 -0
  91. data/spec/model/metadata_spec.rb +124 -0
  92. data/spec/model/scopes_spec.rb +171 -0
  93. data/spec/model_specs_helper.rb +2 -0
  94. data/spec/spec_helper.rb +54 -0
  95. data/spec/support/cartodb_config.yml +11 -0
  96. data/spec/support/cartodb_config.yml.sample +16 -0
  97. data/spec/support/cartodb_factories.rb +33 -0
  98. data/spec/support/cartodb_helpers.rb +14 -0
  99. data/spec/support/cartodb_models.rb +29 -0
  100. data/spec/support/data/110m-glaciated-areas.zip +0 -0
  101. data/spec/support/data/CartoDB_csv_export.zip +0 -0
  102. data/spec/support/data/CartoDB_shp_export.zip +0 -0
  103. data/spec/support/data/rmnp.kml +51 -0
  104. data/spec/support/data/states.kml.zip +0 -0
  105. data/spec/support/database.yml +5 -0
  106. data/spec/support/shp/cereal.dbf +0 -0
  107. data/spec/support/shp/cereal.shp +0 -0
  108. data/spec/support/shp/cereal.shx +0 -0
  109. data/spec/support/shp/cereal.zip +0 -0
  110. data/spec/support/shp/parcelas.dbf +0 -0
  111. data/spec/support/shp/parcelas.shp +0 -0
  112. data/spec/support/shp/parcelas.shx +0 -0
  113. data/spec/support/shp/parcelas.zip +0 -0
  114. data/spec/support/shp/zonas.dbf +0 -0
  115. data/spec/support/shp/zonas.shp +0 -0
  116. data/spec/support/shp/zonas.shx +0 -0
  117. data/spec/support/shp/zonas.zip +0 -0
  118. data/spec/support/whs_features.csv +315 -0
  119. data/spec/support/whs_features.csv.zip +0 -0
  120. data/spec/support/whs_features_temp.csv +315 -0
  121. metadata +400 -0
@@ -0,0 +1,635 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables?api_key=242015a0c60666b5cdff0ce614334668817b52ac
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - &70293202938040 !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:
22
+ registered: true
23
+ url:
24
+ - IANA
25
+ - RFC4627
26
+ obsolete:
27
+ docs:
28
+ response:
29
+ status:
30
+ code: 200
31
+ message: !binary |-
32
+ T0s=
33
+ headers:
34
+ !binary "U2VydmVy":
35
+ - !binary |-
36
+ bmdpbng=
37
+ !binary "RGF0ZQ==":
38
+ - !binary |-
39
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNCBHTVQ=
40
+ !binary "Q29udGVudC1UeXBl":
41
+ - !binary |-
42
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
43
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
44
+ - !binary |-
45
+ Y2h1bmtlZA==
46
+ !binary "Q29ubmVjdGlvbg==":
47
+ - !binary |-
48
+ a2VlcC1hbGl2ZQ==
49
+ !binary "VmFyeQ==":
50
+ - !binary |-
51
+ QWNjZXB0LUVuY29kaW5n
52
+ !binary "U3RhdHVz":
53
+ - !binary |-
54
+ MjAwIE9L
55
+ !binary "RXRhZw==":
56
+ - !binary |-
57
+ IjIxNDcxMzhjYmI3NTE5ZmYyYjNkMzI3N2Q5N2JjZmZkIg==
58
+ !binary "Q2FjaGUtQ29udHJvbA==":
59
+ - !binary |-
60
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
61
+ !binary "WC1VYS1Db21wYXRpYmxl":
62
+ - !binary |-
63
+ SUU9RWRnZSxjaHJvbWU9MQ==
64
+ !binary "U2V0LUNvb2tpZQ==":
65
+ - !binary |-
66
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
67
+ UmlJbFlUVTFZekE0WWpNMFl6WTVPVEUxWTJFeU5tRXpaV00yWmpNM016TTBN
68
+ amxKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
69
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS1k
70
+ ZWQ2NzExMjQxOWMxM2NhMmMxMTliNDk3MDNkMjM2NjdmOWFkMWJjOyBkb21h
71
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
72
+ !binary "WC1SdW50aW1l":
73
+ - !binary |-
74
+ MC4wMDg1Mzg=
75
+ !binary "Q29udGVudC1FbmNvZGluZw==":
76
+ - !binary |-
77
+ Z3ppcA==
78
+ body:
79
+ encoding: ASCII-8BIT
80
+ string: !binary |-
81
+ eyJ0b3RhbF9lbnRyaWVzIjoxLCJ0YWJsZXMiOlt7ImlkIjo4MTgzLCJuYW1l
82
+ IjoiY2FydG9kYl9zcGVjIiwicHJpdmFjeSI6IlBVQkxJQyIsInRhZ3MiOiIi
83
+ LCJzY2hlbWEiOltbImNhcnRvZGJfaWQiLCJudW1iZXIiXSxbInRoZV9nZW9t
84
+ IiwiZ2VvbWV0cnkiLCJnZW9tZXRyeSIsIm11bHRpbGluZXN0cmluZyJdLFsi
85
+ ZGVzY3JpcHRpb24iLCJzdHJpbmciXSxbIm5hbWUiLCJzdHJpbmciXSxbImNy
86
+ ZWF0ZWRfYXQiLCJkYXRlIl0sWyJ1cGRhdGVkX2F0IiwiZGF0ZSJdXSwidXBk
87
+ YXRlZF9hdCI6IjIwMTItMDgtMjBUMTI6NDU6MTMrMDI6MDAiLCJyb3dzX2Nv
88
+ dW50ZWQiOjB9XX0=
89
+ http_version: !binary |-
90
+ MS4x
91
+ recorded_at: Mon, 20 Aug 2012 10:45:14 GMT
92
+ - request:
93
+ method: delete
94
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec?api_key=242015a0c60666b5cdff0ce614334668817b52ac
95
+ body:
96
+ encoding: US-ASCII
97
+ string: ''
98
+ headers:
99
+ Accept:
100
+ - *70293202938040
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: !binary |-
105
+ T0s=
106
+ headers:
107
+ !binary "U2VydmVy":
108
+ - !binary |-
109
+ bmdpbng=
110
+ !binary "RGF0ZQ==":
111
+ - !binary |-
112
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNCBHTVQ=
113
+ !binary "Q29udGVudC1UeXBl":
114
+ - !binary |-
115
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
116
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
117
+ - !binary |-
118
+ Y2h1bmtlZA==
119
+ !binary "Q29ubmVjdGlvbg==":
120
+ - !binary |-
121
+ a2VlcC1hbGl2ZQ==
122
+ !binary "VmFyeQ==":
123
+ - !binary |-
124
+ QWNjZXB0LUVuY29kaW5n
125
+ !binary "U3RhdHVz":
126
+ - !binary |-
127
+ MjAwIE9L
128
+ !binary "Q2FjaGUtQ29udHJvbA==":
129
+ - !binary |-
130
+ bm8tY2FjaGU=
131
+ !binary "WC1VYS1Db21wYXRpYmxl":
132
+ - !binary |-
133
+ SUU9RWRnZSxjaHJvbWU9MQ==
134
+ !binary "U2V0LUNvb2tpZQ==":
135
+ - !binary |-
136
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
137
+ UmlJbFkyVTBZamRsWmpVelltSmtPVFJrTkdWaE5HWmpOV1ppTWpFeFl6Wmta
138
+ R0ZKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
139
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS0y
140
+ YzEyNDA1YjJjMmE4ZGZkMDNlNjk5NWRjM2NmZjFmZTlkYWMzYmVjOyBkb21h
141
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
142
+ !binary "WC1SdW50aW1l":
143
+ - !binary |-
144
+ MC4xNzEwNjI=
145
+ !binary "Q29udGVudC1FbmNvZGluZw==":
146
+ - !binary |-
147
+ Z3ppcA==
148
+ body:
149
+ encoding: ASCII-8BIT
150
+ string: !binary |-
151
+ IA==
152
+ http_version: !binary |-
153
+ MS4x
154
+ recorded_at: Mon, 20 Aug 2012 10:45:14 GMT
155
+ - request:
156
+ method: post
157
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
158
+ body:
159
+ encoding: US-ASCII
160
+ string: ''
161
+ headers:
162
+ Accept:
163
+ - *70293202938040
164
+ response:
165
+ status:
166
+ code: 200
167
+ message: !binary |-
168
+ T0s=
169
+ headers:
170
+ !binary "U2VydmVy":
171
+ - !binary |-
172
+ bmdpbng=
173
+ !binary "RGF0ZQ==":
174
+ - !binary |-
175
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNSBHTVQ=
176
+ !binary "Q29udGVudC1UeXBl":
177
+ - !binary |-
178
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
179
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
180
+ - !binary |-
181
+ Y2h1bmtlZA==
182
+ !binary "Q29ubmVjdGlvbg==":
183
+ - !binary |-
184
+ a2VlcC1hbGl2ZQ==
185
+ !binary "VmFyeQ==":
186
+ - !binary |-
187
+ QWNjZXB0LUVuY29kaW5n
188
+ !binary "U3RhdHVz":
189
+ - !binary |-
190
+ MjAwIE9L
191
+ !binary "TG9jYXRpb24=":
192
+ - !binary |-
193
+ L3RhYmxlcy84MTg0
194
+ !binary "RXRhZw==":
195
+ - !binary |-
196
+ IjMwZmNmYzcwMWQ0N2U3OTZhNzgwZDk3MjVkOTVjNzcxIg==
197
+ !binary "Q2FjaGUtQ29udHJvbA==":
198
+ - !binary |-
199
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
200
+ !binary "WC1VYS1Db21wYXRpYmxl":
201
+ - !binary |-
202
+ SUU9RWRnZSxjaHJvbWU9MQ==
203
+ !binary "U2V0LUNvb2tpZQ==":
204
+ - !binary |-
205
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
206
+ UmlJbFptVTNORGN3T0RjNE1ERm1PV1UxWTJVeU56YzRNall6TlRJME5UZ3lP
207
+ VEZKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
208
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS05
209
+ MDA0N2Y1MjkxNjc1NzQxYWUxYTliMzQ1ZTczNTQzZDcxNzJjYWY0OyBkb21h
210
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
211
+ !binary "WC1SdW50aW1l":
212
+ - !binary |-
213
+ MC41ODY4MTc=
214
+ !binary "Q29udGVudC1FbmNvZGluZw==":
215
+ - !binary |-
216
+ Z3ppcA==
217
+ body:
218
+ encoding: ASCII-8BIT
219
+ string: !binary |-
220
+ eyJpZCI6ODE4NCwibmFtZSI6ImNhcnRvZGJfc3BlYyIsInNjaGVtYSI6W1si
221
+ Y2FydG9kYl9pZCIsIm51bWJlciJdLFsidGhlX2dlb20iLCJnZW9tZXRyeSIs
222
+ Imdlb21ldHJ5IiwicG9pbnQiXSxbImRlc2NyaXB0aW9uIiwic3RyaW5nIl0s
223
+ WyJuYW1lIiwic3RyaW5nIl0sWyJjcmVhdGVkX2F0IiwiZGF0ZSJdLFsidXBk
224
+ YXRlZF9hdCIsImRhdGUiXV19
225
+ http_version: !binary |-
226
+ MS4x
227
+ recorded_at: Mon, 20 Aug 2012 10:45:15 GMT
228
+ - request:
229
+ method: post
230
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec/columns
231
+ body:
232
+ encoding: US-ASCII
233
+ string: ''
234
+ headers:
235
+ Accept:
236
+ - *70293202938040
237
+ response:
238
+ status:
239
+ code: 200
240
+ message: !binary |-
241
+ T0s=
242
+ headers:
243
+ !binary "U2VydmVy":
244
+ - !binary |-
245
+ bmdpbng=
246
+ !binary "RGF0ZQ==":
247
+ - !binary |-
248
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNSBHTVQ=
249
+ !binary "Q29udGVudC1UeXBl":
250
+ - !binary |-
251
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
252
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
253
+ - !binary |-
254
+ Y2h1bmtlZA==
255
+ !binary "Q29ubmVjdGlvbg==":
256
+ - !binary |-
257
+ a2VlcC1hbGl2ZQ==
258
+ !binary "VmFyeQ==":
259
+ - !binary |-
260
+ QWNjZXB0LUVuY29kaW5n
261
+ !binary "U3RhdHVz":
262
+ - !binary |-
263
+ MjAwIE9L
264
+ !binary "RXRhZw==":
265
+ - !binary |-
266
+ IjE0MTUwYzdmMTk4OWY3ODE3Njg1ZDgxMDE0MDE2NmI3Ig==
267
+ !binary "Q2FjaGUtQ29udHJvbA==":
268
+ - !binary |-
269
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
270
+ !binary "WC1VYS1Db21wYXRpYmxl":
271
+ - !binary |-
272
+ SUU9RWRnZSxjaHJvbWU9MQ==
273
+ !binary "U2V0LUNvb2tpZQ==":
274
+ - !binary |-
275
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
276
+ UmlJbE4yVmlPVEk1TnpnMFpqVmhNalUwWm1Nek1qWXhaVFE0WlRObE9XVTJZ
277
+ bUpKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
278
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS03
279
+ NDUwYjZiYWNkMjEyMmZiZjFjYzYyMjMzNGNmZDg0MjE3MjU3ODUzOyBkb21h
280
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
281
+ !binary "WC1SdW50aW1l":
282
+ - !binary |-
283
+ MC4wODI1OTQ=
284
+ !binary "Q29udGVudC1FbmNvZGluZw==":
285
+ - !binary |-
286
+ Z3ppcA==
287
+ body:
288
+ encoding: ASCII-8BIT
289
+ string: !binary |-
290
+ eyJuYW1lIjoiZmllbGQxIiwidHlwZSI6InRleHQiLCJjYXJ0b2RiX3R5cGUi
291
+ OiJzdHJpbmcifQ==
292
+ http_version: !binary |-
293
+ MS4x
294
+ recorded_at: Mon, 20 Aug 2012 10:45:15 GMT
295
+ - request:
296
+ method: post
297
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec/columns
298
+ body:
299
+ encoding: US-ASCII
300
+ string: ''
301
+ headers:
302
+ Accept:
303
+ - *70293202938040
304
+ response:
305
+ status:
306
+ code: 200
307
+ message: !binary |-
308
+ T0s=
309
+ headers:
310
+ !binary "U2VydmVy":
311
+ - !binary |-
312
+ bmdpbng=
313
+ !binary "RGF0ZQ==":
314
+ - !binary |-
315
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNSBHTVQ=
316
+ !binary "Q29udGVudC1UeXBl":
317
+ - !binary |-
318
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
319
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
320
+ - !binary |-
321
+ Y2h1bmtlZA==
322
+ !binary "Q29ubmVjdGlvbg==":
323
+ - !binary |-
324
+ a2VlcC1hbGl2ZQ==
325
+ !binary "VmFyeQ==":
326
+ - !binary |-
327
+ QWNjZXB0LUVuY29kaW5n
328
+ !binary "U3RhdHVz":
329
+ - !binary |-
330
+ MjAwIE9L
331
+ !binary "RXRhZw==":
332
+ - !binary |-
333
+ IjQwZGFmOGJlOGEwNGQ1N2RlN2M4MzQyZTU4MDg3Njg4Ig==
334
+ !binary "Q2FjaGUtQ29udHJvbA==":
335
+ - !binary |-
336
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
337
+ !binary "WC1VYS1Db21wYXRpYmxl":
338
+ - !binary |-
339
+ SUU9RWRnZSxjaHJvbWU9MQ==
340
+ !binary "U2V0LUNvb2tpZQ==":
341
+ - !binary |-
342
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
343
+ UmlJbE56YzRNekF6WXpZeU1EbGhZVGcyWVdWbE5tSmlOVEkwWldZek5HWmhZ
344
+ V0pKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
345
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS1i
346
+ ODhjYWY5MGNjNDIxNTFjMWMzYzAyOTFjNmVlMDNiYzllNjkwZTExOyBkb21h
347
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
348
+ !binary "WC1SdW50aW1l":
349
+ - !binary |-
350
+ MC4wMzE2Mzc=
351
+ !binary "Q29udGVudC1FbmNvZGluZw==":
352
+ - !binary |-
353
+ Z3ppcA==
354
+ body:
355
+ encoding: ASCII-8BIT
356
+ string: !binary |-
357
+ eyJuYW1lIjoiZmllbGQyIiwidHlwZSI6Im51bWVyaWMiLCJjYXJ0b2RiX3R5
358
+ cGUiOiJudW1iZXIifQ==
359
+ http_version: !binary |-
360
+ MS4x
361
+ recorded_at: Mon, 20 Aug 2012 10:45:15 GMT
362
+ - request:
363
+ method: post
364
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec/columns
365
+ body:
366
+ encoding: US-ASCII
367
+ string: ''
368
+ headers:
369
+ Accept:
370
+ - *70293202938040
371
+ response:
372
+ status:
373
+ code: 200
374
+ message: !binary |-
375
+ T0s=
376
+ headers:
377
+ !binary "U2VydmVy":
378
+ - !binary |-
379
+ bmdpbng=
380
+ !binary "RGF0ZQ==":
381
+ - !binary |-
382
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNSBHTVQ=
383
+ !binary "Q29udGVudC1UeXBl":
384
+ - !binary |-
385
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
386
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
387
+ - !binary |-
388
+ Y2h1bmtlZA==
389
+ !binary "Q29ubmVjdGlvbg==":
390
+ - !binary |-
391
+ a2VlcC1hbGl2ZQ==
392
+ !binary "VmFyeQ==":
393
+ - !binary |-
394
+ QWNjZXB0LUVuY29kaW5n
395
+ !binary "U3RhdHVz":
396
+ - !binary |-
397
+ MjAwIE9L
398
+ !binary "RXRhZw==":
399
+ - !binary |-
400
+ IjFlYTQwMmNkNWViYWI0NzQxYmU3YTA4ZTg3MjRkZjc3Ig==
401
+ !binary "Q2FjaGUtQ29udHJvbA==":
402
+ - !binary |-
403
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
404
+ !binary "WC1VYS1Db21wYXRpYmxl":
405
+ - !binary |-
406
+ SUU9RWRnZSxjaHJvbWU9MQ==
407
+ !binary "U2V0LUNvb2tpZQ==":
408
+ - !binary |-
409
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
410
+ UmlJbFkyUXlPR015TVdNNE1qVm1OelUwTVRkaE1qQTJOVGN4TjJObE5qYzNN
411
+ MkpKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
412
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS0y
413
+ NDg2ZDliNDA1ZDJjMTNjNmMwZmY1NDU3NDg3ZTYzNGI2OGZkNzM1OyBkb21h
414
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
415
+ !binary "WC1SdW50aW1l":
416
+ - !binary |-
417
+ MC4wMjk5MTA=
418
+ !binary "Q29udGVudC1FbmNvZGluZw==":
419
+ - !binary |-
420
+ Z3ppcA==
421
+ body:
422
+ encoding: ASCII-8BIT
423
+ string: !binary |-
424
+ eyJuYW1lIjoiZmllbGQzIiwidHlwZSI6InRpbWVzdGFtcCIsImNhcnRvZGJf
425
+ dHlwZSI6ImRhdGUifQ==
426
+ http_version: !binary |-
427
+ MS4x
428
+ recorded_at: Mon, 20 Aug 2012 10:45:15 GMT
429
+ - request:
430
+ method: get
431
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec?api_key=242015a0c60666b5cdff0ce614334668817b52ac
432
+ body:
433
+ encoding: US-ASCII
434
+ string: ''
435
+ headers:
436
+ Accept:
437
+ - *70293202938040
438
+ response:
439
+ status:
440
+ code: 200
441
+ message: !binary |-
442
+ T0s=
443
+ headers:
444
+ !binary "U2VydmVy":
445
+ - !binary |-
446
+ bmdpbng=
447
+ !binary "RGF0ZQ==":
448
+ - !binary |-
449
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNSBHTVQ=
450
+ !binary "Q29udGVudC1UeXBl":
451
+ - !binary |-
452
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
453
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
454
+ - !binary |-
455
+ Y2h1bmtlZA==
456
+ !binary "Q29ubmVjdGlvbg==":
457
+ - !binary |-
458
+ a2VlcC1hbGl2ZQ==
459
+ !binary "VmFyeQ==":
460
+ - !binary |-
461
+ QWNjZXB0LUVuY29kaW5n
462
+ !binary "U3RhdHVz":
463
+ - !binary |-
464
+ MjAwIE9L
465
+ !binary "RXRhZw==":
466
+ - !binary |-
467
+ ImZiNDE5ZWNkYmVlNzYxMDdlNGIxNmViYTU3ZTIxMGQyIg==
468
+ !binary "Q2FjaGUtQ29udHJvbA==":
469
+ - !binary |-
470
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
471
+ !binary "WC1VYS1Db21wYXRpYmxl":
472
+ - !binary |-
473
+ SUU9RWRnZSxjaHJvbWU9MQ==
474
+ !binary "U2V0LUNvb2tpZQ==":
475
+ - !binary |-
476
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
477
+ UmlJbE5EWm1Nek00WkRjek9UVTVZekJqT0dNME5URXdPRGRrWmpNMU9ERm1N
478
+ MlpKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
479
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS0w
480
+ MTc5ZjgwMTQwZmZmNmQ3YjhmMDBmZTUxZWU4MGJlOWUxYzUwNzE2OyBkb21h
481
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
482
+ !binary "WC1SdW50aW1l":
483
+ - !binary |-
484
+ MC4wMTEzODU=
485
+ !binary "Q29udGVudC1FbmNvZGluZw==":
486
+ - !binary |-
487
+ Z3ppcA==
488
+ body:
489
+ encoding: ASCII-8BIT
490
+ string: !binary |-
491
+ eyJpZCI6ODE4NCwibmFtZSI6ImNhcnRvZGJfc3BlYyIsInByaXZhY3kiOiJQ
492
+ VUJMSUMiLCJ0YWdzIjoiIiwic2NoZW1hIjpbWyJjYXJ0b2RiX2lkIiwibnVt
493
+ YmVyIl0sWyJ0aGVfZ2VvbSIsImdlb21ldHJ5IiwiZ2VvbWV0cnkiLCJwb2lu
494
+ dCJdLFsiZGVzY3JpcHRpb24iLCJzdHJpbmciXSxbImZpZWxkMSIsInN0cmlu
495
+ ZyJdLFsiZmllbGQyIiwibnVtYmVyIl0sWyJmaWVsZDMiLCJkYXRlIl0sWyJu
496
+ YW1lIiwic3RyaW5nIl0sWyJjcmVhdGVkX2F0IiwiZGF0ZSJdLFsidXBkYXRl
497
+ ZF9hdCIsImRhdGUiXV19
498
+ http_version: !binary |-
499
+ MS4x
500
+ recorded_at: Mon, 20 Aug 2012 10:45:15 GMT
501
+ - request:
502
+ method: delete
503
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec/columns/field3?api_key=242015a0c60666b5cdff0ce614334668817b52ac
504
+ body:
505
+ encoding: US-ASCII
506
+ string: ''
507
+ headers:
508
+ Accept:
509
+ - *70293202938040
510
+ response:
511
+ status:
512
+ code: 200
513
+ message: !binary |-
514
+ T0s=
515
+ headers:
516
+ !binary "U2VydmVy":
517
+ - !binary |-
518
+ bmdpbng=
519
+ !binary "RGF0ZQ==":
520
+ - !binary |-
521
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNiBHTVQ=
522
+ !binary "Q29udGVudC1UeXBl":
523
+ - !binary |-
524
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
525
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
526
+ - !binary |-
527
+ Y2h1bmtlZA==
528
+ !binary "Q29ubmVjdGlvbg==":
529
+ - !binary |-
530
+ a2VlcC1hbGl2ZQ==
531
+ !binary "VmFyeQ==":
532
+ - !binary |-
533
+ QWNjZXB0LUVuY29kaW5n
534
+ !binary "U3RhdHVz":
535
+ - !binary |-
536
+ MjAwIE9L
537
+ !binary "Q2FjaGUtQ29udHJvbA==":
538
+ - !binary |-
539
+ bm8tY2FjaGU=
540
+ !binary "WC1VYS1Db21wYXRpYmxl":
541
+ - !binary |-
542
+ SUU9RWRnZSxjaHJvbWU9MQ==
543
+ !binary "U2V0LUNvb2tpZQ==":
544
+ - !binary |-
545
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
546
+ UmlJbE9HWTVNakl6TVRObVpUZzJNVEprTVRVNE1HSXdNVEV3WVdJeVl6QTFP
547
+ REpKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
548
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS0y
549
+ OWZlYmM0YTUzNjc3YTg5ZDBiZGU1MzY2ZTA0YjliNDhiZDNiOGVlOyBkb21h
550
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
551
+ !binary "WC1SdW50aW1l":
552
+ - !binary |-
553
+ MC4yNzA5NTU=
554
+ !binary "Q29udGVudC1FbmNvZGluZw==":
555
+ - !binary |-
556
+ Z3ppcA==
557
+ body:
558
+ encoding: ASCII-8BIT
559
+ string: !binary |-
560
+ IA==
561
+ http_version: !binary |-
562
+ MS4x
563
+ recorded_at: Mon, 20 Aug 2012 10:45:16 GMT
564
+ - request:
565
+ method: get
566
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/cartodb_spec?api_key=242015a0c60666b5cdff0ce614334668817b52ac
567
+ body:
568
+ encoding: US-ASCII
569
+ string: ''
570
+ headers:
571
+ Accept:
572
+ - *70293202938040
573
+ response:
574
+ status:
575
+ code: 200
576
+ message: !binary |-
577
+ T0s=
578
+ headers:
579
+ !binary "U2VydmVy":
580
+ - !binary |-
581
+ bmdpbng=
582
+ !binary "RGF0ZQ==":
583
+ - !binary |-
584
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NToxNiBHTVQ=
585
+ !binary "Q29udGVudC1UeXBl":
586
+ - !binary |-
587
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
588
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
589
+ - !binary |-
590
+ Y2h1bmtlZA==
591
+ !binary "Q29ubmVjdGlvbg==":
592
+ - !binary |-
593
+ a2VlcC1hbGl2ZQ==
594
+ !binary "VmFyeQ==":
595
+ - !binary |-
596
+ QWNjZXB0LUVuY29kaW5n
597
+ !binary "U3RhdHVz":
598
+ - !binary |-
599
+ MjAwIE9L
600
+ !binary "RXRhZw==":
601
+ - !binary |-
602
+ IjA3YzViOGFmZDVkMzM5MzAxOTRmODUyNzM3ZjUyMzQ1Ig==
603
+ !binary "Q2FjaGUtQ29udHJvbA==":
604
+ - !binary |-
605
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
606
+ !binary "WC1VYS1Db21wYXRpYmxl":
607
+ - !binary |-
608
+ SUU9RWRnZSxjaHJvbWU9MQ==
609
+ !binary "U2V0LUNvb2tpZQ==":
610
+ - !binary |-
611
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
612
+ UmlJbFltSXlPV1kzTVdWa1pqZGtOMk5rWmpJek4yVXlPVEkxTnpBeFlqRmtN
613
+ REJKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
614
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS05
615
+ YzRhZjZkZmI3NmVlM2Q4ZmIyMTE0NjU2M2MyZDg5OTk5M2FmYjBhOyBkb21h
616
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
617
+ !binary "WC1SdW50aW1l":
618
+ - !binary |-
619
+ MC4wNzEyNTA=
620
+ !binary "Q29udGVudC1FbmNvZGluZw==":
621
+ - !binary |-
622
+ Z3ppcA==
623
+ body:
624
+ encoding: ASCII-8BIT
625
+ string: !binary |-
626
+ eyJpZCI6ODE4NCwibmFtZSI6ImNhcnRvZGJfc3BlYyIsInByaXZhY3kiOiJQ
627
+ VUJMSUMiLCJ0YWdzIjoiIiwic2NoZW1hIjpbWyJjYXJ0b2RiX2lkIiwibnVt
628
+ YmVyIl0sWyJ0aGVfZ2VvbSIsImdlb21ldHJ5IiwiZ2VvbWV0cnkiLCJwb2lu
629
+ dCJdLFsiZGVzY3JpcHRpb24iLCJzdHJpbmciXSxbImZpZWxkMSIsInN0cmlu
630
+ ZyJdLFsiZmllbGQyIiwibnVtYmVyIl0sWyJuYW1lIiwic3RyaW5nIl0sWyJj
631
+ cmVhdGVkX2F0IiwiZGF0ZSJdLFsidXBkYXRlZF9hdCIsImRhdGUiXV19
632
+ http_version: !binary |-
633
+ MS4x
634
+ recorded_at: Mon, 20 Aug 2012 10:45:16 GMT
635
+ recorded_with: VCR 2.2.4