rollbar 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/.travis.yml +17 -0
- data/CHANGELOG.md +90 -0
- data/Gemfile +8 -0
- data/LICENSE +22 -0
- data/README.md +165 -0
- data/Rakefile +14 -0
- data/THANKS +10 -0
- data/lib/generators/rollbar/rollbar_generator.rb +53 -0
- data/lib/generators/rollbar/templates/initializer.rb +28 -0
- data/lib/rollbar.rb +358 -0
- data/lib/rollbar/configuration.rb +64 -0
- data/lib/rollbar/delayed_job.rb +25 -0
- data/lib/rollbar/exception_reporter.rb +24 -0
- data/lib/rollbar/goalie.rb +33 -0
- data/lib/rollbar/middleware/rack/builder.rb +21 -0
- data/lib/rollbar/middleware/rack/test_session.rb +31 -0
- data/lib/rollbar/middleware/rails/show_exceptions.rb +26 -0
- data/lib/rollbar/rack.rb +9 -0
- data/lib/rollbar/rails.rb +22 -0
- data/lib/rollbar/rails/controller_methods.rb +28 -0
- data/lib/rollbar/railtie.rb +37 -0
- data/lib/rollbar/rake.rb +9 -0
- data/lib/rollbar/rake_tasks.rb +60 -0
- data/lib/rollbar/request_data_extractor.rb +115 -0
- data/lib/rollbar/sidekiq.rb +25 -0
- data/lib/rollbar/version.rb +3 -0
- data/rollbar.gemspec +24 -0
- data/spec/controllers/home_controller_spec.rb +180 -0
- data/spec/dummyapp/.gitignore +73 -0
- data/spec/dummyapp/Rakefile +7 -0
- data/spec/dummyapp/app/assets/javascripts/application.js +3 -0
- data/spec/dummyapp/app/assets/stylesheets/application.css.scss +37 -0
- data/spec/dummyapp/app/controllers/application_controller.rb +3 -0
- data/spec/dummyapp/app/controllers/home_controller.rb +25 -0
- data/spec/dummyapp/app/controllers/users_controller.rb +17 -0
- data/spec/dummyapp/app/helpers/.gitkeep +0 -0
- data/spec/dummyapp/app/mailers/.gitkeep +0 -0
- data/spec/dummyapp/app/models/.gitkeep +0 -0
- data/spec/dummyapp/app/models/user.rb +10 -0
- data/spec/dummyapp/app/views/devise/registrations/edit.html.erb +27 -0
- data/spec/dummyapp/app/views/devise/registrations/new.html.erb +20 -0
- data/spec/dummyapp/app/views/devise/shared/_links.html.erb +25 -0
- data/spec/dummyapp/app/views/home/cause_exception.html.erb +1 -0
- data/spec/dummyapp/app/views/home/index.html.erb +4 -0
- data/spec/dummyapp/app/views/home/report_exception.html.erb +1 -0
- data/spec/dummyapp/app/views/layouts/_messages.html.erb +5 -0
- data/spec/dummyapp/app/views/layouts/_navigation.html.erb +21 -0
- data/spec/dummyapp/app/views/layouts/application.html.erb +25 -0
- data/spec/dummyapp/app/views/users/index.html.erb +8 -0
- data/spec/dummyapp/app/views/users/show.html.erb +3 -0
- data/spec/dummyapp/config.ru +4 -0
- data/spec/dummyapp/config/application.rb +60 -0
- data/spec/dummyapp/config/boot.rb +10 -0
- data/spec/dummyapp/config/database.yml +25 -0
- data/spec/dummyapp/config/environment.rb +5 -0
- data/spec/dummyapp/config/environments/development.rb +37 -0
- data/spec/dummyapp/config/environments/production.rb +67 -0
- data/spec/dummyapp/config/environments/test.rb +37 -0
- data/spec/dummyapp/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummyapp/config/initializers/devise.rb +233 -0
- data/spec/dummyapp/config/initializers/inflections.rb +15 -0
- data/spec/dummyapp/config/initializers/mime_types.rb +5 -0
- data/spec/dummyapp/config/initializers/rollbar.rb +20 -0
- data/spec/dummyapp/config/initializers/secret_token.rb +7 -0
- data/spec/dummyapp/config/initializers/session_store.rb +8 -0
- data/spec/dummyapp/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummyapp/config/locales/devise.en.yml +58 -0
- data/spec/dummyapp/config/locales/en.yml +5 -0
- data/spec/dummyapp/config/routes.rb +14 -0
- data/spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb +46 -0
- data/spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb +5 -0
- data/spec/dummyapp/db/schema.rb +35 -0
- data/spec/dummyapp/db/seeds.rb +12 -0
- data/spec/dummyapp/lib/assets/.gitkeep +0 -0
- data/spec/dummyapp/public/404.html +26 -0
- data/spec/dummyapp/public/422.html +26 -0
- data/spec/dummyapp/public/500.html +25 -0
- data/spec/dummyapp/public/favicon.ico +0 -0
- data/spec/dummyapp/script/rails +6 -0
- data/spec/requests/home_spec.rb +48 -0
- data/spec/rollbar_spec.rb +426 -0
- data/spec/spec_helper.rb +35 -0
- data/spec/support/devise.rb +3 -0
- metadata +282 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
ENV['RAILS_ENV'] = 'test'
|
4
|
+
require File.expand_path('../dummyapp/config/environment', __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'database_cleaner'
|
7
|
+
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.color_enabled = true
|
12
|
+
config.formatter = 'documentation'
|
13
|
+
|
14
|
+
config.use_transactional_fixtures = true
|
15
|
+
config.order = "random"
|
16
|
+
|
17
|
+
config.before(:suite) do
|
18
|
+
DatabaseCleaner.strategy = :truncation
|
19
|
+
end
|
20
|
+
|
21
|
+
config.before(:each) do
|
22
|
+
DatabaseCleaner.start
|
23
|
+
DatabaseCleaner.clean
|
24
|
+
end
|
25
|
+
|
26
|
+
config.after(:each) do
|
27
|
+
DatabaseCleaner.clean
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
def reset_configuration
|
33
|
+
Rollbar.reconfigure do |config|
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,282 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rollbar
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Brian Rue
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: multi_json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.6.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.6.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 3.2.12
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.2.12
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: devise
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.1.2
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.1.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.12.0
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.12.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: database_cleaner
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.9.1
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.9.1
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: girl_friday
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.11.1
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.11.1
|
110
|
+
description: Rails plugin to catch and send exceptions to Rollbar
|
111
|
+
email:
|
112
|
+
- brian@rollbar.com
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- .gitignore
|
118
|
+
- .travis.yml
|
119
|
+
- CHANGELOG.md
|
120
|
+
- Gemfile
|
121
|
+
- LICENSE
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- THANKS
|
125
|
+
- lib/generators/rollbar/rollbar_generator.rb
|
126
|
+
- lib/generators/rollbar/templates/initializer.rb
|
127
|
+
- lib/rollbar.rb
|
128
|
+
- lib/rollbar/configuration.rb
|
129
|
+
- lib/rollbar/delayed_job.rb
|
130
|
+
- lib/rollbar/exception_reporter.rb
|
131
|
+
- lib/rollbar/goalie.rb
|
132
|
+
- lib/rollbar/middleware/rack/builder.rb
|
133
|
+
- lib/rollbar/middleware/rack/test_session.rb
|
134
|
+
- lib/rollbar/middleware/rails/show_exceptions.rb
|
135
|
+
- lib/rollbar/rack.rb
|
136
|
+
- lib/rollbar/rails.rb
|
137
|
+
- lib/rollbar/rails/controller_methods.rb
|
138
|
+
- lib/rollbar/railtie.rb
|
139
|
+
- lib/rollbar/rake.rb
|
140
|
+
- lib/rollbar/rake_tasks.rb
|
141
|
+
- lib/rollbar/request_data_extractor.rb
|
142
|
+
- lib/rollbar/sidekiq.rb
|
143
|
+
- lib/rollbar/version.rb
|
144
|
+
- rollbar.gemspec
|
145
|
+
- spec/controllers/home_controller_spec.rb
|
146
|
+
- spec/dummyapp/.gitignore
|
147
|
+
- spec/dummyapp/Rakefile
|
148
|
+
- spec/dummyapp/app/assets/javascripts/application.js
|
149
|
+
- spec/dummyapp/app/assets/stylesheets/application.css.scss
|
150
|
+
- spec/dummyapp/app/controllers/application_controller.rb
|
151
|
+
- spec/dummyapp/app/controllers/home_controller.rb
|
152
|
+
- spec/dummyapp/app/controllers/users_controller.rb
|
153
|
+
- spec/dummyapp/app/helpers/.gitkeep
|
154
|
+
- spec/dummyapp/app/mailers/.gitkeep
|
155
|
+
- spec/dummyapp/app/models/.gitkeep
|
156
|
+
- spec/dummyapp/app/models/user.rb
|
157
|
+
- spec/dummyapp/app/views/devise/registrations/edit.html.erb
|
158
|
+
- spec/dummyapp/app/views/devise/registrations/new.html.erb
|
159
|
+
- spec/dummyapp/app/views/devise/shared/_links.html.erb
|
160
|
+
- spec/dummyapp/app/views/home/cause_exception.html.erb
|
161
|
+
- spec/dummyapp/app/views/home/index.html.erb
|
162
|
+
- spec/dummyapp/app/views/home/report_exception.html.erb
|
163
|
+
- spec/dummyapp/app/views/layouts/_messages.html.erb
|
164
|
+
- spec/dummyapp/app/views/layouts/_navigation.html.erb
|
165
|
+
- spec/dummyapp/app/views/layouts/application.html.erb
|
166
|
+
- spec/dummyapp/app/views/users/index.html.erb
|
167
|
+
- spec/dummyapp/app/views/users/show.html.erb
|
168
|
+
- spec/dummyapp/config.ru
|
169
|
+
- spec/dummyapp/config/application.rb
|
170
|
+
- spec/dummyapp/config/boot.rb
|
171
|
+
- spec/dummyapp/config/database.yml
|
172
|
+
- spec/dummyapp/config/environment.rb
|
173
|
+
- spec/dummyapp/config/environments/development.rb
|
174
|
+
- spec/dummyapp/config/environments/production.rb
|
175
|
+
- spec/dummyapp/config/environments/test.rb
|
176
|
+
- spec/dummyapp/config/initializers/backtrace_silencers.rb
|
177
|
+
- spec/dummyapp/config/initializers/devise.rb
|
178
|
+
- spec/dummyapp/config/initializers/inflections.rb
|
179
|
+
- spec/dummyapp/config/initializers/mime_types.rb
|
180
|
+
- spec/dummyapp/config/initializers/rollbar.rb
|
181
|
+
- spec/dummyapp/config/initializers/secret_token.rb
|
182
|
+
- spec/dummyapp/config/initializers/session_store.rb
|
183
|
+
- spec/dummyapp/config/initializers/wrap_parameters.rb
|
184
|
+
- spec/dummyapp/config/locales/devise.en.yml
|
185
|
+
- spec/dummyapp/config/locales/en.yml
|
186
|
+
- spec/dummyapp/config/routes.rb
|
187
|
+
- spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb
|
188
|
+
- spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb
|
189
|
+
- spec/dummyapp/db/schema.rb
|
190
|
+
- spec/dummyapp/db/seeds.rb
|
191
|
+
- spec/dummyapp/lib/assets/.gitkeep
|
192
|
+
- spec/dummyapp/public/404.html
|
193
|
+
- spec/dummyapp/public/422.html
|
194
|
+
- spec/dummyapp/public/500.html
|
195
|
+
- spec/dummyapp/public/favicon.ico
|
196
|
+
- spec/dummyapp/script/rails
|
197
|
+
- spec/requests/home_spec.rb
|
198
|
+
- spec/rollbar_spec.rb
|
199
|
+
- spec/spec_helper.rb
|
200
|
+
- spec/support/devise.rb
|
201
|
+
homepage: https://github.com/rollbar/rollbar-gem
|
202
|
+
licenses: []
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
none: false
|
209
|
+
requirements:
|
210
|
+
- - ! '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
|
+
none: false
|
215
|
+
requirements:
|
216
|
+
- - ! '>='
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '0'
|
219
|
+
requirements: []
|
220
|
+
rubyforge_project:
|
221
|
+
rubygems_version: 1.8.24
|
222
|
+
signing_key:
|
223
|
+
specification_version: 3
|
224
|
+
summary: Reports exceptions to Rollbar
|
225
|
+
test_files:
|
226
|
+
- spec/controllers/home_controller_spec.rb
|
227
|
+
- spec/dummyapp/.gitignore
|
228
|
+
- spec/dummyapp/Rakefile
|
229
|
+
- spec/dummyapp/app/assets/javascripts/application.js
|
230
|
+
- spec/dummyapp/app/assets/stylesheets/application.css.scss
|
231
|
+
- spec/dummyapp/app/controllers/application_controller.rb
|
232
|
+
- spec/dummyapp/app/controllers/home_controller.rb
|
233
|
+
- spec/dummyapp/app/controllers/users_controller.rb
|
234
|
+
- spec/dummyapp/app/helpers/.gitkeep
|
235
|
+
- spec/dummyapp/app/mailers/.gitkeep
|
236
|
+
- spec/dummyapp/app/models/.gitkeep
|
237
|
+
- spec/dummyapp/app/models/user.rb
|
238
|
+
- spec/dummyapp/app/views/devise/registrations/edit.html.erb
|
239
|
+
- spec/dummyapp/app/views/devise/registrations/new.html.erb
|
240
|
+
- spec/dummyapp/app/views/devise/shared/_links.html.erb
|
241
|
+
- spec/dummyapp/app/views/home/cause_exception.html.erb
|
242
|
+
- spec/dummyapp/app/views/home/index.html.erb
|
243
|
+
- spec/dummyapp/app/views/home/report_exception.html.erb
|
244
|
+
- spec/dummyapp/app/views/layouts/_messages.html.erb
|
245
|
+
- spec/dummyapp/app/views/layouts/_navigation.html.erb
|
246
|
+
- spec/dummyapp/app/views/layouts/application.html.erb
|
247
|
+
- spec/dummyapp/app/views/users/index.html.erb
|
248
|
+
- spec/dummyapp/app/views/users/show.html.erb
|
249
|
+
- spec/dummyapp/config.ru
|
250
|
+
- spec/dummyapp/config/application.rb
|
251
|
+
- spec/dummyapp/config/boot.rb
|
252
|
+
- spec/dummyapp/config/database.yml
|
253
|
+
- spec/dummyapp/config/environment.rb
|
254
|
+
- spec/dummyapp/config/environments/development.rb
|
255
|
+
- spec/dummyapp/config/environments/production.rb
|
256
|
+
- spec/dummyapp/config/environments/test.rb
|
257
|
+
- spec/dummyapp/config/initializers/backtrace_silencers.rb
|
258
|
+
- spec/dummyapp/config/initializers/devise.rb
|
259
|
+
- spec/dummyapp/config/initializers/inflections.rb
|
260
|
+
- spec/dummyapp/config/initializers/mime_types.rb
|
261
|
+
- spec/dummyapp/config/initializers/rollbar.rb
|
262
|
+
- spec/dummyapp/config/initializers/secret_token.rb
|
263
|
+
- spec/dummyapp/config/initializers/session_store.rb
|
264
|
+
- spec/dummyapp/config/initializers/wrap_parameters.rb
|
265
|
+
- spec/dummyapp/config/locales/devise.en.yml
|
266
|
+
- spec/dummyapp/config/locales/en.yml
|
267
|
+
- spec/dummyapp/config/routes.rb
|
268
|
+
- spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb
|
269
|
+
- spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb
|
270
|
+
- spec/dummyapp/db/schema.rb
|
271
|
+
- spec/dummyapp/db/seeds.rb
|
272
|
+
- spec/dummyapp/lib/assets/.gitkeep
|
273
|
+
- spec/dummyapp/public/404.html
|
274
|
+
- spec/dummyapp/public/422.html
|
275
|
+
- spec/dummyapp/public/500.html
|
276
|
+
- spec/dummyapp/public/favicon.ico
|
277
|
+
- spec/dummyapp/script/rails
|
278
|
+
- spec/requests/home_spec.rb
|
279
|
+
- spec/rollbar_spec.rb
|
280
|
+
- spec/spec_helper.rb
|
281
|
+
- spec/support/devise.rb
|
282
|
+
has_rdoc:
|