lib/rapporteur.rb in rapporteur-3.6.0 vs lib/rapporteur.rb in rapporteur-3.6.1

- old
+ new

@@ -1,8 +1,10 @@ -require "rapporteur/engine" if defined?(Rails) -require "rapporteur/version" +# frozen_string_literal: true +require 'rapporteur/engine' if defined?(Rails) +require 'rapporteur/version' + # Rapporteur is a Rails Engine which provides your application with an # application status endpoint. # module Rapporteur autoload :CheckList, 'rapporteur/check_list' @@ -10,11 +12,10 @@ autoload :CheckerDeprecations, 'rapporteur/checker_deprecations' autoload :Checks, 'rapporteur/checks' autoload :MessageList, 'rapporteur/message_list' autoload :Revision, 'rapporteur/revision' - # Public: Add a pre-built or custom check to your status endpoint. These # checks are used to test the state of the world of the application, and # need only respond to `#call`. # # Once added, the given check will be called and passed an instance of this @@ -28,10 +29,10 @@ # } # # Returns the Checker instance. # Raises ArgumentError if the given check does not respond to call. # - def self.add_check(object_or_nil_with_block=nil, &block) + def self.add_check(object_or_nil_with_block = nil, &block) checker.add_check(object_or_nil_with_block, &block) end # Internal: The Checker instance. All toplevel calls on Rapporteur are # delgated to this object.