lib/lorj_defaults.rb in lorj-1.0.10 vs lib/lorj_defaults.rb in lorj-1.0.11

- old
+ new

@@ -226,13 +226,16 @@ # * *Raises* : # - ++ -> def get_meta_section(key) PrcLib.debug("'Lorj.defaults.%s' is obsolete and will be removed "\ 'in Lorj 2.0. Please update your code to call '\ - "'Lorj.data.%s' instead.\n%s", - __method__, 'first_section', caller[0]) - Lorj.data.first_section(key) + "'Lorj.data.%s' instead.\n%s. Warning! This function call "\ + "return is different than 'Lorj.defaults.%s'. Please read "\ + 'the documentation', + __method__, 'first_section', caller[0], __method__) + section, = Lorj.data.first_section(key) + section end # # # * *Args* : @@ -241,10 +244,10 @@ # - # * *Raises* : # - ++ -> def load if !PrcLib.app_defaults - PrcLib.warning('PrcLib.app_defaults is not set. Application defaults'\ + PrcLib.debug('PrcLib.app_defaults is not set. Application defaults'\ " won't be loaded.") else @filename = File.join(PrcLib.app_defaults, 'defaults.yaml') PrcLib.info("Reading default configuration '%s'...", @filename)