Sha256: 19bc5cc2fd945f30b456044711d86c589e9a093322ca8cfdb118d4d6ab3270b2
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
module Safely module Strategy class Hoptoad class << self # Hoptoad API key to use for reporting errors attr_accessor :hoptoad_key def load! begin require 'toadhopper' rescue LoadError $stderr.write( "'toadhopper' not available, safely cannot use the Hoptoad stategy" ) end end def report!( exception ) if defined?( Toadhopper ) && !self.hoptoad_key.nil? Toadhopper( self.hoptoad_key ).post!( exception ) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
safely-0.3.1 | lib/safely/strategy/hoptoad.rb |
safely-0.3.0 | lib/safely/strategy/hoptoad.rb |
safely-0.2.0 | lib/safely/strategy/hoptoad.rb |
safely-0.1.0 | lib/safely/strategy/hoptoad.rb |