cartodb-rb-client 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/.gitignore +5 -0
  2. data/.rvmrc +2 -0
  3. data/Gemfile +12 -0
  4. data/LICENSE +28 -0
  5. data/README.markdown +324 -0
  6. data/Rakefile +10 -0
  7. data/cartodb-rb-client.gemspec +34 -0
  8. data/lib/cartodb-rb-client/cartodb/client/authorization.rb +58 -0
  9. data/lib/cartodb-rb-client/cartodb/client/cache.rb +14 -0
  10. data/lib/cartodb-rb-client/cartodb/client/connection/base.rb +44 -0
  11. data/lib/cartodb-rb-client/cartodb/client/connection/cartodb.rb +231 -0
  12. data/lib/cartodb-rb-client/cartodb/client/connection/postgres.rb +255 -0
  13. data/lib/cartodb-rb-client/cartodb/client/connection.rb +4 -0
  14. data/lib/cartodb-rb-client/cartodb/client/error.rb +68 -0
  15. data/lib/cartodb-rb-client/cartodb/client/utils.rb +20 -0
  16. data/lib/cartodb-rb-client/cartodb/client.rb +4 -0
  17. data/lib/cartodb-rb-client/cartodb/helpers/sql_helper.rb +30 -0
  18. data/lib/cartodb-rb-client/cartodb/helpers.rb +1 -0
  19. data/lib/cartodb-rb-client/cartodb/init.rb +30 -0
  20. data/lib/cartodb-rb-client/cartodb/libs/object.rb +15 -0
  21. data/lib/cartodb-rb-client/cartodb/libs/string.rb +116 -0
  22. data/lib/cartodb-rb-client/cartodb/libs.rb +2 -0
  23. data/lib/cartodb-rb-client/cartodb/model/base.rb +20 -0
  24. data/lib/cartodb-rb-client/cartodb/model/constants.rb +30 -0
  25. data/lib/cartodb-rb-client/cartodb/model/defaults.rb +15 -0
  26. data/lib/cartodb-rb-client/cartodb/model/geo.rb +73 -0
  27. data/lib/cartodb-rb-client/cartodb/model/getters.rb +79 -0
  28. data/lib/cartodb-rb-client/cartodb/model/persistence.rb +69 -0
  29. data/lib/cartodb-rb-client/cartodb/model/query.rb +66 -0
  30. data/lib/cartodb-rb-client/cartodb/model/schema.rb +111 -0
  31. data/lib/cartodb-rb-client/cartodb/model/scope.rb +163 -0
  32. data/lib/cartodb-rb-client/cartodb/model/setters.rb +42 -0
  33. data/lib/cartodb-rb-client/cartodb/model.rb +11 -0
  34. data/lib/cartodb-rb-client/cartodb/types/metadata.rb +89 -0
  35. data/lib/cartodb-rb-client/cartodb/types/pg_result.rb +17 -0
  36. data/lib/cartodb-rb-client/cartodb/types.rb +2 -0
  37. data/lib/cartodb-rb-client/cartodb.rb +6 -0
  38. data/lib/cartodb-rb-client/install_utils.rb +19 -0
  39. data/lib/cartodb-rb-client/version.rb +7 -0
  40. data/lib/cartodb-rb-client.rb +17 -0
  41. data/run_tests.sh +6 -0
  42. data/spec/client_spec.rb +278 -0
  43. data/spec/model/data_spec.rb +130 -0
  44. data/spec/model/metadata_spec.rb +116 -0
  45. data/spec/model/scopes_spec.rb +171 -0
  46. data/spec/spec_helper.rb +28 -0
  47. data/spec/support/cartodb_config.yml +15 -0
  48. data/spec/support/cartodb_factories.rb +33 -0
  49. data/spec/support/cartodb_helpers.rb +14 -0
  50. data/spec/support/cartodb_models.rb +22 -0
  51. data/spec/support/database.yml +5 -0
  52. data/spec/support/shp/cereal.dbf +0 -0
  53. data/spec/support/shp/cereal.shp +0 -0
  54. data/spec/support/shp/cereal.shx +0 -0
  55. data/spec/support/shp/cereal.zip +0 -0
  56. data/spec/support/shp/parcelas.dbf +0 -0
  57. data/spec/support/shp/parcelas.shp +0 -0
  58. data/spec/support/shp/parcelas.shx +0 -0
  59. data/spec/support/shp/parcelas.zip +0 -0
  60. data/spec/support/shp/zonas.dbf +0 -0
  61. data/spec/support/shp/zonas.shp +0 -0
  62. data/spec/support/shp/zonas.shx +0 -0
  63. data/spec/support/shp/zonas.zip +0 -0
  64. data/spec/support/whs_features.csv +33425 -0
  65. metadata +311 -0
metadata ADDED
@@ -0,0 +1,311 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cartodb-rb-client
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 8
10
+ version: 0.1.8
11
+ platform: ruby
12
+ authors:
13
+ - Fernando Espinosa
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-24 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: typhoeus
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ hash: 31
29
+ segments:
30
+ - 0
31
+ - 2
32
+ - 4
33
+ version: 0.2.4
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: oauth
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - "="
43
+ - !ruby/object:Gem::Version
44
+ hash: 5
45
+ segments:
46
+ - 0
47
+ - 4
48
+ - 5
49
+ version: 0.4.5
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: mime-types
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - "="
59
+ - !ruby/object:Gem::Version
60
+ hash: 47
61
+ segments:
62
+ - 1
63
+ - 16
64
+ version: "1.16"
65
+ type: :runtime
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: activesupport
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 7
76
+ segments:
77
+ - 3
78
+ - 0
79
+ - 0
80
+ version: 3.0.0
81
+ - - <=
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 3
86
+ - 1
87
+ - 0
88
+ version: 3.1.0
89
+ type: :runtime
90
+ version_requirements: *id004
91
+ - !ruby/object:Gem::Dependency
92
+ name: i18n
93
+ prerelease: false
94
+ requirement: &id005 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 11
100
+ segments:
101
+ - 0
102
+ - 5
103
+ - 0
104
+ version: 0.5.0
105
+ - - <=
106
+ - !ruby/object:Gem::Version
107
+ hash: 7
108
+ segments:
109
+ - 0
110
+ - 6
111
+ - 0
112
+ version: 0.6.0
113
+ type: :runtime
114
+ version_requirements: *id005
115
+ - !ruby/object:Gem::Dependency
116
+ name: rgeo
117
+ prerelease: false
118
+ requirement: &id006 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - "="
122
+ - !ruby/object:Gem::Version
123
+ hash: 23
124
+ segments:
125
+ - 0
126
+ - 3
127
+ - 2
128
+ version: 0.3.2
129
+ type: :runtime
130
+ version_requirements: *id006
131
+ - !ruby/object:Gem::Dependency
132
+ name: rgeo-geojson
133
+ prerelease: false
134
+ requirement: &id007 !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - "="
138
+ - !ruby/object:Gem::Version
139
+ hash: 21
140
+ segments:
141
+ - 0
142
+ - 2
143
+ - 1
144
+ version: 0.2.1
145
+ type: :runtime
146
+ version_requirements: *id007
147
+ - !ruby/object:Gem::Dependency
148
+ name: pg
149
+ prerelease: false
150
+ requirement: &id008 !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - "="
154
+ - !ruby/object:Gem::Version
155
+ hash: 51
156
+ segments:
157
+ - 0
158
+ - 11
159
+ - 0
160
+ version: 0.11.0
161
+ type: :runtime
162
+ version_requirements: *id008
163
+ - !ruby/object:Gem::Dependency
164
+ name: json
165
+ prerelease: false
166
+ requirement: &id009 !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - "="
170
+ - !ruby/object:Gem::Version
171
+ hash: 5
172
+ segments:
173
+ - 1
174
+ - 5
175
+ - 3
176
+ version: 1.5.3
177
+ type: :runtime
178
+ version_requirements: *id009
179
+ description: Allows quick and easy connection to the cartodb API.
180
+ email:
181
+ - ferdev@vizzuality.com
182
+ executables: []
183
+
184
+ extensions: []
185
+
186
+ extra_rdoc_files: []
187
+
188
+ files:
189
+ - .gitignore
190
+ - .rvmrc
191
+ - Gemfile
192
+ - LICENSE
193
+ - README.markdown
194
+ - Rakefile
195
+ - cartodb-rb-client.gemspec
196
+ - lib/cartodb-rb-client.rb
197
+ - lib/cartodb-rb-client/cartodb.rb
198
+ - lib/cartodb-rb-client/cartodb/client.rb
199
+ - lib/cartodb-rb-client/cartodb/client/authorization.rb
200
+ - lib/cartodb-rb-client/cartodb/client/cache.rb
201
+ - lib/cartodb-rb-client/cartodb/client/connection.rb
202
+ - lib/cartodb-rb-client/cartodb/client/connection/base.rb
203
+ - lib/cartodb-rb-client/cartodb/client/connection/cartodb.rb
204
+ - lib/cartodb-rb-client/cartodb/client/connection/postgres.rb
205
+ - lib/cartodb-rb-client/cartodb/client/error.rb
206
+ - lib/cartodb-rb-client/cartodb/client/utils.rb
207
+ - lib/cartodb-rb-client/cartodb/helpers.rb
208
+ - lib/cartodb-rb-client/cartodb/helpers/sql_helper.rb
209
+ - lib/cartodb-rb-client/cartodb/init.rb
210
+ - lib/cartodb-rb-client/cartodb/libs.rb
211
+ - lib/cartodb-rb-client/cartodb/libs/object.rb
212
+ - lib/cartodb-rb-client/cartodb/libs/string.rb
213
+ - lib/cartodb-rb-client/cartodb/model.rb
214
+ - lib/cartodb-rb-client/cartodb/model/base.rb
215
+ - lib/cartodb-rb-client/cartodb/model/constants.rb
216
+ - lib/cartodb-rb-client/cartodb/model/defaults.rb
217
+ - lib/cartodb-rb-client/cartodb/model/geo.rb
218
+ - lib/cartodb-rb-client/cartodb/model/getters.rb
219
+ - lib/cartodb-rb-client/cartodb/model/persistence.rb
220
+ - lib/cartodb-rb-client/cartodb/model/query.rb
221
+ - lib/cartodb-rb-client/cartodb/model/schema.rb
222
+ - lib/cartodb-rb-client/cartodb/model/scope.rb
223
+ - lib/cartodb-rb-client/cartodb/model/setters.rb
224
+ - lib/cartodb-rb-client/cartodb/types.rb
225
+ - lib/cartodb-rb-client/cartodb/types/metadata.rb
226
+ - lib/cartodb-rb-client/cartodb/types/pg_result.rb
227
+ - lib/cartodb-rb-client/install_utils.rb
228
+ - lib/cartodb-rb-client/version.rb
229
+ - run_tests.sh
230
+ - spec/client_spec.rb
231
+ - spec/model/data_spec.rb
232
+ - spec/model/metadata_spec.rb
233
+ - spec/model/scopes_spec.rb
234
+ - spec/spec_helper.rb
235
+ - spec/support/cartodb_config.yml
236
+ - spec/support/cartodb_factories.rb
237
+ - spec/support/cartodb_helpers.rb
238
+ - spec/support/cartodb_models.rb
239
+ - spec/support/database.yml
240
+ - spec/support/shp/cereal.dbf
241
+ - spec/support/shp/cereal.shp
242
+ - spec/support/shp/cereal.shx
243
+ - spec/support/shp/cereal.zip
244
+ - spec/support/shp/parcelas.dbf
245
+ - spec/support/shp/parcelas.shp
246
+ - spec/support/shp/parcelas.shx
247
+ - spec/support/shp/parcelas.zip
248
+ - spec/support/shp/zonas.dbf
249
+ - spec/support/shp/zonas.shp
250
+ - spec/support/shp/zonas.shx
251
+ - spec/support/shp/zonas.zip
252
+ - spec/support/whs_features.csv
253
+ homepage: http://github.com/vizzuality/cartodb-rb-client
254
+ licenses:
255
+ - BSD
256
+ post_install_message:
257
+ rdoc_options: []
258
+
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ none: false
263
+ requirements:
264
+ - - ">="
265
+ - !ruby/object:Gem::Version
266
+ hash: 3
267
+ segments:
268
+ - 0
269
+ version: "0"
270
+ required_rubygems_version: !ruby/object:Gem::Requirement
271
+ none: false
272
+ requirements:
273
+ - - ">="
274
+ - !ruby/object:Gem::Version
275
+ hash: 23
276
+ segments:
277
+ - 1
278
+ - 3
279
+ - 6
280
+ version: 1.3.6
281
+ requirements: []
282
+
283
+ rubyforge_project: cartodb-rb-client
284
+ rubygems_version: 1.8.6
285
+ signing_key:
286
+ specification_version: 3
287
+ summary: Ruby client for the cartoDB API
288
+ test_files:
289
+ - spec/client_spec.rb
290
+ - spec/model/data_spec.rb
291
+ - spec/model/metadata_spec.rb
292
+ - spec/model/scopes_spec.rb
293
+ - spec/spec_helper.rb
294
+ - spec/support/cartodb_config.yml
295
+ - spec/support/cartodb_factories.rb
296
+ - spec/support/cartodb_helpers.rb
297
+ - spec/support/cartodb_models.rb
298
+ - spec/support/database.yml
299
+ - spec/support/shp/cereal.dbf
300
+ - spec/support/shp/cereal.shp
301
+ - spec/support/shp/cereal.shx
302
+ - spec/support/shp/cereal.zip
303
+ - spec/support/shp/parcelas.dbf
304
+ - spec/support/shp/parcelas.shp
305
+ - spec/support/shp/parcelas.shx
306
+ - spec/support/shp/parcelas.zip
307
+ - spec/support/shp/zonas.dbf
308
+ - spec/support/shp/zonas.shp
309
+ - spec/support/shp/zonas.shx
310
+ - spec/support/shp/zonas.zip
311
+ - spec/support/whs_features.csv