lib/mutest/env/bootstrap.rb in mutest-0.0.9 vs lib/mutest/env/bootstrap.rb in mutest-0.0.10
- old
+ new
@@ -1,10 +1,12 @@
module Mutest
class Env
# Bootstrap environment
class Bootstrap
- include Adamantium::Flat, Concord::Public.new(:config), Procto.call(:env)
+ include Procto.call(:env)
+ include Concord::Public.new(:config)
+ include Adamantium::Flat
SEMANTICS_MESSAGE_FORMAT =
"%<message>s. Fix your lib to follow normal ruby semantics!\n" \
'{Module,Class}#name should return resolvable constant name as String or nil'.freeze
@@ -81,11 +83,11 @@
#
# @return [nil]
# otherwise
def scope_name(scope)
scope.name
- rescue => exception
+ rescue StandardError => exception
semantics_warning(
CLASS_NAME_RAISED_EXCEPTION,
exception: exception.inspect,
scope: scope,
scope_class: scope.class
@@ -152,8 +154,8 @@
# @return [undefined]
def semantics_warning(format, **options)
message = format % options
warn(format(SEMANTICS_MESSAGE_FORMAT, message: message))
end
- end # Bootstrap
- end # Env
-end # Mutest
+ end
+ end
+end