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

Version Path
raygun4ruby-3.2.3 lib/raygun/testable.rb
raygun4ruby-3.2.3.pre lib/raygun/testable.rb
raygun4ruby-3.2.1 lib/raygun/testable.rb
raygun4ruby-3.2.0 lib/raygun/testable.rb
raygun4ruby-3.1.1 lib/raygun/testable.rb
raygun4ruby-3.1.0 lib/raygun/testable.rb
raygun4ruby-3.0.0 lib/raygun/testable.rb
raygun4ruby-2.7.1 lib/raygun/testable.rb
raygun4ruby-2.7.0 lib/raygun/testable.rb
raygun4ruby-2.6.0 lib/raygun/testable.rb
raygun4ruby-2.5.0 lib/raygun/testable.rb
raygun4ruby-2.4.1 lib/raygun/testable.rb
raygun4ruby-2.4.0 lib/raygun/testable.rb
raygun4ruby-2.3.0 lib/raygun/testable.rb
raygun4ruby-2.2.0 lib/raygun/testable.rb
raygun4ruby-2.1.0 lib/raygun/testable.rb
raygun4ruby-2.0.0 lib/raygun/testable.rb
raygun4ruby-1.5.0 lib/raygun/testable.rb
raygun4ruby-1.4.0 lib/raygun/testable.rb
raygun4ruby-1.3.0 lib/raygun/testable.rb