markbates-hoptoad_notifier 1.2.0.1 → 1.2.0.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.
Files changed (3) hide show
  1. data/README +11 -1
  2. data/lib/hoptoad_notifier.rb +3 -2
  3. metadata +2 -2
data/README CHANGED
@@ -140,7 +140,7 @@ Hoptoad ignores the following exceptions by default:
140
140
  ActionController::RoutingError
141
141
  ActionController::InvalidAuthenticityToken
142
142
  CGI::Session::CookieStore::TamperedWithCookie
143
-
143
+
144
144
  To ignore errors in addition to those, specify their names in your Hoptoad
145
145
  configuration block.
146
146
 
@@ -175,6 +175,16 @@ To ignore exceptions based on other conditions, use #ignore_by_filter:
175
175
  end
176
176
  end
177
177
 
178
+ To replace sensitive information sent to the hoptoad service with [FILTERED] use #environment_filters:
179
+
180
+ HoptoadNotifier.configure do |config|
181
+ config.api_key = '1234567890abcdef'
182
+ config.environment_filters << "AWS_SECRET"
183
+ config.environment_filters << "EC2_PRIVATE_KEY"
184
+ config.environment_filters << "AWS_ACCESS"
185
+ config.environment_filters << "EC2_CERT"
186
+ end
187
+
178
188
  TESTING
179
189
 
180
190
  When you run your tests, you might notice that the hoptoad service is recording
@@ -69,7 +69,7 @@ module HoptoadNotifier
69
69
  # An array of environments that are considered 'public' Default is:
70
70
  # ['production', 'staging']
71
71
  def public_environments
72
- @public_environments ||= ['production', 'staging']
72
+ @public_environments ||= ['production', 'staging', 'backstage']
73
73
  end
74
74
 
75
75
  def current_environment=(environment)
@@ -140,7 +140,8 @@ module HoptoadNotifier
140
140
  end
141
141
 
142
142
  def environment_info
143
- "[Rails: #{::Rails::VERSION::STRING}] [Ruby: #{RUBY_VERSION}] [RailsEnv: #{RAILS_ENV}]"
143
+ info = "[Ruby: #{RUBY_VERSION}]"
144
+ info << " [Rails: #{::Rails::VERSION::STRING}] [RailsEnv: #{RAILS_ENV}]" if defined?(Rails)
144
145
  end
145
146
 
146
147
  def write_verbose_log(message)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markbates-hoptoad_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.1
4
+ version: 1.2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thoughtbot
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-28 00:00:00 -07:00
12
+ date: 2009-09-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15