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,493 @@
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
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0NjozOSBHTVQ=
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
+ IjA3OGY5MzZlY2E5NWNmMWFjNjBjNjVhZDQ0Y2ZmMmI1Ig==
58
+ !binary "Q2FjaGUtQ29udHJvbA==":
59
+ - !binary |-
60
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
61
+ !binary "WC1VYS1Db21wYXRpYmxl":
62
+ - !binary |-
63
+ SUU9RWRnZSxjaHJvbWU9MQ==
64
+ !binary "U2V0LUNvb2tpZQ==":
65
+ - !binary |-
66
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
67
+ UmlJbE1qWTRZMlJtTldKa09UUm1OelZsWmpObU1EQXdPR1k1Tm1RMFkyVTJZ
68
+ ekZKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
69
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS02
70
+ ZTc0NGM3YjcwNmQ1NjcwYjQzOWQyOWM5MmMzNjg3NTU3ZGRkMzUyOyBkb21h
71
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
72
+ !binary "WC1SdW50aW1l":
73
+ - !binary |-
74
+ MC4wMDc0Mzc=
75
+ !binary "Q29udGVudC1FbmNvZGluZw==":
76
+ - !binary |-
77
+ Z3ppcA==
78
+ body:
79
+ encoding: ASCII-8BIT
80
+ string: !binary |-
81
+ eyJ0b3RhbF9lbnRyaWVzIjoxLCJ0YWJsZXMiOlt7ImlkIjo4MjE0LCJuYW1l
82
+ IjoiY3VzdG9tX2RhdGFfdHlwZV9jb2x1bW5fbW9kZWwiLCJwcml2YWN5Ijoi
83
+ UFVCTElDIiwidGFncyI6IiIsInNjaGVtYSI6W1siY2FydG9kYl9pZCIsIm51
84
+ bWJlciJdLFsidGhlX2dlb20iLCJnZW9tZXRyeSIsImdlb21ldHJ5IiwicG9p
85
+ bnQiXSxbImRlc2NyaXB0aW9uIiwic3RyaW5nIl0sWyJuYW1lIiwic3RyaW5n
86
+ Il0sWyJ0ZXN0IiwibnVtYmVyIl0sWyJjcmVhdGVkX2F0IiwiZGF0ZSJdLFsi
87
+ dXBkYXRlZF9hdCIsImRhdGUiXV0sInVwZGF0ZWRfYXQiOiIyMDEyLTA4LTIw
88
+ VDEyOjQ2OjM4KzAyOjAwIiwicm93c19jb3VudGVkIjowfV19
89
+ http_version: !binary |-
90
+ MS4x
91
+ recorded_at: Mon, 20 Aug 2012 10:46:39 GMT
92
+ - request:
93
+ method: delete
94
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/custom_data_type_column_model?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
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MCBHTVQ=
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
+ UmlJbFl6Z3pZamxqTnpsaE1tRTRZMk5qT1Rrek1UTmtaVE00Wm1NNE16TmhO
138
+ bVpKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
139
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS1h
140
+ YmRkOWJhMDRkMWRkMzg5MzFmNTkyMDhiNjdlZjUzYTY4Yzg1NzEyOyBkb21h
141
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
142
+ !binary "WC1SdW50aW1l":
143
+ - !binary |-
144
+ MC4xOTY5NTg=
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:46:40 GMT
155
+ - request:
156
+ method: get
157
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/polygon_geometry_model?api_key=242015a0c60666b5cdff0ce614334668817b52ac
158
+ body:
159
+ encoding: US-ASCII
160
+ string: ''
161
+ headers:
162
+ Accept:
163
+ - *70293202938040
164
+ response:
165
+ status:
166
+ code: 404
167
+ message: !binary |-
168
+ Tm90IEZvdW5k
169
+ headers:
170
+ !binary "U2VydmVy":
171
+ - !binary |-
172
+ bmdpbng=
173
+ !binary "RGF0ZQ==":
174
+ - !binary |-
175
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MCBHTVQ=
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
+ NDA0IE5vdCBGb3VuZA==
191
+ !binary "Q2FjaGUtQ29udHJvbA==":
192
+ - !binary |-
193
+ bm8tY2FjaGU=
194
+ !binary "WC1VYS1Db21wYXRpYmxl":
195
+ - !binary |-
196
+ SUU9RWRnZSxjaHJvbWU9MQ==
197
+ !binary "U2V0LUNvb2tpZQ==":
198
+ - !binary |-
199
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
200
+ UmlJbFlqSm1ZakJoWmpNMU1UTTROek00Tm1FM05EQmhOVFZtTjJFMlpHUXdO
201
+ emRKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
202
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS05
203
+ N2YzNWJhOWJjN2JjNWY2MTZlZDNmMTk1NDY5OWI0YWFjYTY2Y2UyOyBkb21h
204
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
205
+ !binary "WC1SdW50aW1l":
206
+ - !binary |-
207
+ MC4wNTc4NjM=
208
+ !binary "Q29udGVudC1FbmNvZGluZw==":
209
+ - !binary |-
210
+ Z3ppcA==
211
+ body:
212
+ encoding: ASCII-8BIT
213
+ string: !binary |-
214
+ IA==
215
+ http_version: !binary |-
216
+ MS4x
217
+ recorded_at: Mon, 20 Aug 2012 10:46:40 GMT
218
+ - request:
219
+ method: get
220
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/polygon_geometry_model?api_key=242015a0c60666b5cdff0ce614334668817b52ac
221
+ body:
222
+ encoding: US-ASCII
223
+ string: ''
224
+ headers:
225
+ Accept:
226
+ - *70293202938040
227
+ response:
228
+ status:
229
+ code: 404
230
+ message: !binary |-
231
+ Tm90IEZvdW5k
232
+ headers:
233
+ !binary "U2VydmVy":
234
+ - !binary |-
235
+ bmdpbng=
236
+ !binary "RGF0ZQ==":
237
+ - !binary |-
238
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MCBHTVQ=
239
+ !binary "Q29udGVudC1UeXBl":
240
+ - !binary |-
241
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
242
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
243
+ - !binary |-
244
+ Y2h1bmtlZA==
245
+ !binary "Q29ubmVjdGlvbg==":
246
+ - !binary |-
247
+ a2VlcC1hbGl2ZQ==
248
+ !binary "VmFyeQ==":
249
+ - !binary |-
250
+ QWNjZXB0LUVuY29kaW5n
251
+ !binary "U3RhdHVz":
252
+ - !binary |-
253
+ NDA0IE5vdCBGb3VuZA==
254
+ !binary "Q2FjaGUtQ29udHJvbA==":
255
+ - !binary |-
256
+ bm8tY2FjaGU=
257
+ !binary "WC1VYS1Db21wYXRpYmxl":
258
+ - !binary |-
259
+ SUU9RWRnZSxjaHJvbWU9MQ==
260
+ !binary "U2V0LUNvb2tpZQ==":
261
+ - !binary |-
262
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
263
+ UmlJbE5qSmlZVFpqWWpsbE1tUXpaREV3WlRVNVlXTTRPR1ZqT1RCallqZ3dN
264
+ V05KSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
265
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS1l
266
+ NzBiOTg1NTYxYmRlNDc3NjY4NzBmMGE2N2I1MjdlNTk0MmJhZGZmOyBkb21h
267
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
268
+ !binary "WC1SdW50aW1l":
269
+ - !binary |-
270
+ MC4wMDM4NDM=
271
+ !binary "Q29udGVudC1FbmNvZGluZw==":
272
+ - !binary |-
273
+ Z3ppcA==
274
+ body:
275
+ encoding: ASCII-8BIT
276
+ string: !binary |-
277
+ IA==
278
+ http_version: !binary |-
279
+ MS4x
280
+ recorded_at: Mon, 20 Aug 2012 10:46:40 GMT
281
+ - request:
282
+ method: post
283
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables
284
+ body:
285
+ encoding: US-ASCII
286
+ string: ''
287
+ headers:
288
+ Accept:
289
+ - *70293202938040
290
+ response:
291
+ status:
292
+ code: 200
293
+ message: !binary |-
294
+ T0s=
295
+ headers:
296
+ !binary "U2VydmVy":
297
+ - !binary |-
298
+ bmdpbng=
299
+ !binary "RGF0ZQ==":
300
+ - !binary |-
301
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MSBHTVQ=
302
+ !binary "Q29udGVudC1UeXBl":
303
+ - !binary |-
304
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
305
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
306
+ - !binary |-
307
+ Y2h1bmtlZA==
308
+ !binary "Q29ubmVjdGlvbg==":
309
+ - !binary |-
310
+ a2VlcC1hbGl2ZQ==
311
+ !binary "VmFyeQ==":
312
+ - !binary |-
313
+ QWNjZXB0LUVuY29kaW5n
314
+ !binary "U3RhdHVz":
315
+ - !binary |-
316
+ MjAwIE9L
317
+ !binary "TG9jYXRpb24=":
318
+ - !binary |-
319
+ L3RhYmxlcy84MjE1
320
+ !binary "RXRhZw==":
321
+ - !binary |-
322
+ IjkxNDZhNmZiOTMzYjI4MjQzMDdlYWY0NTIxOWNhYjliIg==
323
+ !binary "Q2FjaGUtQ29udHJvbA==":
324
+ - !binary |-
325
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
326
+ !binary "WC1VYS1Db21wYXRpYmxl":
327
+ - !binary |-
328
+ SUU9RWRnZSxjaHJvbWU9MQ==
329
+ !binary "U2V0LUNvb2tpZQ==":
330
+ - !binary |-
331
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
332
+ UmlJbE1HWTRZVEJsTW1GaFpXVmhaREZtTm1WaE16STBNMlpsTVRZM05UWXpO
333
+ amhKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
334
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS01
335
+ NzRmOTNjYzE3MjZlN2ZjZTUyM2E3MzgzZTU1MWMyYmY0ZDQyZmIzOyBkb21h
336
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
337
+ !binary "WC1SdW50aW1l":
338
+ - !binary |-
339
+ MC44ODc0Nzc=
340
+ !binary "Q29udGVudC1FbmNvZGluZw==":
341
+ - !binary |-
342
+ Z3ppcA==
343
+ body:
344
+ encoding: ASCII-8BIT
345
+ string: !binary |-
346
+ eyJpZCI6ODIxNSwibmFtZSI6InBvbHlnb25fZ2VvbWV0cnlfbW9kZWwiLCJz
347
+ Y2hlbWEiOltbImNhcnRvZGJfaWQiLCJudW1iZXIiXSxbInRoZV9nZW9tIiwi
348
+ Z2VvbWV0cnkiLCJnZW9tZXRyeSIsIm11bHRpcG9seWdvbiJdLFsiZGVzY3Jp
349
+ cHRpb24iLCJzdHJpbmciXSxbIm5hbWUiLCJzdHJpbmciXSxbImNyZWF0ZWRf
350
+ YXQiLCJkYXRlIl0sWyJ1cGRhdGVkX2F0IiwiZGF0ZSJdXX0=
351
+ http_version: !binary |-
352
+ MS4x
353
+ recorded_at: Mon, 20 Aug 2012 10:46:41 GMT
354
+ - request:
355
+ method: post
356
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/polygon_geometry_model/columns
357
+ body:
358
+ encoding: US-ASCII
359
+ string: ''
360
+ headers:
361
+ Accept:
362
+ - *70293202938040
363
+ response:
364
+ status:
365
+ code: 200
366
+ message: !binary |-
367
+ T0s=
368
+ headers:
369
+ !binary "U2VydmVy":
370
+ - !binary |-
371
+ bmdpbng=
372
+ !binary "RGF0ZQ==":
373
+ - !binary |-
374
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MSBHTVQ=
375
+ !binary "Q29udGVudC1UeXBl":
376
+ - !binary |-
377
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
378
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
379
+ - !binary |-
380
+ Y2h1bmtlZA==
381
+ !binary "Q29ubmVjdGlvbg==":
382
+ - !binary |-
383
+ a2VlcC1hbGl2ZQ==
384
+ !binary "VmFyeQ==":
385
+ - !binary |-
386
+ QWNjZXB0LUVuY29kaW5n
387
+ !binary "U3RhdHVz":
388
+ - !binary |-
389
+ MjAwIE9L
390
+ !binary "RXRhZw==":
391
+ - !binary |-
392
+ IjJiMjlkNmQ1NTYwNGY2Y2M5ZGQyMzFiMzlmNmEwNjJjIg==
393
+ !binary "Q2FjaGUtQ29udHJvbA==":
394
+ - !binary |-
395
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
396
+ !binary "WC1VYS1Db21wYXRpYmxl":
397
+ - !binary |-
398
+ SUU9RWRnZSxjaHJvbWU9MQ==
399
+ !binary "U2V0LUNvb2tpZQ==":
400
+ - !binary |-
401
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
402
+ UmlJbFpUQm1NR0kwWVRFeU1EaGxOakprWkRRMU5tTTNZMlZqTnpFek9UY3pa
403
+ REJKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
404
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS1j
405
+ ZDhjNDY2ZTU5YjQzMWQ2NDlkNWY0NDY5OWZmMjJjYTljMzBiY2FjOyBkb21h
406
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
407
+ !binary "WC1SdW50aW1l":
408
+ - !binary |-
409
+ MC4wOTk3Mjk=
410
+ !binary "Q29udGVudC1FbmNvZGluZw==":
411
+ - !binary |-
412
+ Z3ppcA==
413
+ body:
414
+ encoding: ASCII-8BIT
415
+ string: !binary |-
416
+ eyJuYW1lIjoiYW5vdGhlcl9jb2x1bW4iLCJ0eXBlIjoidGV4dCIsImNhcnRv
417
+ ZGJfdHlwZSI6InN0cmluZyJ9
418
+ http_version: !binary |-
419
+ MS4x
420
+ recorded_at: Mon, 20 Aug 2012 10:46:41 GMT
421
+ - request:
422
+ method: get
423
+ uri: https://cartodb-rb-client.cartodb.com/api/v1/tables/polygon_geometry_model?api_key=242015a0c60666b5cdff0ce614334668817b52ac
424
+ body:
425
+ encoding: US-ASCII
426
+ string: ''
427
+ headers:
428
+ Accept:
429
+ - *70293202938040
430
+ response:
431
+ status:
432
+ code: 200
433
+ message: !binary |-
434
+ T0s=
435
+ headers:
436
+ !binary "U2VydmVy":
437
+ - !binary |-
438
+ bmdpbng=
439
+ !binary "RGF0ZQ==":
440
+ - !binary |-
441
+ TW9uLCAyMCBBdWcgMjAxMiAxMDo0Njo0MSBHTVQ=
442
+ !binary "Q29udGVudC1UeXBl":
443
+ - !binary |-
444
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
445
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
446
+ - !binary |-
447
+ Y2h1bmtlZA==
448
+ !binary "Q29ubmVjdGlvbg==":
449
+ - !binary |-
450
+ a2VlcC1hbGl2ZQ==
451
+ !binary "VmFyeQ==":
452
+ - !binary |-
453
+ QWNjZXB0LUVuY29kaW5n
454
+ !binary "U3RhdHVz":
455
+ - !binary |-
456
+ MjAwIE9L
457
+ !binary "RXRhZw==":
458
+ - !binary |-
459
+ IjM3OTAyMDZlMDQyYjY1MzEzNjhhZGY5NjdmYTAwNGU5Ig==
460
+ !binary "Q2FjaGUtQ29udHJvbA==":
461
+ - !binary |-
462
+ bWF4LWFnZT0wLCBwcml2YXRlLCBtdXN0LXJldmFsaWRhdGU=
463
+ !binary "WC1VYS1Db21wYXRpYmxl":
464
+ - !binary |-
465
+ SUU9RWRnZSxjaHJvbWU9MQ==
466
+ !binary "U2V0LUNvb2tpZQ==":
467
+ - !binary |-
468
+ X2NhcnRvZGJfc2Vzc2lvbj1CQWg3QjBraUQzTmxjM05wYjI1ZmFXUUdPZ1pG
469
+ UmlJbE1EUmpOalZtTVRNd00yUmlOVGszWkdZNFptUTFNV0UzWVRKbU9UVmtO
470
+ elZKSWlaM1lYSmtaVzR1ZFhObGNpNWpZWEowYjJSaUxYSmlMV05zYVdWdWRD
471
+ NXJaWGtHT3dCVVNTSVdZMkZ5ZEc5a1lpMXlZaTFqYkdsbGJuUUdPd0JVLS0y
472
+ NmQ1MDJkZWM2OGQ3Y2MxNTM1YTE1YmI0MTg4NTUwYjVlMTg0ZmVhOyBkb21h
473
+ aW49LmNhcnRvZGIuY29tOyBwYXRoPS87IEh0dHBPbmx5
474
+ !binary "WC1SdW50aW1l":
475
+ - !binary |-
476
+ MC4wMTE1NTI=
477
+ !binary "Q29udGVudC1FbmNvZGluZw==":
478
+ - !binary |-
479
+ Z3ppcA==
480
+ body:
481
+ encoding: ASCII-8BIT
482
+ string: !binary |-
483
+ eyJpZCI6ODIxNSwibmFtZSI6InBvbHlnb25fZ2VvbWV0cnlfbW9kZWwiLCJw
484
+ cml2YWN5IjoiUFVCTElDIiwidGFncyI6IiIsInNjaGVtYSI6W1siY2FydG9k
485
+ Yl9pZCIsIm51bWJlciJdLFsidGhlX2dlb20iLCJnZW9tZXRyeSIsImdlb21l
486
+ dHJ5IiwibXVsdGlwb2x5Z29uIl0sWyJhbm90aGVyX2NvbHVtbiIsInN0cmlu
487
+ ZyJdLFsiZGVzY3JpcHRpb24iLCJzdHJpbmciXSxbIm5hbWUiLCJzdHJpbmci
488
+ XSxbImNyZWF0ZWRfYXQiLCJkYXRlIl0sWyJ1cGRhdGVkX2F0IiwiZGF0ZSJd
489
+ XX0=
490
+ http_version: !binary |-
491
+ MS4x
492
+ recorded_at: Mon, 20 Aug 2012 10:46:41 GMT
493
+ recorded_with: VCR 2.2.4