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.
- data/lib/rare_map/config_loader.rb +4 -3
- data/lib/rare_map/version.rb +1 -1
- metadata +2 -2
@@ -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)
|
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
|
33
|
+
db_profiles << DatabaseProfile.new(config, group_opts)
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
data/lib/rare_map/version.rb
CHANGED
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.
|
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:
|
145
|
+
hash: 2367325209493370529
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
none: false
|
148
148
|
requirements:
|