lib/xezat/command/bump.rb in xezat-0.2.2 vs lib/xezat/command/bump.rb in xezat-0.2.3

- old
+ new

@@ -28,16 +28,15 @@ Xezat.logger.debug('Start bumping') pkgs = packages vars = variables(@cygport) readme_file = File.expand_path(File.join(vars[:C], 'README')) - info = { - src_uri: get_src_uri(vars), - runtimes: get_runtime_packages(vars, pkgs, @cygport), - developments: get_development_packages(vars, pkgs), - files: get_files(vars), - changelog: get_changelog(vars, @options, readme_file) - } + info = {} + info[:src_uri] = get_src_uri(vars) + info[:runtimes] = get_runtime_packages(vars, pkgs, @cygport) + info[:files] = get_files(vars) + info[:developments] = get_development_packages(vars, pkgs, info[:runtimes], info[:files]) + info[:changelog] = get_changelog(vars, @options, readme_file) Xezat.logger.debug(' Write ChangeLog atomically') File.atomic_write(readme_file) do |f| f.write(get_embedded_contents(vars, info)) end