Sha256: 3863ca00b8f3f15d7bef3f582981fdf4c872fe0150ef6aafb739cb8017a18f7d

Contents?: true

Size: 506 Bytes

Versions: 15

Compression:

Stored size: 506 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
      if Raygun.track_exception(e).success?
        puts "Success! Now go check your Raygun.io Dashboard"
      else
        puts "Oh-oh, something went wrong - double check your API key"
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
raygun4ruby-1.1.8 lib/raygun/testable.rb
raygun4ruby-1.1.6 lib/raygun/testable.rb
raygun4ruby-1.1.5 lib/raygun/testable.rb
raygun4ruby-1.1.4 lib/raygun/testable.rb
raygun4ruby-1.1.3 lib/raygun/testable.rb
raygun4ruby-1.1.2 lib/raygun/testable.rb
raygun4ruby-1.1.1 lib/raygun/testable.rb
raygun4ruby-1.1.0 lib/raygun/testable.rb
raygun4ruby-1.0.1 lib/raygun/testable.rb
raygun4ruby-1.0.0 lib/raygun/testable.rb
raygun4ruby-0.0.9 lib/raygun/testable.rb
raygun4ruby-0.0.6 lib/raygun/testable.rb
raygun4ruby-0.0.5 lib/raygun/testable.rb
raygun4ruby-0.0.4 lib/raygun/testable.rb
raygun4ruby-0.0.3 lib/raygun/testable.rb