cncflora_commons 0.0.25 → 0.0.26

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 +4 -0
  2. metadata +1 -1
@@ -155,6 +155,10 @@ def setup!(config)
155
155
  config[:strings] = JSON.parse(File.read("src/locales/#{settings.lang}.json", :encoding => "BINARY"))
156
156
  end
157
157
 
158
+ if ENV["DATAHUB_PORT_4001_TCP_ADDR"] then
159
+ config[:datahub] = "http://#{ENV["DATAHUB_PORT_8080_TCP_ADDR"]}:#{ENV["DATAHUB_PORT_8080_TCP_PORT"]}"
160
+ end
161
+
158
162
  if config.has_key? :elasticsearch then
159
163
  config[:elasticsearch] = "#{config[:elasticsearch]}/#{settings.db}"
160
164
  else
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.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: