rollbar 0.11.6 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +10 -1
- data/lib/rollbar/railtie.rb +6 -4
- data/lib/rollbar/request_data_extractor.rb +8 -1
- data/lib/rollbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7023de85d236f0fbba32430474796aeac7d795e
|
4
|
+
data.tar.gz: 9ab46c0f7262e45fc5280cbaf4be584293b3d8c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df0955081c95d86bc61e141734b3125ef660b5fa23e646a1011387cb21f2c759adf7d732ae0c563a323836093118e20ac43e84e62c00a17fdca03a1a8fadc685
|
7
|
+
data.tar.gz: d1ab33bad3b7825cebeb9eebb9adbc5e13390f1b6b345e10e502de30afa402e37f02f569a02c718844651ef3cdf1b4883023a2e5a10ef57c54ccada40dcef487
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -147,6 +147,12 @@ config.person_username_method = "user_name" # default is "username"
|
|
147
147
|
config.person_email_method = "email_address" # default is "email"
|
148
148
|
```
|
149
149
|
|
150
|
+
### If using Rails and not ActiveRecord
|
151
|
+
|
152
|
+
By default, the `Rollbar::Middleware::Rails::RollbarRequestStore` middleware is inserted just before the `ActiveRecord::ConnectionAdapters::ConnectionManagement` middleware if `ActiveRecord` is defined. This middleware ensures that any database calls needed to grab person data are executed before connections are cleaned up in the `ConnectionManagement` middleware.
|
153
|
+
|
154
|
+
If you are not using `ActiveRecord`, make sure you include the `RollbarRequestStore` middleware before any middlewares that do similar connection clean up.
|
155
|
+
|
150
156
|
## Including additional runtime data
|
151
157
|
|
152
158
|
You can provide a lambda that will be called for each exception or message report. ```custom_data_method``` should be a lambda that takes no arguments and returns a hash.
|
@@ -314,11 +320,14 @@ Some users have reported problems with Zeus when ```rake``` was not explicitly i
|
|
314
320
|
|
315
321
|
If you run into any issues, please email us at [support@rollbar.com](mailto:support@rollbar.com)
|
316
322
|
|
323
|
+
You can also find us in IRC: [#rollbar on chat.freenode.net](irc://chat.freenode.net/rollbar)
|
324
|
+
|
325
|
+
For bug reports, please [open an issue on GitHub](https://github.com/rollbar/rollbar-gem/issues/new).
|
317
326
|
|
318
327
|
## Contributing
|
319
328
|
|
320
329
|
1. Fork it
|
321
|
-
2. Create your feature branch (```git checkout -b my-new-feature```)
|
330
|
+
2. Create your feature branch (```git checkout -b my-new-feature```).
|
322
331
|
3. Commit your changes (```git commit -am 'Added some feature'```)
|
323
332
|
4. Push to the branch (```git push origin my-new-feature```)
|
324
333
|
5. Create new Pull Request
|
data/lib/rollbar/railtie.rb
CHANGED
@@ -7,10 +7,12 @@ module Rollbar
|
|
7
7
|
require 'rollbar/rake_tasks'
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
if defined? ActiveRecord
|
11
|
+
initializer 'rollbar.middleware.rails' do |app|
|
12
|
+
require 'rollbar/middleware/rails/rollbar_request_store'
|
13
|
+
app.config.middleware.insert_after ActiveRecord::ConnectionAdapters::ConnectionManagement,
|
14
|
+
Rollbar::Middleware::Rails::RollbarRequestStore
|
15
|
+
end
|
14
16
|
end
|
15
17
|
|
16
18
|
config.after_initialize do
|
@@ -6,7 +6,14 @@ module Rollbar
|
|
6
6
|
].freeze
|
7
7
|
|
8
8
|
def extract_person_data_from_controller(env)
|
9
|
-
|
9
|
+
if env.has_key? 'rollbar.person_data'
|
10
|
+
person_data = env['rollbar.person_data'] || {}
|
11
|
+
else
|
12
|
+
controller = env['action_controller.instance']
|
13
|
+
person_data = controller ? controller.try(:rollbar_person_data) : {}
|
14
|
+
end
|
15
|
+
|
16
|
+
person_data
|
10
17
|
end
|
11
18
|
|
12
19
|
def extract_request_data_from_rack(env)
|
data/lib/rollbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Rue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|