warning_filter 0.0.0 → 0.0.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/lib/warning_filter.rb +7 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a33d3b03dc0b0e0be1194de6a170f32096b404
|
4
|
+
data.tar.gz: 2d2cddcfca793590dd7405d2f3464b9deef7e024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a407234ea1b2aa4074a6c0dedf556e6fd4e4cebe433dc1ebf5bc53f05d38044c1c068bc7fecb5273e7be90adc92b424cb451def43227fda099a9e84e598cf58f
|
7
|
+
data.tar.gz: ae28094908c78b1ece84317d27ac13cb28635556a05b2e14dc289b41c20e3766d488dfaee5469c43d387a826a11f650e07c13492e1624611309b5a662179d6af
|
data/lib/warning_filter.rb
CHANGED
@@ -3,7 +3,13 @@ require 'delegate'
|
|
3
3
|
module Support
|
4
4
|
class WarningFilter < DelegateClass(IO)
|
5
5
|
def write(line)
|
6
|
-
super
|
6
|
+
super unless from_third_party?(line)
|
7
|
+
end
|
8
|
+
|
9
|
+
def from_third_party?(line)
|
10
|
+
Gem.path.each do |gem_path|
|
11
|
+
return true if line.include?(gem_path)
|
12
|
+
end
|
7
13
|
end
|
8
14
|
end
|
9
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warning_filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grayson Wright
|
@@ -10,7 +10,8 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Filter out warnings from third-party gems so you can focus on your own
|
14
|
+
problems.
|
14
15
|
email: wright.grayson@gmail.com
|
15
16
|
executables: []
|
16
17
|
extensions: []
|
@@ -40,6 +41,6 @@ rubyforge_project:
|
|
40
41
|
rubygems_version: 2.4.1
|
41
42
|
signing_key:
|
42
43
|
specification_version: 4
|
43
|
-
summary:
|
44
|
+
summary: Only see the warnings you need to.
|
44
45
|
test_files: []
|
45
46
|
has_rdoc:
|