Sha256: ac463b9d35868221ed8ee218dd62774ee90a669e04cfe39c14379ab538b284cb

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

auth_cfg = {}
# load QA configured linked data authorities
Dir[File.join(Qa::Engine.root, 'config', 'authorities', 'linked_data', '*.json')].each do |fn|
  auth = File.basename(fn, '.json').upcase.to_sym
  json = File.read(File.expand_path(fn, __FILE__))
  cfg = JSON.parse(json).deep_symbolize_keys
  auth_cfg[auth] = cfg
end

# load app configured linked data authorities and overrides
Dir[Rails.root.join('config', 'authorities', 'linked_data', '*.json')].each do |fn|
  auth = File.basename(fn, '.json').upcase.to_sym
  json = File.read(File.expand_path(fn, __FILE__))
  cfg = JSON.parse(json).deep_symbolize_keys
  auth_cfg[auth] = cfg
end
LINKED_DATA_AUTHORITIES_CONFIG = auth_cfg.freeze

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qa-2.1.2 config/initializers/linked_data_authorities.rb
qa-2.1.1 config/initializers/linked_data_authorities.rb