Sha256: 256c4db8aff1bfe8bbf1eb03fdd477a4126c85946f2c82ae0a1275b7ea9c7ee3
Contents?: true
Size: 641 Bytes
Versions: 25
Compression:
Stored size: 641 Bytes
Contents
module Raygun class ItWorksException < StandardError; end module Testable def track_test_exception Raygun.configuration.silence_reporting = false raise ItWorksException.new("Woohoo! Your Raygun<->Ruby connection is set up correctly") rescue ItWorksException => e response = Raygun.track_exception(e) if response.success? puts "Success! Now go check your Raygun.io Dashboard" else puts "Oh-oh, something went wrong - double check your API key" puts "API Key - " << Raygun.configuration.api_key << ")" puts "API Response - " << response end end end end
Version data entries
25 entries across 25 versions & 1 rubygems