cncflora_commons 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cncflora_commons.rb +5 -1
  2. metadata +1 -1
@@ -115,11 +115,15 @@ def setup(file)
115
115
  end
116
116
 
117
117
  if ENV["PREFIX"] then
118
- set :prefix, "#{ENV["PREFIX"]}_"
118
+ set :prefix, #{ENV["PREFIX"]}
119
119
  else
120
120
  set :prefix, ""
121
121
  end
122
122
 
123
+ if settings.prefix.length >= 1 then
124
+ set :prefix, "#{settings.prefix}_"
125
+ end
126
+
123
127
  config = etcd2settings(ENV["ETCD"] || settings.etcd,settings.prefix)
124
128
 
125
129
  config[:strings] = JSON.parse(File.read("src/locales/#{settings.lang}.json", :encoding => "BINARY"))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cncflora_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: