bugsnag 2.8.0 → 2.8.1
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/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +43 -0
- data/README.md +4 -7
- data/VERSION +1 -1
- data/lib/bugsnag/configuration.rb +7 -1
- data/lib/bugsnag/railtie.rb +20 -13
- metadata +22 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdbdd74cc3bf6c45f80a0828c67de91915375114
|
4
|
+
data.tar.gz: fe23fc1d6931f33c1f120042168fd3f59d41bc24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54f5a14ae6d88f0ad19084d6d6e84f0ebaf6463ab503d603394ac69f9eb152a36a8b71bbd75de2ff773a38c29f1e2b845adf600952b776a2668218c801f3e35
|
7
|
+
data.tar.gz: 309b32904d8372069fd02a446689c0fe1212a9f6e1f8db0ae4e8b9a9728783e8ffcd2bf55e60cded72acaffe59965209a18c7e752603353deef37a9928b7e171
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
## How to contribute
|
3
|
+
|
4
|
+
- [Fork](https://help.github.com/articles/fork-a-repo) the [notifier on github](https://github.com/bugsnag/bugsnag-ruby)
|
5
|
+
- Commit and push until you are happy with your contribution
|
6
|
+
- Run the tests with and make sure they all pass
|
7
|
+
|
8
|
+
```
|
9
|
+
rake spec
|
10
|
+
```
|
11
|
+
|
12
|
+
- [Make a pull request](https://help.github.com/articles/using-pull-requests)
|
13
|
+
- Thanks!
|
14
|
+
|
15
|
+
|
16
|
+
## How to release
|
17
|
+
|
18
|
+
If you're a member of the core team, follow these instructions for releasing bugsnag-ruby.
|
19
|
+
|
20
|
+
### First time setup
|
21
|
+
|
22
|
+
* Create a Rubygems account
|
23
|
+
* Get James/Simon to add you as contributor on bugsnag-ruby in Rubygems
|
24
|
+
|
25
|
+
### Every time
|
26
|
+
|
27
|
+
* Update `VERSION`
|
28
|
+
* Update `CHANGELOG.md`
|
29
|
+
* Update `README.md` if necessary
|
30
|
+
* Commit/push your changes
|
31
|
+
|
32
|
+
```
|
33
|
+
git commit -am v2.X.X
|
34
|
+
git push origin master
|
35
|
+
```
|
36
|
+
|
37
|
+
* Release to rubygems
|
38
|
+
|
39
|
+
```
|
40
|
+
bundle exec rake release
|
41
|
+
```
|
42
|
+
|
43
|
+
* Update the version running in the bugsnag-website project
|
data/README.md
CHANGED
@@ -441,8 +441,9 @@ keys which *match* the regular expression will be filtered.
|
|
441
441
|
config.params_filters += ["credit_card_number", /^password$/]
|
442
442
|
```
|
443
443
|
|
444
|
-
By default, `params_filters` is set to `[
|
445
|
-
apps, imports all values from
|
444
|
+
By default, `params_filters` is set to `[/authorization/i, /cookie/i,
|
445
|
+
/password/i, /secret/i]`, and for rails apps, imports all values from
|
446
|
+
`Rails.configuration.filter_parameters`.
|
446
447
|
|
447
448
|
###ignore_classes
|
448
449
|
|
@@ -772,11 +773,7 @@ project here:
|
|
772
773
|
Contributing
|
773
774
|
------------
|
774
775
|
|
775
|
-
|
776
|
-
- Commit and push until you are happy with your contribution
|
777
|
-
- Run the tests with `rake spec` and make sure they all pass
|
778
|
-
- [Make a pull request](https://help.github.com/articles/using-pull-requests)
|
779
|
-
- Thanks!
|
776
|
+
We'd love you to file issues and send pull requests. If you need help getting started, see [CONTRIBUTING.md](https://github.com/bugsnag/bugsnag-ruby/blob/master/CONTRIBUTING.md)
|
780
777
|
|
781
778
|
|
782
779
|
Build Status
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.1
|
@@ -37,7 +37,13 @@ module Bugsnag
|
|
37
37
|
|
38
38
|
DEFAULT_ENDPOINT = "notify.bugsnag.com"
|
39
39
|
|
40
|
-
DEFAULT_PARAMS_FILTERS = [
|
40
|
+
DEFAULT_PARAMS_FILTERS = [
|
41
|
+
/authorization/i,
|
42
|
+
/cookie/i,
|
43
|
+
/password/i,
|
44
|
+
/secret/i,
|
45
|
+
"rack.request.form_vars"
|
46
|
+
].freeze
|
41
47
|
|
42
48
|
DEFAULT_IGNORE_CLASSES = [
|
43
49
|
"ActiveRecord::RecordNotFound",
|
data/lib/bugsnag/railtie.rb
CHANGED
@@ -15,24 +15,16 @@ module Bugsnag
|
|
15
15
|
config.before_initialize do
|
16
16
|
# Configure bugsnag rails defaults
|
17
17
|
Bugsnag.configure do |config|
|
18
|
-
config.logger = Rails.logger
|
19
|
-
config.release_stage = Rails.env.to_s
|
20
|
-
config.project_root = Rails.root.to_s
|
21
|
-
config.params_filters += Rails.configuration.filter_parameters.map do |filter|
|
22
|
-
case filter
|
23
|
-
when String, Symbol
|
24
|
-
/\A#{filter}\z/
|
25
|
-
else
|
26
|
-
filter
|
27
|
-
end
|
28
|
-
end
|
18
|
+
config.logger = ::Rails.logger
|
19
|
+
config.release_stage = ::Rails.env.to_s
|
20
|
+
config.project_root = ::Rails.root.to_s
|
29
21
|
config.middleware.insert_before Bugsnag::Middleware::Callbacks, Bugsnag::Middleware::Rails3Request
|
30
22
|
end
|
31
23
|
|
32
24
|
# Auto-load configuration settings from config/bugsnag.yml if it exists
|
33
|
-
config_file = Rails.root.join("config", "bugsnag.yml")
|
25
|
+
config_file = ::Rails.root.join("config", "bugsnag.yml")
|
34
26
|
config = YAML.load_file(config_file) if File.exists?(config_file)
|
35
|
-
Bugsnag.configure(config[Rails.env] ? config[Rails.env] : config) if config
|
27
|
+
Bugsnag.configure(config[::Rails.env] ? config[::Rails.env] : config) if config
|
36
28
|
|
37
29
|
if defined?(::ActionController::Base)
|
38
30
|
require "bugsnag/rails/controller_methods"
|
@@ -44,6 +36,21 @@ module Bugsnag
|
|
44
36
|
end
|
45
37
|
end
|
46
38
|
|
39
|
+
# Configure params_filters after initialization, so that rails initializers
|
40
|
+
# may set filter_parameters which will be picked up by Bugsnag.
|
41
|
+
config.after_initialize do
|
42
|
+
Bugsnag.configure do |config|
|
43
|
+
config.params_filters += ::Rails.configuration.filter_parameters.map do |filter|
|
44
|
+
case filter
|
45
|
+
when String, Symbol
|
46
|
+
/\A#{filter}\z/
|
47
|
+
else
|
48
|
+
filter
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
47
54
|
initializer "bugsnag.use_rack_middleware" do |app|
|
48
55
|
begin
|
49
56
|
app.config.middleware.insert_after ActionDispatch::DebugExceptions, "Bugsnag::Rack"
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
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: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rdoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pry
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
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'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Ruby notifier for bugsnag.com
|
@@ -102,11 +102,12 @@ extra_rdoc_files:
|
|
102
102
|
- LICENSE.txt
|
103
103
|
- README.md
|
104
104
|
files:
|
105
|
-
- .document
|
106
|
-
- .gitignore
|
107
|
-
- .rspec
|
108
|
-
- .travis.yml
|
105
|
+
- ".document"
|
106
|
+
- ".gitignore"
|
107
|
+
- ".rspec"
|
108
|
+
- ".travis.yml"
|
109
109
|
- CHANGELOG.md
|
110
|
+
- CONTRIBUTING.md
|
110
111
|
- Gemfile
|
111
112
|
- LICENSE.txt
|
112
113
|
- README.md
|
@@ -174,17 +175,17 @@ require_paths:
|
|
174
175
|
- lib
|
175
176
|
required_ruby_version: !ruby/object:Gem::Requirement
|
176
177
|
requirements:
|
177
|
-
- -
|
178
|
+
- - ">="
|
178
179
|
- !ruby/object:Gem::Version
|
179
180
|
version: '0'
|
180
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
182
|
requirements:
|
182
|
-
- -
|
183
|
+
- - ">="
|
183
184
|
- !ruby/object:Gem::Version
|
184
185
|
version: '0'
|
185
186
|
requirements: []
|
186
187
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.2.2
|
188
189
|
signing_key:
|
189
190
|
specification_version: 4
|
190
191
|
summary: Ruby notifier for bugsnag.com
|