Module: Jekyll::Changelog::Filter
- Defined in:
- lib/jekyll-changelog.rb
Instance Method Summary collapse
Instance Method Details
#changelog(path, fromDate, toDate = Date.today) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# 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 |