exportr 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/exportr/base.rb CHANGED
@@ -28,8 +28,8 @@ module Exportr
28
28
  File.expand_path(CONFIG_FILE, rails_root)
29
29
  end
30
30
 
31
- def system_env_file
32
- "#{SYSTEM_FILE_PATH}/#{Rails.application.class.to_s.split('::')[0].downcase}.yml"
31
+ def system_env_file
32
+ "#{SYSTEM_FILE_PATH}/#{Rails.application.class.to_s.split('::')[0].downcase}_#{ENV['RAILS_ENV'] || 'development'}.yml"
33
33
  end
34
34
 
35
35
  end
@@ -14,6 +14,7 @@ module Exportr
14
14
  end
15
15
 
16
16
  if File.exists? system_env_file
17
+ puts ENV['RAILS_ENV']
17
18
  config = YAML.load(File.open(system_env_file))
18
19
  config.each_pair { |key,value| ENV[key] = value } if config
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module Exportr
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exportr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: