makumba_import 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/makumba_import/importer.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19a4812592e85362942229cafc625559e1c26bbb
|
4
|
+
data.tar.gz: 8e89cff73d4181458dc6344874f61f9a78643149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 858bdd9f0a38c40983ae9e151812f14c5acbb52cdb31c7450b969c58c5738e6650620422cbf74d025ec6ae352ef3fae97601ee9d06d29e9710d6c5f309e30aaf
|
7
|
+
data.tar.gz: 8b8ab274f6f889e78a196ec8d7022a276e1abc7954fdd4adb7eb021105bcbaafbe028be84a8eeb169b11024ab800d1032f373413fd82be920555e7f314c94501
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ gem "makumba_import"
|
|
24
24
|
3. Add this to your Rakefile:
|
25
25
|
|
26
26
|
```
|
27
|
-
Dir["#{Gem.
|
27
|
+
Dir["#{Gem::Specification.find_all_by_name('makumba_import').first.full_gem_path}/lib/tasks/*.rake"].each { |ext| load ext }
|
28
28
|
```
|
29
29
|
|
30
30
|
4. Generate a initializer called makumba_import.rb with the following contents:
|
@@ -243,6 +243,8 @@ module MakumbaImport
|
|
243
243
|
end
|
244
244
|
end
|
245
245
|
|
246
|
+
txt << "\n fix_makumba_columns\n"
|
247
|
+
|
246
248
|
if enums.count > 0
|
247
249
|
i = 0
|
248
250
|
maxlen = enums.keys.map{|k| k.length}.sort.last
|
@@ -255,9 +257,7 @@ module MakumbaImport
|
|
255
257
|
txt << "\n"
|
256
258
|
end
|
257
259
|
|
258
|
-
txt << "\n
|
259
|
-
|
260
|
-
txt << "end\n\n"
|
260
|
+
txt << "\n\n\nend\n\n"
|
261
261
|
|
262
262
|
File.open(@output_path+"app/models/"+filename, "w+") do |f|
|
263
263
|
f.write(txt)
|