cartodb-rb-client 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/.gitignore +0 -1
  2. data/.rvmrc +1 -2
  3. data/README.markdown +12 -1
  4. data/cartodb-rb-client.gemspec +1 -1
  5. data/lib/cartodb-rb-client.rb +1 -0
  6. data/lib/cartodb-rb-client/cartodb/client/authorization.rb +7 -1
  7. data/lib/cartodb-rb-client/cartodb/client/connection/base.rb +2 -2
  8. data/lib/cartodb-rb-client/version.rb +1 -1
  9. data/spec/client_spec.rb +1 -1
  10. data/spec/fixtures/cassettes/CartoDB_client/should_add_and_remove_colums_in_a_previously_created_table.yml +527 -268
  11. data/spec/fixtures/cassettes/CartoDB_client/should_allow_reserved_words_in_columns_names.yml +243 -80
  12. data/spec/fixtures/cassettes/CartoDB_client/should_change_a_previously_created_column.yml +309 -121
  13. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_and_get_its_table_definition.yml +1611 -100
  14. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_forcing_the_schema_and_get_its_table_definition.yml +258 -83
  15. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_from_a_csv_file.yml +2028 -1052
  16. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTILINESTRING_type_geometry.yml +259 -83
  17. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_MULTIPOLYGON_type_geometry.yml +258 -83
  18. data/spec/fixtures/cassettes/CartoDB_client/should_create_a_table_with_POINT_type_geometry.yml +542 -85
  19. data/spec/fixtures/cassettes/CartoDB_client/should_delete_a_table_s_row.yml +342 -153
  20. data/spec/fixtures/cassettes/CartoDB_client/should_drop_a_table.yml +297 -195
  21. data/spec/fixtures/cassettes/CartoDB_client/should_escape_properly_input_data_in_insert_queries.yml +254 -80
  22. data/spec/fixtures/cassettes/CartoDB_client/should_execute_a_select_query_and_return_results.yml +806 -434
  23. data/spec/fixtures/cassettes/CartoDB_client/should_get_a_table_by_its_name.yml +258 -83
  24. data/spec/fixtures/cassettes/CartoDB_client/should_import_any_kind_of_data_file.yml +752 -413
  25. data/spec/fixtures/cassettes/CartoDB_client/should_insert_a_row_in_a_table.yml +316 -80
  26. data/spec/fixtures/cassettes/CartoDB_client/should_paginate_records.yml +2942 -1924
  27. data/spec/fixtures/cassettes/CartoDB_client/should_rename_an_existing_table.yml +259 -83
  28. data/spec/fixtures/cassettes/CartoDB_client/should_return_errors_on_invalid_queries.yml +105 -32
  29. data/spec/fixtures/cassettes/CartoDB_client/should_return_nil_when_requesting_a_table_which_does_not_exists.yml +190 -40
  30. data/spec/fixtures/cassettes/CartoDB_client/should_return_user_s_table_list.yml +188 -120
  31. data/spec/fixtures/cassettes/CartoDB_client/should_update_a_row_in_a_table.yml +292 -115
  32. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_destroy_a_previously_created_record.yml +1544 -1022
  33. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_initialize_attributes_of_the_model_without_persisting_them.yml +900 -160
  34. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_save_method.yml +1571 -1031
  35. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_persist_into_cartodb_using_the_static_create_method.yml +1447 -950
  36. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_save_polygons_in_different_formats.yml +1485 -948
  37. data/spec/fixtures/cassettes/CartoDB_model_data_methods/should_update_an_existing_record.yml +2363 -1535
  38. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_add_more_columns_if_the_table_previously_exists.yml +1267 -748
  39. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_contain_an_array_of_columns.yml +1620 -1056
  40. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_a_table_with_custom_name_if_specified.yml +276 -189
  41. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_custom_data_types_columns.yml +444 -300
  42. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_model_with_polygon_type_geometry_columns.yml +411 -190
  43. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_create_the_table_in_cartodb_if_it_doesn_t_exists.yml +830 -562
  44. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_CartoDB_Client_instance_as_a_connection_object.yml +778 -489
  45. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_have_a_valid_table_name.yml +765 -522
  46. data/spec/fixtures/cassettes/CartoDB_model_metadata_methods/should_return_only_data_columns.yml +880 -613
  47. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_allow_to_select_the_specified_fiels.yml +25627 -17752
  48. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_count_all_records.yml +22192 -15387
  49. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_find_a_record_by_its_id.yml +21667 -15012
  50. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_order_results.yml +23508 -16246
  51. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_paginate_results.yml +35431 -24288
  52. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_return_all_records_paginated.yml +23505 -16294
  53. data/spec/fixtures/cassettes/CartoDB_model_scopes/should_search_records_by_certain_filters.yml +5898 -3768
  54. data/spec/fixtures/cassettes/cartodb_spec_models.yml +2806 -1864
  55. data/spec/fixtures/cassettes/clean_tables.yml +170 -212
  56. data/spec/spec_helper.rb +45 -92
  57. data/spec/support/cartodb_config.yml +11 -0
  58. data/spec/support/cartodb_config.yml.sample +5 -4
  59. metadata +16 -6
