toadhopper 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Gemfile +0 -2
  2. data/lib/toadhopper.rb +5 -5
  3. metadata +2 -2
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ only :release do
4
4
  end
5
5
 
6
6
  only :development do
7
- gem 'mg'
8
7
  gem 'yard'
9
8
  gem 'jeweler'
10
9
  end
@@ -14,4 +13,3 @@ only :test do
14
13
  gem 'nokogiri'
15
14
  gem 'test-unit', :require_as => 'test/unit'
16
15
  end
17
-
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.1"
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.1
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-15 00:00:00 -08:00
14
+ date: 2009-12-16 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency