cartodb-importer 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.rvmrc +2 -0
- data/Gemfile +4 -0
- data/README.md +59 -0
- data/Rakefile +2 -0
- data/cartodb-importer.gemspec +33 -0
- data/clubbing.shp +0 -0
- data/lib/cartodb-exporter/exporter.rb +197 -0
- data/lib/cartodb-exporter/version.rb +6 -0
- data/lib/cartodb-exporter.rb +14 -0
- data/lib/cartodb-importer/importer.rb +336 -0
- data/lib/cartodb-importer/version.rb +6 -0
- data/lib/cartodb-importer.rb +14 -0
- data/lib/core_ext/.DS_Store +0 -0
- data/lib/core_ext/blank.rb +3 -0
- data/lib/core_ext/hash.rb +10 -0
- data/lib/core_ext/string.rb +91 -0
- data/misc/csv_normalizer.py +27 -0
- data/misc/dbfUtils.py +113 -0
- data/misc/shp_normalizer.py +58 -0
- data/misc/srid_from_gdal.py +11 -0
- data/spec/export_spec.rb +60 -0
- data/spec/import_spec.rb +252 -0
- data/spec/spec_helper.rb +19 -0
- metadata +184 -0
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cartodb-importer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Fernando Blat
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-12 00:00:00.000000000 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: pg
|
17
|
+
requirement: &70149885580060 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - =
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.11'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70149885580060
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sequel
|
28
|
+
requirement: &70149885579640 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70149885579640
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: roo
|
39
|
+
requirement: &70149885579160 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *70149885579160
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: spreadsheet
|
50
|
+
requirement: &70149885578740 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *70149885578740
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: google-spreadsheet-ruby
|
61
|
+
requirement: &70149885578300 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :runtime
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *70149885578300
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rubyzip
|
72
|
+
requirement: &70149885577880 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *70149885577880
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: builder
|
83
|
+
requirement: &70149885577460 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *70149885577460
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: rspec
|
94
|
+
requirement: &70149885577020 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *70149885577020
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: mocha
|
105
|
+
requirement: &70149885576580 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *70149885576580
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: ruby-debug19
|
116
|
+
requirement: &70149885576160 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *70149885576160
|
125
|
+
description: Import CSV, SHP, and other files with data into a PostgreSQL table
|
126
|
+
email:
|
127
|
+
- ferblape@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- .gitignore
|
133
|
+
- .rvmrc
|
134
|
+
- Gemfile
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- cartodb-importer.gemspec
|
138
|
+
- clubbing.shp
|
139
|
+
- lib/cartodb-exporter.rb
|
140
|
+
- lib/cartodb-exporter/exporter.rb
|
141
|
+
- lib/cartodb-exporter/version.rb
|
142
|
+
- lib/cartodb-importer.rb
|
143
|
+
- lib/cartodb-importer/importer.rb
|
144
|
+
- lib/cartodb-importer/version.rb
|
145
|
+
- lib/core_ext/.DS_Store
|
146
|
+
- lib/core_ext/blank.rb
|
147
|
+
- lib/core_ext/hash.rb
|
148
|
+
- lib/core_ext/string.rb
|
149
|
+
- misc/csv_normalizer.py
|
150
|
+
- misc/dbfUtils.py
|
151
|
+
- misc/shp_normalizer.py
|
152
|
+
- misc/srid_from_gdal.py
|
153
|
+
- spec/export_spec.rb
|
154
|
+
- spec/import_spec.rb
|
155
|
+
- spec/spec_helper.rb
|
156
|
+
has_rdoc: true
|
157
|
+
homepage: ''
|
158
|
+
licenses: []
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
requirements: []
|
176
|
+
rubyforge_project: cartodb-importer
|
177
|
+
rubygems_version: 1.6.2
|
178
|
+
signing_key:
|
179
|
+
specification_version: 3
|
180
|
+
summary: Import CSV, SHP, and other files with data into a PostgreSQL table
|
181
|
+
test_files:
|
182
|
+
- spec/export_spec.rb
|
183
|
+
- spec/import_spec.rb
|
184
|
+
- spec/spec_helper.rb
|