Reafactor creation hash with default value in Rakefile

Pass default value as parameter for initializer rather than passing proc
Merge pull request #827 from ka8725/default_value_for_hash

Reafactor creation hash with default value in Rakefile