exception_notification 4.3.0 → 4.5.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.
Files changed (131) hide show
  1. checksums.yaml +5 -5
  2. data/Appraisals +4 -2
  3. data/CHANGELOG.rdoc +47 -0
  4. data/CONTRIBUTING.md +18 -0
  5. data/Gemfile +3 -1
  6. data/README.md +97 -945
  7. data/Rakefile +4 -2
  8. data/docs/notifiers/campfire.md +50 -0
  9. data/docs/notifiers/custom.md +42 -0
  10. data/docs/notifiers/datadog.md +51 -0
  11. data/docs/notifiers/email.md +195 -0
  12. data/docs/notifiers/google_chat.md +31 -0
  13. data/docs/notifiers/hipchat.md +66 -0
  14. data/docs/notifiers/irc.md +97 -0
  15. data/docs/notifiers/mattermost.md +115 -0
  16. data/docs/notifiers/slack.md +161 -0
  17. data/docs/notifiers/sns.md +37 -0
  18. data/docs/notifiers/teams.md +54 -0
  19. data/docs/notifiers/webhook.md +60 -0
  20. data/examples/sample_app.rb +56 -0
  21. data/examples/sinatra/Gemfile +8 -6
  22. data/examples/sinatra/config.ru +3 -1
  23. data/examples/sinatra/sinatra_app.rb +19 -11
  24. data/exception_notification.gemspec +30 -24
  25. data/gemfiles/{rails4_0.gemfile → rails5_2.gemfile} +2 -2
  26. data/gemfiles/{rails4_1.gemfile → rails6_0.gemfile} +2 -2
  27. data/gemfiles/{rails4_2.gemfile → rails6_1.gemfile} +2 -2
  28. data/gemfiles/{rails5_0.gemfile → rails7_0.gemfile} +2 -2
  29. data/lib/exception_notification/rack.rb +28 -30
  30. data/lib/exception_notification/rails.rb +2 -0
  31. data/lib/exception_notification/resque.rb +10 -10
  32. data/lib/exception_notification/sidekiq.rb +10 -12
  33. data/lib/exception_notification/version.rb +5 -0
  34. data/lib/exception_notification.rb +3 -0
  35. data/lib/exception_notifier/base_notifier.rb +10 -5
  36. data/lib/exception_notifier/datadog_notifier.rb +156 -0
  37. data/lib/exception_notifier/email_notifier.rb +73 -88
  38. data/lib/exception_notifier/google_chat_notifier.rb +27 -119
  39. data/lib/exception_notifier/hipchat_notifier.rb +13 -12
  40. data/lib/exception_notifier/irc_notifier.rb +36 -33
  41. data/lib/exception_notifier/mattermost_notifier.rb +54 -137
  42. data/lib/exception_notifier/modules/backtrace_cleaner.rb +2 -2
  43. data/lib/exception_notifier/modules/error_grouping.rb +24 -13
  44. data/lib/exception_notifier/modules/formatter.rb +125 -0
  45. data/lib/exception_notifier/notifier.rb +9 -6
  46. data/lib/exception_notifier/slack_notifier.rb +65 -40
  47. data/lib/exception_notifier/sns_notifier.rb +23 -13
  48. data/lib/exception_notifier/teams_notifier.rb +67 -46
  49. data/lib/exception_notifier/views/exception_notifier/_backtrace.html.erb +1 -1
  50. data/lib/exception_notifier/views/exception_notifier/_environment.text.erb +1 -1
  51. data/lib/exception_notifier/views/exception_notifier/_request.text.erb +1 -1
  52. data/lib/exception_notifier/views/exception_notifier/exception_notification.html.erb +2 -2
  53. data/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb +2 -2
  54. data/lib/exception_notifier/webhook_notifier.rb +17 -14
  55. data/lib/exception_notifier.rb +65 -10
  56. data/lib/generators/exception_notification/install_generator.rb +11 -5
  57. data/lib/generators/exception_notification/templates/{exception_notification.rb → exception_notification.rb.erb} +13 -11
  58. data/test/exception_notification/rack_test.rb +75 -13
  59. data/test/exception_notification/resque_test.rb +54 -0
  60. data/test/exception_notifier/datadog_notifier_test.rb +153 -0
  61. data/test/exception_notifier/email_notifier_test.rb +275 -153
  62. data/test/exception_notifier/google_chat_notifier_test.rb +158 -101
  63. data/test/exception_notifier/hipchat_notifier_test.rb +84 -81
  64. data/test/exception_notifier/irc_notifier_test.rb +36 -34
  65. data/test/exception_notifier/mattermost_notifier_test.rb +213 -67
  66. data/test/exception_notifier/modules/error_grouping_test.rb +41 -40
  67. data/test/exception_notifier/modules/formatter_test.rb +152 -0
  68. data/test/exception_notifier/sidekiq_test.rb +9 -17
  69. data/test/exception_notifier/slack_notifier_test.rb +66 -63
  70. data/test/exception_notifier/sns_notifier_test.rb +84 -32
  71. data/test/exception_notifier/teams_notifier_test.rb +25 -26
  72. data/test/exception_notifier/webhook_notifier_test.rb +52 -48
  73. data/test/exception_notifier_test.rb +150 -41
  74. data/test/support/exception_notifier_helper.rb +14 -0
  75. data/test/{dummy/app → support}/views/exception_notifier/_new_bkg_section.html.erb +0 -0
  76. data/test/{dummy/app → support}/views/exception_notifier/_new_bkg_section.text.erb +0 -0
  77. data/test/{dummy/app → support}/views/exception_notifier/_new_section.html.erb +0 -0
  78. data/test/{dummy/app → support}/views/exception_notifier/_new_section.text.erb +0 -0
  79. data/test/test_helper.rb +14 -13
  80. metadata +134 -175
  81. data/gemfiles/rails5_1.gemfile +0 -7
  82. data/lib/exception_notifier/campfire_notifier.rb +0 -40
  83. data/test/dummy/.gitignore +0 -4
  84. data/test/dummy/Rakefile +0 -7
  85. data/test/dummy/app/controllers/application_controller.rb +0 -3
  86. data/test/dummy/app/controllers/posts_controller.rb +0 -30
  87. data/test/dummy/app/helpers/application_helper.rb +0 -2
  88. data/test/dummy/app/helpers/posts_helper.rb +0 -2
  89. data/test/dummy/app/models/post.rb +0 -2
  90. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  91. data/test/dummy/app/views/posts/_form.html.erb +0 -0
  92. data/test/dummy/app/views/posts/new.html.erb +0 -0
  93. data/test/dummy/app/views/posts/show.html.erb +0 -0
  94. data/test/dummy/config/application.rb +0 -42
  95. data/test/dummy/config/boot.rb +0 -6
  96. data/test/dummy/config/database.yml +0 -22
  97. data/test/dummy/config/environment.rb +0 -17
  98. data/test/dummy/config/environments/development.rb +0 -25
  99. data/test/dummy/config/environments/production.rb +0 -50
  100. data/test/dummy/config/environments/test.rb +0 -35
  101. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  102. data/test/dummy/config/initializers/inflections.rb +0 -10
  103. data/test/dummy/config/initializers/mime_types.rb +0 -5
  104. data/test/dummy/config/initializers/secret_token.rb +0 -8
  105. data/test/dummy/config/initializers/session_store.rb +0 -8
  106. data/test/dummy/config/locales/en.yml +0 -5
  107. data/test/dummy/config/routes.rb +0 -3
  108. data/test/dummy/config.ru +0 -4
  109. data/test/dummy/db/migrate/20110729022608_create_posts.rb +0 -15
  110. data/test/dummy/db/schema.rb +0 -24
  111. data/test/dummy/db/seeds.rb +0 -7
  112. data/test/dummy/lib/tasks/.gitkeep +0 -0
  113. data/test/dummy/public/404.html +0 -26
  114. data/test/dummy/public/422.html +0 -26
  115. data/test/dummy/public/500.html +0 -26
  116. data/test/dummy/public/favicon.ico +0 -0
  117. data/test/dummy/public/images/rails.png +0 -0
  118. data/test/dummy/public/index.html +0 -239
  119. data/test/dummy/public/javascripts/application.js +0 -2
  120. data/test/dummy/public/javascripts/controls.js +0 -965
  121. data/test/dummy/public/javascripts/dragdrop.js +0 -974
  122. data/test/dummy/public/javascripts/effects.js +0 -1123
  123. data/test/dummy/public/javascripts/prototype.js +0 -6001
  124. data/test/dummy/public/javascripts/rails.js +0 -191
  125. data/test/dummy/public/robots.txt +0 -5
  126. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  127. data/test/dummy/public/stylesheets/scaffold.css +0 -56
  128. data/test/dummy/script/rails +0 -6
  129. data/test/dummy/test/functional/posts_controller_test.rb +0 -237
  130. data/test/dummy/test/test_helper.rb +0 -7
  131. data/test/exception_notifier/campfire_notifier_test.rb +0 -120
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-22 00:00:00.000000000 Z
12
+ date: 2022-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionmailer
@@ -17,108 +17,124 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.0'
20
+ version: '5.2'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '6'
23
+ version: '8'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '4.0'
30
+ version: '5.2'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '6'
33
+ version: '8'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activesupport
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '5.2'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '6'
43
+ version: '8'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '4.0'
50
+ version: '5.2'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '6'
53
+ version: '8'
54
54
  - !ruby/object:Gem::Dependency
55
- name: rails
55
+ name: appraisal
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '4.0'
61
- - - "<"
58
+ - - "~>"
62
59
  - !ruby/object:Gem::Version
63
- version: '6'
60
+ version: 2.2.0
64
61
  type: :development
65
62
  prerelease: false
66
63
  version_requirements: !ruby/object:Gem::Requirement
67
64
  requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: '4.0'
71
- - - "<"
65
+ - - "~>"
72
66
  - !ruby/object:Gem::Version
73
- version: '6'
67
+ version: 2.2.0
74
68
  - !ruby/object:Gem::Dependency
75
- name: resque
69
+ name: aws-sdk-sns
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
72
  - - "~>"
79
73
  - !ruby/object:Gem::Version
80
- version: 1.2.0
74
+ version: '1'
81
75
  type: :development
82
76
  prerelease: false
83
77
  version_requirements: !ruby/object:Gem::Requirement
84
78
  requirements:
85
79
  - - "~>"
86
80
  - !ruby/object:Gem::Version
87
- version: 1.2.0
81
+ version: '1'
88
82
  - !ruby/object:Gem::Dependency
89
- name: sidekiq
83
+ name: carrier-pigeon
90
84
  requirement: !ruby/object:Gem::Requirement
91
85
  requirements:
92
- - - "~>"
86
+ - - ">="
93
87
  - !ruby/object:Gem::Version
94
- version: 3.0.0
95
- - - "<"
88
+ version: 0.7.0
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
96
94
  - !ruby/object:Gem::Version
97
- version: 3.2.2
95
+ version: 0.7.0
96
+ - !ruby/object:Gem::Dependency
97
+ name: coveralls
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: 0.8.2
98
103
  type: :development
99
104
  prerelease: false
100
105
  version_requirements: !ruby/object:Gem::Requirement
101
106
  requirements:
102
107
  - - "~>"
103
108
  - !ruby/object:Gem::Version
104
- version: 3.0.0
105
- - - "<"
109
+ version: 0.8.2
110
+ - !ruby/object:Gem::Dependency
111
+ name: dogapi
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 1.23.0
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
106
122
  - !ruby/object:Gem::Version
107
- version: 3.2.2
123
+ version: 1.23.0
108
124
  - !ruby/object:Gem::Dependency
109
- name: tinder
125
+ name: hipchat
110
126
  requirement: !ruby/object:Gem::Requirement
111
127
  requirements:
112
- - - "~>"
128
+ - - ">="
113
129
  - !ruby/object:Gem::Version
114
- version: '1.8'
130
+ version: 1.0.0
115
131
  type: :development
116
132
  prerelease: false
117
133
  version_requirements: !ruby/object:Gem::Requirement
118
134
  requirements:
119
- - - "~>"
135
+ - - ">="
120
136
  - !ruby/object:Gem::Version
121
- version: '1.8'
137
+ version: 1.0.0
122
138
  - !ruby/object:Gem::Dependency
123
139
  name: httparty
124
140
  requirement: !ruby/object:Gem::Requirement
@@ -148,75 +164,95 @@ dependencies:
148
164
  - !ruby/object:Gem::Version
149
165
  version: 0.13.0
150
166
  - !ruby/object:Gem::Dependency
151
- name: sqlite3
167
+ name: mock_redis
168
+ requirement: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 0.19.0
173
+ type: :development
174
+ prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: 0.19.0
180
+ - !ruby/object:Gem::Dependency
181
+ name: net-smtp
152
182
  requirement: !ruby/object:Gem::Requirement
153
183
  requirements:
154
184
  - - ">="
155
185
  - !ruby/object:Gem::Version
156
- version: 1.3.4
186
+ version: '0'
157
187
  type: :development
158
188
  prerelease: false
159
189
  version_requirements: !ruby/object:Gem::Requirement
160
190
  requirements:
161
191
  - - ">="
162
192
  - !ruby/object:Gem::Version
163
- version: 1.3.4
193
+ version: '0'
164
194
  - !ruby/object:Gem::Dependency
165
- name: coveralls
195
+ name: rails
166
196
  requirement: !ruby/object:Gem::Requirement
167
197
  requirements:
168
- - - "~>"
198
+ - - ">="
169
199
  - !ruby/object:Gem::Version
170
- version: 0.8.2
200
+ version: '5.2'
201
+ - - "<"
202
+ - !ruby/object:Gem::Version
203
+ version: '8'
171
204
  type: :development
172
205
  prerelease: false
173
206
  version_requirements: !ruby/object:Gem::Requirement
174
207
  requirements:
175
- - - "~>"
208
+ - - ">="
176
209
  - !ruby/object:Gem::Version
177
- version: 0.8.2
210
+ version: '5.2'
211
+ - - "<"
212
+ - !ruby/object:Gem::Version
213
+ version: '8'
178
214
  - !ruby/object:Gem::Dependency
179
- name: appraisal
215
+ name: resque
180
216
  requirement: !ruby/object:Gem::Requirement
181
217
  requirements:
182
218
  - - "~>"
183
219
  - !ruby/object:Gem::Version
184
- version: 2.0.0
220
+ version: 1.8.0
185
221
  type: :development
186
222
  prerelease: false
187
223
  version_requirements: !ruby/object:Gem::Requirement
188
224
  requirements:
189
225
  - - "~>"
190
226
  - !ruby/object:Gem::Version
191
- version: 2.0.0
227
+ version: 1.8.0
192
228
  - !ruby/object:Gem::Dependency
193
- name: hipchat
229
+ name: rubocop
194
230
  requirement: !ruby/object:Gem::Requirement
195
231
  requirements:
196
- - - ">="
232
+ - - '='
197
233
  - !ruby/object:Gem::Version
198
- version: 1.0.0
234
+ version: 0.78.0
199
235
  type: :development
200
236
  prerelease: false
201
237
  version_requirements: !ruby/object:Gem::Requirement
202
238
  requirements:
203
- - - ">="
239
+ - - '='
204
240
  - !ruby/object:Gem::Version
205
- version: 1.0.0
241
+ version: 0.78.0
206
242
  - !ruby/object:Gem::Dependency
207
- name: carrier-pigeon
243
+ name: sidekiq
208
244
  requirement: !ruby/object:Gem::Requirement
209
245
  requirements:
210
246
  - - ">="
211
247
  - !ruby/object:Gem::Version
212
- version: 0.7.0
248
+ version: 5.0.4
213
249
  type: :development
214
250
  prerelease: false
215
251
  version_requirements: !ruby/object:Gem::Requirement
216
252
  requirements:
217
253
  - - ">="
218
254
  - !ruby/object:Gem::Version
219
- version: 0.7.0
255
+ version: 5.0.4
220
256
  - !ruby/object:Gem::Dependency
221
257
  name: slack-notifier
222
258
  requirement: !ruby/object:Gem::Requirement
@@ -232,19 +268,19 @@ dependencies:
232
268
  - !ruby/object:Gem::Version
233
269
  version: 1.0.0
234
270
  - !ruby/object:Gem::Dependency
235
- name: aws-sdk-sns
271
+ name: timecop
236
272
  requirement: !ruby/object:Gem::Requirement
237
273
  requirements:
238
274
  - - "~>"
239
275
  - !ruby/object:Gem::Version
240
- version: '1'
276
+ version: 0.9.0
241
277
  type: :development
242
278
  prerelease: false
243
279
  version_requirements: !ruby/object:Gem::Requirement
244
280
  requirements:
245
281
  - - "~>"
246
282
  - !ruby/object:Gem::Version
247
- version: '1'
283
+ version: 0.9.0
248
284
  description:
249
285
  email: smartinez87@gmail.com
250
286
  executables: []
@@ -259,6 +295,19 @@ files:
259
295
  - MIT-LICENSE
260
296
  - README.md
261
297
  - Rakefile
298
+ - docs/notifiers/campfire.md
299
+ - docs/notifiers/custom.md
300
+ - docs/notifiers/datadog.md
301
+ - docs/notifiers/email.md
302
+ - docs/notifiers/google_chat.md
303
+ - docs/notifiers/hipchat.md
304
+ - docs/notifiers/irc.md
305
+ - docs/notifiers/mattermost.md
306
+ - docs/notifiers/slack.md
307
+ - docs/notifiers/sns.md
308
+ - docs/notifiers/teams.md
309
+ - docs/notifiers/webhook.md
310
+ - examples/sample_app.rb
262
311
  - examples/sinatra/Gemfile
263
312
  - examples/sinatra/Gemfile.lock
264
313
  - examples/sinatra/Procfile
@@ -266,19 +315,19 @@ files:
266
315
  - examples/sinatra/config.ru
267
316
  - examples/sinatra/sinatra_app.rb
268
317
  - exception_notification.gemspec
269
- - gemfiles/rails4_0.gemfile
270
- - gemfiles/rails4_1.gemfile
271
- - gemfiles/rails4_2.gemfile
272
- - gemfiles/rails5_0.gemfile
273
- - gemfiles/rails5_1.gemfile
318
+ - gemfiles/rails5_2.gemfile
319
+ - gemfiles/rails6_0.gemfile
320
+ - gemfiles/rails6_1.gemfile
321
+ - gemfiles/rails7_0.gemfile
274
322
  - lib/exception_notification.rb
275
323
  - lib/exception_notification/rack.rb
276
324
  - lib/exception_notification/rails.rb
277
325
  - lib/exception_notification/resque.rb
278
326
  - lib/exception_notification/sidekiq.rb
327
+ - lib/exception_notification/version.rb
279
328
  - lib/exception_notifier.rb
280
329
  - lib/exception_notifier/base_notifier.rb
281
- - lib/exception_notifier/campfire_notifier.rb
330
+ - lib/exception_notifier/datadog_notifier.rb
282
331
  - lib/exception_notifier/email_notifier.rb
283
332
  - lib/exception_notifier/google_chat_notifier.rb
284
333
  - lib/exception_notifier/hipchat_notifier.rb
@@ -286,6 +335,7 @@ files:
286
335
  - lib/exception_notifier/mattermost_notifier.rb
287
336
  - lib/exception_notifier/modules/backtrace_cleaner.rb
288
337
  - lib/exception_notifier/modules/error_grouping.rb
338
+ - lib/exception_notifier/modules/formatter.rb
289
339
  - lib/exception_notifier/notifier.rb
290
340
  - lib/exception_notifier/slack_notifier.rb
291
341
  - lib/exception_notifier/sns_notifier.rb
@@ -308,73 +358,28 @@ files:
308
358
  - lib/exception_notifier/views/exception_notifier/exception_notification.text.erb
309
359
  - lib/exception_notifier/webhook_notifier.rb
310
360
  - lib/generators/exception_notification/install_generator.rb
311
- - lib/generators/exception_notification/templates/exception_notification.rb
312
- - test/dummy/.gitignore
313
- - test/dummy/Rakefile
314
- - test/dummy/app/controllers/application_controller.rb
315
- - test/dummy/app/controllers/posts_controller.rb
316
- - test/dummy/app/helpers/application_helper.rb
317
- - test/dummy/app/helpers/posts_helper.rb
318
- - test/dummy/app/models/post.rb
319
- - test/dummy/app/views/exception_notifier/_new_bkg_section.html.erb
320
- - test/dummy/app/views/exception_notifier/_new_bkg_section.text.erb
321
- - test/dummy/app/views/exception_notifier/_new_section.html.erb
322
- - test/dummy/app/views/exception_notifier/_new_section.text.erb
323
- - test/dummy/app/views/layouts/application.html.erb
324
- - test/dummy/app/views/posts/_form.html.erb
325
- - test/dummy/app/views/posts/new.html.erb
326
- - test/dummy/app/views/posts/show.html.erb
327
- - test/dummy/config.ru
328
- - test/dummy/config/application.rb
329
- - test/dummy/config/boot.rb
330
- - test/dummy/config/database.yml
331
- - test/dummy/config/environment.rb
332
- - test/dummy/config/environments/development.rb
333
- - test/dummy/config/environments/production.rb
334
- - test/dummy/config/environments/test.rb
335
- - test/dummy/config/initializers/backtrace_silencers.rb
336
- - test/dummy/config/initializers/inflections.rb
337
- - test/dummy/config/initializers/mime_types.rb
338
- - test/dummy/config/initializers/secret_token.rb
339
- - test/dummy/config/initializers/session_store.rb
340
- - test/dummy/config/locales/en.yml
341
- - test/dummy/config/routes.rb
342
- - test/dummy/db/migrate/20110729022608_create_posts.rb
343
- - test/dummy/db/schema.rb
344
- - test/dummy/db/seeds.rb
345
- - test/dummy/lib/tasks/.gitkeep
346
- - test/dummy/public/404.html
347
- - test/dummy/public/422.html
348
- - test/dummy/public/500.html
349
- - test/dummy/public/favicon.ico
350
- - test/dummy/public/images/rails.png
351
- - test/dummy/public/index.html
352
- - test/dummy/public/javascripts/application.js
353
- - test/dummy/public/javascripts/controls.js
354
- - test/dummy/public/javascripts/dragdrop.js
355
- - test/dummy/public/javascripts/effects.js
356
- - test/dummy/public/javascripts/prototype.js
357
- - test/dummy/public/javascripts/rails.js
358
- - test/dummy/public/robots.txt
359
- - test/dummy/public/stylesheets/.gitkeep
360
- - test/dummy/public/stylesheets/scaffold.css
361
- - test/dummy/script/rails
362
- - test/dummy/test/functional/posts_controller_test.rb
363
- - test/dummy/test/test_helper.rb
361
+ - lib/generators/exception_notification/templates/exception_notification.rb.erb
364
362
  - test/exception_notification/rack_test.rb
365
- - test/exception_notifier/campfire_notifier_test.rb
363
+ - test/exception_notification/resque_test.rb
364
+ - test/exception_notifier/datadog_notifier_test.rb
366
365
  - test/exception_notifier/email_notifier_test.rb
367
366
  - test/exception_notifier/google_chat_notifier_test.rb
368
367
  - test/exception_notifier/hipchat_notifier_test.rb
369
368
  - test/exception_notifier/irc_notifier_test.rb
370
369
  - test/exception_notifier/mattermost_notifier_test.rb
371
370
  - test/exception_notifier/modules/error_grouping_test.rb
371
+ - test/exception_notifier/modules/formatter_test.rb
372
372
  - test/exception_notifier/sidekiq_test.rb
373
373
  - test/exception_notifier/slack_notifier_test.rb
374
374
  - test/exception_notifier/sns_notifier_test.rb
375
375
  - test/exception_notifier/teams_notifier_test.rb
376
376
  - test/exception_notifier/webhook_notifier_test.rb
377
377
  - test/exception_notifier_test.rb
378
+ - test/support/exception_notifier_helper.rb
379
+ - test/support/views/exception_notifier/_new_bkg_section.html.erb
380
+ - test/support/views/exception_notifier/_new_bkg_section.text.erb
381
+ - test/support/views/exception_notifier/_new_section.html.erb
382
+ - test/support/views/exception_notifier/_new_section.text.erb
378
383
  - test/test_helper.rb
379
384
  homepage: https://smartinez87.github.io/exception_notification/
380
385
  licenses:
@@ -388,83 +393,37 @@ required_ruby_version: !ruby/object:Gem::Requirement
388
393
  requirements:
389
394
  - - ">="
390
395
  - !ruby/object:Gem::Version
391
- version: '2.0'
396
+ version: '2.3'
392
397
  required_rubygems_version: !ruby/object:Gem::Requirement
393
398
  requirements:
394
399
  - - ">="
395
400
  - !ruby/object:Gem::Version
396
401
  version: 1.8.11
397
402
  requirements: []
398
- rubyforge_project:
399
- rubygems_version: 2.5.2
403
+ rubygems_version: 3.2.32
400
404
  signing_key:
401
405
  specification_version: 4
402
406
  summary: Exception notification for Rails apps
403
407
  test_files:
404
- - test/dummy/.gitignore
405
- - test/dummy/Rakefile
406
- - test/dummy/app/controllers/application_controller.rb
407
- - test/dummy/app/controllers/posts_controller.rb
408
- - test/dummy/app/helpers/application_helper.rb
409
- - test/dummy/app/helpers/posts_helper.rb
410
- - test/dummy/app/models/post.rb
411
- - test/dummy/app/views/exception_notifier/_new_bkg_section.html.erb
412
- - test/dummy/app/views/exception_notifier/_new_bkg_section.text.erb
413
- - test/dummy/app/views/exception_notifier/_new_section.html.erb
414
- - test/dummy/app/views/exception_notifier/_new_section.text.erb
415
- - test/dummy/app/views/layouts/application.html.erb
416
- - test/dummy/app/views/posts/_form.html.erb
417
- - test/dummy/app/views/posts/new.html.erb
418
- - test/dummy/app/views/posts/show.html.erb
419
- - test/dummy/config.ru
420
- - test/dummy/config/application.rb
421
- - test/dummy/config/boot.rb
422
- - test/dummy/config/database.yml
423
- - test/dummy/config/environment.rb
424
- - test/dummy/config/environments/development.rb
425
- - test/dummy/config/environments/production.rb
426
- - test/dummy/config/environments/test.rb
427
- - test/dummy/config/initializers/backtrace_silencers.rb
428
- - test/dummy/config/initializers/inflections.rb
429
- - test/dummy/config/initializers/mime_types.rb
430
- - test/dummy/config/initializers/secret_token.rb
431
- - test/dummy/config/initializers/session_store.rb
432
- - test/dummy/config/locales/en.yml
433
- - test/dummy/config/routes.rb
434
- - test/dummy/db/migrate/20110729022608_create_posts.rb
435
- - test/dummy/db/schema.rb
436
- - test/dummy/db/seeds.rb
437
- - test/dummy/lib/tasks/.gitkeep
438
- - test/dummy/public/404.html
439
- - test/dummy/public/422.html
440
- - test/dummy/public/500.html
441
- - test/dummy/public/favicon.ico
442
- - test/dummy/public/images/rails.png
443
- - test/dummy/public/index.html
444
- - test/dummy/public/javascripts/application.js
445
- - test/dummy/public/javascripts/controls.js
446
- - test/dummy/public/javascripts/dragdrop.js
447
- - test/dummy/public/javascripts/effects.js
448
- - test/dummy/public/javascripts/prototype.js
449
- - test/dummy/public/javascripts/rails.js
450
- - test/dummy/public/robots.txt
451
- - test/dummy/public/stylesheets/.gitkeep
452
- - test/dummy/public/stylesheets/scaffold.css
453
- - test/dummy/script/rails
454
- - test/dummy/test/functional/posts_controller_test.rb
455
- - test/dummy/test/test_helper.rb
456
408
  - test/exception_notification/rack_test.rb
457
- - test/exception_notifier/campfire_notifier_test.rb
409
+ - test/exception_notification/resque_test.rb
410
+ - test/exception_notifier/datadog_notifier_test.rb
458
411
  - test/exception_notifier/email_notifier_test.rb
459
412
  - test/exception_notifier/google_chat_notifier_test.rb
460
413
  - test/exception_notifier/hipchat_notifier_test.rb
461
414
  - test/exception_notifier/irc_notifier_test.rb
462
415
  - test/exception_notifier/mattermost_notifier_test.rb
463
416
  - test/exception_notifier/modules/error_grouping_test.rb
417
+ - test/exception_notifier/modules/formatter_test.rb
464
418
  - test/exception_notifier/sidekiq_test.rb
465
419
  - test/exception_notifier/slack_notifier_test.rb
466
420
  - test/exception_notifier/sns_notifier_test.rb
467
421
  - test/exception_notifier/teams_notifier_test.rb
468
422
  - test/exception_notifier/webhook_notifier_test.rb
469
423
  - test/exception_notifier_test.rb
424
+ - test/support/exception_notifier_helper.rb
425
+ - test/support/views/exception_notifier/_new_bkg_section.html.erb
426
+ - test/support/views/exception_notifier/_new_bkg_section.text.erb
427
+ - test/support/views/exception_notifier/_new_section.html.erb
428
+ - test/support/views/exception_notifier/_new_section.text.erb
470
429
  - test/test_helper.rb
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 5.1.0"
6
-
7
- gemspec :path => "../"
@@ -1,40 +0,0 @@
1
- module ExceptionNotifier
2
- class CampfireNotifier < BaseNotifier
3
-
4
- attr_accessor :subdomain
5
- attr_accessor :token
6
- attr_accessor :room
7
-
8
- def initialize(options)
9
- super
10
- begin
11
- subdomain = options.delete(:subdomain)
12
- room_name = options.delete(:room_name)
13
- @campfire = Tinder::Campfire.new subdomain, options
14
- @room = @campfire.find_room_by_name room_name
15
- rescue
16
- @campfire = @room = nil
17
- end
18
- end
19
-
20
- def call(exception, options={})
21
- if active?
22
- message = if options[:accumulated_errors_count].to_i > 1
23
- "The exception occurred #{options[:accumulated_errors_count]} times: '#{exception.message}'"
24
- else
25
- "A new exception occurred: '#{exception.message}'"
26
- end
27
- message += " on '#{exception.backtrace.first}'" if exception.backtrace
28
- send_notice(exception, options, message) do |msg, _|
29
- @room.paste msg
30
- end
31
- end
32
- end
33
-
34
- private
35
-
36
- def active?
37
- !@room.nil?
38
- end
39
- end
40
- end
@@ -1,4 +0,0 @@
1
- .bundle
2
- db/*.sqlite3
3
- log/*.log
4
- tmp/
data/test/dummy/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- Dummy::Application.load_tasks
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,30 +0,0 @@
1
- class PostsController < ApplicationController
2
- # GET /posts/1
3
- # GET /posts/1.xml
4
- def show
5
- @post = Post.find(params[:id])
6
-
7
- respond_to do |format|
8
- format.html # show.html.erb
9
- format.xml { render :xml => @post }
10
- end
11
- end
12
-
13
- # POST /posts
14
- # POST /posts.xml
15
- def create
16
- @sections = Object.new
17
- # Have this line raise an exception
18
- @post = Post.nw(params[:post])
19
-
20
- respond_to do |format|
21
- if @post.save
22
- format.html { redirect_to(post_path(@post), :notice => 'Post was successfully created.') }
23
- format.xml { render :xml => @post, :status => :created, :location => @post }
24
- else
25
- format.html { render :action => "new" }
26
- format.xml { render :xml => @post.errors, :status => :unprocessable_entity }
27
- end
28
- end
29
- end
30
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module PostsHelper
2
- end
@@ -1,2 +0,0 @@
1
- class Post < ActiveRecord::Base
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag :all %>
6
- <%= javascript_include_tag :defaults %>
7
- <%= csrf_meta_tag %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
File without changes
File without changes
File without changes