rabid_mq 0.1.21 → 0.1.22

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: f597942a72a9d4523d0efabe25ac14c78ef9afb0
4
- data.tar.gz: 5afb1d1c25540d13bd108448ea8e5e363cf79f09
3
+ metadata.gz: 77316673580b1fcbcda3d34cc610a95a86871e49
4
+ data.tar.gz: f391f7774af20723fbd251f2466f517fd60c6280
5
5
  SHA512:
6
- metadata.gz: e6d3927c5f3564bd58b23d18f2a9308123277984bda2840a692c44f6de73891b9b0b5a23cef122ada0b12fbb38acae2c7b634ddd91505e6f4613754cd3b6d91c
7
- data.tar.gz: ce454342edbadeaf4e0dc602f0e8b77420ee34e41577f044d577c2633e5b31df50511295bc37a0d96a23ded7075c4d9ad412a1dd2ec74fd3387ffc04a4eabd59
6
+ metadata.gz: 19db599917191c3e3c9c9bcf5fb06c578eb337090095773e5c61e89a28ef539a925435107f3d6fdd48f9e3e30eb06ab608872bf80f8fe6c482147bee9e04987f
7
+ data.tar.gz: 0dbfd307d0a9d91a91990c4722a38cd658d7d63bea6c090b2762609987da621df0d89c6e2ca53f53b085c2877f1dbee2c8bbcb5bb9a0fd46ba67704491c100bc
@@ -9,7 +9,12 @@ module RabidMQ
9
9
  end
10
10
 
11
11
  def custom_config
12
- YAML.load(ERB.new(File.read(file_name)).result)[Rails.env].symbolize_keys || {}
12
+ YAML.load(ERB.new(File.read(file_name)).result)[environment].symbolize_keys || {}
13
+ end
14
+
15
+ def environment
16
+ return Rails.env if defined?(Rails)
17
+ return ENV['RAILS_ENV'] || ENV['APPLICATION_ENV'] || 'default'
13
18
  end
14
19
 
15
20
  def default_config
@@ -1,3 +1,3 @@
1
1
  module RabidMQ
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabid_mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-04 00:00:00.000000000 Z
11
+ date: 2018-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny