lib/xezat/command/bump.rb in xezat-0.1.2 vs lib/xezat/command/bump.rb in xezat-0.2.0
- old
+ new
@@ -30,11 +30,11 @@
vars = variables(@cygport)
readme_file = File.expand_path(File.join(vars[:C], 'README'))
info = {
src_uri: get_src_uri(vars),
- runtimes: get_runtime_packages(@cygport),
+ runtimes: get_runtime_packages(vars, @cygport),
developments: get_development_packages(vars, pkgs),
files: get_files(vars),
changelog: get_changelog(vars, @options, readme_file)
}
@@ -46,10 +46,10 @@
Xezat.logger.debug('End bumping')
end
def get_embedded_contents(variables, info)
erb = File.expand_path(File.join(TEMPLATE_DIR, 'README.erb'))
- ERB.new(File.readlines(erb).join(nil), nil, '%-').result(binding).chop # remove redundant new line
+ ERB.new(File.readlines(erb).join(nil), trim_mode: '%-').result(binding).chop # remove redundant new line
end
end
end
end