read-only-gollum 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/Gemfile +4 -0
  2. data/HISTORY.md +102 -0
  3. data/Home.md +3 -0
  4. data/LICENSE +21 -0
  5. data/README.md +477 -0
  6. data/Rakefile +142 -0
  7. data/bin/read-only-gollum +126 -0
  8. data/docs/sanitization.md +32 -0
  9. data/lib/gollum.rb +41 -0
  10. data/lib/gollum/blob_entry.rb +78 -0
  11. data/lib/gollum/committer.rb +218 -0
  12. data/lib/gollum/file.rb +64 -0
  13. data/lib/gollum/frontend/app.rb +225 -0
  14. data/lib/gollum/frontend/public/css/dialog.css +141 -0
  15. data/lib/gollum/frontend/public/css/editor.css +537 -0
  16. data/lib/gollum/frontend/public/css/gollum.css +660 -0
  17. data/lib/gollum/frontend/public/css/ie7.css +69 -0
  18. data/lib/gollum/frontend/public/css/template.css +381 -0
  19. data/lib/gollum/frontend/public/images/icon-sprite.png +0 -0
  20. data/lib/gollum/frontend/public/javascript/editor/gollum.editor.js +1096 -0
  21. data/lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js +167 -0
  22. data/lib/gollum/frontend/public/javascript/editor/langs/creole.js +104 -0
  23. data/lib/gollum/frontend/public/javascript/editor/langs/markdown.js +211 -0
  24. data/lib/gollum/frontend/public/javascript/editor/langs/org.js +173 -0
  25. data/lib/gollum/frontend/public/javascript/editor/langs/pod.js +111 -0
  26. data/lib/gollum/frontend/public/javascript/editor/langs/rdoc.js +74 -0
  27. data/lib/gollum/frontend/public/javascript/editor/langs/textile.js +175 -0
  28. data/lib/gollum/frontend/public/javascript/gollum.dialog.js +263 -0
  29. data/lib/gollum/frontend/public/javascript/gollum.js +161 -0
  30. data/lib/gollum/frontend/public/javascript/gollum.placeholder.js +54 -0
  31. data/lib/gollum/frontend/public/javascript/jquery.color.js +123 -0
  32. data/lib/gollum/frontend/public/javascript/jquery.js +7179 -0
  33. data/lib/gollum/frontend/templates/compare.mustache +38 -0
  34. data/lib/gollum/frontend/templates/create.mustache +17 -0
  35. data/lib/gollum/frontend/templates/edit.mustache +17 -0
  36. data/lib/gollum/frontend/templates/editor.mustache +116 -0
  37. data/lib/gollum/frontend/templates/error.mustache +8 -0
  38. data/lib/gollum/frontend/templates/history.mustache +58 -0
  39. data/lib/gollum/frontend/templates/layout.mustache +28 -0
  40. data/lib/gollum/frontend/templates/page.mustache +37 -0
  41. data/lib/gollum/frontend/templates/pages.mustache +35 -0
  42. data/lib/gollum/frontend/templates/search.mustache +36 -0
  43. data/lib/gollum/frontend/templates/searchbar.mustache +10 -0
  44. data/lib/gollum/frontend/views/compare.rb +94 -0
  45. data/lib/gollum/frontend/views/create.rb +48 -0
  46. data/lib/gollum/frontend/views/edit.rb +52 -0
  47. data/lib/gollum/frontend/views/editable.rb +13 -0
  48. data/lib/gollum/frontend/views/error.rb +7 -0
  49. data/lib/gollum/frontend/views/history.rb +44 -0
  50. data/lib/gollum/frontend/views/layout.rb +20 -0
  51. data/lib/gollum/frontend/views/page.rb +57 -0
  52. data/lib/gollum/frontend/views/pages.rb +19 -0
  53. data/lib/gollum/frontend/views/search.rb +20 -0
  54. data/lib/gollum/git_access.rb +248 -0
  55. data/lib/gollum/markup.rb +489 -0
  56. data/lib/gollum/page.rb +430 -0
  57. data/lib/gollum/pagination.rb +61 -0
  58. data/lib/gollum/sanitization.rb +174 -0
  59. data/lib/gollum/tex.rb +89 -0
  60. data/lib/gollum/web_sequence_diagram.rb +43 -0
  61. data/lib/gollum/wiki.rb +636 -0
  62. data/read-only-gollum.gemspec +224 -0
  63. data/templates/formatting.html +92 -0
  64. data/test/examples/empty.git/HEAD +1 -0
  65. data/test/examples/empty.git/config +5 -0
  66. data/test/examples/empty.git/description +1 -0
  67. data/test/examples/empty.git/hooks/applypatch-msg.sample +15 -0
  68. data/test/examples/empty.git/hooks/commit-msg.sample +24 -0
  69. data/test/examples/empty.git/hooks/post-commit.sample +8 -0
  70. data/test/examples/empty.git/hooks/post-receive.sample +15 -0
  71. data/test/examples/empty.git/hooks/post-update.sample +8 -0
  72. data/test/examples/empty.git/hooks/pre-applypatch.sample +14 -0
  73. data/test/examples/empty.git/hooks/pre-commit.sample +46 -0
  74. data/test/examples/empty.git/hooks/pre-rebase.sample +169 -0
  75. data/test/examples/empty.git/hooks/prepare-commit-msg.sample +36 -0
  76. data/test/examples/empty.git/hooks/update.sample +128 -0
  77. data/test/examples/empty.git/info/exclude +6 -0
  78. data/test/examples/empty.git/objects/info/.gitkeep +0 -0
  79. data/test/examples/empty.git/objects/pack/.gitkeep +0 -0
  80. data/test/examples/empty.git/refs/heads/.gitkeep +0 -0
  81. data/test/examples/lotr.git/COMMIT_EDITMSG +1 -0
  82. data/test/examples/lotr.git/HEAD +1 -0
  83. data/test/examples/lotr.git/ORIG_HEAD +1 -0
  84. data/test/examples/lotr.git/config +12 -0
  85. data/test/examples/lotr.git/description +1 -0
  86. data/test/examples/lotr.git/index +0 -0
  87. data/test/examples/lotr.git/info/exclude +6 -0
  88. data/test/examples/lotr.git/logs/HEAD +3 -0
  89. data/test/examples/lotr.git/logs/refs/heads/master +3 -0
  90. data/test/examples/lotr.git/objects/06/131480411710c92a82fe2d1e76932c70feb2e5 +0 -0
  91. data/test/examples/lotr.git/objects/0a/de1e2916346d4c1f2fb63b863fd3c16808fe44 +0 -0
  92. data/test/examples/lotr.git/objects/0e/d8cbe0a25235bd867e65193c7d837c66b328ef +3 -0
  93. data/test/examples/lotr.git/objects/12/629d666c5e3178f82f533f543d61b53dc78c0b +0 -0
  94. data/test/examples/lotr.git/objects/1d/b89ebba7e2c14d93b94ff98cfa3708a4f0d4e3 +2 -0
  95. data/test/examples/lotr.git/objects/24/49c2681badfd3c189e8ed658dacffe8ba48fe5 +0 -0
  96. data/test/examples/lotr.git/objects/25/4bdc1ba27d8b8a794538a8522d9a2b56ec2dd9 +0 -0
  97. data/test/examples/lotr.git/objects/2c/b9156ad383914561a8502fc70f5a1d887e48ad +4 -0
  98. data/test/examples/lotr.git/objects/5d/cac289a8603188d2c5caf481dcba2985126aaa +0 -0
  99. data/test/examples/lotr.git/objects/60/f12f4254f58801b9ee7db7bca5fa8aeefaa56b +0 -0
  100. data/test/examples/lotr.git/objects/71/4323c104239440a5c66ab12a67ed07a83c404f +0 -0
  101. data/test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10 +0 -0
  102. data/test/examples/lotr.git/objects/93/6b83ee0dd8837adb82511e40d5e4ebe59bb675 +0 -0
  103. data/test/examples/lotr.git/objects/94/523d7ae48aeba575099dd12926420d8fd0425d +2 -0
  104. data/test/examples/lotr.git/objects/96/97dc65e095658bbd1b8e8678e08881e86d32f1 +0 -0
  105. data/test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814 +0 -0
  106. data/test/examples/lotr.git/objects/a6/59b3763b822dd97544621fd0beef162ea37b14 +4 -0
  107. data/test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813 +0 -0
  108. data/test/examples/lotr.git/objects/aa/b61fe89d56f8614c0a8151da34f939dcedfa68 +0 -0
  109. data/test/examples/lotr.git/objects/bc/4b5fc0ce2c2ba3acef6647e4f67256ee45ab60 +0 -0
  110. data/test/examples/lotr.git/objects/c3/b43e9f08966b088e7a0192e436b7a884542e05 +0 -0
  111. data/test/examples/lotr.git/objects/dc/596d6b2dd89ab05c66f4abd7d5eb706bc17f19 +0 -0
  112. data/test/examples/lotr.git/objects/ec/da3205bee14520aab5a7bb307392064b938e83 +0 -0
  113. data/test/examples/lotr.git/objects/f4/84ebb1f40f8eb20d1bcd8d1d71934d2b8ae961 +0 -0
  114. data/test/examples/lotr.git/objects/fa/e7ef5344202bba4129abdc13060d9297d99465 +3 -0
  115. data/test/examples/lotr.git/objects/info/packs +2 -0
  116. data/test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.idx +0 -0
  117. data/test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.pack +0 -0
  118. data/test/examples/lotr.git/packed-refs +2 -0
  119. data/test/examples/lotr.git/refs/heads/master +1 -0
  120. data/test/examples/lotr.git/refs/remotes/origin/HEAD +1 -0
  121. data/test/examples/page_file_dir.git/COMMIT_EDITMSG +1 -0
  122. data/test/examples/page_file_dir.git/HEAD +1 -0
  123. data/test/examples/page_file_dir.git/config +6 -0
  124. data/test/examples/page_file_dir.git/description +1 -0
  125. data/test/examples/page_file_dir.git/index +0 -0
  126. data/test/examples/page_file_dir.git/info/exclude +6 -0
  127. data/test/examples/page_file_dir.git/logs/HEAD +1 -0
  128. data/test/examples/page_file_dir.git/logs/refs/heads/master +1 -0
  129. data/test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf +0 -0
  130. data/test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e +0 -0
  131. data/test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
  132. data/test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
  133. data/test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2 +0 -0
  134. data/test/examples/page_file_dir.git/refs/heads/master +1 -0
  135. data/test/examples/revert.git/COMMIT_EDITMSG +1 -0
  136. data/test/examples/revert.git/HEAD +1 -0
  137. data/test/examples/revert.git/config +12 -0
  138. data/test/examples/revert.git/description +1 -0
  139. data/test/examples/revert.git/index +0 -0
  140. data/test/examples/revert.git/info/exclude +6 -0
  141. data/test/examples/revert.git/logs/HEAD +2 -0
  142. data/test/examples/revert.git/logs/refs/heads/master +2 -0
  143. data/test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d +0 -0
  144. data/test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9 +0 -0
  145. data/test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708 +0 -0
  146. data/test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc +0 -0
  147. data/test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433 +0 -0
  148. data/test/examples/revert.git/objects/info/packs +2 -0
  149. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx +0 -0
  150. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack +0 -0
  151. data/test/examples/revert.git/packed-refs +2 -0
  152. data/test/examples/revert.git/refs/heads/master +1 -0
  153. data/test/examples/revert.git/refs/remotes/origin/HEAD +1 -0
  154. data/test/examples/yubiwa.git/HEAD +1 -0
  155. data/test/examples/yubiwa.git/config +5 -0
  156. data/test/examples/yubiwa.git/description +1 -0
  157. data/test/examples/yubiwa.git/info/exclude +6 -0
  158. data/test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00 +0 -0
  159. data/test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de +0 -0
  160. data/test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835 +0 -0
  161. data/test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8 +1 -0
  162. data/test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70 +0 -0
  163. data/test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b +0 -0
  164. data/test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309 +0 -0
  165. data/test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34 +0 -0
  166. data/test/examples/yubiwa.git/refs/heads/master +1 -0
  167. data/test/helper.rb +66 -0
  168. data/test/test_app.rb +169 -0
  169. data/test/test_committer.rb +64 -0
  170. data/test/test_file.rb +27 -0
  171. data/test/test_git_access.rb +52 -0
  172. data/test/test_markup.rb +628 -0
  173. data/test/test_page.rb +166 -0
  174. data/test/test_page_revert.rb +45 -0
  175. data/test/test_wiki.rb +462 -0
  176. metadata +470 -0
