active_publisher 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_publisher/configuration.rb +3 -3
- 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: 13f401eb7d50a7beb73a5e693260e705be98b5ab
|
4
|
+
data.tar.gz: 3f6a3bf4493af0500404b425f678c3fa26a70731
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ae9b9786f9824d4b20c60b5b900a3ce37fe2269746daf8f82deb483bb0cfc865d06d10dc915714d5d72401f5691650ab56104590b0b9377d0b56c81a2ea508
|
7
|
+
data.tar.gz: 4f166b194af0609f9622781bf8b7b8a220f2cab8f968fffbf1e166e73034cdc40c9c3869eef14f623544ca99faaa68ee4853132bff836eb057c58e3b7d13ede9
|
@@ -45,8 +45,8 @@ module ActivePublisher
|
|
45
45
|
|
46
46
|
yaml_config = attempt_to_load_yaml_file(env)
|
47
47
|
DEFAULTS.each_pair do |key, value|
|
48
|
-
setting = cli_options[key] || yaml_config[key.to_s]
|
49
|
-
::ActivePublisher.
|
48
|
+
setting = cli_options[key] || cli_options[key.to_s] || yaml_config[key] || yaml_config[key.to_s]
|
49
|
+
::ActivePublisher.configuration.public_send("#{key}=", setting) if setting
|
50
50
|
end
|
51
51
|
|
52
52
|
true
|
@@ -60,7 +60,7 @@ module ActivePublisher
|
|
60
60
|
def self.attempt_to_load_yaml_file(env)
|
61
61
|
yaml_config = {}
|
62
62
|
absolute_config_path = ::File.expand_path(::File.join("config", "active_publisher.yml"))
|
63
|
-
|
63
|
+
action_subscriber_config_file = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
|
64
64
|
if ::File.exists?(absolute_config_path)
|
65
65
|
yaml_config = ::YAML.load_file(absolute_config_path)[env]
|
66
66
|
elsif ::File.exists?(action_subscriber_config_file)
|
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: 0.1.
|
4
|
+
version: 0.1.3
|
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: 2016-
|
15
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bunny
|