From 81da0407d02193a16a9acc96875eb799f5b904d8 Mon Sep 17 00:00:00 2001 From: nishiki Date: Sat, 14 May 2016 12:10:24 +0200 Subject: [PATCH] remove search with protocol --- bin/mpw | 1 - lib/mpw/mpw.rb | 3 --- 2 files changed, 4 deletions(-) diff --git a/bin/mpw b/bin/mpw index 830b2c2..97b846d 100755 --- a/bin/mpw +++ b/bin/mpw @@ -147,7 +147,6 @@ cli.decrypt if not options[:show].nil? opts = {search: options[:show], group: options[:group], - protocol: options[:protocol], } cli.display(opts) diff --git a/lib/mpw/mpw.rb b/lib/mpw/mpw.rb index b8f315c..767522a 100644 --- a/lib/mpw/mpw.rb +++ b/lib/mpw/mpw.rb @@ -220,13 +220,10 @@ class MPW search = options[:search].to_s.downcase group = options[:group].to_s.downcase - protocol = options[:protocol].to_s.downcase @data.each do |item| next if item.empty? - next if not group.empty? and not group.eql?(item.group.downcase) - next if not protocol.empty? and not protocol.eql?(item.protocol.downcase) name = item.name.to_s.downcase host = item.host.to_s.downcase