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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/warning_filter.rb +2 -17
  3. metadata +3 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ef81a7f09e1b269211bc1136b0938f011868c52
4
- data.tar.gz: 86e867eb99128eab2e67c0823f2e11c1383acb37
3
+ metadata.gz: 4f825b7a324d22eca16366382751c7fc6c3ae4a8
4
+ data.tar.gz: de933386ab5a7c1cabf17199cc7b8473f4485326
5
5
  SHA512:
6
- metadata.gz: 5b77d92e21e99ea08f0ed5329e0f7d56ce3f6d5a149e9e8144a6220fdc093b9ce1cc1678b0394de258542a94b6cfd7ee3c56f97201c0a72733a67505bc182b90
7
- data.tar.gz: e0aa1a84ac7ac59121f1a3cb50c7ded93c21f5e36f69b32832c6c14f07deddc3a02029ce4c360987d4a1c2a9226dd5b5c724dc07e6927e21ea7ab2f1685fa6ba
6
+ metadata.gz: 8c5a170e552b6405fb611ce03672e40cdc580ad1adbf9249626d721f2490f26ba97aa0c6020a3e4455b0be6e6775a89928ea9d49e79301a8b1e1e65d77f5afa1
7
+ data.tar.gz: 41b87c3a9d1c3f1b5b8b171e3c12d3792e0a41e043fdde54bd8b39bd5e04829872744eff29731e7a772b83dbf086f3807dceb6cf3a243dfc15c06c3f04f8aea0
@@ -1,18 +1,3 @@
1
- require 'delegate'
1
+ require "warning_filter/filter"
2
2
 
3
- module Support
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.2
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 third-party gems so you can focus on your own
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.1
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: