toadhopper 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +0 -2
- data/lib/toadhopper.rb +5 -5
- metadata +2 -2
data/Gemfile
CHANGED
data/lib/toadhopper.rb
CHANGED
@@ -5,7 +5,7 @@ require 'nokogiri'
|
|
5
5
|
|
6
6
|
# Posts errors to the Hoptoad API
|
7
7
|
class ToadHopper
|
8
|
-
VERSION = "0.9.
|
8
|
+
VERSION = "0.9.2"
|
9
9
|
|
10
10
|
# Hoptoad API response
|
11
11
|
class Response < Struct.new(:status, :body, :errors); end
|
@@ -15,7 +15,7 @@ class ToadHopper
|
|
15
15
|
def initialize(api_key)
|
16
16
|
@api_key = api_key
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
# Sets patterns to +[FILTER]+ out sensitive data such as +/password/+, +/email/+ and +/credit_card_number/+
|
20
20
|
def filters=(*filters)
|
21
21
|
@filters = filters.flatten
|
@@ -94,14 +94,14 @@ class ToadHopper
|
|
94
94
|
:project_root => Dir.pwd
|
95
95
|
}.merge(options)
|
96
96
|
|
97
|
-
Haml::Engine.new(notice_template).render(Object.new, defaults)
|
97
|
+
Haml::Engine.new(notice_template, :escape_html => true).render(Object.new, defaults)
|
98
98
|
end
|
99
|
-
|
99
|
+
|
100
100
|
# @private
|
101
101
|
def backtrace_line(line)
|
102
102
|
Struct.new(:file, :number, :method).new(*line.match(%r{^([^:]+):(\d+)(?::in `([^']+)')?$}).captures)
|
103
103
|
end
|
104
|
-
|
104
|
+
|
105
105
|
# @private
|
106
106
|
def notice_template
|
107
107
|
File.read(::File.join(::File.dirname(__FILE__), 'notice.haml'))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toadhopper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Lucas
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-12-
|
14
|
+
date: 2009-12-16 00:00:00 -08:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|