sushi_fabric 0.6.4 → 0.6.5
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.
- checksums.yaml +4 -4
- data/lib/sushi_fabric/sushiApp.rb +19 -3
- data/lib/sushi_fabric/version.rb +1 -1
- 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: 421e4d98836d811c29a9505c92431cfba77493f7
|
4
|
+
data.tar.gz: be96d93239a860afbdfd11410e6060a36a8ccf77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d2c87a012a8ae0391da8259e60b07fc3fe5bd94a67c367f7fd4bbc67c011b83a0e235ed2e1b853f0cfd7d58da7ab096ee32bbf7f4cc8e7eb6d4540c605ac6e7
|
7
|
+
data.tar.gz: 93164b5065d7282093cf13164dae8a3ea79136e4f13b6de93a8569e57fc71c0464679fed6a79463d5332f7a1ab7de1bae9ccbac0968f1423f4814c381297bf47
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '20170224-
|
3
|
+
# Version = '20170224-143655'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -170,7 +170,15 @@ def save_data_set(data_set_arr, headers, rows, user=nil)
|
|
170
170
|
project.data_sets << data_set
|
171
171
|
parent_data_set.data_sets << data_set if parent_data_set
|
172
172
|
data_set.save
|
173
|
-
|
173
|
+
if SushiFabric::Application.config.fgcz?
|
174
|
+
# this causes sqlite3 IO error in Mac OSX (Yosemite)
|
175
|
+
pid = Process.fork do
|
176
|
+
Process.fork do
|
177
|
+
data_set.register_bfabric
|
178
|
+
end # grand-child process
|
179
|
+
end # child process
|
180
|
+
Process.waitpid pid
|
181
|
+
end
|
174
182
|
if user
|
175
183
|
user.data_sets << data_set
|
176
184
|
user.save
|
@@ -638,7 +646,15 @@ rm -rf #{@scratch_dir} || exit 1
|
|
638
646
|
project.data_sets << data_set
|
639
647
|
parent_data_set.data_sets << data_set if parent_data_set
|
640
648
|
data_set.save
|
641
|
-
|
649
|
+
if SushiFabric::Application.config.fgcz?
|
650
|
+
# this causes sqlite3 IO error in Mac OSX (Yosemite)
|
651
|
+
pid = Process.fork do
|
652
|
+
Process.fork do
|
653
|
+
data_set.register_bfabric
|
654
|
+
end # grand-child process
|
655
|
+
end # child process
|
656
|
+
Process.waitpid pid
|
657
|
+
end
|
642
658
|
if user
|
643
659
|
user.data_sets << data_set
|
644
660
|
user.save
|
data/lib/sushi_fabric/version.rb
CHANGED