cncflora_commons 0.0.5 → 0.0.6

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.
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: