active_publisher 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/active_publisher/configuration.rb +2 -2
- data/lib/active_publisher/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc821c2e70b59f02e5febdb06bf6806fc462a252
|
4
|
+
data.tar.gz: 02a7fe3cca914b3e610eab2cc032a37ba5898b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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`
|
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.
|
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.
|
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
|
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.
|
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-
|
15
|
+
date: 2017-09-24 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bunny
|