lib/confuse/config_mixin.rb in confuse-0.1.3 vs lib/confuse/config_mixin.rb in confuse-0.1.4

- old
+ new

@@ -10,12 +10,13 @@ end def load_namespaces(new_namespaces) new_namespaces.each do |key, value| existing = namespaces[key] - existing ? existing.merge!(value) : namespaces[key] = value + existing ? existing.merge!(value) : namespaces[key] = value.clone end + @foo = true end def read_files(file_paths) Array(file_paths).map do |path| if File.directory?(path) @@ -33,9 +34,10 @@ return ns unless rest_of_key ns[rest_of_key, self] end def []=(key, value) + puts "WARNING: changing config after it has been set!" mixin_config!({key => value}) end def to_hash namespaces.reduce({}) do |memo, (name, namespace)|