rare_map 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ module RareMap
12
12
  private
13
13
  def organize_config_properties(raw_config)
14
14
  db_profiles = []
15
- global_opts = Options.new(raw_config.delete OPTS_KEY) if raw_config[OPTS_KEY]
15
+ global_opts = Options.new(raw_config.delete OPTS_KEY)
16
16
 
17
17
  raw_config.each do |k, v|
18
18
  case v.class.name
@@ -24,12 +24,13 @@ module RareMap
24
24
  end
25
25
  when 'Array'
26
26
  v = v.reduce(:merge)
27
- group_opts = Options.new(v.delete(OPTS_KEY), k)
27
+ group_opts = Options.new(v.delete(OPTS_KEY) || global_opts.opts, k)
28
+
28
29
  v.each do |db, config|
29
30
  if config[OPTS_KEY]
30
31
  db_profiles << DatabaseProfile.new(remove_opts(config), Options.new(config[OPTS_KEY], k))
31
32
  else
32
- db_profiles << DatabaseProfile.new(config, group_opts || global_opts)
33
+ db_profiles << DatabaseProfile.new(config, group_opts)
33
34
  end
34
35
  end
35
36
  end
@@ -2,7 +2,7 @@ class RareMap
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rare_map
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: -23609040902948162
145
+ hash: 2367325209493370529
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements: