lib/caramelize/output_wiki/gollum.rb in caramelize-1.2.1 vs lib/caramelize/output_wiki/gollum.rb in caramelize-1.3.0
- old
+ new
@@ -36,10 +36,10 @@
# Commit all revisions of the given history into this gollum-wiki-repository.
def commit_history(revisions, options = {}, &block)
revisions.each_with_index do |page, index|
# call debug output from outside
- block.call(page, index) if block_given?
+ yield(page, index) if block
commit_revision(page, options.fetch(:markup, :markdown))
end
end
def commit_namespace_overview(namespaces)