Compare Linker

Create GitHub's compare view URLs for pull request from diff of Gemfile.lock (and post comment to pull request).

GitHub Compare View rocks.But diff of Gemfile.lock sucks. So I made Compare Linker.
Usage
require 'compare_linker'
ENV['OCTOKIT_ACCESS_TOKEN'] = 'xxx'
compare_linker = CompareLinker.new('masutaka/compare_linker', '17')
compare_linker.formatter = CompareLinker::Formatter::Markdown.new
comment = compare_linker.make_compare_links.to_a.join("\n")
compare_linker.add_comment('masutaka/compare_linker', '17', comment)
Rack app for listening GitHub Webhook
There's rack application for Compare Linker with GitHub's Webhook.