ifilter 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/Gemfile +0 -2
- data/bin/ifilter +2 -2
- data/ifilter.gemspec +1 -0
- data/lib/ifilter/version.rb +1 -1
- data/lib/ifilter.rb +2 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b46b9723dc22534a3945fe302dd21e363d00da14
|
4
|
+
data.tar.gz: 572a8e06fa2bc729222d1a4756441c9b688fe3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d0d7ee6e11ed9a0d79c98177b77f555ad3199e66b8c56397a3a624fea1d1222a92bb1193995e16856d634d75bad08a3682b63fa6f539ebcdfd36b7d364463f9
|
7
|
+
data.tar.gz: 10f66a1b5091e9baddfaa3eeda4e12c65151d1a9a559e91149ac1112c58c50706117f4f9c606ea6e7f37e2b5aec395f67f2b480bc97db370515701524983d957
|
data/Gemfile
CHANGED
data/bin/ifilter
CHANGED
data/ifilter.gemspec
CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
19
|
spec.add_runtime_dependency 'curses'
|
20
|
+
spec.add_runtime_dependency 'safe_colorize'
|
20
21
|
|
21
22
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
22
23
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/lib/ifilter/version.rb
CHANGED
data/lib/ifilter.rb
CHANGED
@@ -3,7 +3,7 @@ require 'ifilter/interface'
|
|
3
3
|
require 'ifilter/input'
|
4
4
|
|
5
5
|
module Ifilter
|
6
|
-
def self.filtering(
|
6
|
+
def self.filtering(array)
|
7
7
|
name = caller.last.match(/([^\/]+?)(\.|:)/)[1].capitalize
|
8
8
|
|
9
9
|
isatty = STDOUT.isatty
|
@@ -13,7 +13,7 @@ module Ifilter
|
|
13
13
|
STDOUT.reopen('/dev/tty')
|
14
14
|
end
|
15
15
|
|
16
|
-
ifilter = Interface.new(name,
|
16
|
+
ifilter = Interface.new(name, array)
|
17
17
|
result = ifilter.grep
|
18
18
|
|
19
19
|
unless isatty
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifilter
|
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
|
- kaihar4
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: safe_colorize
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|