implement Page#versions

This commit is contained in:
Tom Preston-Werner
2010-04-11 12:17:32 -06:00
parent e3772b1879
commit 61076b38b4
3 changed files with 17 additions and 2 deletions
+9
View File
@@ -74,6 +74,15 @@ module Gollum
end
end
# All of the versions that have touched this Page.
#
# Returns an Array of Gollum::Version.
def versions
@wiki.repo.log('master', self.path).map do |v|
Version.new(v)
end
end
# Find a page in the given Gollum repo.
#
# name - The human or canonical String page name to find.