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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e79f4d4e4dd165a07655f77d2aece6daea0fd18a
4
- data.tar.gz: 4568316542b6046b4f1912f093808d268625231b
3
+ metadata.gz: 19a4812592e85362942229cafc625559e1c26bbb
4
+ data.tar.gz: 8e89cff73d4181458dc6344874f61f9a78643149
5
5
  SHA512:
6
- metadata.gz: 12d1b668d867d59320ba890f0081ceaf3e885ea9e85cf93a50bdf2f10462385fd1618a30a41fd4aed545d073be91f773d459434b85095a8c9d5a43e4daf6024b
7
- data.tar.gz: a9a0f10166cb5f38b084e10f36926d9f6d5c009a506fb00e4e03746c11ce49e7623d408de743de58fb33bb10a152cbacd9362764696c865c50adb02ad8003314
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.searcher.find('makumba_import').full_gem_path}/lib/tasks/*.rake"].each { |ext| load ext }
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 fix_makumba_columns\n\n\n\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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makumba_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Andra