@@ -0,0 +1,11 @@
1
+ #############################
2
+ # CartoDB Credentials
3
+ #############################
4
+ host: https://cartodb-rb-client.cartodb.com
5
+ api_key: 242015a0c60666b5cdff0ce614334668817b52ac
6
+
7
+ #password: foobar
8
+ # cache_timeout: 60
9
+ # debug: true
10
+ # ssl_peer_verification: true
11
+ # type_casting: true
@@ -2,10 +2,11 @@
2
2
  # CartoDB Credentials
3
3
  #############################
4
4
  host:
5
- oauth_key:
6
- oauth_secret:
7
- oauth_access_token:
8
- oauth_access_token_secret:
5
+ api_key:
6
+ # oauth_key:
7
+ # oauth_secret:
8
+ # oauth_access_token:
9
+ # oauth_access_token_secret:
9
10
  # username:
10
11
  # password:
11
12
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartodb-rb-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Fernando Espinosa
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-25 00:00:00 Z
18
+ date: 2012-08-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: typhoeus
@@ -142,7 +142,7 @@ dependencies:
142
142
  requirement: &id008 !ruby/object:Gem::Requirement
143
143
  none: false
144
144
  requirements:
145
- - - "="
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  hash: 51
148
148
  segments:
@@ -150,6 +150,14 @@ dependencies:
150
150
  - 11
151
151
  - 0
152
152
  version: 0.11.0
153
+ - - <=
154
+ - !ruby/object:Gem::Version
155
+ hash: 47
156
+ segments:
157
+ - 0
158
+ - 13
159
+ - 2
160
+ version: 0.13.2
153
161
  type: :runtime
154
162
  version_requirements: *id008
155
163
  - !ruby/object:Gem::Dependency
@@ -272,6 +280,7 @@ files:
272
280
  - spec/model/scopes_spec.rb
273
281
  - spec/model_specs_helper.rb
274
282
  - spec/spec_helper.rb
283
+ - spec/support/cartodb_config.yml
275
284
  - spec/support/cartodb_config.yml.sample
276
285
  - spec/support/cartodb_factories.rb
277
286
  - spec/support/cartodb_helpers.rb
@@ -328,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
337
  requirements: []
329
338
 
330
339
  rubyforge_project: cartodb-rb-client
331
- rubygems_version: 1.8.17
340
+ rubygems_version: 1.8.24
332
341
  signing_key:
333
342
  specification_version: 3
334
343
  summary: Ruby client for the cartoDB API
@@ -385,6 +394,7 @@ test_files:
385
394
  - spec/model/scopes_spec.rb
386
395
  - spec/model_specs_helper.rb
387
396
  - spec/spec_helper.rb
397
+ - spec/support/cartodb_config.yml
388
398
  - spec/support/cartodb_config.yml.sample
389
399
  - spec/support/cartodb_factories.rb
390
400
  - spec/support/cartodb_helpers.rb