warning_filter 0.0.0

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 +7 -0
  2. data/lib/warning_filter.rb +11 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5b15f46430308233b406ba380bb3f02ae696756
4
+ data.tar.gz: 07fb11932f276747fc02bf52a25fc35b4d2555dc
5
+ SHA512:
6
+ metadata.gz: 5ebce3693d031f22d9b1fbbcce04d2733329b1e4c83bb60ae14483f07b0081debf9711ddf4b7df0598617f10be65e3435b1cfd83757a333d0f60a0259924c69c
7
+ data.tar.gz: c9a6110b5036b31d311eabb86be5c3058af7e0096c7d29a59cacf2197d9783992f150a1f1faece160c3117cd418c16491423ad4b676bf4d775583a7b156ea80f
@@ -0,0 +1,11 @@
1
+ require 'delegate'
2
+
3
+ module Support
4
+ class WarningFilter < DelegateClass(IO)
5
+ def write(line)
6
+ super if line !~ /^\S+gems\/ruby\-\S+:\d+: warning:/
7
+ end
8
+ end
9
+ end
10
+
11
+ $stderr = Support::WarningFilter.new($stderr)
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: warning_filter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Grayson Wright
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Only see the warnings you need to.
14
+ email: wright.grayson@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/warning_filter.rb
20
+ homepage: https://github.com/graysonwright/warning_filter
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.4.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Filter out errors from third-party gems so you can hear yourself think.
44
+ test_files: []
45
+ has_rdoc: