lib/rake/funnel/integration/progress_report.rb in rake-funnel-0.18.0 vs lib/rake/funnel/integration/progress_report.rb in rake-funnel-0.19.0

- old
+ new

@@ -27,15 +27,16 @@ def disable! patch.revert! end private + def patch @patch ||= create_patch end - def create_patch + def create_patch # rubocop:disable Metrics/MethodLength, Metrics/AbcSize Rake::Funnel::Support::Patch.new(self) do |p| p.setup do |context| Rake::Task.class_eval do old_execute = instance_method(:execute) @@ -47,10 +48,10 @@ old_execute.bind(self).call(args) rescue => e error = e ensure context.finished.call(self, args, error) if context.finished - fail error if error + raise error if error end end old_execute end