lib/toadhopper.rb in toadhopper-1.0.2 vs lib/toadhopper.rb in toadhopper-1.0.3

- old
+ new

@@ -2,11 +2,12 @@ require 'erb' require 'ostruct' # Posts errors to the Hoptoad API class Toadhopper - VERSION = "1.0.2" + VERSION = "1.0.3" + FILTER_REPLACEMENT = "[FILTERED]" # Hoptoad API response class Response < Struct.new(:status, :body, :errors); end attr_reader :api_key @@ -121,10 +122,10 @@ end end def filtered_value(key, value) if filters.any? {|f| key.to_s =~ Regexp.new(f)} - "[FILTERED]" + FILTER_REPLACEMENT else value end end