@@ -0,0 +1,224 @@
1
+ Gem::Specification.new do |s|
2
+ s.specification_version = 2 if s.respond_to? :specification_version=
3
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
+ s.rubygems_version = '1.3.5'
5
+
6
+ s.name = 'read-only-gollum'
7
+ s.version = '1.4.0'
8
+ s.date = '2012-04-10'
9
+ s.rubyforge_project = 'gollum'
10
+
11
+ s.summary = "A simple, read-only Git-powered wiki."
12
+ s.description = "A simple, read-only, Git-powered wiki with a sweet API and local frontend."
13
+
14
+ s.authors = ["Tom Preston-Werner", "Rick Olson"]
15
+ s.email = 'tom@github.com'
16
+ s.homepage = 'http://github.com/casualjim/read-only-gollum'
17
+
18
+ s.require_paths = %w[lib]
19
+
20
+ s.executables = ["read-only-gollum"]
21
+
22
+ s.rdoc_options = ["--charset=UTF-8"]
23
+ s.extra_rdoc_files = %w[README.md LICENSE]
24
+
25
+ s.add_dependency('grit', "~> 2.4.1")
26
+ s.add_dependency('github-markup', [">= 0.7.0", "< 1.0.0"])
27
+ s.add_dependency('pygments.rb', "~> 0.2.0")
28
+ s.add_dependency('posix-spawn', "~> 0.3.0")
29
+ s.add_dependency('sinatra', "~> 1.0")
30
+ s.add_dependency('mustache', [">= 0.11.2", "< 1.0.0"])
31
+ s.add_dependency('sanitize', "~> 2.0.0")
32
+ s.add_dependency('nokogiri', "~> 1.4")
33
+ s.add_dependency('redcarpet')
34
+
35
+ s.add_development_dependency('RedCloth')
36
+ s.add_development_dependency('mocha')
37
+ s.add_development_dependency('org-ruby', '~>0.6.2')
38
+ s.add_development_dependency('shoulda')
39
+ s.add_development_dependency('rack-test')
40
+ s.add_development_dependency('wikicloth', '~> 0.6.3')
41
+ s.add_development_dependency('rake', '~> 0.9.2')
42
+
43
+ # = MANIFEST =
44
+ s.files = %w[
45
+ Gemfile
46
+ HISTORY.md
47
+ Home.md
48
+ LICENSE
49
+ README.md
50
+ Rakefile
51
+ bin/read-only-gollum
52
+ docs/sanitization.md
53
+ read-only-gollum.gemspec
54
+ lib/gollum.rb
55
+ lib/gollum/blob_entry.rb
56
+ lib/gollum/committer.rb
57
+ lib/gollum/file.rb
58
+ lib/gollum/frontend/app.rb
59
+ lib/gollum/frontend/public/css/dialog.css
60
+ lib/gollum/frontend/public/css/editor.css
61
+ lib/gollum/frontend/public/css/gollum.css
62
+ lib/gollum/frontend/public/css/ie7.css
63
+ lib/gollum/frontend/public/css/template.css
64
+ lib/gollum/frontend/public/images/icon-sprite.png
65
+ lib/gollum/frontend/public/javascript/editor/gollum.editor.js
66
+ lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js
67
+ lib/gollum/frontend/public/javascript/editor/langs/creole.js
68
+ lib/gollum/frontend/public/javascript/editor/langs/markdown.js
69
+ lib/gollum/frontend/public/javascript/editor/langs/org.js
70
+ lib/gollum/frontend/public/javascript/editor/langs/pod.js
71
+ lib/gollum/frontend/public/javascript/editor/langs/rdoc.js
72
+ lib/gollum/frontend/public/javascript/editor/langs/textile.js
73
+ lib/gollum/frontend/public/javascript/gollum.dialog.js
74
+ lib/gollum/frontend/public/javascript/gollum.js
75
+ lib/gollum/frontend/public/javascript/gollum.placeholder.js
76
+ lib/gollum/frontend/public/javascript/jquery.color.js
77
+ lib/gollum/frontend/public/javascript/jquery.js
78
+ lib/gollum/frontend/templates/compare.mustache
79
+ lib/gollum/frontend/templates/create.mustache
80
+ lib/gollum/frontend/templates/edit.mustache
81
+ lib/gollum/frontend/templates/editor.mustache
82
+ lib/gollum/frontend/templates/error.mustache
83
+ lib/gollum/frontend/templates/history.mustache
84
+ lib/gollum/frontend/templates/layout.mustache
85
+ lib/gollum/frontend/templates/page.mustache
86
+ lib/gollum/frontend/templates/pages.mustache
87
+ lib/gollum/frontend/templates/search.mustache
88
+ lib/gollum/frontend/templates/searchbar.mustache
89
+ lib/gollum/frontend/views/compare.rb
90
+ lib/gollum/frontend/views/create.rb
91
+ lib/gollum/frontend/views/edit.rb
92
+ lib/gollum/frontend/views/editable.rb
93
+ lib/gollum/frontend/views/error.rb
94
+ lib/gollum/frontend/views/history.rb
95
+ lib/gollum/frontend/views/layout.rb
96
+ lib/gollum/frontend/views/page.rb
97
+ lib/gollum/frontend/views/pages.rb
98
+ lib/gollum/frontend/views/search.rb
99
+ lib/gollum/git_access.rb
100
+ lib/gollum/markup.rb
101
+ lib/gollum/page.rb
102
+ lib/gollum/pagination.rb
103
+ lib/gollum/sanitization.rb
104
+ lib/gollum/tex.rb
105
+ lib/gollum/web_sequence_diagram.rb
106
+ lib/gollum/wiki.rb
107
+ templates/formatting.html
108
+ test/examples/empty.git/HEAD
109
+ test/examples/empty.git/config
110
+ test/examples/empty.git/description
111
+ test/examples/empty.git/hooks/applypatch-msg.sample
112
+ test/examples/empty.git/hooks/commit-msg.sample
113
+ test/examples/empty.git/hooks/post-commit.sample
114
+ test/examples/empty.git/hooks/post-receive.sample
115
+ test/examples/empty.git/hooks/post-update.sample
116
+ test/examples/empty.git/hooks/pre-applypatch.sample
117
+ test/examples/empty.git/hooks/pre-commit.sample
118
+ test/examples/empty.git/hooks/pre-rebase.sample
119
+ test/examples/empty.git/hooks/prepare-commit-msg.sample
120
+ test/examples/empty.git/hooks/update.sample
121
+ test/examples/empty.git/info/exclude
122
+ test/examples/empty.git/objects/info/.gitkeep
123
+ test/examples/empty.git/objects/pack/.gitkeep
124
+ test/examples/empty.git/refs/heads/.gitkeep
125
+ test/examples/lotr.git/COMMIT_EDITMSG
126
+ test/examples/lotr.git/HEAD
127
+ test/examples/lotr.git/ORIG_HEAD
128
+ test/examples/lotr.git/config
129
+ test/examples/lotr.git/description
130
+ test/examples/lotr.git/index
131
+ test/examples/lotr.git/info/exclude
132
+ test/examples/lotr.git/logs/HEAD
133
+ test/examples/lotr.git/logs/refs/heads/master
134
+ test/examples/lotr.git/objects/06/131480411710c92a82fe2d1e76932c70feb2e5
135
+ test/examples/lotr.git/objects/0a/de1e2916346d4c1f2fb63b863fd3c16808fe44
136
+ test/examples/lotr.git/objects/0e/d8cbe0a25235bd867e65193c7d837c66b328ef
137
+ test/examples/lotr.git/objects/12/629d666c5e3178f82f533f543d61b53dc78c0b
138
+ test/examples/lotr.git/objects/1d/b89ebba7e2c14d93b94ff98cfa3708a4f0d4e3
139
+ test/examples/lotr.git/objects/24/49c2681badfd3c189e8ed658dacffe8ba48fe5
140
+ test/examples/lotr.git/objects/25/4bdc1ba27d8b8a794538a8522d9a2b56ec2dd9
141
+ test/examples/lotr.git/objects/2c/b9156ad383914561a8502fc70f5a1d887e48ad
142
+ test/examples/lotr.git/objects/5d/cac289a8603188d2c5caf481dcba2985126aaa
143
+ test/examples/lotr.git/objects/60/f12f4254f58801b9ee7db7bca5fa8aeefaa56b
144
+ test/examples/lotr.git/objects/71/4323c104239440a5c66ab12a67ed07a83c404f
145
+ test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10
146
+ test/examples/lotr.git/objects/93/6b83ee0dd8837adb82511e40d5e4ebe59bb675
147
+ test/examples/lotr.git/objects/94/523d7ae48aeba575099dd12926420d8fd0425d
148
+ test/examples/lotr.git/objects/96/97dc65e095658bbd1b8e8678e08881e86d32f1
149
+ test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814
150
+ test/examples/lotr.git/objects/a6/59b3763b822dd97544621fd0beef162ea37b14
151
+ test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813
152
+ test/examples/lotr.git/objects/aa/b61fe89d56f8614c0a8151da34f939dcedfa68
153
+ test/examples/lotr.git/objects/bc/4b5fc0ce2c2ba3acef6647e4f67256ee45ab60
154
+ test/examples/lotr.git/objects/c3/b43e9f08966b088e7a0192e436b7a884542e05
155
+ test/examples/lotr.git/objects/dc/596d6b2dd89ab05c66f4abd7d5eb706bc17f19
156
+ test/examples/lotr.git/objects/ec/da3205bee14520aab5a7bb307392064b938e83
157
+ test/examples/lotr.git/objects/f4/84ebb1f40f8eb20d1bcd8d1d71934d2b8ae961
158
+ test/examples/lotr.git/objects/fa/e7ef5344202bba4129abdc13060d9297d99465
159
+ test/examples/lotr.git/objects/info/packs
160
+ test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.idx
161
+ test/examples/lotr.git/objects/pack/pack-dcbeaf3f6ff6c5eb08ea2b0a2d83626e8763546b.pack
162
+ test/examples/lotr.git/packed-refs
163
+ test/examples/lotr.git/refs/heads/master
164
+ test/examples/lotr.git/refs/remotes/origin/HEAD
165
+ test/examples/page_file_dir.git/COMMIT_EDITMSG
166
+ test/examples/page_file_dir.git/HEAD
167
+ test/examples/page_file_dir.git/config
168
+ test/examples/page_file_dir.git/description
169
+ test/examples/page_file_dir.git/index
170
+ test/examples/page_file_dir.git/info/exclude
171
+ test/examples/page_file_dir.git/logs/HEAD
172
+ test/examples/page_file_dir.git/logs/refs/heads/master
173
+ test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf
174
+ test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e
175
+ test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99
176
+ test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6
177
+ test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2
178
+ test/examples/page_file_dir.git/refs/heads/master
179
+ test/examples/revert.git/COMMIT_EDITMSG
180
+ test/examples/revert.git/HEAD
181
+ test/examples/revert.git/config
182
+ test/examples/revert.git/description
183
+ test/examples/revert.git/index
184
+ test/examples/revert.git/info/exclude
185
+ test/examples/revert.git/logs/HEAD
186
+ test/examples/revert.git/logs/refs/heads/master
187
+ test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d
188
+ test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9
189
+ test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708
190
+ test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc
191
+ test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433
192
+ test/examples/revert.git/objects/info/packs
193
+ test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx
194
+ test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack
195
+ test/examples/revert.git/packed-refs
196
+ test/examples/revert.git/refs/heads/master
197
+ test/examples/revert.git/refs/remotes/origin/HEAD
198
+ test/examples/yubiwa.git/HEAD
199
+ test/examples/yubiwa.git/config
200
+ test/examples/yubiwa.git/description
201
+ test/examples/yubiwa.git/info/exclude
202
+ test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00
203
+ test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de
204
+ test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835
205
+ test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8
206
+ test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70
207
+ test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b
208
+ test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309
209
+ test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34
210
+ test/examples/yubiwa.git/refs/heads/master
211
+ test/helper.rb
212
+ test/test_app.rb
213
+ test/test_committer.rb
214
+ test/test_file.rb
215
+ test/test_git_access.rb
216
+ test/test_markup.rb
217
+ test/test_page.rb
218
+ test/test_page_revert.rb
219
+ test/test_wiki.rb
220
+ ]
221
+ # = MANIFEST =
222
+
223
+ s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
224
+ end
@@ -0,0 +1,92 @@
1
+ <style>
2
+ div.frame {
3
+ margin: 1em 0;
4
+ }
5
+
6
+ div.frame div {
7
+ display: inline-block;
8
+ border: 1px solid #aaa;
9
+ padding: 4px;
10
+ }
11
+
12
+ div div p {
13
+ font-size: 9px;
14
+ margin: 0;
15
+ padding: 4px 0 0 0;
16
+ text-align: center;
17
+ }
18
+
19
+ .float-left {
20
+ float: left;
21
+ padding-right: 1em;
22
+ }
23
+
24
+ .float-right {
25
+ float: right;
26
+ padding-left: 1em;
27
+ }
28
+
29
+ .align-left {
30
+ text-align: left;
31
+ }
32
+
33
+ .align-center {
34
+ text-align: center;
35
+ }
36
+
37
+ .align-right {
38
+ text-align: right;
39
+ }
40
+ </style>
41
+
42
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante. <img src="http://www.google.com/images/nav_logo8.png" style="max-width: 16px;" /> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante.
43
+
44
+ <div class="frame float-left">
45
+ <div>
46
+ <img src="http://www.google.com/images/nav_logo8.png" style="max-width: 100px;" />
47
+ <p>Google</p>
48
+ </div>
49
+ </div>
50
+
51
+ Fusce ullamcorper orci enim. Duis lectus elit, convallis ac convallis sit amet, euismod imperdiet dolor. Nunc egestas nisi quis magna feugiat vitae fringilla elit fermentum.
52
+
53
+ <div class="frame float-right">
54
+ <div>
55
+ <img src="http://www.google.com/images/nav_logo8.png" style="max-width: 100px;" />
56
+ <p>Google</p>
57
+ </div>
58
+ </div>
59
+
60
+ Vivamus sollicitudin dolor sit amet elit mollis ultricies. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas hendrerit eros felis. Nunc non enim at dolor malesuada pellentesque a quis nibh. Aliquam sit amet pretium ante.<p>
61
+
62
+ <div class="frame align-left">
63
+ <div>
64
+ <img src="http://www.google.com/images/nav_logo8.png" />
65
+ <p>Google</p>
66
+ </div>
67
+ </div>
68
+
69
+ <p>Phasellus porta dignissim leo vel hendrerit. Nulla pellentesque nisi ac nunc malesuada aliquam. Nullam et cursus augue. Sed rhoncus pharetra odio, vel dictum diam facilisis et. Etiam molestie justo ut purus elementum rhoncus. Fusce nec augue lectus. Proin a nisl ac lectus facilisis tempus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent blandit tempus libero, in interdum odio dignissim quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec quis arcu a metus tincidunt scelerisque eget sed mauris. Nullam pellentesque faucibus sodales. Integer ullamcorper enim id nibh tempor ultricies.</p>
70
+
71
+ <div class="frame align-center">
72
+ <div>
73
+ <img src="http://www.google.com/images/nav_logo8.png" />
74
+ <p>Google</p>
75
+ </div>
76
+ </div>
77
+
78
+ <p>Phasellus porta dignissim leo vel hendrerit. Nulla pellentesque nisi ac nunc malesuada aliquam. Nullam et cursus augue. Sed rhoncus pharetra odio, vel dictum diam facilisis et. Etiam molestie justo ut purus elementum rhoncus. Fusce nec augue lectus. Proin a nisl ac lectus facilisis tempus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent blandit tempus libero, in interdum odio dignissim quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec quis arcu a metus tincidunt scelerisque eget sed mauris. Nullam pellentesque faucibus sodales. Integer ullamcorper enim id nibh tempor ultricies.</p>
79
+
80
+ <p>
81
+ <div class="frame align-right">
82
+ <div>
83
+ <img src="http://www.google.com/images/nav_logo8.png" />
84
+ </div>
85
+ </div>
86
+ </p>
87
+
88
+ <p>Phasellus porta dignissim leo vel hendrerit. Nulla pellentesque nisi ac nunc malesuada aliquam. Nullam et cursus augue. Sed rhoncus pharetra odio, vel dictum diam facilisis et. Etiam molestie justo ut purus elementum rhoncus. Fusce nec augue lectus. Proin a nisl ac lectus facilisis tempus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent blandit tempus libero, in interdum odio dignissim quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec quis arcu a metus tincidunt scelerisque eget sed mauris. Nullam pellentesque faucibus sodales. Integer ullamcorper enim id nibh tempor ultricies. <div class="frame align-right">
89
+ <div>
90
+ <img src="http://www.google.com/images/nav_logo8.png" />
91
+ </div>
92
+ </div> Phasellus porta dignissim leo vel hendrerit. Nulla pellentesque nisi ac nunc malesuada aliquam. Nullam et cursus augue. Sed rhoncus pharetra odio, vel dictum diam facilisis et. Etiam molestie justo ut purus elementum rhoncus. Fusce nec augue lectus. Proin a nisl ac lectus facilisis tempus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent blandit tempus libero, in interdum odio dignissim quis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec quis arcu a metus tincidunt scelerisque eget sed mauris. Nullam pellentesque faucibus sodales. Integer ullamcorper enim id nibh tempor ultricies.</p>
@@ -0,0 +1 @@
1
+ ref: refs/heads/master
@@ -0,0 +1,5 @@
1
+ [core]
2
+ repositoryformatversion = 0
3
+ filemode = true
4
+ bare = true
5
+ ignorecase = true
@@ -0,0 +1 @@
1
+ Unnamed repository; edit this file 'description' to name the repository.
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message taken by
4
+ # applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit. The hook is
8
+ # allowed to edit the commit message file.
9
+ #
10
+ # To enable this hook, rename this file to "applypatch-msg".
11
+
12
+ . git-sh-setup
13
+ test -x "$GIT_DIR/hooks/commit-msg" &&
14
+ exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
15
+ :
@@ -0,0 +1,24 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to check the commit log message.
4
+ # Called by "git commit" with one argument, the name of the file
5
+ # that has the commit message. The hook should exit with non-zero
6
+ # status after issuing an appropriate message if it wants to stop the
7
+ # commit. The hook is allowed to edit the commit message file.
8
+ #
9
+ # To enable this hook, rename this file to "commit-msg".
10
+
11
+ # Uncomment the below to add a Signed-off-by line to the message.
12
+ # Doing this in a hook is a bad idea in general, but the prepare-commit-msg
13
+ # hook is more suited to it.
14
+ #
15
+ # SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
16
+ # grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
17
+
18
+ # This example catches duplicate Signed-off-by lines.
19
+
20
+ test "" = "$(grep '^Signed-off-by: ' "$1" |
21
+ sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
22
+ echo >&2 Duplicate Signed-off-by lines.
23
+ exit 1
24
+ }
@@ -0,0 +1,8 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script that is called after a successful
4
+ # commit is made.
5
+ #
6
+ # To enable this hook, rename this file to "post-commit".
7
+
8
+ : Nothing
@@ -0,0 +1,15 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script for the "post-receive" event.
4
+ #
5
+ # The "post-receive" script is run after receive-pack has accepted a pack
6
+ # and the repository has been updated. It is passed arguments in through
7
+ # stdin in the form
8
+ # <oldrev> <newrev> <refname>
9
+ # For example:
10
+ # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
11
+ #
12
+ # see contrib/hooks/ for a sample, or uncomment the next line and
13
+ # rename the file to "post-receive".
14
+
15
+ #. /usr/share/doc/git-core/contrib/hooks/post-receive-email
@@ -0,0 +1,8 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to prepare a packed repository for use over
4
+ # dumb transports.
5
+ #
6
+ # To enable this hook, rename this file to "post-update".
7
+
8
+ exec git update-server-info
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed
4
+ # by applypatch from an e-mail message.
5
+ #
6
+ # The hook should exit with non-zero status after issuing an
7
+ # appropriate message if it wants to stop the commit.
8
+ #
9
+ # To enable this hook, rename this file to "pre-applypatch".
10
+
11
+ . git-sh-setup
12
+ test -x "$GIT_DIR/hooks/pre-commit" &&
13
+ exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
14
+ :
@@ -0,0 +1,46 @@
1
+ #!/bin/sh
2
+ #
3
+ # An example hook script to verify what is about to be committed.
4
+ # Called by "git commit" with no arguments. The hook should
5
+ # exit with non-zero status after issuing an appropriate message if
6
+ # it wants to stop the commit.
7
+ #
8
+ # To enable this hook, rename this file to "pre-commit".
9
+
10
+ if git rev-parse --verify HEAD >/dev/null 2>&1
11
+ then
12
+ against=HEAD
13
+ else
14
+ # Initial commit: diff against an empty tree object
15
+ against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
16
+ fi
17
+
18
+ # If you want to allow non-ascii filenames set this variable to true.
19
+ allownonascii=$(git config hooks.allownonascii)
20
+
21
+ # Cross platform projects tend to avoid non-ascii filenames; prevent
22
+ # them from being added to the repository. We exploit the fact that the
23
+ # printable range starts at the space character and ends with tilde.
24
+ if [ "$allownonascii" != "true" ] &&
25
+ # Note that the use of brackets around a tr range is ok here, (it's
26
+ # even required, for portability to Solaris 10's /usr/bin/tr), since
27
+ # the square bracket bytes happen to fall in the designated range.
28
+ test "$(git diff --cached --name-only --diff-filter=A -z $against |
29
+ LC_ALL=C tr -d '[ -~]\0')"
30
+ then
31
+ echo "Error: Attempt to add a non-ascii file name."
32
+ echo
33
+ echo "This can cause problems if you want to work"
34
+ echo "with people on other platforms."
35
+ echo
36
+ echo "To be portable it is advisable to rename the file ..."
37
+ echo
38
+ echo "If you know what you are doing you can disable this"
39
+ echo "check using:"
40
+ echo
41
+ echo " git config hooks.allownonascii true"
42
+ echo
43
+ exit 1
44
+ fi
45
+
46
+ exec git diff-index --check --cached $against --