warning_filter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warning_filter.rb +2 -17
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f825b7a324d22eca16366382751c7fc6c3ae4a8
|
4
|
+
data.tar.gz: de933386ab5a7c1cabf17199cc7b8473f4485326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c5a170e552b6405fb611ce03672e40cdc580ad1adbf9249626d721f2490f26ba97aa0c6020a3e4455b0be6e6775a89928ea9d49e79301a8b1e1e65d77f5afa1
|
7
|
+
data.tar.gz: 41b87c3a9d1c3f1b5b8b171e3c12d3792e0a41e043fdde54bd8b39bd5e04829872744eff29731e7a772b83dbf086f3807dceb6cf3a243dfc15c06c3f04f8aea0
|
data/lib/warning_filter.rb
CHANGED
@@ -1,18 +1,3 @@
|
|
1
|
-
require
|
1
|
+
require "warning_filter/filter"
|
2
2
|
|
3
|
-
|
4
|
-
class WarningFilter < DelegateClass(IO)
|
5
|
-
def write(line)
|
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
|
13
|
-
return false
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
$stderr = Support::WarningFilter.new($stderr)
|
3
|
+
$stderr = WarningFilter::Filter.new($stderr)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grayson Wright
|
@@ -10,8 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Filter out warnings from
|
14
|
-
problems.
|
13
|
+
description: Filter out warnings from gems so you can focus on your own problems.
|
15
14
|
email: wright.grayson@gmail.com
|
16
15
|
executables: []
|
17
16
|
extensions: []
|
@@ -38,9 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
37
|
version: '0'
|
39
38
|
requirements: []
|
40
39
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.4.
|
40
|
+
rubygems_version: 2.4.2
|
42
41
|
signing_key:
|
43
42
|
specification_version: 4
|
44
43
|
summary: Only see the warnings you need to.
|
45
44
|
test_files: []
|
46
|
-
has_rdoc:
|