lib/revision/info.rb in revision-1.1.8 vs lib/revision/info.rb in revision-1.2.0

- old
+ new

@@ -69,10 +69,10 @@ text = File.read(@src) text.gsub!(@regex) { |match| "#{$~[:prefix]}#{@major}#{$~[:sep1]}#{@minor}#{$~[:sep2]}#{@patch}#{$~[:postfix]}" } #Insert start/end tags if not present - text += new_changelog unless text.match(CHANGELOG_START) + text += new_changelog_placeholder unless text.match(CHANGELOG_START) text.gsub!(CHANGELOG_START) { |match| [match, format_changelog_entry(entry)].join("\n") } File.open(output_file_name, 'w') { |f| f.write(text) } end