sushi_fabric 0.3.1 → 0.3.3

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20141202-095124'
3
+ # Version = '20150326-142037'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -20,7 +20,7 @@ module SushiFabric
20
20
  end
21
21
 
22
22
  # load custmized parameters if there is
23
- mode = ENV['RAILS_ENV']||'development'
23
+ mode = ENV['RAILS_ENV']||'production'
24
24
  config_file = File.join('./config/environments', mode)
25
25
  if File.exist?(config_file + '.rb')
26
26
  require config_file
@@ -58,7 +58,7 @@ end
58
58
  NO_ROR = false
59
59
  ActiveRecord::Base.establish_connection(
60
60
  :adapter => 'sqlite3',
61
- :database => "#{SUSHI_APP_DIR}/db/development.sqlite3"
61
+ :database => "#{SUSHI_APP_DIR}/db/#{mode}.sqlite3"
62
62
  )
63
63
  require "#{SUSHI_APP_DIR}/app/models/project"
64
64
  require "#{SUSHI_APP_DIR}/app/models/data_set"
@@ -335,7 +335,7 @@ cd $SCRATCH_DIR || exit 1
335
335
  end
336
336
  end
337
337
  @out.print <<-EOF
338
- cd ~
338
+ cd #{SCRATCH_DIR}
339
339
  rm -rf #{@scratch_dir} || exit 1
340
340
  EOF
341
341
 
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sushi_fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-22 00:00:00.000000000 Z
12
+ date: 2015-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler