yell 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -3
- data/lib/yell/configuration.rb +7 -4
- data/lib/yell/version.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
data/lib/yell/configuration.rb
CHANGED
@@ -10,11 +10,14 @@ module Yell #:nodoc:
|
|
10
10
|
class Configuration
|
11
11
|
|
12
12
|
def self.load!( file )
|
13
|
-
|
14
|
-
yaml = ERB.new(File.read(file)).result
|
13
|
+
yaml = YAML.load( ERB.new(File.read(file)).result )
|
15
14
|
|
16
|
-
#
|
17
|
-
|
15
|
+
# in case we have ActiveSupport
|
16
|
+
if yaml.respond_to?( :with_indifference_access )
|
17
|
+
yaml = yaml.with_indifferent_access
|
18
|
+
end
|
19
|
+
|
20
|
+
yaml[Yell.env] || {}
|
18
21
|
end
|
19
22
|
|
20
23
|
end
|
data/lib/yell/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Yell - Your Extensible Logging Library. Define multiple adapters, various
|
15
15
|
log level combinations or message formatting options like you've never done before
|