compages 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. data/.project +18 -0
  2. data/README +180 -0
  3. data/Rakefile +10 -0
  4. data/app/controllers/application.rb +4 -0
  5. data/app/controllers/contents_controller.rb +116 -0
  6. data/app/controllers/pages_controller.rb +59 -0
  7. data/app/controllers/render_controller.rb +24 -0
  8. data/app/helpers/application_helper.rb +6 -0
  9. data/app/helpers/contents_helper.rb +5 -0
  10. data/app/helpers/pages_helper.rb +5 -0
  11. data/app/helpers/render_helper.rb +2 -0
  12. data/app/models/content.rb +26 -0
  13. data/app/models/meta_data.rb +3 -0
  14. data/app/models/page.rb +106 -0
  15. data/app/models/page_element.rb +9 -0
  16. data/app/views/contents/_content_preview.rhtml +1 -0
  17. data/app/views/contents/_contents_list.rhtml +3 -0
  18. data/app/views/contents/_show_library.rhtml +60 -0
  19. data/app/views/contents/_write_now.rhtml +42 -0
  20. data/app/views/layouts/pages.rhtml +24 -0
  21. data/app/views/layouts/render.rhtml +11 -0
  22. data/app/views/pages/_change_theme.rhtml +0 -0
  23. data/app/views/pages/_edit_menu.rhtml +62 -0
  24. data/app/views/pages/_page_listed.rhtml +13 -0
  25. data/app/views/pages/_select_theme.rhtml +4 -0
  26. data/app/views/pages/edit.rhtml +35 -0
  27. data/app/views/pages/index.rhtml +45 -0
  28. data/app/views/pages/list.rhtml +41 -0
  29. data/app/views/pages/list_a.rhtml +40 -0
  30. data/app/views/pages/welcome.rhtml +27 -0
  31. data/app/views/render/_blank.rhtml +3 -0
  32. data/app/views/render/show.rhtml +1 -0
  33. data/bin/compages +14 -0
  34. data/config/boot.rb +44 -0
  35. data/config/database.yml.home +35 -0
  36. data/config/environment.rb +53 -0
  37. data/config/environments/development.rb +21 -0
  38. data/config/environments/production.rb +18 -0
  39. data/config/environments/test.rb +19 -0
  40. data/config/routes.rb +32 -0
  41. data/db/Copia di schema.rb +48 -0
  42. data/db/migrate/001_create_pages.rb +12 -0
  43. data/db/migrate/002_create_contents.rb +12 -0
  44. data/db/migrate/003_create_meta_datas.rb +14 -0
  45. data/db/migrate/004_create_page_elements.rb +17 -0
  46. data/db/migrate/005_add_urlnames.rb +15 -0
  47. data/db/migrate/006_add_sessions.rb +15 -0
  48. data/db/schema.mysql.sql +65 -0
  49. data/db/schema.postgresql.sql +65 -0
  50. data/db/schema.rb +49 -0
  51. data/db/schema.sqlite.sql +65 -0
  52. data/db/schema.sqlserver.sql +71 -0
  53. data/db/schema_version +1 -0
  54. data/doc/ER-model/v1.dia +0 -0
  55. data/doc/ER-model/v2.dia +0 -0
  56. data/doc/ER-model/v3.dia +0 -0
  57. data/doc/README_FOR_APP +2 -0
  58. data/doc/esempi/doc-vir/ecds.htm +2362 -0
  59. data/doc/esempi/doc-vir/ecds_files/search.gif +0 -0
  60. data/doc/esempi/doc-vir/ecds_files/upld.gif +0 -0
  61. data/doc/esempi/doc-vir/ecds_files/upld.jpg +0 -0
  62. data/installer/apache13.conf.example.template +33 -0
  63. data/installer/apache20.conf.example.template +40 -0
  64. data/installer/lighttpd.conf.example.template +6 -0
  65. data/installer/rails_installer_defaults.yml +5 -0
  66. data/lib/redcloth.rb +1130 -0
  67. data/lib/render_engine.rb +94 -0
  68. data/lib/tasks/release.rake +46 -0
  69. data/public/.htaccess +41 -0
  70. data/public/404.html +8 -0
  71. data/public/500.html +8 -0
  72. data/public/_index.html +277 -0
  73. data/public/favicon.ico +0 -0
  74. data/public/images/body_bg.gif +0 -0
  75. data/public/images/body_bg_short.gif +0 -0
  76. data/public/images/ie_shadow.png +0 -0
  77. data/public/images/journal_reflex.gif +0 -0
  78. data/public/images/journal_shadow.gif +0 -0
  79. data/public/images/logo_journal_small.bmp +0 -0
  80. data/public/images/logo_journal_small.png +0 -0
  81. data/public/images/page_edit_shadow.png +0 -0
  82. data/public/images/restore_bar.png +0 -0
  83. data/public/images/spinner.gif +0 -0
  84. data/public/javascripts/application.js +23 -0
  85. data/public/javascripts/controls.js +815 -0
  86. data/public/javascripts/dragdrop.js +913 -0
  87. data/public/javascripts/effects.js +958 -0
  88. data/public/javascripts/lowpro.js +307 -0
  89. data/public/javascripts/prototype.js +2006 -0
  90. data/public/robots.txt +1 -0
  91. data/public/stylesheets/compages.css +196 -0
  92. data/public/stylesheets/editing.css +180 -0
  93. data/public/stylesheets/editing_ie_filth.css +36 -0
  94. data/public/themes/Doc_basic/_script.js +342 -0
  95. data/public/themes/Doc_basic/images/Thumbs.db +0 -0
  96. data/public/themes/Doc_basic/images/search.gif +0 -0
  97. data/public/themes/Doc_basic/images/upld.gif +0 -0
  98. data/public/themes/Doc_basic/images/upld.jpg +0 -0
  99. data/public/themes/Doc_basic/index.html +114 -0
  100. data/public/themes/Doc_basic/style.css +1743 -0
  101. data/public/themes/color7boxes/default2.css +42 -0
  102. data/public/themes/color7boxes/index.html +40 -0
  103. data/public/themes/prova/index.html +12 -0
  104. data/public/zDoc/images/search.gif +0 -0
  105. data/public/zDoc/images/upld.gif +0 -0
  106. data/public/zDoc/images/upld.jpg +0 -0
  107. data/public/zDoc/index.html +176 -0
  108. data/public/zDoc/script.js +342 -0
  109. data/public/zDoc/style.css +1741 -0
  110. data/script/about +3 -0
  111. data/script/breakpointer +3 -0
  112. data/script/console +3 -0
  113. data/script/destroy +3 -0
  114. data/script/generate +3 -0
  115. data/script/performance/benchmarker +3 -0
  116. data/script/performance/profiler +3 -0
  117. data/script/plugin +3 -0
  118. data/script/process/reaper +3 -0
  119. data/script/process/spawner +3 -0
  120. data/script/runner +3 -0
  121. data/script/server +3 -0
  122. data/test/fixtures/contents.yml +5 -0
  123. data/test/fixtures/meta_datas.yml +5 -0
  124. data/test/fixtures/page_elements.yml +5 -0
  125. data/test/fixtures/pages.yml +5 -0
  126. data/test/functional/contents_controller_test.rb +18 -0
  127. data/test/functional/pages_controller_test.rb +18 -0
  128. data/test/functional/render_controller_test.rb +18 -0
  129. data/test/test_helper.rb +28 -0
  130. data/test/unit/content_test.rb +10 -0
  131. data/test/unit/meta_data_test.rb +10 -0
  132. data/test/unit/page_element_test.rb +10 -0
  133. data/test/unit/page_test.rb +10 -0
  134. data/tmp/sessions/ruby_sess.0ced4c30e36477ab +0 -0
  135. data/tmp/sessions/ruby_sess.20fbe26671422e70 +0 -0
  136. data/tmp/sessions/ruby_sess.2c72521f3a7e2ba9 +0 -0
  137. data/tmp/sessions/ruby_sess.4107a69d982a2eb7 +0 -0
  138. data/tmp/sessions/ruby_sess.573ded9c7fdd9035 +0 -0
  139. data/tmp/sessions/ruby_sess.5a9767815bb96258 +0 -0
  140. data/tmp/sessions/ruby_sess.85d723b794005388 +0 -0
  141. data/tmp/sessions/ruby_sess.875b3b3e3529afdb +0 -0
  142. data/tmp/sessions/ruby_sess.936766f3a397c88b +0 -0
  143. data/tmp/sessions/ruby_sess.984e2e4c9a2e7891 +0 -0
  144. data/tmp/sessions/ruby_sess.a1faebd7448bc45d +0 -0
  145. data/tmp/sessions/ruby_sess.a415768c7635bc15 +0 -0
  146. data/tmp/sessions/ruby_sess.b2dadcbe6c1b0add +0 -0
  147. data/tmp/sessions/ruby_sess.ca9100beb103a428 +0 -0
  148. data/tmp/sessions/ruby_sess.d649c800a046efde +0 -0
  149. data/tmp/sessions/ruby_sess.db73bbfafd5a537c +0 -0
  150. data/tmp/sessions/ruby_sess.e32487b847524df1 +0 -0
  151. data/tmp/sessions/ruby_sess.f4e45d67828cc437 +0 -0
  152. data/tmp/sessions/ruby_sess.f5a3f064f2f7a26f +0 -0
  153. data/tmp/sessions/ruby_sess.ff0c47b35f238cda +0 -0
  154. data/vendor/plugins/acts_as_urlnameable.tar.gz +0 -0
  155. data/vendor/plugins/acts_as_urlnameable/LICENSE +19 -0
  156. data/vendor/plugins/acts_as_urlnameable/README +193 -0
  157. data/vendor/plugins/acts_as_urlnameable/Rakefile +25 -0
  158. data/vendor/plugins/acts_as_urlnameable/TODO +5 -0
  159. data/vendor/plugins/acts_as_urlnameable/db/00x_add_urlnames_table.rb +15 -0
  160. data/vendor/plugins/acts_as_urlnameable/db/urlnames_table.sql +7 -0
  161. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/ClassMethods.html +167 -0
  162. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/InstanceMethods.html +213 -0
  163. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/SingletonMethods.html +189 -0
  164. data/vendor/plugins/acts_as_urlnameable/doc/created.rid +1 -0
  165. data/vendor/plugins/acts_as_urlnameable/doc/files/LICENSE.html +129 -0
  166. data/vendor/plugins/acts_as_urlnameable/doc/files/README.html +333 -0
  167. data/vendor/plugins/acts_as_urlnameable/doc/files/TODO.html +121 -0
  168. data/vendor/plugins/acts_as_urlnameable/doc/files/lib/acts_as_urlnameable_rb.html +101 -0
  169. data/vendor/plugins/acts_as_urlnameable/doc/fr_class_index.html +29 -0
  170. data/vendor/plugins/acts_as_urlnameable/doc/fr_file_index.html +30 -0
  171. data/vendor/plugins/acts_as_urlnameable/doc/fr_method_index.html +34 -0
  172. data/vendor/plugins/acts_as_urlnameable/doc/index.html +24 -0
  173. data/vendor/plugins/acts_as_urlnameable/doc/rdoc-style.css +208 -0
  174. data/vendor/plugins/acts_as_urlnameable/init.rb +3 -0
  175. data/vendor/plugins/acts_as_urlnameable/lib/acts_as_urlnameable.rb +159 -0
  176. data/vendor/plugins/acts_as_urlnameable/lib/urlname.rb +3 -0
  177. data/vendor/plugins/acts_as_urlnameable/test/acts_as_urlnameable_test.rb +233 -0
  178. data/vendor/plugins/acts_as_urlnameable/test/connection.rb +8 -0
  179. data/vendor/plugins/acts_as_urlnameable/test/fixtures/article.rb +13 -0
  180. data/vendor/plugins/acts_as_urlnameable/test/fixtures/articles.yml +62 -0
  181. data/vendor/plugins/acts_as_urlnameable/test/fixtures/page.rb +14 -0
  182. data/vendor/plugins/acts_as_urlnameable/test/fixtures/pages.yml +35 -0
  183. data/vendor/plugins/acts_as_urlnameable/test/fixtures/people.yml +9 -0
  184. data/vendor/plugins/acts_as_urlnameable/test/fixtures/person.rb +26 -0
  185. data/vendor/plugins/acts_as_urlnameable/test/fixtures/schema.rb +24 -0
  186. data/vendor/plugins/acts_as_urlnameable/test/fixtures/section.rb +5 -0
  187. data/vendor/plugins/acts_as_urlnameable/test/fixtures/sections.yml +9 -0
  188. data/vendor/plugins/acts_as_urlnameable/test/fixtures/urlnames.yml +153 -0
  189. data/vendor/plugins/acts_as_urlnameable/test/test_helper.rb +42 -0
  190. data/vendor/plugins/gems/README +30 -0
  191. data/vendor/plugins/gems/init.rb +9 -0
  192. data/vendor/plugins/gems/tasks/gems_tasks.rake +32 -0
  193. data/vendor/plugins/unobtrusive_javascript/CHANGELOG +72 -0
  194. data/vendor/plugins/unobtrusive_javascript/README +73 -0
  195. data/vendor/plugins/unobtrusive_javascript/Rakefile +33 -0
  196. data/vendor/plugins/unobtrusive_javascript/about.yml +6 -0
  197. data/vendor/plugins/unobtrusive_javascript/assets/javascripts/lowpro.js +307 -0
  198. data/vendor/plugins/unobtrusive_javascript/init.rb +21 -0
  199. data/vendor/plugins/unobtrusive_javascript/install.rb +1 -0
  200. data/vendor/plugins/unobtrusive_javascript/lib/actionview_helpers_patches.rb +17 -0
  201. data/vendor/plugins/unobtrusive_javascript/lib/asset_tag_helper_patches.rb +33 -0
  202. data/vendor/plugins/unobtrusive_javascript/lib/behaviour_caching.rb +70 -0
  203. data/vendor/plugins/unobtrusive_javascript/lib/controllers/unobtrusive_javascript_controller.rb +52 -0
  204. data/vendor/plugins/unobtrusive_javascript/lib/prototype_helper_patches.rb +72 -0
  205. data/vendor/plugins/unobtrusive_javascript/lib/scriptaculous_helper_patches.rb +62 -0
  206. data/vendor/plugins/unobtrusive_javascript/lib/tag_helper_patches.rb +37 -0
  207. data/vendor/plugins/unobtrusive_javascript/lib/ujs.rb +32 -0
  208. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_helper.rb +62 -0
  209. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_script.rb +54 -0
  210. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_script_converter.rb +23 -0
  211. data/vendor/plugins/unobtrusive_javascript/lib/ujs/controller_methods.rb +55 -0
  212. data/vendor/plugins/unobtrusive_javascript/lib/ujs/helpers.rb +152 -0
  213. data/vendor/plugins/unobtrusive_javascript/lib/ujs/javascript_proxies.rb +57 -0
  214. data/vendor/plugins/unobtrusive_javascript/tasks/unobtrusive_javascript_tasks.rake +15 -0
  215. data/vendor/plugins/unobtrusive_javascript/test/asset_tag_helper_patches_test.rb +32 -0
  216. data/vendor/plugins/unobtrusive_javascript/test/behaviour_helper_test.rb +180 -0
  217. data/vendor/plugins/unobtrusive_javascript/test/behaviour_script_converter_test.rb +72 -0
  218. data/vendor/plugins/unobtrusive_javascript/test/behaviour_script_test.rb +98 -0
  219. data/vendor/plugins/unobtrusive_javascript/test/config/environment.rb +8 -0
  220. data/vendor/plugins/unobtrusive_javascript/test/config/routes.rb +4 -0
  221. data/vendor/plugins/unobtrusive_javascript/test/config/schema.rb +3 -0
  222. data/vendor/plugins/unobtrusive_javascript/test/controller_methods_test.rb +48 -0
  223. data/vendor/plugins/unobtrusive_javascript/test/helpers_test.rb +186 -0
  224. data/vendor/plugins/unobtrusive_javascript/test/javascript_proxies_test.rb +3 -0
  225. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/boot.rb +26 -0
  226. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/action_controller.rb +11 -0
  227. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/action_mailer.rb +4 -0
  228. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/active_record.rb +27 -0
  229. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/rails.rb +31 -0
  230. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/ptk.rb +148 -0
  231. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/suite/difference.rb +23 -0
  232. data/vendor/plugins/unobtrusive_javascript/test/lib/stubs/controller_stub.rb +10 -0
  233. data/vendor/plugins/unobtrusive_javascript/test/ptk_helper.rb +29 -0
  234. data/vendor/plugins/unobtrusive_javascript/test/tag_helper_patches_test.rb +59 -0
  235. data/vendor/plugins/unobtrusive_javascript/test/test_helper.rb +25 -0
  236. data/vendor/plugins/unobtrusive_javascript/test/unobtrusive_javascript_controller_test.rb +95 -0
  237. data/vendor/plugins/unobtrusive_javascript/uninstall.rb +1 -0
  238. data/vendor/redcloth/bin/redcloth +3 -0
  239. data/vendor/redcloth/doc/CHANGELOG +160 -0
  240. data/vendor/redcloth/doc/COPYING +25 -0
  241. data/vendor/redcloth/doc/README +106 -0
  242. data/vendor/redcloth/doc/REFERENCE +216 -0
  243. data/vendor/redcloth/doc/make.rb +359 -0
  244. data/vendor/redcloth/lib/redcloth.rb +1130 -0
  245. data/vendor/redcloth/run-tests.rb +28 -0
  246. data/vendor/redcloth/setup.rb +1376 -0
  247. data/vendor/redcloth/tests/code.yml +105 -0
  248. data/vendor/redcloth/tests/hard_breaks.yml +26 -0
  249. data/vendor/redcloth/tests/images.yml +171 -0
  250. data/vendor/redcloth/tests/instiki.yml +39 -0
  251. data/vendor/redcloth/tests/links.yml +155 -0
  252. data/vendor/redcloth/tests/lists.yml +77 -0
  253. data/vendor/redcloth/tests/markdown.yml +218 -0
  254. data/vendor/redcloth/tests/poignant.yml +64 -0
  255. data/vendor/redcloth/tests/table.yml +198 -0
  256. data/vendor/redcloth/tests/textism.yml +406 -0
  257. metadata +432 -0
