Skip to content

Commit

Permalink
Updated Readme: ignore exception and bot
Browse files Browse the repository at this point in the history
- Strip exception and bot name in config
  • Loading branch information
Jiren Patel committed Aug 2, 2013
1 parent b8d58f4 commit 22729bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Or install it yourself as:
environments: development,test #default is production
capture_code: true #default false
api_host: 'http://yourapp.com' #default http://rnotifier.com
ignore_exceptions: ActiveRecord::RecordNotFound,AbstractController::ActionNotFound,ActionController::RoutingError
ignore_bots: Googlebot

### To test config

Expand Down
4 changes: 2 additions & 2 deletions lib/rnotifier/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def init
self.exception_path = '/' + [DEFAULT[:api_version], DEFAULT[:exception_path]].join('/')
self.app_env = get_app_env

self.ignore_exceptions = self.ignore_exceptions.split(',') if self.ignore_exceptions.is_a?(String)
self.ignore_bots = self.ignore_bots.split(',') if self.ignore_bots.is_a?(String)
self.ignore_exceptions = self.ignore_exceptions.split(',').map(&:strip) if self.ignore_exceptions.is_a?(String)
self.ignore_bots = self.ignore_bots.split(',').map(&:strip) if self.ignore_bots.is_a?(String)

self.event_path = '/' + [DEFAULT[:api_version], DEFAULT[:event_path]].join('/')
self.valid = true
Expand Down
2 changes: 1 addition & 1 deletion lib/rnotifier/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Rnotifier
VERSION = "0.1.2"
VERSION = "0.1.3"
end

0 comments on commit 22729bf

Please sign in to comment.