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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4346819b44891789bee5cf71fa41b5ed77a2e327
4
- data.tar.gz: a6d7004130e9738acba6fe78a7d95c854fa5e471
3
+ metadata.gz: b46b9723dc22534a3945fe302dd21e363d00da14
4
+ data.tar.gz: 572a8e06fa2bc729222d1a4756441c9b688fe3f6
5
5
  SHA512:
6
- metadata.gz: 9367fdff5ba43b72e927c53aa4f9982cd24c8afcfd0783cbba5269558119e6ff3ba6da0a9e21e051df8b5fad81e50e901a7d9adf031879e625cd18f61c3fc4e1
7
- data.tar.gz: e8d1ab223624a75c5cb40ac347008471dc9101ddaaf337fa8b1ac1c473d3a8a429fb64b63e3aa7bad7863c296ab670f71134b8358e35dc3547d05c8db8ee8008
6
+ metadata.gz: 7d0d7ee6e11ed9a0d79c98177b77f555ad3199e66b8c56397a3a624fea1d1222a92bb1193995e16856d634d75bad08a3682b63fa6f539ebcdfd36b7d364463f9
7
+ data.tar.gz: 10f66a1b5091e9baddfaa3eeda4e12c65151d1a9a559e91149ac1112c58c50706117f4f9c606ea6e7f37e2b5aec395f67f2b480bc97db370515701524983d957
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'colorize', github: 'kaihar4/colorize'
4
-
5
3
  # Specify your gem's dependencies in ifilter.gemspec
6
4
  gemspec
data/bin/ifilter CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'colorize'
3
+ require 'safe_colorize'
4
4
  require 'ifilter'
5
5
 
6
- using Colorize
6
+ using SafeColorize
7
7
 
8
8
  args = []
9
9
 
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'
@@ -1,3 +1,3 @@
1
1
  module Ifilter
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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(repositories)
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, repositories)
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.2
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