exception_handling 0.1.2 → 0.2.0
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +0 -2
- data/Gemfile.lock +17 -17
- data/LICENSE +1 -1
- data/config/exception_filters.yml +32 -13
- data/exception_handling.gemspec +5 -5
- data/lib/exception_handling/version.rb +1 -1
- data/lib/exception_handling.rb +5 -5
- data/test/exception_handling_test.rb +3 -2
- data/test/test_helper.rb +1 -1
- metadata +25 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29c963a8d5c2ca837a7abcc3b4554d075fe9383a
|
4
|
+
data.tar.gz: 4307bfe7dee9b79fcb82f711d61f00edb81c27d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa979ae72aff2be2c7ae721473ed379073194b9f15fbc84302eeaf48b43fcaa4191de9c08ba03b1a211311ffc443093bccac290d5a43f63fb09fa0f019ae02a
|
7
|
+
data.tar.gz: 5f3b24b043d0d5213fee3611f5552feb5144a5261a2810cb8ccb10997daea23b1d64d53e10f68ee2d78ae1744d35536bcdf16780239007a52e073d6cf1dc73b9
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.2
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
exception_handling (0.
|
5
|
-
actionmailer (
|
6
|
-
actionpack (
|
7
|
-
activesupport (
|
4
|
+
exception_handling (0.2.0)
|
5
|
+
actionmailer (~> 3.2)
|
6
|
+
actionpack (~> 3.2)
|
7
|
+
activesupport (~> 3.2)
|
8
8
|
eventmachine (>= 0.12.10)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actionmailer (3.2.
|
14
|
-
actionpack (= 3.2.
|
15
|
-
mail (~> 2.5.
|
16
|
-
actionpack (3.2.
|
17
|
-
activemodel (= 3.2.
|
18
|
-
activesupport (= 3.2.
|
13
|
+
actionmailer (3.2.19)
|
14
|
+
actionpack (= 3.2.19)
|
15
|
+
mail (~> 2.5.4)
|
16
|
+
actionpack (3.2.19)
|
17
|
+
activemodel (= 3.2.19)
|
18
|
+
activesupport (= 3.2.19)
|
19
19
|
builder (~> 3.0.0)
|
20
20
|
erubis (~> 2.7.0)
|
21
21
|
journey (~> 1.0.4)
|
@@ -23,11 +23,11 @@ GEM
|
|
23
23
|
rack-cache (~> 1.2)
|
24
24
|
rack-test (~> 0.6.1)
|
25
25
|
sprockets (~> 2.2.1)
|
26
|
-
activemodel (3.2.
|
27
|
-
activesupport (= 3.2.
|
26
|
+
activemodel (3.2.19)
|
27
|
+
activesupport (= 3.2.19)
|
28
28
|
builder (~> 3.0.0)
|
29
|
-
activesupport (3.2.
|
30
|
-
i18n (
|
29
|
+
activesupport (3.2.19)
|
30
|
+
i18n (~> 0.6, >= 0.6.4)
|
31
31
|
multi_json (~> 1.0)
|
32
32
|
bourne (1.3.0)
|
33
33
|
mocha (= 0.13.0)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
erubis (2.7.0)
|
36
36
|
eventmachine (1.0.3)
|
37
37
|
hike (1.2.3)
|
38
|
-
i18n (0.6.
|
38
|
+
i18n (0.6.11)
|
39
39
|
journey (1.0.4)
|
40
40
|
mail (2.5.4)
|
41
41
|
mime-types (~> 1.16)
|
@@ -44,8 +44,8 @@ GEM
|
|
44
44
|
mime-types (1.25.1)
|
45
45
|
mocha (0.13.0)
|
46
46
|
metaclass (~> 0.0.1)
|
47
|
-
multi_json (1.
|
48
|
-
polyglot (0.3.
|
47
|
+
multi_json (1.10.1)
|
48
|
+
polyglot (0.3.5)
|
49
49
|
rack (1.4.5)
|
50
50
|
rack-cache (1.2)
|
51
51
|
rack (>= 0.4)
|
data/LICENSE
CHANGED
@@ -3,10 +3,10 @@ All script kiddies:
|
|
3
3
|
error: "ScriptKiddie suspected because of HTTP request without a referer"
|
4
4
|
|
5
5
|
Tony Robbins:
|
6
|
-
request: "
|
6
|
+
request: "url: https?\\:\\/\\/www\\.tonyrobbins\\.com"
|
7
7
|
|
8
8
|
Soulful Beauty:
|
9
|
-
request: "HTTP_REFERER: http://.*soulfulbeauty
|
9
|
+
request: "HTTP_REFERER: http://.*soulfulbeauty\\.com"
|
10
10
|
|
11
11
|
The Credit Exchange:
|
12
12
|
error: "VirtualLine.find_by_external_ids - No promo number found.*Affiliate id from network (1389811|3079560|3366822|3179522|3375281|3375756|3362634|550151) not found"
|
@@ -24,7 +24,7 @@ Options Request:
|
|
24
24
|
|
25
25
|
Click Request Rejected:
|
26
26
|
error: "Request to click domain rejected"
|
27
|
-
request: "controller:
|
27
|
+
request: "controller: sessions"
|
28
28
|
|
29
29
|
Staging Full Started:
|
30
30
|
error: "Mysql::Error: Can't connect to MySQL server on 'stagingmaster.ringrevenue.com'"
|
@@ -39,7 +39,7 @@ NoRouteOnTerms:
|
|
39
39
|
error: "ActionController.*RoutingError.*No route matches.*campaign_terms"
|
40
40
|
|
41
41
|
InvalidAuth:
|
42
|
-
error: "Invalid authenticity token received from.*new
|
42
|
+
error: "Invalid authenticity token received from.*new\\?"
|
43
43
|
|
44
44
|
NoRoute:
|
45
45
|
error: "No route matches"
|
@@ -57,25 +57,25 @@ Archiver mangling caused missing template:
|
|
57
57
|
environment: "(aihit|archive)"
|
58
58
|
|
59
59
|
Number Loader 404s from invalid url concatenation:
|
60
|
-
request: "url: https
|
60
|
+
request: "url: https?:\\/\\/js\\d{0,2}\\.ringrevenue.com\\/"
|
61
61
|
error: "Broken link.*ActiveRecord::RecordNotFound"
|
62
62
|
|
63
63
|
collegequest bad TLD:
|
64
64
|
error: "Hostname 'me.cq' does not have a known public suffix"
|
65
65
|
|
66
66
|
Ignite calls API:
|
67
|
-
request: "calls
|
67
|
+
request: "calls\\/10\\.xml"
|
68
68
|
|
69
69
|
BrokenLinkAfterLogin:
|
70
70
|
error: "Found broken link after user logged in from"
|
71
71
|
|
72
72
|
Link Trust Pixel Firing:
|
73
|
-
error: "Errno::ECONNREFUSED.*(linktrust
|
73
|
+
error: "Errno::ECONNREFUSED.*(linktrust\\.com|mobitracking\\.com|xy7track\\.com|mbltrack\\.com)"
|
74
74
|
|
75
75
|
# JAVASCRIPT exceptions
|
76
76
|
# http://www.roslindesign.com/2010/10/12/avg-antivirus-2011-corrupting-web-pages-with-injection-of-script-avg_ls_dom-js/
|
77
77
|
AVG Anti Virus:
|
78
|
-
request: "avg_ls_dom
|
78
|
+
request: "avg_ls_dom\\.js"
|
79
79
|
|
80
80
|
Firefox Framework Bug:
|
81
81
|
error: "Javascript: window.onerror: Permission denied to access property 'nodeType' from a non-chrome context"
|
@@ -83,7 +83,7 @@ Firefox Framework Bug:
|
|
83
83
|
|
84
84
|
Javascript Error Loading Script:
|
85
85
|
error: "Javascript: window.onerror: Error loading script"
|
86
|
-
request: "filename: .*hubspot
|
86
|
+
request: "filename: .*hubspot\\.com.*"
|
87
87
|
|
88
88
|
Javascript Plugin Errors:
|
89
89
|
error: "Javascript: window.onerror: Script error"
|
@@ -105,9 +105,6 @@ Sale for the same reason and sku:
|
|
105
105
|
Found Inconsistent Caller Id Settings:
|
106
106
|
error: "CampaignIds:CampaignTerms_7542,CampaignTerms_7544,CampaignTerms_8242,CampaignTerms_8478,CampaignTerms_9244"
|
107
107
|
|
108
|
-
Invalid tacked_action referrer:
|
109
|
-
error: "StandardError: process_click_from_network_id - saving click failed.: Mysql::Error: Incorrect string value:.*for column 'referrer'.*INSERT INTO `tracked_actions`"
|
110
|
-
|
111
108
|
invalid click domain rdparking:
|
112
109
|
error: "Request to click domain rejected"
|
113
110
|
request: ".*rdparking.*"
|
@@ -129,10 +126,32 @@ buffered_sale:
|
|
129
126
|
|
130
127
|
SQL Injection Attempts:
|
131
128
|
request: "controller: virtual_lines"
|
132
|
-
request: "av_id:
|
129
|
+
request: "av_id: \\D\\d*\\D\\d*\\D\\d*\\D"
|
133
130
|
|
134
131
|
Opera Browser:
|
135
132
|
environment: "HTTP_USER_AGENT: Opera"
|
136
133
|
|
137
134
|
Affiliate Map Number invalid requests:
|
138
135
|
error: "Publisher Map Number returning with invalid campaign"
|
136
|
+
|
137
|
+
Long Event Response:
|
138
|
+
error: "RingSwitch Long EventResponse"
|
139
|
+
|
140
|
+
NoBridge:
|
141
|
+
error: "Bridge outcall hasn't been answered in"
|
142
|
+
|
143
|
+
LongControllerAction:
|
144
|
+
error: "Long controller action detected"
|
145
|
+
|
146
|
+
Salesforce Integration Old Method:
|
147
|
+
error: "SalesForceIntegration::InvalidType: INVALID_TYPE: sObject type"
|
148
|
+
|
149
|
+
Salesforce Integration Expired Password:
|
150
|
+
error: "INVALID_OPERATION_WITH_EXPIRED_PASSWORD"
|
151
|
+
|
152
|
+
Salesforce Integration Invalid Login:
|
153
|
+
error: "SalesForceIntegration::InvalidLogin"
|
154
|
+
|
155
|
+
Web Integration Invalid Advertiser Id:
|
156
|
+
error: "VirtualLinesController::NumberMapper::InvalidAdvertiserId"
|
157
|
+
|
data/exception_handling.gemspec
CHANGED
@@ -2,9 +2,9 @@ require File.expand_path('../lib/exception_handling/version', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.add_dependency 'eventmachine', '>=0.12.10'
|
5
|
-
gem.add_dependency 'activesupport', '3.2
|
6
|
-
gem.add_dependency 'actionpack', '3.2
|
7
|
-
gem.add_dependency 'actionmailer', '3.2
|
5
|
+
gem.add_dependency 'activesupport', '~> 3.2'
|
6
|
+
gem.add_dependency 'actionpack', '~> 3.2'
|
7
|
+
gem.add_dependency 'actionmailer', '~> 3.2'
|
8
8
|
gem.add_development_dependency 'rake', '>=0.9'
|
9
9
|
gem.add_development_dependency 'shoulda', '=3.1.1'
|
10
10
|
gem.add_development_dependency 'mocha', '=0.13.0'
|
@@ -12,8 +12,8 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.authors = ["Colin Kelley"]
|
13
13
|
gem.email = ["colindkelley@gmail.com"]
|
14
14
|
gem.description = %q{Exception handling logger/emailer}
|
15
|
-
gem.summary = %q{
|
16
|
-
gem.homepage = "https://github.com/
|
15
|
+
gem.summary = %q{Invoca's exception handling logger/emailer layer, based on exception_notifier. Works with Rails or EventMachine or EventMachine+Synchrony.}
|
16
|
+
gem.homepage = "https://github.com/Invoca/exception_handling"
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($\)
|
19
19
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/exception_handling.rb
CHANGED
@@ -43,12 +43,12 @@ HTTP_ACCEPT_ENCODING: gzip,deflate
|
|
43
43
|
HTTP_ACCEPT_LANGUAGE: en-us
|
44
44
|
HTTP_CACHE_CONTROL: no-cache
|
45
45
|
HTTP_CONNECTION: Keep-Alive
|
46
|
-
HTTP_HOST: www.
|
46
|
+
HTTP_HOST: www.invoca.com
|
47
47
|
HTTP_MAX_FORWARDS: 10
|
48
48
|
HTTP_UA_CPU: x86
|
49
49
|
HTTP_VERSION: HTTP/1.1
|
50
|
-
HTTP_X_FORWARDED_HOST: www.
|
51
|
-
HTTP_X_FORWARDED_SERVER: www2.
|
50
|
+
HTTP_X_FORWARDED_HOST: www.invoca.com
|
51
|
+
HTTP_X_FORWARDED_SERVER: www2.invoca.com
|
52
52
|
HTTP_X_REQUESTED_WITH: XMLHttpRequest
|
53
53
|
LANG:
|
54
54
|
LANG:
|
@@ -58,7 +58,7 @@ RAILS_ENV: production
|
|
58
58
|
RAW_POST_DATA: id=500
|
59
59
|
REMOTE_ADDR: 10.251.34.225
|
60
60
|
SCRIPT_NAME: /
|
61
|
-
SERVER_NAME: www.
|
61
|
+
SERVER_NAME: www.invoca.com
|
62
62
|
SERVER_PORT: 80
|
63
63
|
SERVER_PROTOCOL: HTTP/1.1
|
64
64
|
SERVER_SOFTWARE: Mongrel 1.1.4
|
@@ -514,7 +514,7 @@ EOF
|
|
514
514
|
def match?(exception_data)
|
515
515
|
@regexes.all? do |section, regex|
|
516
516
|
regex.nil? ||
|
517
|
-
case exception_data[section]
|
517
|
+
case exception_data[section.to_s]
|
518
518
|
when String
|
519
519
|
regex =~ exception_data[section]
|
520
520
|
when Array
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require './test/test_helper'
|
2
|
+
require 'minitest/autorun'
|
2
3
|
require 'exception_handling'
|
3
4
|
|
4
5
|
ExceptionHandling.email_environment = 'test'
|
@@ -476,7 +477,7 @@ end
|
|
476
477
|
data.merge!(:event_response => EventResponse.new)
|
477
478
|
end
|
478
479
|
assert_emails 1
|
479
|
-
assert_match /message from to_s!/, ActionMailer::Base.deliveries.last.body
|
480
|
+
assert_match /message from to_s!/, ActionMailer::Base.deliveries.last.body.to_s
|
480
481
|
end
|
481
482
|
end
|
482
483
|
|
@@ -615,7 +616,7 @@ end
|
|
615
616
|
assert_emails 1, ActionMailer::Base.deliveries.map { |m| m.body.inspect }
|
616
617
|
assert mail = ActionMailer::Base.deliveries.last
|
617
618
|
assert_equal ['exceptions@example.com'], mail.to
|
618
|
-
assert_equal 'server@example.com', mail.from.to_s
|
619
|
+
assert_equal ['server@example.com'].to_s, mail.from.to_s
|
619
620
|
assert_match /Exception 1/, mail.to_s
|
620
621
|
assert_match /key: DECAFE/, mail.to_s
|
621
622
|
assert_match /id: 10993/, mail.to_s
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_handling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Kelley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.12.10
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.12.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.2
|
33
|
+
version: '3.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.2
|
40
|
+
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.2
|
47
|
+
version: '3.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.2
|
54
|
+
version: '3.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: actionmailer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.2
|
61
|
+
version: '3.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.2
|
68
|
+
version: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0.9'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -115,8 +115,8 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
-
- .gitignore
|
119
|
-
- .ruby-version
|
118
|
+
- ".gitignore"
|
119
|
+
- ".ruby-version"
|
120
120
|
- Gemfile
|
121
121
|
- Gemfile.lock
|
122
122
|
- LICENSE
|
@@ -133,7 +133,7 @@ files:
|
|
133
133
|
- views/exception_handling/mailer/escalation_notification.html.erb
|
134
134
|
- views/exception_handling/mailer/exception_notification.html.erb
|
135
135
|
- views/exception_handling/mailer/log_parser_exception_notification.html.erb
|
136
|
-
homepage: https://github.com/
|
136
|
+
homepage: https://github.com/Invoca/exception_handling
|
137
137
|
licenses: []
|
138
138
|
metadata: {}
|
139
139
|
post_install_message:
|
@@ -142,20 +142,20 @@ require_paths:
|
|
142
142
|
- lib
|
143
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.2.2
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
|
-
summary:
|
158
|
+
summary: Invoca's exception handling logger/emailer layer, based on exception_notifier.
|
159
159
|
Works with Rails or EventMachine or EventMachine+Synchrony.
|
160
160
|
test_files:
|
161
161
|
- test/exception_handling_test.rb
|