@@ -0,0 +1,105 @@
1
+ ---
2
+ in: 'This is an empty dictionary: @{}@'
3
+ out: '<p>This is an empty dictionary: <code>{}</code></p>'
4
+ ---
5
+ in: |-
6
+ Testing nested pre tags...
7
+
8
+ <pre>
9
+ <code>
10
+ Good code here.
11
+
12
+ <pre>
13
+ a = 1
14
+ </pre>
15
+
16
+ Bad code here.
17
+
18
+ <script language="JavaScript">
19
+ window.open( "about:blank" );
20
+ </script>
21
+ </code>
22
+ </pre>
23
+
24
+ out: |-
25
+ <p>Testing nested pre tags&#8230;</p>
26
+
27
+
28
+ <pre>
29
+ <code>
30
+ Good code here.
31
+
32
+ &lt;pre&gt;
33
+ a = 1
34
+ &lt;/pre&gt;
35
+
36
+ Bad code here.
37
+
38
+ &lt;script language="JavaScript"&gt;
39
+ window.open( "about:blank" );
40
+ &lt;/script&gt;
41
+ </code>
42
+ </pre>
43
+ ---
44
+ in: |-
45
+ <pre>
46
+ *** test
47
+ </pre>
48
+ out: |-
49
+ <pre>
50
+ *** test
51
+ </pre>
52
+ ---
53
+ in: |-
54
+ <notextile>
55
+ *** test
56
+ </notextile>
57
+ out: |-
58
+ *** test
59
+ ---
60
+ in: '*this <span></span> is strong*'
61
+ out: '<p><strong>this <span></span> is strong</strong></p>'
62
+ ---
63
+ in: '*this <span>test</span> is strong*'
64
+ out: '<p><strong>this <span>test</span> is strong</strong></p>'
65
+ ---
66
+ in: <pre class="code"> __inline__</pre>
67
+ out: <pre class="code"> __inline__</pre>
68
+ ---
69
+ in: |-
70
+ * @foo@
71
+ * @bar@
72
+ * and @x@ is also.
73
+ out: "<ul>\n\t<li><code>foo</code></li>\n\t\t<li><code>bar</code></li>\n\t\t<li>and <code>x</code> is also.</li>\n\t</ul>"
74
+ ---
75
+ in: |-
76
+ <pre class="code"> <hello> </pre>
77
+ <pre class="code"> <hello> </pre>
78
+ out: |-
79
+ <pre class="code"> &lt;hello&gt; </pre>
80
+ <pre class="code"> &lt;hello&gt; </pre>
81
+ ---
82
+ in: |
83
+ Test of Markdown-style indented code.
84
+
85
+ a = [1, 2, 3]
86
+ a.each do |x|
87
+ puts "test number", x,
88
+ "and more!"
89
+ end
90
+
91
+ Paragraph 2.
92
+
93
+ Paragraph 3.
94
+ out: |-
95
+ <p>Test of Markdown-style indented code.</p>
96
+
97
+ <pre><code>a = [1, 2, 3]
98
+ a.each do |x|
99
+ puts "test number", x,
100
+ "and more!"
101
+ end</code></pre>
102
+
103
+ <p>Paragraph 2.</p>
104
+
105
+ <p>Paragraph 3.</p>
@@ -0,0 +1,26 @@
1
+ ---
2
+ in: |
3
+ |This|is|a|row|
4
+ {background:#ddd}. |This|is|grey|row|
5
+ |This|is|another|row|
6
+ out: |-
7
+ <table>
8
+ <tr>
9
+ <td>This</td>
10
+ <td>is</td>
11
+ <td>a</td>
12
+ <td>row</td>
13
+ </tr>
14
+ <tr style="background:#ddd;">
15
+ <td>This</td>
16
+ <td>is</td>
17
+ <td>grey</td>
18
+ <td>row</td>
19
+ </tr>
20
+ <tr>
21
+ <td>This</td>
22
+ <td>is</td>
23
+ <td>another</td>
24
+ <td>row</td>
25
+ </tr>
26
+ </table>
@@ -0,0 +1,171 @@
1
+ ---
2
+ in: This is an !image.jpg!
3
+ out: <p>This is an <img src="image.jpg" alt="" /></p>
4
+ ---
5
+ in: This is an !image.jpg(with alt text)!
6
+ out: <p>This is an <img src="image.jpg" title="with alt text" alt="with alt text" /></p>
7
+ ---
8
+ in: This is an !http://example.com/i/image.jpg!
9
+ out: <p>This is an <img src="http://example.com/i/image.jpg" alt="" /></p>
10
+ ---
11
+ in: This is an !http://example.com/i/image.jpg#a1!
12
+ out: <p>This is an <img src="http://example.com/i/image.jpg#a1" alt="" /></p>
13
+ ---
14
+ in: This is an !image.jpg!.
15
+ out: <p>This is an <img src="image.jpg" alt="" />.</p>
16
+ ---
17
+ in: This is an !image.jpg(with alt text)!.
18
+ out: <p>This is an <img src="image.jpg" title="with alt text" alt="with alt text" />.</p>
19
+ ---
20
+ in: This is an !http://example.com/i/image.jpg!.
21
+ out: <p>This is an <img src="http://example.com/i/image.jpg" alt="" />.</p>
22
+ ---
23
+ in: This is an !http://example.com/i/image.jpg#a1!.
24
+ out: <p>This is an <img src="http://example.com/i/image.jpg#a1" alt="" />.</p>
25
+ ---
26
+ in: This is not an image!!!
27
+ out: <p>This is not an image!!!</p>
28
+ ---
29
+ in: This is an !http://example.com/i/image.jpg!:#1
30
+ out: <p>This is an <a href="#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
31
+ ---
32
+ in: This is an !http://example.com/i/image.jpg!:#a
33
+ out: <p>This is an <a href="#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
34
+ ---
35
+ in: This is an !http://example.com/i/image.jpg!:#a1
36
+ out: <p>This is an <a href="#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
37
+ ---
38
+ in: This is an !http://example.com/i/image.jpg!:#a10
39
+ out: <p>This is an <a href="#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
40
+ ---
41
+ in: This is an !http://example.com/i/image.jpg!:index.html
42
+ out: <p>This is an <a href="index.html"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
43
+ ---
44
+ in: This is an !http://example.com/i/image.jpg!:index.html#1
45
+ out: <p>This is an <a href="index.html#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
46
+ ---
47
+ in: This is an !http://example.com/i/image.jpg!:index.html#a1
48
+ out: <p>This is an <a href="index.html#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
49
+ ---
50
+ in: This is an !http://example.com/i/image.jpg!:index.html#a10
51
+ out: <p>This is an <a href="index.html#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
52
+ ---
53
+ in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar
54
+ out: <p>This is an <a href="index.html?foo=bar"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
55
+ ---
56
+ in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#1
57
+ out: <p>This is an <a href="index.html?foo=bar#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
58
+ ---
59
+ in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a
60
+ out: <p>This is an <a href="index.html?foo=bar#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
61
+ ---
62
+ in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a1
63
+ out: <p>This is an <a href="index.html?foo=bar#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
64
+ ---
65
+ in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a10
66
+ out: <p>This is an <a href="index.html?foo=bar#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
67
+ ---
68
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/
69
+ out: <p>This is an <a href="http://example.com/"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
70
+ ---
71
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/#1
72
+ out: <p>This is an <a href="http://example.com/#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
73
+ ---
74
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/#a
75
+ out: <p>This is an <a href="http://example.com/#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
76
+ ---
77
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/#a1
78
+ out: <p>This is an <a href="http://example.com/#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
79
+ ---
80
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/#a10
81
+ out: <p>This is an <a href="http://example.com/#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
82
+ ---
83
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html
84
+ out: <p>This is an <a href="http://example.com/index.html"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
85
+ ---
86
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#1
87
+ out: <p>This is an <a href="http://example.com/index.html#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
88
+ ---
89
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a
90
+ out: <p>This is an <a href="http://example.com/index.html#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
91
+ ---
92
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a1
93
+ out: <p>This is an <a href="http://example.com/index.html#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
94
+ ---
95
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a10
96
+ out: <p>This is an <a href="http://example.com/index.html#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
97
+ ---
98
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar
99
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
100
+ ---
101
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#1
102
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
103
+ ---
104
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a
105
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
106
+ ---
107
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a1
108
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
109
+ ---
110
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a10
111
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
112
+ ---
113
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b
114
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
115
+ ---
116
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1
117
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
118
+ ---
119
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a
120
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
121
+ ---
122
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1
123
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
124
+ ---
125
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10
126
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a></p>
127
+ ---
128
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b.
129
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
130
+ ---
131
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1.
132
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
133
+ ---
134
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a.
135
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
136
+ ---
137
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1.
138
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
139
+ ---
140
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10.
141
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>.</p>
142
+ ---
143
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b, but this is not.
144
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
145
+ ---
146
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1, but this is not.
147
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
148
+ ---
149
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a, but this is not.
150
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
151
+ ---
152
+ in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1, but this is not.
153
+ out: <p>This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>, but this is not.</p>
154
+ ---
155
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not.
156
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
157
+ ---
158
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b) This is not.
159
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
160
+ ---
161
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1) This is not.
162
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#1"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
163
+ ---
164
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a) This is not.
165
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
166
+ ---
167
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1) This is not.
168
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a1"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
169
+ ---
170
+ in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not.
171
+ out: <p>(This is an <a href="http://example.com/index.html?foo=bar&#38;a=b#a10"><img src="http://example.com/i/image.jpg" alt="" /></a>) This is not.</p>
@@ -0,0 +1,39 @@
1
+ --- # Bugs filed at http://www.instiki.org/show/BugReports
2
+ in: |-
3
+ _Hi, <span class="newWikiWord">Joe Bob<a href="../show/JoeBob">?</a></span>, this should all be in italic!_
4
+ out: |-
5
+ <p><em>Hi, <span class="newWikiWord">Joe Bob<a href="../show/JoeBob">?</a></span>, this should all be in italic!</em></p>
6
+ ---
7
+ in: '*this <span>span</span> is strong*'
8
+ out: '<p><strong>this <span>span</span> is strong</strong></p>'
9
+ ---
10
+ in: '*this <span>Camel Thing<a href="../show/CamelThing">?</a></span> is strong*'
11
+ out: '<p><strong>this <span>Camel Thing<a href="../show/CamelThing">?</a></span> is strong</strong></p>'
12
+ ---
13
+ in: '_this <span>span</span> is italic_'
14
+ out: '<p><em>this <span>span</span> is italic</em></p>'
15
+ ---
16
+ in: '%{color:red}nested span because of <span><span class="newWikiWord">Camel Word<a href="../show/CamelWord">?</a></span></span>%'
17
+ out: '<p><span style="color:red;">nested span because of <span><span class="newWikiWord">Camel Word<a href="../show/CamelWord">?</a></span></span></span></p>'
18
+ ---
19
+ in: |-
20
+ h2. Version History
21
+
22
+ * "Version
23
+ 0.0":http://www.threewordslong.com/render-0-8-9b.patch - Early version using MD5 hashes.
24
+ * "Version
25
+ 0.1":http://www.threewordslong.com/chunk-0-1.patch.gz - First cut of new system. Much cleaner.
26
+ * "Version 0.2":http://www.threewordslong.com/chunk-0-2.patch.gz - Fixed problem with "authors" page and some tests.
27
+ out: |-
28
+ <h2>Version History</h2>
29
+
30
+ <ul>
31
+ <li><a href="http://www.threewordslong.com/render-0-8-9b.patch">Version
32
+ 0.0</a> &#8211; Early version using <span class="caps">MD5</span> hashes.</li>
33
+ <li><a href="http://www.threewordslong.com/chunk-0-1.patch.gz">Version
34
+ 0.1</a> &#8211; First cut of new system. Much cleaner.</li>
35
+ <li><a href="http://www.threewordslong.com/chunk-0-2.patch.gz">Version 0.2</a> &#8211; Fixed problem with &#8220;authors&#8221; page and some tests.</li>
36
+ </ul>
37
+ ---
38
+ in: "--richSeymour --whyTheLuckyStiff"
39
+ out: "<p>&#8212;richSeymour&#8212;whyTheLuckyStiff</p>"
@@ -0,0 +1,155 @@
1
+ ---
2
+ in: '"link text":#1'
3
+ out: <p><a href="#1">link text</a></p>
4
+ ---
5
+ in: '"link text":#a'
6
+ out: <p><a href="#a">link text</a></p>
7
+ ---
8
+ in: '"link text":#a1'
9
+ out: <p><a href="#a1">link text</a></p>
10
+ ---
11
+ in: '"link text":#a10'
12
+ out: <p><a href="#a10">link text</a></p>
13
+ ---
14
+ in: '"link text":index.html'
15
+ out: <p><a href="index.html">link text</a></p>
16
+ ---
17
+ in: '"link text":index.html#1'
18
+ out: <p><a href="index.html#1">link text</a></p>
19
+ ---
20
+ in: '"link text":index.html#a'
21
+ out: <p><a href="index.html#a">link text</a></p>
22
+ ---
23
+ in: '"link text":index.html#a1'
24
+ out: <p><a href="index.html#a1">link text</a></p>
25
+ ---
26
+ in: '"link text":index.html#a10'
27
+ out: <p><a href="index.html#a10">link text</a></p>
28
+ ---
29
+ in: '"link text":http://example.com/'
30
+ out: <p><a href="http://example.com/">link text</a></p>
31
+ ---
32
+ in: '"link text":http://example.com/#1'
33
+ out: <p><a href="http://example.com/#1">link text</a></p>
34
+ ---
35
+ in: '"link text":http://example.com/#a'
36
+ out: <p><a href="http://example.com/#a">link text</a></p>
37
+ ---
38
+ in: '"link text":http://example.com/#a1'
39
+ out: <p><a href="http://example.com/#a1">link text</a></p>
40
+ ---
41
+ in: '"link text":http://example.com/#a10'
42
+ out: <p><a href="http://example.com/#a10">link text</a></p>
43
+ ---
44
+ in: '"link text":http://example.com/index.html'
45
+ out: <p><a href="http://example.com/index.html">link text</a></p>
46
+ ---
47
+ in: '"link text":http://example.com/index.html#a'
48
+ out: <p><a href="http://example.com/index.html#a">link text</a></p>
49
+ ---
50
+ in: '"link text":http://example.com/index.html#1'
51
+ out: <p><a href="http://example.com/index.html#1">link text</a></p>
52
+ ---
53
+ in: '"link text":http://example.com/index.html#a1'
54
+ out: <p><a href="http://example.com/index.html#a1">link text</a></p>
55
+ ---
56
+ in: '"link text":http://example.com/index.html#a10'
57
+ out: <p><a href="http://example.com/index.html#a10">link text</a></p>
58
+ ---
59
+ in: '"link text":http://example.com/?foo=bar'
60
+ out: <p><a href="http://example.com/?foo=bar">link text</a></p>
61
+ ---
62
+ in: '"link text":http://example.com/?foo=bar#a'
63
+ out: <p><a href="http://example.com/?foo=bar#a">link text</a></p>
64
+ ---
65
+ in: '"link text":http://example.com/?foo=bar#1'
66
+ out: <p><a href="http://example.com/?foo=bar#1">link text</a></p>
67
+ ---
68
+ in: '"link text":http://example.com/?foo=bar#a1'
69
+ out: <p><a href="http://example.com/?foo=bar#a1">link text</a></p>
70
+ ---
71
+ in: '"link text":http://example.com/?foo=bar#a10'
72
+ out: <p><a href="http://example.com/?foo=bar#a10">link text</a></p>
73
+ ---
74
+ in: '"link text":http://example.com/?foo=bar&a=b'
75
+ out: <p><a href="http://example.com/?foo=bar&#38;a=b">link text</a></p>
76
+ ---
77
+ in: '"link text":http://example.com/?foo=bar&a=b#1'
78
+ out: <p><a href="http://example.com/?foo=bar&#38;a=b#1">link text</a></p>
79
+ ---
80
+ in: '"link text":http://example.com/?foo=bar&a=b#a'
81
+ out: <p><a href="http://example.com/?foo=bar&#38;a=b#a">link text</a></p>
82
+ ---
83
+ in: '"link text":http://example.com/?foo=bar&a=b#a1'
84
+ out: <p><a href="http://example.com/?foo=bar&#38;a=b#a1">link text</a></p>
85
+ ---
86
+ in: '"link text":http://example.com/?foo=bar&a=b#a10'
87
+ out: <p><a href="http://example.com/?foo=bar&#38;a=b#a10">link text</a></p>
88
+ ---
89
+ in: 'This is a "link":http://example.com/'
90
+ out: <p>This is a <a href="http://example.com/">link</a></p>
91
+ ---
92
+ in: 'This is a "link":http://example.com/.'
93
+ out: <p>This is a <a href="http://example.com/">link</a>.</p>
94
+ ---
95
+ in: 'This is a "link":http://example.com/index.html.'
96
+ out: <p>This is a <a href="http://example.com/index.html">link</a>.</p>
97
+ ---
98
+ in: 'This is a "link":http://example.com/index.html#a.'
99
+ out: <p>This is a <a href="http://example.com/index.html#a">link</a>.</p>
100
+ ---
101
+ in: 'This is a "link":http://example.com/index.html#1.'
102
+ out: <p>This is a <a href="http://example.com/index.html#1">link</a>.</p>
103
+ ---
104
+ in: 'This is a "link":http://example.com/index.html#a1.'
105
+ out: <p>This is a <a href="http://example.com/index.html#a1">link</a>.</p>
106
+ ---
107
+ in: 'This is a "link":http://example.com/index.html#a10.'
108
+ out: <p>This is a <a href="http://example.com/index.html#a10">link</a>.</p>
109
+ ---
110
+ in: 'This is a "link":http://example.com/?foo=bar.'
111
+ out: <p>This is a <a href="http://example.com/?foo=bar">link</a>.</p>
112
+ ---
113
+ in: 'This is a "link":http://example.com/?foo=bar#1.'
114
+ out: <p>This is a <a href="http://example.com/?foo=bar#1">link</a>.</p>
115
+ ---
116
+ in: 'This is a "link":http://example.com/?foo=bar#a.'
117
+ out: <p>This is a <a href="http://example.com/?foo=bar#a">link</a>.</p>
118
+ ---
119
+ in: 'This is a "link":http://example.com/?foo=bar#a1.'
120
+ out: <p>This is a <a href="http://example.com/?foo=bar#a1">link</a>.</p>
121
+ ---
122
+ in: 'This is a "link":http://example.com/?foo=bar#a10.'
123
+ out: <p>This is a <a href="http://example.com/?foo=bar#a10">link</a>.</p>
124
+ ---
125
+ in: 'This is a "link":http://example.com/?foo=bar#a10, but this is not.'
126
+ out: <p>This is a <a href="http://example.com/?foo=bar#a10">link</a>, but this is not.</p>
127
+ ---
128
+ in: '(This is a "link":http://example.com/?foo=bar#a10) but this is not.'
129
+ out: <p>(This is a <a href="http://example.com/?foo=bar#a10">link</a>) but this is not.</p>
130
+ ---
131
+ in: '"link text(link title)":http://example.com/'
132
+ out: <p><a href="http://example.com/" title="link title">link text</a></p>
133
+ # ---
134
+ # in: '"link text(link title) ":http://example.com/'
135
+ # out: <p>&#8220;link text(link title) &#8220;:http://example.com/</p>
136
+ # comments: this is a real test and should pass
137
+ ---
138
+ in: '"(link) text(link title)":http://example.com/'
139
+ out: <p><a href="http://example.com/" class="link" title="link title"> text</a></p>
140
+ comments: link text can not contain parentheses
141
+ ---
142
+ in: '"Dive Into XML":http://www.xml.com/pub/au/164'
143
+ out: <p><a href="http://www.xml.com/pub/au/164">Dive Into <span class="caps">XML</span></a></p>
144
+ ---
145
+ in: '"Lab Exercises":../lab/exercises/exercises.html.'
146
+ out: <p><a href="../lab/exercises/exercises.html">Lab Exercises</a>.</p>
147
+ ---
148
+ in: 'Go to "discuss":http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&thread=26627 to discuss.'
149
+ out: <p>Go to <a href="http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&#38;thread=26627">discuss</a> to discuss.</p>
150
+ ---
151
+ in: '* "rubylang":http://www.ruby-lang.org/en/'
152
+ out: "<ul>\n\t<li><a href=\"http://www.ruby-lang.org/en/\">rubylang</a></li>\n\t</ul>"
153
+ ---
154
+ in: 'The ION coding style document found at "IONCodingStyleGuide.doc":http://perforce:8081/@md=d&cd=//&c=82E@//depot/systest/system/main/pub/doc/IONCodingStyleGuide.doc?ac=22 codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in ION. Test text'
155
+ out: <p>The <span class="caps">ION</span> coding style document found at <a href="http://perforce:8081/@md=d&#38;cd=//&#38;c=82E@//depot/systest/system/main/pub/doc/IONCodingStyleGuide.doc?ac=22">IONCodingStyleGuide.doc</a> codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in <span class="caps">ION</span>. Test text</p>