yell 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,10 @@ language: ruby
3
3
  script: "rspec"
4
4
 
5
5
  rvm:
6
- - 1.8.7
7
- - 1.9.2
8
- - 1.9.3
6
+ - ruby-1.8.7
7
+ - ruby-1.9.2
8
+ - ruby-1.9.3
9
+ - ruby-head
9
10
  - jruby-18mode
10
11
  - jruby-19mode
11
12
  - rbx-18mode
@@ -10,11 +10,14 @@ module Yell #:nodoc:
10
10
  class Configuration
11
11
 
12
12
  def self.load!( file )
13
- # parse through ERB
14
- yaml = ERB.new(File.read(file)).result
13
+ yaml = YAML.load( ERB.new(File.read(file)).result )
15
14
 
16
- # parse through YAML
17
- YAML.load(yaml)[Yell.env] || {}
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
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Yell #:nodoc:
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
 
6
6
  end
7
7
 
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.0
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-10-30 00:00:00.000000000 Z
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