lib/compare_linker/formatter/markdown.rb in compare_linker-1.1.1 vs lib/compare_linker/formatter/markdown.rb in compare_linker-1.1.2

- old
+ new

@@ -1,10 +1,10 @@ require "ostruct" class CompareLinker class Formatter - class Markdown + class Markdown < Base def format(gem_info) g = OpenStruct.new(gem_info) text = case when g.owner && g.old_rev && g.new_rev @@ -17,10 +17,10 @@ "* [#{g.gem_name}](https://github.com/#{g.repo_owner}/#{g.repo_name}): #{g.old_ver} => #{g.new_ver}" else "* #{g.gem_name}: (link not found) #{g.old_ver} => #{g.new_ver}" end - if (g.old_tag && g.new_tag && g.new_tag.to_f < g.old_tag.to_f) || g.new_ver.to_f < g.old_ver.to_f + if downgrade?(g.old_ver, g.new_ver, g.old_tag, g.new_tag) text += " (downgrade)" end text end