From 1f5b37ed3c0a217aede1223f7b9a4f1929c9dedf Mon Sep 17 00:00:00 2001
From: nishiki <nishiki@yaegashi.fr>
Date: Sat, 1 Feb 2014 00:09:22 +0100
Subject: [PATCH] change array.new

---
 MPW/MPW.rb    | 10 +++++-----
 MPW/UI/Cli.rb |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/MPW/MPW.rb b/MPW/MPW.rb
index c57b696..6d851d6 100644
--- a/MPW/MPW.rb
+++ b/MPW/MPW.rb
@@ -78,7 +78,7 @@ module MPW
 		#        protocol -> the connection protocol (ssh, web, other)
 		# @rtrn: a list with the resultat of the search
 		def search(search='', group=nil, protocol=nil)
-			result = Array.new()
+			result = []
 	
 			if !search.nil?
 				search = search.downcase
@@ -110,7 +110,7 @@ module MPW
 				end
 			end
 	
-			return Array.new()
+			return []
 		end
 	
 		# Update an item
@@ -125,7 +125,7 @@ module MPW
 		#        comment -> a comment
 		# @rtrn: true if the item has been updated
 		def update(name, group, server, protocol, login, passwd, port, comment, id=nil)
-			row    = Array.new()
+			row    = []
 			update = false
 	
 			i  = 0
@@ -142,7 +142,7 @@ module MPW
 				port = nil
 			end
 	
-			row_update       = Array.new()
+			row_update       = []
 			row_update[DATE] = Time.now.to_i
 	
 			row_update[ID]       = id.nil?       || id.empty?       ? MPW.password(16) : id
@@ -238,7 +238,7 @@ module MPW
 		# @args: file -> path to file import
 		# @rtrn: an array with the items to import, if there is an error return false
 		def import_preview(file)
-			result = Array.new()
+			result = []
 			id = 0
 
 			data = IO.read(file)
diff --git a/MPW/UI/Cli.rb b/MPW/UI/Cli.rb
index 1b0ce0b..8501f22 100644
--- a/MPW/UI/Cli.rb
+++ b/MPW/UI/Cli.rb
@@ -165,7 +165,7 @@ class Cli
 
 	# Form to add a new item
 	def add()
-		row = Array.new()
+		row = []
 		puts I18n.t('form.add.title')
 		puts '--------------------'
 		name     = ask(I18n.t('form.add.name')).to_s