lib/bovem/configuration.rb in bovem-2.1.3 vs lib/bovem/configuration.rb in bovem-2.2.0

- old
+ new

@@ -3,11 +3,11 @@ # This file is part of the bovem gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>. # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php. # module Bovem - # This class holds the configuration of an applicaton. + # This class holds the configuration of an application. # # Extend this class and add valid properties via {property property} method. # Example: # # ```ruby @@ -93,10 +93,10 @@ begin # Open the file path = file =~ /^#{File::SEPARATOR}/ ? file : ::Pathname.new(file).realpath.to_s logger.info(self.i18n.configuration.using(path)) if logger eval_file(path) - rescue ::Exception => e + rescue ::Exception => _ raise Bovem::Errors::InvalidConfiguration.new(self.i18n.configuration.invalid(file)) end end # Eval a configuration file. \ No newline at end of file