module Jekyll::Changelog::Filter

Public Instance Methods

changelog(path, fromDate, toDate = Date.today) click to toggle source
# File lib/jekyll-changelog.rb, line 14
def changelog(path, fromDate, toDate = Date.today)
    fromCommit = Jekyll::Changelog.get_commit(path, fromDate + 1)
    toCommit = Jekyll::Changelog.get_commit(path, toDate + 1)

    fromContent = Jekyll::Changelog.get_content(path, fromCommit)
    toContent = Jekyll::Changelog.get_content(path, toCommit)

    Diffy::Diff.new(fromContent, toContent, :context => 0).to_s(:html)
end