activeagent 0.2.6 → 0.2.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fbf916ff515e5995698e44b5722699cad1203fcc04739111cd10a29c0c0bb90
4
- data.tar.gz: 52bb6ec8e3a69f8b04a31d87c59f143ce89be9e6c4b129046d0a5e244e02b4a4
3
+ metadata.gz: 4373c6876ff3636173ddb8920d78a34daeb0b7bfa88cc203e28f027eb1e13c0e
4
+ data.tar.gz: ca1391e5bdc2f395b90999d515fbe30da60a3a818a0433dc430ede1ebb7dc839
5
5
  SHA512:
6
- metadata.gz: aba7d978854208f22e22ce862b801281a71c507eedc195052077d760ebffa024c218dd6130ace50198c5d0e55f2399efac8a12eca601d319aae4affa9f7fc478
7
- data.tar.gz: cded1a0791b447893b50d4b4b52486c32971bf8c1fbc52b56948e0fea84d74a99b67df8aac85d020ad8afd6b7f123590d2750cfec18385a90777296ef5c4a945
6
+ metadata.gz: 7749186984599e3d9d17f55ea611bd2acd32eff68cdb744fd17ef9e25e1baf3b048a5267ff73d5d27aebe640445ea825a12678d9868092c2ac3d1667d56bf2af
7
+ data.tar.gz: ed7ed3f01e8e568cfde962f0248ce22803a8c09f66afb857bd9c299efd10e508fa952932abfdb0c91ea9c594072bee773956f6c11ab03604e28f4896a545553d
@@ -35,7 +35,7 @@ module ActiveAgent
35
35
  options.asset_host ||= app.config.asset_host
36
36
  options.relative_url_root ||= app.config.relative_url_root
37
37
 
38
- ActiveAgent.load_configuration(Rails.root.join("config", "active_agent.yml")) if File.exist?(Rails.root.join("config", "active_agent.yml"))
38
+ ActiveAgent.load_configuration(Rails.root.join("config", "active_agent.yml"))
39
39
 
40
40
  ActiveSupport.on_load(:active_agent) do
41
41
  include AbstractController::UrlFor
@@ -1,3 +1,3 @@
1
1
  module ActiveAgent
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.6.1"
3
3
  end
data/lib/active_agent.rb CHANGED
@@ -49,9 +49,11 @@ module ActiveAgent
49
49
  end
50
50
 
51
51
  def load_configuration(file)
52
- config_file = YAML.load(ERB.new(File.read(file)).result)
53
- env = ENV["RAILS_ENV"] || ENV["ENV"] || "development"
54
- @config = config_file[env] || config_file
52
+ if File.exist?(file)
53
+ config_file = YAML.load(ERB.new(File.read(file)).result)
54
+ env = ENV["RAILS_ENV"] || ENV["ENV"] || "development"
55
+ @config = config_file[env] || config_file
56
+ end
55
57
  end
56
58
  end
57
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bowen