Sha256: 63f02d71a18651b69b0c675894cf2d88f9c8dafa19b3715574a380d09d702d35
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-3.2.4 | lib/raygun/testable.rb |