Commit Graph

216 Commits

Author SHA1 Message Date
rick db2a6deca9 tomdoc reorg for git_access.rb 2010-11-20 14:14:47 -08:00
rick 4dda9fb2ae tomdoc'd 2010-11-20 13:08:39 -08:00
rick 0b8bc597a7 merge latest tweaks to master 2010-11-09 12:39:28 -08:00
rick 39d16b8c43 Merge branch 'text_data_method' of https://github.com/hiroshi/gollum into hiroshi-text_data_method 2010-11-09 12:19:29 -08:00
rick 3b94a6723c integrate Sanitization class 2010-11-09 12:07:54 -08:00
rick 740ed4362b only allow <a> to have href and <img> to have src 2010-11-05 16:46:44 -07:00
Tom Preston-Werner 74b7248334 Use @wiki.page_class in Gollum::Markup where appropriate. Fixes #63. 2010-10-28 15:15:34 -07:00
Tom Preston-Werner 996f81d63d Release 1.1.0 2010-10-28 12:18:27 -07:00
7rans ac1d1c47e2 fix misspelling of sanitization 2010-10-27 14:20:33 -04:00
7rans 3e8d2773be allow deactivation of sanitization 2010-10-27 14:17:24 -04:00
7rans 26df05374c provide customizable sanitization 2010-10-27 14:04:26 -04:00
rick 1a19278fc7 GitAccess#tree should always return an array 2010-10-13 12:06:23 -07:00
rick 54917bbdb9 recover from bad shas 2010-10-13 09:52:04 -07:00
rick 497b36ad2b give the markup caching methods a bit more info 2010-10-12 15:46:55 -07:00
rick e7f2da2d4a add caching hooks for Gollum::Markup 2010-10-12 15:36:36 -07:00
rick 94c3ac767e Merge branch 'master' into exp 2010-10-12 10:22:56 -07:00
rick f2ed24ef8c extract multi_commit! method from GitAccess 2010-10-12 10:02:48 -07:00
Marko Anastasov 16ef859073 Ignore case when matching image paths.
Otherwise images with file extensions in caps don't get rendered.
2010-10-12 12:07:07 +02:00
rick c6dc4acc02 add extension points for GitAccess caching 2010-10-11 18:05:02 -07:00
rick b7474b7e41 Merge branch 'master' into exp 2010-10-11 17:40:27 -07:00
rick e7b1265873 Gollum::Wiki#size returns 0 if the repo is invalid or empty 2010-10-11 17:40:09 -07:00
rick 300d8eacc5 optimize Gollum::Wiki#tree_list 2010-10-11 16:58:46 -07:00
rick 6552323797 implement GitAccess#commits using grit head 2010-10-11 16:58:46 -07:00
rick a92a882021 restore ref_map and tree_map tests 2010-10-11 16:58:46 -07:00
rick ebf7855c09 integrate Gollum::GitAccess 2010-10-11 16:58:46 -07:00
rick 62c4b795be add basic GitAccess class 2010-10-11 16:58:46 -07:00
Hiroshi Saito dc7693dbd0 FIX: Sanitize.clean raise Encoding::CompatibilityError if a page contains non ASCII-7 characters 2010-10-08 23:39:18 +09:00
rick dd7dddddcf Revert "Gollum::Wiki#pages come back sorted by title, not permalink or the default ordering from git ls-tree."
This reverts commit e37a8b9da4.
2010-10-06 13:17:47 -07:00
rick 4dbe3ea844 ensures rel="nofollow" is added to all anchors if a page is retrieved with a SHA 2010-09-30 17:19:37 -07:00
rick cc929bbc56 tomdoc'd 2010-09-30 15:36:14 -07:00
rick 05a7b4c06c Allow users to pass anchors to page links.
http://github.com/github/gollum/issues/\#issue/21
2010-09-30 15:32:02 -07:00
rick 4b313944fe merge 2010-09-30 14:22:18 -07:00
rick 9786f5f347 Merge branch 'master' into special-chars-in-page-names 2010-09-30 14:02:39 -07:00
rick e37a8b9da4 Gollum::Wiki#pages come back sorted by title, not permalink or the default ordering from git ls-tree. 2010-09-16 09:16:42 -07:00
rick d51f42e647 theres no blank? in ruby 2010-09-13 15:49:10 -07:00
rick 430436ce8d handle non strings passed to Page.cname 2010-09-13 15:48:54 -07:00
rick e774ceaf1f dont bomb when trying to find a page with a blank name 2010-09-12 20:04:21 -07:00
rick 42bd6c221a invalid shas return empty treemaps 2010-09-03 10:59:30 -07:00
Paul Baumgart 50e9a42503 fix documentation for Wiki.size 2010-09-02 20:30:13 -07:00
Paul Baumgart 5fcb5d971a Add support for RFC 1738 special characters in page names.
Escape all links and redirects to support this. Some changes to app.rb
necessary for correct routing by Sinatra.
2010-09-01 22:02:19 -07:00
Jon Frisby e9239050e0 Properly handle pages that exist in sub-dirs in search results 2010-08-31 10:48:10 +02:00
rick e0d234c255 use grit to get the file's mime type, as suggested.
http://github.com/github/gollum/commit/6de9ddfd3f79a9cb320aab3c43b8e0a912107b2e#commitcomment-137656
2010-08-30 18:25:48 -07:00
rick bf37f44970 pull default name/email for commits from wiki repo's git config 2010-08-30 18:11:03 -07:00
rick 847e6c00a4 Merge branch 'master' of github.com:github/gollum 2010-08-30 18:04:36 -07:00
Jon Frisby 6de9ddfd3f Make an attempt at setting a proper mime-type when showing a file.
Prevents things like having the browser show raw binary data when you have a PDF in your repo.
2010-08-31 09:04:27 +08:00
Jon Frisby 1f8a67598a Use Grit to determine committer instead of executing a sub-shell and calling the git CLI. 2010-08-31 09:04:27 +08:00
rick ba18cbebe8 more tree_map tests 2010-08-30 17:56:03 -07:00
rick 646c8e21b2 Add Wiki#size to efficiently count pages without loading them. 2010-08-30 17:52:20 -07:00
rick 6dab4f7fe6 Wiki#pages uses the treemap 2010-08-30 17:45:32 -07:00
rick 7e2b1fdbc6 Wiki#tree_map_for returns an array of BlobEntry instances 2010-08-30 17:31:19 -07:00