msgr 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/msgr/railtie.rb +3 -2
- data/lib/msgr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a5f1855aedba423ec56af15b0c7eaae43de164
|
4
|
+
data.tar.gz: f381c0d8a3e7f03c71cf74f0442ed2f5da542513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b81be68fb9dfc0e0f85ced01240f2d9893378413bec0e29a1026b8b184596ba2854047872261b02b8ab22908a4b29889201ddc1856a38b706c3f8c77a0286f2
|
7
|
+
data.tar.gz: 68991d14641cee9915128bf7bd03ac371c7bcd8efda5803cfed61dca4da1c09d4415f873384ec48dd7c1a733c0306a1e68faca2f84a2b46b630bae58bbd9b0d2
|
data/lib/msgr/railtie.rb
CHANGED
@@ -32,12 +32,13 @@ module Msgr
|
|
32
32
|
|
33
33
|
def parse_config(cfg)
|
34
34
|
unless cfg.is_a? Hash
|
35
|
-
Rails.logger.
|
35
|
+
Rails.logger.warn '[Msgr] Could not load rabbitmq config: Config must be a Hash'
|
36
36
|
return nil
|
37
37
|
end
|
38
38
|
|
39
39
|
unless cfg[Rails.env].is_a?(Hash)
|
40
|
-
|
40
|
+
Rails.logger.warn "Could not load rabbitmq config for environment \"#{Rails.env}\": is not a Hash"
|
41
|
+
return nil
|
41
42
|
end
|
42
43
|
|
43
44
|
cfg = HashWithIndifferentAccess.new cfg[Rails.env]
|
data/lib/msgr/version.rb
CHANGED