active_publisher 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bed6284b813cf93a7879dc0ba53ff20e3fac7456
4
- data.tar.gz: d4d7a1a5d9a6bc1bc90cb0cfedac6048fe3e42ac
3
+ metadata.gz: f538d49156d61c2762d4bfaa787f6ae61352eb05
4
+ data.tar.gz: 567351c89d49eaeead6355d43028698101cb99fa
5
5
  SHA512:
6
- metadata.gz: 45004b0c31ca061055ffa8911be2a051c12b272c1424ef293d60583d8048b9b274b7ba4228458276bab560df720a33559335fd28349aa445f7f929e72de30ad6
7
- data.tar.gz: 1ef9b22edf436be06fe28b845dea06d2d5a1303b896e1ed7dff305a7d685c6453b119d8b740ad476716db22b9bac7870701c6d8f7e820450a3ecdf0466ed8e47
6
+ metadata.gz: db1b38e8ccb947c64c12c37a996f5b0f2fe26ab4987268fa68a6a1340fc51f15c105e26823405341d743a59ecf798d8251f5dbf20bc8e113b0e8af5859a484a9
7
+ data.tar.gz: 9e7db6357581472e1ca870692d3c08926abbf35f43367cf51647791e216862162193878aef20e0ef3580883e803c16862face5ca4a9300bfd53ddad5f5ccf983
@@ -43,7 +43,7 @@ module ActivePublisher
43
43
  @configure_from_yaml_and_cli ||= begin
44
44
  env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || ENV["APP_ENV"] || "development"
45
45
 
46
- yaml_config = attempt_to_load_yaml_file
46
+ yaml_config = attempt_to_load_yaml_file(env)
47
47
  DEFAULTS.each_pair do |key, value|
48
48
  setting = cli_options[key] || yaml_config[key.to_s]
49
49
  ::ActivePublisher.config.__send__("#{key}=", setting) if setting
@@ -57,7 +57,7 @@ module ActivePublisher
57
57
  ##
58
58
  # Private class methods
59
59
  #
60
- def self.attempt_to_load_yaml_file
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"))
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
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: 0.1.1
4
+ version: 0.1.2
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-03-25 00:00:00.000000000 Z
15
+ date: 2016-03-31 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny