deprecate 'Hash.new' for '{}'

This commit is contained in:
Scott Schneider 2015-02-25 17:26:33 -08:00
parent f73ac7a38c
commit 03fde8a15f

View file

@ -51,7 +51,7 @@ module Vmpooler
get '/dashboard/stats/vmpooler/pool/?' do get '/dashboard/stats/vmpooler/pool/?' do
content_type :json content_type :json
result = Hash.new result = {}
$config[:pools].each do |pool| $config[:pools].each do |pool|
result[pool['name']] ||= Hash.new result[pool['name']] ||= Hash.new
@ -106,7 +106,7 @@ module Vmpooler
get '/dashboard/stats/vmpooler/running/?' do get '/dashboard/stats/vmpooler/running/?' do
content_type :json content_type :json
result = Hash.new result = {}
$config[:pools].each do |pool| $config[:pools].each do |pool|
running = $redis.scard('vmpooler__running__' + pool['name']) running = $redis.scard('vmpooler__running__' + pool['name'])