config_context 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/config_context.rb +2 -2
  2. data/lib/version.rb +2 -2
  3. metadata +9 -9
@@ -60,8 +60,8 @@ module ConfigContext
60
60
  @config[options[:context]] ||= { }
61
61
 
62
62
  case source
63
- when /\.(yml|yaml)/i then @config[options[:context]].merge!(YAML.load_file(source)) rescue raise ConfigError.new("Problems loading file")
64
- when /\.json/i then @config[options[:context]].merge!(JSON.parse(File.read(source))) rescue raise ConfigError.new("Problems loading file")
63
+ when /\.(yml|yaml)/i then @config[options[:context]].merge!(YAML.load_file(source)) rescue raise ConfigError.new("Problems loading file: #{source}")
64
+ when /\.json/i then @config[options[:context]].merge!(JSON.parse(File.read(source))) rescue raise ConfigError.new("Problems loading file: #{source}")
65
65
  when Hash then @config[options[:context]].merge!(source)
66
66
  else
67
67
  yield self if block_given?
@@ -4,7 +4,7 @@ module ConfigContext
4
4
  INFO = {
5
5
  :major =>0,
6
6
  :minor =>7,
7
- :patch =>1
7
+ :patch =>2
8
8
  }
9
9
 
10
10
  def self.number(version_info=INFO)
@@ -21,4 +21,4 @@ module ConfigContext
21
21
  NUMBER = "#{number()}"
22
22
  VERSION = [INFO[:major], INFO[:minor], INFO[:patch]].join( '.' )
23
23
  end
24
- end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_context
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-06-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &2157279800 !ruby/object:Gem::Requirement
16
+ requirement: &2153672740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157279800
24
+ version_requirements: *2153672740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jeweler
27
- requirement: &2157278940 !ruby/object:Gem::Requirement
27
+ requirement: &2153671400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2157278940
35
+ version_requirements: *2153671400
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rcov
38
- requirement: &2157277720 !ruby/object:Gem::Requirement
38
+ requirement: &2153670380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2157277720
46
+ version_requirements: *2153670380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: json
49
- requirement: &2157276440 !ruby/object:Gem::Requirement
49
+ requirement: &2153669100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2157276440
57
+ version_requirements: *2153669100
58
58
  description: My config DSL
59
59
  email: javier.juarez@gmail.com
60
60
  executables: []