lib/percheron/oh_dear.rb in percheron-0.6.4 vs lib/percheron/oh_dear.rb in percheron-0.7.0

- old
+ new

@@ -4,12 +4,21 @@ def initialize(exception) @exception = exception end def generate - <<-EOS + template + end + private + + attr_reader :exception + + # rubocop:disable Metrics/MethodLength + def template + <<-EOS + OH DEAR, we are terribly sorry.. something unexpected occurred :( --snip-- Info @@ -23,17 +32,16 @@ #{exception_backtrace} --snip-- -Please copy the detail between the --snip--'s above and raise a ticket - https://github.com/ashmckenzie/percheron/issues/new?labels=bug +Please copy the detail between the --snip--'s above and raise a ticket please :) - EOS - end +https://github.com/ashmckenzie/percheron/issues/new?labels=bug - private - - attr_reader :exception +EOS + end + # rubocop:enable Metrics/MethodLength def exception_message exception.inspect end