scan-suppressing-logger 0.1.0.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +142 -0
- data/LICENSE.txt +20 -0
- data/README.md +87 -0
- data/Rakefile +6 -0
- data/bin/setup +8 -0
- data/lib/scan_suppressing_logger.rb +8 -0
- data/lib/scan_suppressing_logger/middleware.rb +64 -0
- data/lib/scan_suppressing_logger/rails_wrapper.rb +9 -0
- data/lib/scan_suppressing_logger/rollbar_wrapper.rb +9 -0
- data/lib/scan_suppressing_logger/version.rb +3 -0
- data/scan-suppressing-logger.gemspec +30 -0
- metadata +114 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e9f9d834c0af78e56cc626c86638d206fc270525668e806a18154727ffb525f4
|
4
|
+
data.tar.gz: 603d7db833b4ec1b90ba8e1f4630883dbdd5578cab22ece613191252ab334f0e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 867aeda2ef35dbc82ed1250f444bb0621798ed2c1d1433c18ef4e602008ec16948e80709af013ce23a50bef1115e2427bde52e5e5b0cfba1caf08db2ca8bfacb
|
7
|
+
data.tar.gz: a2fce6dd56b4e31aece5c8e86c1db6003c1b279aa9ae4a162f7e81e12b5f4d90673876498bd27ff1095a1b937efaa0106d4a5cbcf90f1f429848757fb2f45bad
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of
|
9
|
+
experience, nationality, personal appearance, race, religion, or sexual identity
|
10
|
+
and orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
41
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
42
|
+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
|
43
|
+
contributor for other behaviors that they deem inappropriate, threatening,
|
44
|
+
offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at team@pixielabs.io. All complaints
|
59
|
+
will be reviewed and investigated and will result in a response that is deemed
|
60
|
+
necessary and appropriate to the circumstances. The project team is obligated to
|
61
|
+
maintain confidentiality with regard to the reporter of an incident. Further
|
62
|
+
details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
71
|
+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org [version]:
|
74
|
+
http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
scan-suppressing-logger (0.1.0.pre.alpha.1)
|
5
|
+
rails (>= 4.2)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.2.3)
|
11
|
+
actionpack (= 5.2.3)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailer (5.2.3)
|
15
|
+
actionpack (= 5.2.3)
|
16
|
+
actionview (= 5.2.3)
|
17
|
+
activejob (= 5.2.3)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.2.3)
|
21
|
+
actionview (= 5.2.3)
|
22
|
+
activesupport (= 5.2.3)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (>= 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.2.3)
|
28
|
+
activesupport (= 5.2.3)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.2.3)
|
34
|
+
activesupport (= 5.2.3)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.2.3)
|
37
|
+
activesupport (= 5.2.3)
|
38
|
+
activerecord (5.2.3)
|
39
|
+
activemodel (= 5.2.3)
|
40
|
+
activesupport (= 5.2.3)
|
41
|
+
arel (>= 9.0)
|
42
|
+
activestorage (5.2.3)
|
43
|
+
actionpack (= 5.2.3)
|
44
|
+
activerecord (= 5.2.3)
|
45
|
+
marcel (~> 0.3.1)
|
46
|
+
activesupport (5.2.3)
|
47
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
48
|
+
i18n (>= 0.7, < 2)
|
49
|
+
minitest (~> 5.1)
|
50
|
+
tzinfo (~> 1.1)
|
51
|
+
arel (9.0.0)
|
52
|
+
builder (3.2.3)
|
53
|
+
concurrent-ruby (1.1.5)
|
54
|
+
crass (1.0.4)
|
55
|
+
diff-lcs (1.3)
|
56
|
+
erubi (1.8.0)
|
57
|
+
globalid (0.4.2)
|
58
|
+
activesupport (>= 4.2.0)
|
59
|
+
i18n (1.6.0)
|
60
|
+
concurrent-ruby (~> 1.0)
|
61
|
+
loofah (2.2.3)
|
62
|
+
crass (~> 1.0.2)
|
63
|
+
nokogiri (>= 1.5.9)
|
64
|
+
mail (2.7.1)
|
65
|
+
mini_mime (>= 0.1.1)
|
66
|
+
marcel (0.3.3)
|
67
|
+
mimemagic (~> 0.3.2)
|
68
|
+
method_source (0.9.2)
|
69
|
+
mimemagic (0.3.3)
|
70
|
+
mini_mime (1.0.1)
|
71
|
+
mini_portile2 (2.4.0)
|
72
|
+
minitest (5.11.3)
|
73
|
+
nio4r (2.3.1)
|
74
|
+
nokogiri (1.10.3)
|
75
|
+
mini_portile2 (~> 2.4.0)
|
76
|
+
rack (2.0.7)
|
77
|
+
rack-test (1.1.0)
|
78
|
+
rack (>= 1.0, < 3)
|
79
|
+
rails (5.2.3)
|
80
|
+
actioncable (= 5.2.3)
|
81
|
+
actionmailer (= 5.2.3)
|
82
|
+
actionpack (= 5.2.3)
|
83
|
+
actionview (= 5.2.3)
|
84
|
+
activejob (= 5.2.3)
|
85
|
+
activemodel (= 5.2.3)
|
86
|
+
activerecord (= 5.2.3)
|
87
|
+
activestorage (= 5.2.3)
|
88
|
+
activesupport (= 5.2.3)
|
89
|
+
bundler (>= 1.3.0)
|
90
|
+
railties (= 5.2.3)
|
91
|
+
sprockets-rails (>= 2.0.0)
|
92
|
+
rails-dom-testing (2.0.3)
|
93
|
+
activesupport (>= 4.2.0)
|
94
|
+
nokogiri (>= 1.6)
|
95
|
+
rails-html-sanitizer (1.0.4)
|
96
|
+
loofah (~> 2.2, >= 2.2.2)
|
97
|
+
railties (5.2.3)
|
98
|
+
actionpack (= 5.2.3)
|
99
|
+
activesupport (= 5.2.3)
|
100
|
+
method_source
|
101
|
+
rake (>= 0.8.7)
|
102
|
+
thor (>= 0.19.0, < 2.0)
|
103
|
+
rake (10.5.0)
|
104
|
+
rspec (3.8.0)
|
105
|
+
rspec-core (~> 3.8.0)
|
106
|
+
rspec-expectations (~> 3.8.0)
|
107
|
+
rspec-mocks (~> 3.8.0)
|
108
|
+
rspec-core (3.8.1)
|
109
|
+
rspec-support (~> 3.8.0)
|
110
|
+
rspec-expectations (3.8.4)
|
111
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
+
rspec-support (~> 3.8.0)
|
113
|
+
rspec-mocks (3.8.1)
|
114
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
115
|
+
rspec-support (~> 3.8.0)
|
116
|
+
rspec-support (3.8.2)
|
117
|
+
sprockets (3.7.2)
|
118
|
+
concurrent-ruby (~> 1.0)
|
119
|
+
rack (> 1, < 3)
|
120
|
+
sprockets-rails (3.2.1)
|
121
|
+
actionpack (>= 4.0)
|
122
|
+
activesupport (>= 4.0)
|
123
|
+
sprockets (>= 3.0.0)
|
124
|
+
thor (0.20.3)
|
125
|
+
thread_safe (0.3.6)
|
126
|
+
tzinfo (1.2.5)
|
127
|
+
thread_safe (~> 0.1)
|
128
|
+
websocket-driver (0.7.1)
|
129
|
+
websocket-extensions (>= 0.1.0)
|
130
|
+
websocket-extensions (0.1.4)
|
131
|
+
|
132
|
+
PLATFORMS
|
133
|
+
ruby
|
134
|
+
|
135
|
+
DEPENDENCIES
|
136
|
+
bundler (~> 2.0)
|
137
|
+
rake (~> 10.0)
|
138
|
+
rspec (~> 3.0)
|
139
|
+
scan-suppressing-logger!
|
140
|
+
|
141
|
+
BUNDLED WITH
|
142
|
+
2.0.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Pixie Labs
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
# ScanSuppressingLogger
|
2
|
+
|
3
|
+
Rails middleware to suppress logging and exception reporting for certain IP
|
4
|
+
addresses or IP address ranges. Useful if your application is the target of
|
5
|
+
automated security scans (e.g. a scheduled penetration test) that fills your
|
6
|
+
logs with garbage errors and requests.
|
7
|
+
|
8
|
+
Suppresses the standard Rails logging, and also suppresses exception reporting
|
9
|
+
for:
|
10
|
+
|
11
|
+
- [Rollbar](https://rollbar.com)
|
12
|
+
- _Sentry & more coming soon!_
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'scan-suppressing-logger'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then execute:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install scan-suppressing-logger
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
Add to your `config/environments/production.rb`:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
# config/environments/production.rb
|
36
|
+
config.middleware.swap Rails::Rack::Logger, ScanSuppressingLogger::Middleware, {
|
37
|
+
networks: ['123.0.2.2/24', '86.54.222.1/16']
|
38
|
+
}
|
39
|
+
```
|
40
|
+
|
41
|
+
Pass an array of IP addresses or networks as strings to suppress logging for.
|
42
|
+
These should be parseable by
|
43
|
+
[IPAddr](https://ruby-doc.org/stdlib-2.6.3/libdoc/ipaddr/rdoc/IPAddr.html).
|
44
|
+
|
45
|
+
### Help! `No such middleware to insert before: Rails::Rack::Logger`
|
46
|
+
|
47
|
+
If you get this error it might be because something else is replacing the
|
48
|
+
standard logger, or expecting it to be there. For example, if you have
|
49
|
+
`config.assets.quiet = true` in your configuration, Sprockets tries to
|
50
|
+
`insert_before` the standard logging middleware in an initializer. You'll need
|
51
|
+
to configure this gem in an initializer too:
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
# config/initializer/suppressing_logger.rb
|
55
|
+
Rails.application.config.middleware.swap Rails::Rack::Logger, ScanSuppressingLogger::Middleware, {
|
56
|
+
networks: ['123.0.2.2/24', '86.54.222.1/16']
|
57
|
+
}
|
58
|
+
```
|
59
|
+
|
60
|
+
## Development
|
61
|
+
|
62
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
63
|
+
|
64
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To
|
65
|
+
release a new version, update the version number in `version.rb`, and then run
|
66
|
+
`bundle exec rake release`, which will create a git tag for the version, push
|
67
|
+
git commits and tags, and push the `.gem` file to
|
68
|
+
[rubygems.org](https://rubygems.org).
|
69
|
+
|
70
|
+
## Contributing
|
71
|
+
|
72
|
+
Bug reports and pull requests are welcome on GitHub at
|
73
|
+
https://github.com/pixielabs/scan-suppressing-logger. This project is intended to
|
74
|
+
be a safe, welcoming space for collaboration, and contributors are expected to
|
75
|
+
adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
|
76
|
+
conduct.
|
77
|
+
|
78
|
+
## License
|
79
|
+
|
80
|
+
The gem is available as open source under the terms of the [MIT
|
81
|
+
License](https://opensource.org/licenses/MIT).
|
82
|
+
|
83
|
+
## Code of Conduct
|
84
|
+
|
85
|
+
Everyone interacting in the ScanSuppressingLogger project’s codebases, issue
|
86
|
+
trackers, chat rooms and mailing lists is expected to follow the [code of
|
87
|
+
conduct](https://github.com/jalada/scan-suppressing-logger/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module ScanSuppressingLogger; end
|
4
|
+
|
5
|
+
require_relative 'scan_suppressing_logger/version'
|
6
|
+
require_relative 'scan_suppressing_logger/rails_wrapper'
|
7
|
+
require_relative 'scan_suppressing_logger/rollbar_wrapper'
|
8
|
+
require_relative 'scan_suppressing_logger/middleware'
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# Public: Suppresses Rails logs and exception reporting from automated scan
|
2
|
+
# requests.
|
3
|
+
#
|
4
|
+
# Use it by replacing the default Rails::Rack::Logger in config/application.rb:
|
5
|
+
#
|
6
|
+
# config.middleware.swap Rails::Rack::Logger, ScanSuppressingLogger::Middleware, {
|
7
|
+
# networks: ['123.0.2.2/24', '86.54.222.1/16'],
|
8
|
+
# }
|
9
|
+
module ScanSuppressingLogger
|
10
|
+
class Middleware < Rails::Rack::Logger
|
11
|
+
def initialize(app, options = {})
|
12
|
+
@app = app
|
13
|
+
@options = options
|
14
|
+
@wrappers = [ScanSuppressingLogger::RailsWrapper]
|
15
|
+
|
16
|
+
configure_networks!
|
17
|
+
find_error_trackers!
|
18
|
+
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
def call(env)
|
23
|
+
return super(env) unless @configured
|
24
|
+
|
25
|
+
request = ActionDispatch::Request.new env
|
26
|
+
if automated_scan? request
|
27
|
+
Rails.logger.tagged('ScanSuppressingLogger') { Rails.logger.info "Suppressed for #{request.remote_ip}" }
|
28
|
+
|
29
|
+
# Combine all the wrappers we need.
|
30
|
+
@wrappers.inject(proc { @app.call env }) do |acc, wrapper|
|
31
|
+
proc { wrapper.call(&acc) }
|
32
|
+
end.call
|
33
|
+
else
|
34
|
+
super env
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def automated_scan?(request)
|
39
|
+
# Check if the request source IP comes from any of the network ranges
|
40
|
+
# in config.
|
41
|
+
ip = IPAddr.new request.remote_ip
|
42
|
+
@networks.any?{|network| network.include? ip }
|
43
|
+
end
|
44
|
+
|
45
|
+
private
|
46
|
+
def configure_networks!
|
47
|
+
@networks = @options.delete(:networks)
|
48
|
+
|
49
|
+
if @networks && @networks.is_a?(Array)
|
50
|
+
@configured = true
|
51
|
+
@networks = @networks.
|
52
|
+
map{|network| IPAddr.new network }
|
53
|
+
else
|
54
|
+
puts "You need to pass a networks option to ScanSuppressingLogger."
|
55
|
+
puts "For more info, check the README: https://github.com/pixielabs/scan-suppressing-logger"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Internal: Find loaded error trackers and build up a list of wrappers.
|
60
|
+
def find_error_trackers!
|
61
|
+
@wrappers << ScanSuppressingLogger::RollbarWrapper if defined?(::Rollbar)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "scan_suppressing_logger/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "scan-suppressing-logger"
|
8
|
+
spec.version = ScanSuppressingLogger::VERSION
|
9
|
+
spec.authors = ["David Somers"]
|
10
|
+
spec.email = ["team@pixielabs.io"]
|
11
|
+
|
12
|
+
spec.summary = %q{Suppress Rails logs and exceptions from automated scan requests.}
|
13
|
+
spec.homepage = "https://github.com/pixielabs/scan-suppressing-logger"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_dependency "rails", ">= 4.2"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scan-suppressing-logger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.pre.alpha1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Somers
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- team@pixielabs.io
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- CODE_OF_CONDUCT.md
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/setup
|
85
|
+
- lib/scan_suppressing_logger.rb
|
86
|
+
- lib/scan_suppressing_logger/middleware.rb
|
87
|
+
- lib/scan_suppressing_logger/rails_wrapper.rb
|
88
|
+
- lib/scan_suppressing_logger/rollbar_wrapper.rb
|
89
|
+
- lib/scan_suppressing_logger/version.rb
|
90
|
+
- scan-suppressing-logger.gemspec
|
91
|
+
homepage: https://github.com/pixielabs/scan-suppressing-logger
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.3.1
|
109
|
+
requirements: []
|
110
|
+
rubygems_version: 3.0.3
|
111
|
+
signing_key:
|
112
|
+
specification_version: 4
|
113
|
+
summary: Suppress Rails logs and exceptions from automated scan requests.
|
114
|
+
test_files: []
|