Sha256: 1b50bfb87e5a5678971763d8f152d28e21a47f1532f6a2611cad4eea6f2c0db0

Contents?: true

Size: 593 Bytes

Versions: 29

Compression:

Stored size: 593 Bytes

Contents

require_relative '../lib/asana_exception_notifier'

AsanaExceptionNotifier::ErrorPage.class_eval do
  alias_method :original_initialize, :initialize

  def initialize(*args)
    original_initialize(*args)
    debug_html_template if ENV['DEBUG_ASANA_TEMPLATE']
  end

  def debug_html_template
    _filename, path = create_tempfile
    system("google-chrome #{path}")
    sleep until 0 == 1
  end
end

require_relative '../lib/generators/asana_exception_notifier/templates/asana_exception_notifier'
exception = StandardError.new
ExceptionNotifier.notify_exception(exception, notifiers: :asana)

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
asana_exception_notifier-0.0.9 spec/test_notification.rb
asana_exception_notifier-0.0.8 spec/test_notification.rb
asana_exception_notifier-0.0.7 spec/test_notification.rb
asana_exception_notifier-0.0.6 spec/test_notification.rb
asana_exception_notifier-0.0.5 spec/test_notification.rb
asana_exception_notifier-0.0.4 spec/test_notification.rb
asana_exception_notifier-0.0.3 spec/test_notification.rb
asana_exception_notifier-0.0.2 spec/test_notification.rb
asana_exception_notifier-0.0.1 spec/test_notification.rb