lib/arql/commands/info.rb in arql-0.1.3 vs lib/arql/commands/info.rb in arql-0.1.4

- old
+ new

@@ -6,11 +6,11 @@ Database Connection Information: Host: #{Arql::App.config[:host]} Port: #{Arql::App.config[:port]} Username: #{Arql::App.config[:username]} - Password: #{Arql::App.config[:password].gsub(/./, '*')} + Password: #{(Arql::App.config[:password] || '').gsub(/./, '*')} Database: #{Arql::App.config[:database]} Adapter: #{Arql::App.config[:adapter]} Encoding: #{Arql::App.config[:encoding]} Pool Size: #{Arql::App.config[:pool]} EOF @@ -21,10 +21,10 @@ SSH Connection Information: Host: #{Arql::App.config[:ssh][:host]} Port: #{Arql::App.config[:ssh][:port]} Username: #{Arql::App.config[:ssh][:user]} - Password: #{Arql::App.config[:ssh][:password].gsub(/./, '*')} + Password: #{(Arql::App.config[:ssh][:password] || '').gsub(/./, '*')} Local Port: #{Arql::App.local_ssh_proxy_port} EOF end end