active_publisher 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: a21fb8bd149f867e907822664172a95014170678
4
- data.tar.gz: 3115d51803b25c105ea93770ee90b43dcb3e81ab
3
+ metadata.gz: dc821c2e70b59f02e5febdb06bf6806fc462a252
4
+ data.tar.gz: 02a7fe3cca914b3e610eab2cc032a37ba5898b1a
5
5
  SHA512:
6
- metadata.gz: 0b9673a0690319a1b7bdf6723ad27f167af8699b16d8c50a1d5e6f9df80d370399ca5d5ab95ca1e8de4ed7968ad0c735062bf694387d30fc14df35a71b3e08fe
7
- data.tar.gz: 9d9de106729b98e31e15f7577465c4b8e114fc87b0bb841623901fedafe60ef05dcc325a5e482e5b1862430b82ab5c13dc7906ccb3fa3857a38473cfaa71ea7e
6
+ metadata.gz: c647e7e74df4b27925cb1d5367226b6cc05fd397114e87a2a706db2c4c547eb1782581b88f7f69329c2822096cb14885c045a948b9e8442f9a4c5766a7d81839
7
+ data.tar.gz: d46e89de6951783df889ef2f4b2a458ca1c5133b8642c7f4202f09aa9c418ede270268528b9849305134993a4b87a06feb88a6a3892fa4c748328fd93b6c6e3a
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ## Configuration
24
24
 
25
- ActivePublisher will use a `config/active_publisher.yml` or `config/action_subscriber.yml` automatically.
25
+ ActivePublisher will use a `config/active_publisher.yml` or `config/action_subscriber.yml` if you include the line `::ActivePublisher::Configuration.configure_from_yaml_and_cli` in an initializer.
26
26
 
27
27
  Create a `config/active_publisher.yml` similar to a database.yml, with your configuration nested in your environments keys.
28
28
 
@@ -74,9 +74,9 @@ module ActivePublisher
74
74
  absolute_config_path = ::File.expand_path(::File.join("config", "active_publisher.yml"))
75
75
  action_subscriber_config_file = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
76
76
  if ::File.exists?(absolute_config_path)
77
- yaml_config = ::YAML.load_file(absolute_config_path)[env]
77
+ yaml_config = ::YAML.load(::ERB.new(::File.read(absolute_config_path)).result)[env]
78
78
  elsif ::File.exists?(action_subscriber_config_file)
79
- yaml_config = ::YAML.load_file(action_subscriber_config_file)[env]
79
+ yaml_config = ::YAML.load(::ERB.new(::File.read(action_subscriber_config_file)).result)[env]
80
80
  end
81
81
  yaml_config
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2017-09-07 00:00:00.000000000 Z
15
+ date: 2017-09-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny