configliere 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{configliere}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mrflip"]
12
- s.date = %q{2011-04-02}
12
+ s.date = %q{2011-04-03}
13
13
  s.default_executable = %q{configliere}
14
14
  s.description = %q{ You've got a script. It's got some settings. Some settings are for this module, some are for that module. Most of them don't change. Except on your laptop, where the paths are different. Or when you're in production mode. Or when you're testing from the command line.
15
15
 
@@ -18,6 +18,8 @@ module Configliere
18
18
  # If an :env option is given, only the indicated subhash is merged. This
19
19
  # lets you for example specify production / environment / test settings
20
20
  #
21
+ # @returns [Configliere::Params] the Settings object
22
+ #
21
23
  # @example
22
24
  # # Read from config/apey_eye.yaml and use settings appropriate for development/staging/production
23
25
  # Settings.read(root_path('config/apey_eye.yaml'), :env => (ENV['RACK_ENV'] || 'production'))
@@ -33,9 +35,10 @@ module Configliere
33
35
  params = params[handle] if handle.is_a?(Symbol)
34
36
  # Extract the :env (production/development/etc)
35
37
  if options[:env]
36
- params = params[options[:env]]
38
+ params = params[options[:env]] || {}
37
39
  end
38
40
  deep_merge! params
41
+ self
39
42
  end
40
43
 
41
44
  # save to disk.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - mrflip
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-02 00:00:00 -05:00
17
+ date: 2011-04-03 00:00:00 -05:00
18
18
  default_executable: configliere
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency