honeybadger 1.8.1 → 1.9.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/CHANGELOG.md +14 -0
  2. data/Gemfile.lock +61 -19
  3. data/Guardfile +4 -4
  4. data/MIT-LICENSE +1 -0
  5. data/README.md +2 -2
  6. data/Rakefile +4 -14
  7. data/features/rails.feature +1 -1
  8. data/gemfiles/rack.gemfile.lock +62 -27
  9. data/gemfiles/rails2.3.gemfile.lock +73 -36
  10. data/gemfiles/rails3.0.gemfile.lock +59 -26
  11. data/gemfiles/rails3.1.gemfile.lock +59 -26
  12. data/gemfiles/rails3.2.gemfile.lock +63 -30
  13. data/gemfiles/rails4.gemfile.lock +69 -36
  14. data/gemfiles/rake.gemfile.lock +62 -27
  15. data/gemfiles/sinatra.gemfile.lock +62 -27
  16. data/honeybadger.gemspec +31 -17
  17. data/lib/honeybadger.rb +2 -3
  18. data/lib/honeybadger/array.rb +53 -0
  19. data/lib/honeybadger/configuration.rb +19 -2
  20. data/lib/honeybadger/monitor.rb +16 -0
  21. data/lib/honeybadger/monitor/railtie.rb +52 -0
  22. data/lib/honeybadger/monitor/sender.rb +33 -0
  23. data/lib/honeybadger/monitor/worker.rb +71 -0
  24. data/lib/honeybadger/railtie.rb +10 -0
  25. data/lib/honeybadger/sender.rb +60 -41
  26. data/{test/unit/backtrace_test.rb → spec/honeybadger/backtrace_spec.rb} +69 -71
  27. data/{test/unit/capistrano_test.rb → spec/honeybadger/capistrano_spec.rb} +8 -9
  28. data/{test/unit/configuration_test.rb → spec/honeybadger/configuration_spec.rb} +85 -59
  29. data/spec/honeybadger/logger_spec.rb +65 -0
  30. data/spec/honeybadger/monitor/worker_spec.rb +189 -0
  31. data/{test/unit/notice_test.rb → spec/honeybadger/notice_spec.rb} +169 -185
  32. data/spec/honeybadger/notifier_spec.rb +252 -0
  33. data/spec/honeybadger/rack_spec.rb +84 -0
  34. data/{test/unit/rails/action_controller_catcher_test.rb → spec/honeybadger/rails/action_controller_spec.rb} +65 -57
  35. data/{test/unit/rails_test.rb → spec/honeybadger/rails_spec.rb} +8 -8
  36. data/spec/honeybadger/sender_spec.rb +249 -0
  37. data/spec/honeybadger_tasks_spec.rb +165 -0
  38. data/spec/spec_helper.rb +18 -0
  39. data/spec/support/array_including.rb +31 -0
  40. data/spec/support/backtraced_exception.rb +9 -0
  41. data/spec/support/collected_sender.rb +12 -0
  42. data/spec/support/defines_constants.rb +18 -0
  43. data/{test/test_helper.rb → spec/support/helpers.rb} +8 -61
  44. metadata +93 -45
  45. data/test/unit/honeybadger_tasks_test.rb +0 -167
  46. data/test/unit/logger_test.rb +0 -74
  47. data/test/unit/notifier_test.rb +0 -265
  48. data/test/unit/rack_test.rb +0 -88
  49. data/test/unit/sender_test.rb +0 -290
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.8.1)
4
+ honeybadger (1.9.0.beta1)
5
+ faraday
5
6
  json
6
7
 
7
8
  GEM
@@ -46,8 +47,6 @@ GEM
46
47
  better_errors (0.9.0)
47
48
  coderay (>= 1.0.0)
48
49
  erubis (>= 2.6.6)
49
- bourne (1.4.0)
50
- mocha (~> 0.13.2)
51
50
  builder (2.1.2)
52
51
  capistrano (2.15.4)
53
52
  highline
@@ -63,34 +62,59 @@ GEM
63
62
  diff-lcs (>= 1.1.3)
64
63
  gherkin (~> 2.11.7)
65
64
  multi_json (~> 1.3)
66
- diff-lcs (1.1.3)
65
+ diff-lcs (1.2.4)
67
66
  erubis (2.6.6)
68
67
  abstract (>= 1.0.0)
69
68
  fakeweb (1.3.0)
70
- ffi (1.8.1)
69
+ faraday (0.8.8)
70
+ multipart-post (~> 1.2.0)
71
+ ffi (1.9.0)
72
+ formatador (0.2.4)
73
+ fuubar (1.2.1)
74
+ rspec (~> 2.0)
75
+ rspec-instafail (~> 0.2.0)
76
+ ruby-progressbar (~> 1.0)
71
77
  gherkin (2.11.8)
72
78
  multi_json (~> 1.3)
79
+ growl (1.0.3)
80
+ guard (1.8.3)
81
+ formatador (>= 0.2.4)
82
+ listen (~> 1.3)
83
+ lumberjack (>= 1.0.2)
84
+ pry (>= 0.9.10)
85
+ thor (>= 0.14.6)
86
+ guard-rspec (3.0.2)
87
+ guard (>= 1.8)
88
+ rspec (~> 2.13)
73
89
  highline (1.6.19)
74
90
  i18n (0.5.0)
75
91
  json (1.8.0)
92
+ listen (1.3.1)
93
+ rb-fsevent (>= 0.9.3)
94
+ rb-inotify (>= 0.9)
95
+ rb-kqueue (>= 0.2)
96
+ lumberjack (1.0.4)
76
97
  mail (2.2.20)
77
98
  activesupport (>= 2.3.6)
78
99
  i18n (>= 0.4.0)
79
100
  mime-types (~> 1.16)
80
101
  treetop (~> 1.4.8)
81
- metaclass (0.0.1)
82
- mime-types (1.23)
83
- mocha (0.13.3)
84
- metaclass (~> 0.0.1)
85
- multi_json (1.7.6)
86
- net-scp (1.1.1)
102
+ method_source (0.8.2)
103
+ mime-types (1.25)
104
+ multi_json (1.8.1)
105
+ multipart-post (1.2.0)
106
+ net-scp (1.1.2)
87
107
  net-ssh (>= 2.6.5)
88
108
  net-sftp (2.1.2)
89
109
  net-ssh (>= 2.6.5)
90
- net-ssh (2.6.7)
110
+ net-ssh (2.6.8)
91
111
  net-ssh-gateway (1.2.0)
92
112
  net-ssh (>= 2.6.5)
93
113
  polyglot (0.3.3)
114
+ pry (0.9.12.2)
115
+ coderay (~> 1.0.5)
116
+ method_source (~> 0.8)
117
+ slop (~> 3.4)
94
118
  rack (1.2.8)
95
119
  rack-mount (0.6.14)
96
120
  rack (>= 1.0.0)
@@ -110,27 +134,34 @@ GEM
110
134
  rake (>= 0.8.7)
111
135
  rdoc (~> 3.4)
112
136
  thor (~> 0.14.4)
113
- rake (10.0.4)
137
+ rake (10.1.0)
138
+ rb-fsevent (0.9.3)
139
+ rb-inotify (0.9.2)
140
+ ffi (>= 0.5.0)
141
+ rb-kqueue (0.2.0)
142
+ ffi (>= 0.5.0)
114
143
  rdoc (3.12.2)
115
144
  json (~> 1.4)
116
- rspec (2.12.0)
117
- rspec-core (~> 2.12.0)
118
- rspec-expectations (~> 2.12.0)
119
- rspec-mocks (~> 2.12.0)
120
- rspec-core (2.12.2)
121
- rspec-expectations (2.12.1)
122
- diff-lcs (~> 1.1.3)
123
- rspec-mocks (2.12.2)
145
+ rspec (2.14.1)
146
+ rspec-core (~> 2.14.0)
147
+ rspec-expectations (~> 2.14.0)
148
+ rspec-mocks (~> 2.14.0)
149
+ rspec-core (2.14.5)
150
+ rspec-expectations (2.14.2)
151
+ diff-lcs (>= 1.1.3, < 2.0)
152
+ rspec-instafail (0.2.4)
153
+ rspec-mocks (2.14.3)
154
+ ruby-progressbar (1.2.0)
124
155
  sham_rack (1.3.6)
125
156
  rack
126
- shoulda (2.11.3)
127
157
  sinatra (1.2.9)
128
158
  backports
129
159
  rack (~> 1.1, < 1.5)
130
160
  tilt (>= 1.2.2, < 2.0)
161
+ slop (3.4.6)
131
162
  thor (0.14.6)
132
163
  tilt (1.4.1)
133
- treetop (1.4.14)
164
+ treetop (1.4.15)
134
165
  polyglot
135
166
  polyglot (>= 0.3.1)
136
167
  tzinfo (0.3.37)
@@ -142,14 +173,16 @@ DEPENDENCIES
142
173
  appraisal
143
174
  aruba
144
175
  better_errors
145
- bourne (>= 1.0)
146
176
  capistrano
147
177
  cucumber (~> 1.2.1)
148
178
  fakeweb (~> 1.3.0)
179
+ fuubar
180
+ growl
181
+ guard
182
+ guard-rspec
149
183
  honeybadger!
150
184
  rails (= 3.0.17)
151
185
  rake
152
- rspec (~> 2.12.0)
186
+ rspec (~> 2.14.0)
153
187
  sham_rack (~> 1.3.0)
154
- shoulda (~> 2.11.3)
155
188
  sinatra
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.8.1)
4
+ honeybadger (1.9.0.beta1)
5
+ faraday
5
6
  json
6
7
 
7
8
  GEM
@@ -46,8 +47,6 @@ GEM
46
47
  better_errors (0.9.0)
47
48
  coderay (>= 1.0.0)
48
49
  erubis (>= 2.6.6)
49
- bourne (1.4.0)
50
- mocha (~> 0.13.2)
51
50
  builder (3.0.4)
52
51
  capistrano (2.15.4)
53
52
  highline
@@ -63,33 +62,58 @@ GEM
63
62
  diff-lcs (>= 1.1.3)
64
63
  gherkin (~> 2.11.0)
65
64
  json (>= 1.4.6)
66
- diff-lcs (1.1.3)
65
+ diff-lcs (1.2.4)
67
66
  erubis (2.7.0)
68
67
  fakeweb (1.3.0)
69
- ffi (1.8.1)
68
+ faraday (0.8.8)
69
+ multipart-post (~> 1.2.0)
70
+ ffi (1.9.0)
71
+ formatador (0.2.4)
72
+ fuubar (1.2.1)
73
+ rspec (~> 2.0)
74
+ rspec-instafail (~> 0.2.0)
75
+ ruby-progressbar (~> 1.0)
70
76
  gherkin (2.11.6)
71
77
  json (>= 1.7.6)
78
+ growl (1.0.3)
79
+ guard (1.8.3)
80
+ formatador (>= 0.2.4)
81
+ listen (~> 1.3)
82
+ lumberjack (>= 1.0.2)
83
+ pry (>= 0.9.10)
84
+ thor (>= 0.14.6)
85
+ guard-rspec (3.0.2)
86
+ guard (>= 1.8)
87
+ rspec (~> 2.13)
72
88
  highline (1.6.19)
73
89
  hike (1.2.3)
74
- i18n (0.6.4)
90
+ i18n (0.6.5)
75
91
  json (1.8.0)
92
+ listen (1.3.1)
93
+ rb-fsevent (>= 0.9.3)
94
+ rb-inotify (>= 0.9)
95
+ rb-kqueue (>= 0.2)
96
+ lumberjack (1.0.4)
76
97
  mail (2.3.3)
77
98
  i18n (>= 0.4.0)
78
99
  mime-types (~> 1.16)
79
100
  treetop (~> 1.4.8)
80
- metaclass (0.0.1)
81
- mime-types (1.23)
82
- mocha (0.13.3)
83
- metaclass (~> 0.0.1)
101
+ method_source (0.8.2)
102
+ mime-types (1.25)
84
103
  multi_json (1.2.0)
85
- net-scp (1.1.1)
104
+ multipart-post (1.2.0)
105
+ net-scp (1.1.2)
86
106
  net-ssh (>= 2.6.5)
87
107
  net-sftp (2.1.2)
88
108
  net-ssh (>= 2.6.5)
89
- net-ssh (2.6.7)
109
+ net-ssh (2.6.8)
90
110
  net-ssh-gateway (1.2.0)
91
111
  net-ssh (>= 2.6.5)
92
112
  polyglot (0.3.3)
113
+ pry (0.9.12.2)
114
+ coderay (~> 1.0.5)
115
+ method_source (~> 0.8)
116
+ slop (~> 3.4)
93
117
  rack (1.3.6)
94
118
  rack-cache (1.2)
95
119
  rack (>= 0.4)
@@ -116,31 +140,38 @@ GEM
116
140
  rake (>= 0.8.7)
117
141
  rdoc (~> 3.4)
118
142
  thor (~> 0.14.6)
119
- rake (10.0.4)
143
+ rake (10.1.0)
144
+ rb-fsevent (0.9.3)
145
+ rb-inotify (0.9.2)
146
+ ffi (>= 0.5.0)
147
+ rb-kqueue (0.2.0)
148
+ ffi (>= 0.5.0)
120
149
  rdoc (3.12.2)
121
150
  json (~> 1.4)
122
- rspec (2.12.0)
123
- rspec-core (~> 2.12.0)
124
- rspec-expectations (~> 2.12.0)
125
- rspec-mocks (~> 2.12.0)
126
- rspec-core (2.12.2)
127
- rspec-expectations (2.12.1)
128
- diff-lcs (~> 1.1.3)
129
- rspec-mocks (2.12.2)
151
+ rspec (2.14.1)
152
+ rspec-core (~> 2.14.0)
153
+ rspec-expectations (~> 2.14.0)
154
+ rspec-mocks (~> 2.14.0)
155
+ rspec-core (2.14.5)
156
+ rspec-expectations (2.14.2)
157
+ diff-lcs (>= 1.1.3, < 2.0)
158
+ rspec-instafail (0.2.4)
159
+ rspec-mocks (2.14.3)
160
+ ruby-progressbar (1.2.0)
130
161
  sham_rack (1.3.6)
131
162
  rack
132
- shoulda (2.11.3)
133
163
  sinatra (1.3.3)
134
164
  rack (~> 1.3, >= 1.3.6)
135
165
  rack-protection (~> 1.2)
136
166
  tilt (~> 1.3, >= 1.3.3)
167
+ slop (3.4.6)
137
168
  sprockets (2.0.4)
138
169
  hike (~> 1.2)
139
170
  rack (~> 1.0)
140
171
  tilt (~> 1.1, != 1.3.0)
141
172
  thor (0.14.6)
142
173
  tilt (1.4.1)
143
- treetop (1.4.14)
174
+ treetop (1.4.15)
144
175
  polyglot
145
176
  polyglot (>= 0.3.1)
146
177
  tzinfo (0.3.37)
@@ -152,14 +183,16 @@ DEPENDENCIES
152
183
  appraisal
153
184
  aruba
154
185
  better_errors
155
- bourne (>= 1.0)
156
186
  capistrano
157
187
  cucumber (~> 1.2.1)
158
188
  fakeweb (~> 1.3.0)
189
+ fuubar
190
+ growl
191
+ guard
192
+ guard-rspec
159
193
  honeybadger!
160
194
  rails (= 3.1.8)
161
195
  rake
162
- rspec (~> 2.12.0)
196
+ rspec (~> 2.14.0)
163
197
  sham_rack (~> 1.3.0)
164
- shoulda (~> 2.11.3)
165
198
  sinatra
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: /Users/josh/code/honeybadger-ruby
3
3
  specs:
4
- honeybadger (1.8.1)
4
+ honeybadger (1.9.0.beta1)
5
+ faraday
5
6
  json
6
7
 
7
8
  GEM
@@ -45,8 +46,6 @@ GEM
45
46
  better_errors (0.9.0)
46
47
  coderay (>= 1.0.0)
47
48
  erubis (>= 2.6.6)
48
- bourne (1.4.0)
49
- mocha (~> 0.13.2)
50
49
  builder (3.0.4)
51
50
  capistrano (2.15.4)
52
51
  highline
@@ -62,34 +61,59 @@ GEM
62
61
  diff-lcs (>= 1.1.3)
63
62
  gherkin (~> 2.11.7)
64
63
  multi_json (~> 1.3)
65
- diff-lcs (1.1.3)
64
+ diff-lcs (1.2.4)
66
65
  erubis (2.7.0)
67
66
  fakeweb (1.3.0)
68
- ffi (1.8.1)
67
+ faraday (0.8.8)
68
+ multipart-post (~> 1.2.0)
69
+ ffi (1.9.0)
70
+ formatador (0.2.4)
71
+ fuubar (1.2.1)
72
+ rspec (~> 2.0)
73
+ rspec-instafail (~> 0.2.0)
74
+ ruby-progressbar (~> 1.0)
69
75
  gherkin (2.11.8)
70
76
  multi_json (~> 1.3)
77
+ growl (1.0.3)
78
+ guard (1.8.3)
79
+ formatador (>= 0.2.4)
80
+ listen (~> 1.3)
81
+ lumberjack (>= 1.0.2)
82
+ pry (>= 0.9.10)
83
+ thor (>= 0.14.6)
84
+ guard-rspec (3.0.2)
85
+ guard (>= 1.8)
86
+ rspec (~> 2.13)
71
87
  highline (1.6.19)
72
88
  hike (1.2.3)
73
- i18n (0.6.4)
89
+ i18n (0.6.5)
74
90
  journey (1.0.4)
75
91
  json (1.8.0)
92
+ listen (1.3.1)
93
+ rb-fsevent (>= 0.9.3)
94
+ rb-inotify (>= 0.9)
95
+ rb-kqueue (>= 0.2)
96
+ lumberjack (1.0.4)
76
97
  mail (2.4.4)
77
98
  i18n (>= 0.4.0)
78
99
  mime-types (~> 1.16)
79
100
  treetop (~> 1.4.8)
80
- metaclass (0.0.1)
81
- mime-types (1.23)
82
- mocha (0.13.3)
83
- metaclass (~> 0.0.1)
84
- multi_json (1.7.6)
85
- net-scp (1.1.1)
101
+ method_source (0.8.2)
102
+ mime-types (1.25)
103
+ multi_json (1.8.1)
104
+ multipart-post (1.2.0)
105
+ net-scp (1.1.2)
86
106
  net-ssh (>= 2.6.5)
87
107
  net-sftp (2.1.2)
88
108
  net-ssh (>= 2.6.5)
89
- net-ssh (2.6.7)
109
+ net-ssh (2.6.8)
90
110
  net-ssh-gateway (1.2.0)
91
111
  net-ssh (>= 2.6.5)
92
112
  polyglot (0.3.3)
113
+ pry (0.9.12.2)
114
+ coderay (~> 1.0.5)
115
+ method_source (~> 0.8)
116
+ slop (~> 3.4)
93
117
  rack (1.4.5)
94
118
  rack-cache (1.2)
95
119
  rack (>= 0.4)
@@ -114,24 +138,31 @@ GEM
114
138
  rake (>= 0.8.7)
115
139
  rdoc (~> 3.4)
116
140
  thor (>= 0.14.6, < 2.0)
117
- rake (10.0.4)
141
+ rake (10.1.0)
142
+ rb-fsevent (0.9.3)
143
+ rb-inotify (0.9.2)
144
+ ffi (>= 0.5.0)
145
+ rb-kqueue (0.2.0)
146
+ ffi (>= 0.5.0)
118
147
  rdoc (3.12.2)
119
148
  json (~> 1.4)
120
- rspec (2.12.0)
121
- rspec-core (~> 2.12.0)
122
- rspec-expectations (~> 2.12.0)
123
- rspec-mocks (~> 2.12.0)
124
- rspec-core (2.12.2)
125
- rspec-expectations (2.12.1)
126
- diff-lcs (~> 1.1.3)
127
- rspec-mocks (2.12.2)
149
+ rspec (2.14.1)
150
+ rspec-core (~> 2.14.0)
151
+ rspec-expectations (~> 2.14.0)
152
+ rspec-mocks (~> 2.14.0)
153
+ rspec-core (2.14.5)
154
+ rspec-expectations (2.14.2)
155
+ diff-lcs (>= 1.1.3, < 2.0)
156
+ rspec-instafail (0.2.4)
157
+ rspec-mocks (2.14.3)
158
+ ruby-progressbar (1.2.0)
128
159
  sham_rack (1.3.6)
129
160
  rack
130
- shoulda (2.11.3)
131
- sinatra (1.3.5)
161
+ sinatra (1.4.3)
132
162
  rack (~> 1.4)
133
- rack-protection (~> 1.3)
134
- tilt (~> 1.3, >= 1.3.3)
163
+ rack-protection (~> 1.4)
164
+ tilt (~> 1.3, >= 1.3.4)
165
+ slop (3.4.6)
135
166
  sprockets (2.2.2)
136
167
  hike (~> 1.2)
137
168
  multi_json (~> 1.0)
@@ -139,7 +170,7 @@ GEM
139
170
  tilt (~> 1.1, != 1.3.0)
140
171
  thor (0.18.1)
141
172
  tilt (1.4.1)
142
- treetop (1.4.14)
173
+ treetop (1.4.15)
143
174
  polyglot
144
175
  polyglot (>= 0.3.1)
145
176
  tzinfo (0.3.37)
@@ -151,14 +182,16 @@ DEPENDENCIES
151
182
  appraisal
152
183
  aruba
153
184
  better_errors
154
- bourne (>= 1.0)
155
185
  capistrano
156
186
  cucumber (~> 1.2.1)
157
187
  fakeweb (~> 1.3.0)
188
+ fuubar
189
+ growl
190
+ guard
191
+ guard-rspec
158
192
  honeybadger!
159
193
  rails (= 3.2.12)
160
194
  rake
161
- rspec (~> 2.12.0)
195
+ rspec (~> 2.14.0)
162
196
  sham_rack (~> 1.3.0)
163
- shoulda (~> 2.11.3)
164
197
  sinatra