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,77 @@
1
+ --- # Bret Pettichord, Thanks.
2
+ in: |-
3
+ * first line
4
+ * second
5
+ line
6
+ * third line
7
+ out: |-
8
+ <ul>
9
+ <li>first line</li>
10
+ <li>second
11
+ line</li>
12
+ <li>third line</li>
13
+ </ul>
14
+ ---
15
+ in: |-
16
+ p. start
17
+
18
+ * one
19
+ and one
20
+ * two
21
+ and two
22
+ * three
23
+
24
+ p. end
25
+ out: |-
26
+ <p>start</p>
27
+ <ul>
28
+ <li>one
29
+ and one</li>
30
+ <li>two
31
+ and two</li>
32
+ <li>three</li>
33
+ </ul>
34
+
35
+ <p>end</p>
36
+ ---
37
+ in: |-
38
+ Funky:
39
+
40
+ * Testing
41
+ *# number
42
+ *##* bullet
43
+ *# number
44
+ *# number
45
+ yeah number
46
+ #* bullet
47
+ *** okay
48
+ ****# what
49
+
50
+
51
+ out: |-
52
+ <p>Funky:</p>
53
+ <ul>
54
+ <li>Testing
55
+ <ol>
56
+ <li>number
57
+ <ul>
58
+ <li>bullet</li>
59
+ </ul>
60
+ </li>
61
+ <li>number</li>
62
+ <li>number
63
+ yeah number</li>
64
+ <ul>
65
+ <li>bullet
66
+ <ul>
67
+ <li>okay
68
+ <ol>
69
+ <li>what</li>
70
+ </ul></li>
71
+ </ol></li>
72
+ </ul></li>
73
+ </ul></li>
74
+ </ol>
75
+ ---
76
+ in: "* command run: @time ruby run-tests.rb > toto@"
77
+ out: "<ul>\n\t<li>command run: <code>time ruby run-tests.rb &gt; toto</code></li>\n\t</ul>"
@@ -0,0 +1,218 @@
1
+ in: |
2
+ This is a regular paragraph.
3
+
4
+ <table>
5
+ <tr>
6
+ <td>Foo</td>
7
+ </tr>
8
+ </table>
9
+
10
+ This is another regular paragraph.
11
+ out: |-
12
+ <p>This is a regular paragraph.</p>
13
+
14
+
15
+ <table>
16
+ <tr>
17
+ <td>Foo</td>
18
+ </tr>
19
+ </table>
20
+ <p>This is another regular paragraph.</p>
21
+ ---
22
+ in: '"Larry Bird":http://images.google.com/images?num=30&q=larry+bird'
23
+ out: '<p>"Larry Bird":http://images.google.com/images?num=30&#38;q=larry+bird</p>'
24
+ ---
25
+ in: '&copy;'
26
+ out: <p>&copy;</p>
27
+ ---
28
+ in: AT&T
29
+ out: <p>AT&#38;T</p>
30
+
31
+ # We don't do this.
32
+ # ---
33
+ # in: 4 < 5
34
+ # out: 4 &lt; 5
35
+ ---
36
+ in: |
37
+ This is an H1
38
+ =============
39
+
40
+ This is an H2
41
+ -------------
42
+ out: |-
43
+ <h1>This is an H1</h1>
44
+
45
+ <h2>This is an H2</h2>
46
+ ---
47
+ in: |
48
+ # This is an H1
49
+
50
+ ## This is an H2
51
+
52
+ ###### This is an H6
53
+ out: |-
54
+ <h1>This is an H1</h1>
55
+
56
+ <h2>This is an H2</h2>
57
+
58
+ <h6>This is an H6</h6>
59
+ ---
60
+ in: |
61
+ > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
62
+ > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
63
+ > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
64
+ >
65
+ > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
66
+ > id sem consectetuer libero luctus adipiscing.
67
+ out: |-
68
+ <blockquote>
69
+ <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
70
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
71
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
72
+
73
+ <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
74
+ id sem consectetuer libero luctus adipiscing.</p>
75
+
76
+ </blockquote>
77
+ ---
78
+ in: |
79
+ > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
80
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
81
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
82
+ >
83
+ > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
84
+ id sem consectetuer libero luctus adipiscing.
85
+ out: |-
86
+ <blockquote>
87
+ <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
88
+ consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
89
+ Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p>
90
+
91
+ <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
92
+ id sem consectetuer libero luctus adipiscing.</p>
93
+
94
+ </blockquote>
95
+ ---
96
+ in: |
97
+ > This is the first level of quoting.
98
+ >
99
+ > > This is nested blockquote.
100
+ >
101
+ > Back to the first level.
102
+ out: |-
103
+ <blockquote>
104
+ <p>This is the first level of quoting.</p>
105
+ <blockquote>
106
+ <p>This is nested blockquote.</p>
107
+
108
+ </blockquote>
109
+
110
+
111
+
112
+ <p>Back to the first level.</p>
113
+
114
+ </blockquote>
115
+ ---
116
+ in: |
117
+ > ## This is a header.
118
+ >
119
+ > 1. This is the first list item.
120
+ > 2. This is the second list item.
121
+ >
122
+ > Here's some example code:
123
+ >
124
+ > return shell_exec("echo $input | $markdown_script");
125
+ out: |-
126
+ <blockquote>
127
+ <h2>This is a header.</h2>
128
+
129
+
130
+
131
+ <p>1. This is the first list item.
132
+ 2. This is the second list item.</p>
133
+
134
+ <p>Here's some example code:</p>
135
+ <pre><code>return shell_exec("echo $input | $markdown_script");</code></pre>
136
+
137
+ </blockquote>
138
+ ---
139
+ in: |
140
+ * * *
141
+
142
+ ***
143
+
144
+ *****
145
+
146
+ - - -
147
+
148
+ ---------------------------------------
149
+
150
+ _ _ _
151
+ out: |-
152
+ <hr />
153
+
154
+ <hr />
155
+
156
+ <hr />
157
+
158
+ <hr />
159
+
160
+ <hr />
161
+
162
+ <hr />
163
+ ---
164
+ in: |
165
+ This is [an example](http://example.com/ "Title") inline link.
166
+
167
+ [This link](http://example.net/) has no title attribute.
168
+ out: |-
169
+ <p>This is <a href="http://example.com/" title="Title">an example</a> inline link.</p>
170
+
171
+ <p><a href="http://example.net/">This link</a> has no title attribute.</p>
172
+ ---
173
+ in: See my [About](/about/) page for details.
174
+ out: <p>See my <a href="/about/">About</a> page for details.</p>
175
+ ---
176
+ in: |
177
+ This is [an example][id] reference-style link.
178
+
179
+ This is [an example] [id] reference-style link.
180
+
181
+ [id]: http://example.com/ "Optional Title Here"
182
+ out: |-
183
+ <p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
184
+
185
+ <p>This is <a href="http://example.com/" title="Optional Title Here">an example</a> reference-style link.</p>
186
+ ---
187
+ in: |
188
+ [Google][]
189
+ [Google]: http://google.com/
190
+ out: <p><a href="http://google.com/">Google</a></p>
191
+ ---
192
+ in: |
193
+ Visit [Daring Fireball][] for more information.
194
+ [Daring Fireball]: http://daringfireball.net/
195
+ out: <p>Visit <a href="http://daringfireball.net/">Daring Fireball</a> for more information.</p>
196
+ ---
197
+ in: |
198
+ I get 10 times more traffic from [Google] [1] than from
199
+ [Yahoo] [2] or [MSN] [3].
200
+
201
+ [1]: http://google.com/ "Google"
202
+ [2]: http://search.yahoo.com/ "Yahoo Search"
203
+ [3]: http://search.msn.com/ "MSN Search"
204
+
205
+ out: |-
206
+ <p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
207
+ <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
208
+ ---
209
+ in: |
210
+ I get 10 times more traffic from [Google][] than from
211
+ [Yahoo][] or [MSN][].
212
+
213
+ [google]: http://google.com/ "Google"
214
+ [yahoo]: http://search.yahoo.com/ "Yahoo Search"
215
+ [msn]: http://search.msn.com/ "MSN Search"
216
+ out: |-
217
+ <p>I get 10 times more traffic from <a href="http://google.com/" title="Google">Google</a> than from
218
+ <a href="http://search.yahoo.com/" title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/" title="MSN Search">MSN</a>.</p>
@@ -0,0 +1,64 @@
1
+ --- # Tests from the (Poignant Guide)
2
+ in: >
3
+ h3. False
4
+
5
+
6
+ !<i/blix-neg.gif(Shape of a cat.)!
7
+
8
+
9
+ _The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid
10
+ eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button._
11
+
12
+
13
+ The darkness surrounding Blix can be called *negative space*. Hang on to that phrase.
14
+ Let it suggest that the emptiness has a negative connotation. In a similar way,
15
+ @nil@ has a slightly sour note that it whistles.
16
+
17
+
18
+ Generally speaking, everything in Ruby has a positive charge to it. This spark
19
+ flows through strings, numbers, regexps, all of it. Only two keywords wear a
20
+ shady cloak: @nil@ and @false@ draggin us down.
21
+
22
+
23
+ You can test that charge with an @if@ keyword. It looks very much like the
24
+ @do@ blocks we saw in the last chapter, in that both end with an @end@.
25
+
26
+
27
+ <pre>
28
+ if plastic_cup
29
+ print "Plastic cup is on the up 'n' up!"
30
+ end
31
+ </pre>
32
+
33
+
34
+ If @plastic_cup@ contains either @nil@ or @false@, you won't see anything print
35
+ to the screen. They're not on the @if@ guest list. So @if@ isn't going to run
36
+ any of the code it's protecting.
37
+
38
+
39
+ But @nil@ and @false@ need not walk away in shame. They may be of questionable
40
+ character, but @unless@ runs a smaller establishment that caters to the bedraggled.
41
+ The @unless@ keyword has a policy of only allowing those with a negative charge in.
42
+ Who are: @nil@ and @false@.
43
+
44
+
45
+ <pre>
46
+ unless plastic_cup
47
+ print "Plastic cup is on the down low."
48
+ end
49
+ </pre>
50
+
51
+
52
+ You can also use @if@ and @unless@ at the end of a single line of code, if that's
53
+ all that is being protected.
54
+
55
+
56
+ <pre>
57
+ print "Yeah, plastic cup is up again!" if plastic_cup
58
+ print "Hardly. It's down." unless plastic_cup
59
+ </pre>
60
+
61
+
62
+ Now that you've met @false@, I'm sure you can see what's on next.
63
+
64
+ out: "<h3>False</h3>\n\n\t<p style=\"float:left\"><img src=\"i/blix-neg.gif\" title=\"Shape of a cat.\" alt=\"Shape of a cat.\" /></p>\n\n\t<p><em>The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button.</em></p>\n\n\t<p>The darkness surrounding Blix can be called <strong>negative space</strong>. Hang on to that phrase. Let it suggest that the emptiness has a negative connotation. In a similar way, <code>nil</code> has a slightly sour note that it whistles.</p>\n\n\t<p>Generally speaking, everything in Ruby has a positive charge to it. This spark flows through strings, numbers, regexps, all of it. Only two keywords wear a shady cloak: <code>nil</code> and <code>false</code> draggin us down.</p>\n\n\t<p>You can test that charge with an <code>if</code> keyword. It looks very much like the <code>do</code> blocks we saw in the last chapter, in that both end with an <code>end</code>.</p>\n\n\n<pre>\n if plastic_cup\n print \"Plastic cup is on the up 'n' up!\" \n end\n</pre>\n\t<p>If <code>plastic_cup</code> contains either <code>nil</code> or <code>false</code>, you won&#8217;t see anything print to the screen. They&#8217;re not on the <code>if</code> guest list. So <code>if</code> isn&#8217;t going to run any of the code it&#8217;s protecting.</p>\n\n\t<p>But <code>nil</code> and <code>false</code> need not walk away in shame. They may be of questionable character, but <code>unless</code> runs a smaller establishment that caters to the bedraggled. The <code>unless</code> keyword has a policy of only allowing those with a negative charge in. Who are: <code>nil</code> and <code>false</code>.</p>\n\n\n<pre>\n unless plastic_cup\n print \"Plastic cup is on the down low.\" \n end\n</pre>\n\t<p>You can also use <code>if</code> and <code>unless</code> at the end of a single line of code, if that&#8217;s all that is being protected.</p>\n\n\n<pre>\n print \"Yeah, plastic cup is up again!\" if plastic_cup\n print \"Hardly. It's down.\" unless plastic_cup\n</pre>\n\t<p>Now that you&#8217;ve met <code>false</code>, I&#8217;m sure you can see what&#8217;s on next.</p>"
@@ -0,0 +1,198 @@
1
+ in: |
2
+ {background:#ddd}. |S|Target|Complete|App|Milestone|
3
+ |!/i/g.gif!|11/18/04|11/18/04|070|XML spec complete|
4
+ |!/i/g.gif!|11/29/04|11/29/04|011|XML spec complete (KH is on schedule)|
5
+ |!/i/g.gif!|11/29/04|11/29/04|051|XML spec complete (KH is on schedule)|
6
+ |!/i/g.gif!|11/29/04|11/29/04|081|XML spec complete (KH is on schedule)|
7
+ |!/i/g.gif!|11/19/04|11/22/04|070|Preprocessor complete|
8
+ |!/i/g.gif!|11/22/04|11/22/04|070|Dialog pass 1 builds an index file|
9
+ |!/i/g.gif!|11/24/04|11/24/04|070|Dialog pass 2 98% complete|
10
+ |!/i/g.gif!|11/30/04|11/30/04|070|Feature complete. Passes end-to-end smoke test.|
11
+ |!/i/g.gif!|11/30/04|11/30/04|011|Preprocessor updates complete|
12
+ |!/i/g.gif!|11/30/04|11/30/04|051|Preprocessor updates complete|
13
+ |!/i/g.gif!|11/30/04|11/29/04|081|Preprocessor updates complete|
14
+ |!/i/w.gif!|12/02/04|.|011|Dialog pass 1 and 2 complete (98+%)|
15
+ |!/i/w.gif!|12/02/04|.|051|Dialog pass 1 and 2 complete (98+%)|
16
+ |!/i/w.gif!|12/02/04|.|081|Dialog pass 1 and 2 complete (98+%)|
17
+ |!/i/w.gif!|12/03/04|.|011|Feature complete|
18
+ |!/i/w.gif!|12/03/04|.|051|Feature complete|
19
+ |!/i/w.gif!|12/03/04|.|081|Feature complete|
20
+ |!/i/w.gif!|12/10/04|.|011|Deployed to Napa test workstation. Passes smoke test.|
21
+ |!/i/w.gif!|12/10/04|.|051|Deployed to Napa test workstation. Passes smoke test.|
22
+ |!/i/w.gif!|12/10/04|.|081|Deployed to Napa test workstation. Passes smoke test.|
23
+ |!/i/w.gif!|12/10/04|.|070|Deployed to Napa test workstation. Passes smoke test.|
24
+ |!/i/w.gif!|12/17/04|.|011|System testing complete. Begin testing with live customer data.|
25
+ |!/i/w.gif!|12/17/04|.|051|System testing complete. Begin testing with live customer data.|
26
+ |!/i/w.gif!|12/17/04|.|081|System testing complete. Begin testing with live customer data.|
27
+ |!/i/w.gif!|12/17/04|.|070|System testing complete. Begin testing with live customer data.|
28
+ out: |-
29
+ <table>
30
+ <tr style="background:#ddd;">
31
+ <td>S</td>
32
+ <td>Target</td>
33
+ <td>Complete</td>
34
+ <td>App</td>
35
+ <td>Milestone</td>
36
+ </tr>
37
+ <tr>
38
+ <td><img src="/i/g.gif" alt="" /></td>
39
+ <td>11/18/04</td>
40
+ <td>11/18/04</td>
41
+ <td>070</td>
42
+ <td><span class="caps">XML</span> spec complete</td>
43
+ </tr>
44
+ <tr>
45
+ <td><img src="/i/g.gif" alt="" /></td>
46
+ <td>11/29/04</td>
47
+ <td>11/29/04</td>
48
+ <td>011</td>
49
+ <td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
50
+ </tr>
51
+ <tr>
52
+ <td><img src="/i/g.gif" alt="" /></td>
53
+ <td>11/29/04</td>
54
+ <td>11/29/04</td>
55
+ <td>051</td>
56
+ <td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
57
+ </tr>
58
+ <tr>
59
+ <td><img src="/i/g.gif" alt="" /></td>
60
+ <td>11/29/04</td>
61
+ <td>11/29/04</td>
62
+ <td>081</td>
63
+ <td><span class="caps">XML</span> spec complete (KH is on schedule)</td>
64
+ </tr>
65
+ <tr>
66
+ <td><img src="/i/g.gif" alt="" /></td>
67
+ <td>11/19/04</td>
68
+ <td>11/22/04</td>
69
+ <td>070</td>
70
+ <td>Preprocessor complete</td>
71
+ </tr>
72
+ <tr>
73
+ <td><img src="/i/g.gif" alt="" /></td>
74
+ <td>11/22/04</td>
75
+ <td>11/22/04</td>
76
+ <td>070</td>
77
+ <td>Dialog pass 1 builds an index file</td>
78
+ </tr>
79
+ <tr>
80
+ <td><img src="/i/g.gif" alt="" /></td>
81
+ <td>11/24/04</td>
82
+ <td>11/24/04</td>
83
+ <td>070</td>
84
+ <td>Dialog pass 2 98% complete</td>
85
+ </tr>
86
+ <tr>
87
+ <td><img src="/i/g.gif" alt="" /></td>
88
+ <td>11/30/04</td>
89
+ <td>11/30/04</td>
90
+ <td>070</td>
91
+ <td>Feature complete. Passes end-to-end smoke test.</td>
92
+ </tr>
93
+ <tr>
94
+ <td><img src="/i/g.gif" alt="" /></td>
95
+ <td>11/30/04</td>
96
+ <td>11/30/04</td>
97
+ <td>011</td>
98
+ <td>Preprocessor updates complete</td>
99
+ </tr>
100
+ <tr>
101
+ <td><img src="/i/g.gif" alt="" /></td>
102
+ <td>11/30/04</td>
103
+ <td>11/30/04</td>
104
+ <td>051</td>
105
+ <td>Preprocessor updates complete</td>
106
+ </tr>
107
+ <tr>
108
+ <td><img src="/i/g.gif" alt="" /></td>
109
+ <td>11/30/04</td>
110
+ <td>11/29/04</td>
111
+ <td>081</td>
112
+ <td>Preprocessor updates complete</td>
113
+ </tr>
114
+ <tr>
115
+ <td><img src="/i/w.gif" alt="" /></td>
116
+ <td>12/02/04</td>
117
+ <td>011</td>
118
+ <td>Dialog pass 1 and 2 complete (98+%)</td>
119
+ </tr>
120
+ <tr>
121
+ <td><img src="/i/w.gif" alt="" /></td>
122
+ <td>12/02/04</td>
123
+ <td>051</td>
124
+ <td>Dialog pass 1 and 2 complete (98+%)</td>
125
+ </tr>
126
+ <tr>
127
+ <td><img src="/i/w.gif" alt="" /></td>
128
+ <td>12/02/04</td>
129
+ <td>081</td>
130
+ <td>Dialog pass 1 and 2 complete (98+%)</td>
131
+ </tr>
132
+ <tr>
133
+ <td><img src="/i/w.gif" alt="" /></td>
134
+ <td>12/03/04</td>
135
+ <td>011</td>
136
+ <td>Feature complete</td>
137
+ </tr>
138
+ <tr>
139
+ <td><img src="/i/w.gif" alt="" /></td>
140
+ <td>12/03/04</td>
141
+ <td>051</td>
142
+ <td>Feature complete</td>
143
+ </tr>
144
+ <tr>
145
+ <td><img src="/i/w.gif" alt="" /></td>
146
+ <td>12/03/04</td>
147
+ <td>081</td>
148
+ <td>Feature complete</td>
149
+ </tr>
150
+ <tr>
151
+ <td><img src="/i/w.gif" alt="" /></td>
152
+ <td>12/10/04</td>
153
+ <td>011</td>
154
+ <td>Deployed to Napa test workstation. Passes smoke test.</td>
155
+ </tr>
156
+ <tr>
157
+ <td><img src="/i/w.gif" alt="" /></td>
158
+ <td>12/10/04</td>
159
+ <td>051</td>
160
+ <td>Deployed to Napa test workstation. Passes smoke test.</td>
161
+ </tr>
162
+ <tr>
163
+ <td><img src="/i/w.gif" alt="" /></td>
164
+ <td>12/10/04</td>
165
+ <td>081</td>
166
+ <td>Deployed to Napa test workstation. Passes smoke test.</td>
167
+ </tr>
168
+ <tr>
169
+ <td><img src="/i/w.gif" alt="" /></td>
170
+ <td>12/10/04</td>
171
+ <td>070</td>
172
+ <td>Deployed to Napa test workstation. Passes smoke test.</td>
173
+ </tr>
174
+ <tr>
175
+ <td><img src="/i/w.gif" alt="" /></td>
176
+ <td>12/17/04</td>
177
+ <td>011</td>
178
+ <td>System testing complete. Begin testing with live customer data.</td>
179
+ </tr>
180
+ <tr>
181
+ <td><img src="/i/w.gif" alt="" /></td>
182
+ <td>12/17/04</td>
183
+ <td>051</td>
184
+ <td>System testing complete. Begin testing with live customer data.</td>
185
+ </tr>
186
+ <tr>
187
+ <td><img src="/i/w.gif" alt="" /></td>
188
+ <td>12/17/04</td>
189
+ <td>081</td>
190
+ <td>System testing complete. Begin testing with live customer data.</td>
191
+ </tr>
192
+ <tr>
193
+ <td><img src="/i/w.gif" alt="" /></td>
194
+ <td>12/17/04</td>
195
+ <td>070</td>
196
+ <td>System testing complete. Begin testing with live customer data.</td>
197
+ </tr>
198
+ </table>