radiantcms-couchrest_model 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (726) hide show
  1. data/CHANGELOG +0 -16
  2. data/CONTRIBUTORS +0 -7
  3. data/README +84 -2
  4. data/app/controllers/admin/export_controller.rb +5 -0
  5. data/app/controllers/admin/pages_controller.rb +7 -11
  6. data/app/controllers/admin/preferences_controller.rb +1 -1
  7. data/app/controllers/admin/resource_controller.rb +1 -1
  8. data/app/helpers/admin/pages_helper.rb +3 -1
  9. data/app/helpers/admin/preferences_helper.rb +0 -1
  10. data/app/helpers/admin/references_helper.rb +2 -1
  11. data/app/helpers/application_helper.rb +2 -4
  12. data/app/models/env_dump_page.rb +17 -0
  13. data/app/models/file_not_found_page.rb +0 -4
  14. data/app/models/page.rb +20 -61
  15. data/app/models/radiant/config.rb +37 -225
  16. data/app/models/radiant/exporter.rb +11 -0
  17. data/app/models/standard_tags.rb +108 -116
  18. data/app/models/status.rb +1 -9
  19. data/app/models/text_filter.rb +1 -12
  20. data/app/views/admin/extensions/index.html.haml +2 -2
  21. data/app/views/admin/layouts/index.html.haml +9 -9
  22. data/app/views/admin/pages/_fields.html.haml +4 -11
  23. data/app/views/admin/pages/_meta_row.html.haml +1 -5
  24. data/app/views/admin/pages/_node.html.haml +8 -8
  25. data/app/views/admin/pages/_popups.html.haml +1 -14
  26. data/app/views/admin/pages/index.html.haml +4 -4
  27. data/app/views/admin/snippets/_form.html.haml +1 -1
  28. data/app/views/admin/snippets/index.html.haml +10 -10
  29. data/app/views/admin/users/_avatar.html.haml +1 -3
  30. data/app/views/admin/users/_form.html.haml +2 -2
  31. data/app/views/admin/users/_password_fields.html.haml +2 -2
  32. data/app/views/admin/users/index.html.haml +10 -10
  33. data/app/views/layouts/application.html.haml +1 -1
  34. data/config/environment.rb +3 -5
  35. data/config/locales/en.yml +11 -48
  36. data/config/locales/en_available_tags.yml +34 -122
  37. data/config/routes.rb +6 -3
  38. data/db/schema.rb +3 -9
  39. data/db/templates/empty.yml +2 -0
  40. data/db/templates/roasters.yml +1210 -0
  41. data/db/templates/simple-blog.yml +197 -0
  42. data/db/templates/styled-blog.yml +472 -0
  43. data/features/admin/pages_management.feature +9 -2
  44. data/features/admin/resource_pagination.feature +1 -1
  45. data/features/admin/snippets_management.feature +1 -2
  46. data/features/admin/user_permissions.feature +1 -0
  47. data/features/admin/user_preferences.feature +1 -1
  48. data/features/step_definitions/admin/content_negotiation_steps.rb +0 -4
  49. data/features/step_definitions/admin/pagination_steps.rb +4 -2
  50. data/features/support/paths.rb +0 -2
  51. data/files +7283 -0
  52. data/lib/generators/extension/extension_generator.rb +0 -6
  53. data/lib/generators/extension/templates/README +1 -4
  54. data/lib/generators/extension/templates/RSpecRakefile +19 -0
  55. data/lib/generators/extension/templates/Rakefile +17 -0
  56. data/lib/generators/extension/templates/extension.rb +3 -3
  57. data/lib/generators/instance/instance_generator.rb +2 -3
  58. data/lib/generators/instance/templates/instance_environment.rb +2 -3
  59. data/lib/radiant.rb +2 -2
  60. data/lib/radiant/admin_ui.rb +11 -27
  61. data/lib/radiant/extension.rb +2 -8
  62. data/lib/radiant/extension_loader.rb +0 -4
  63. data/lib/radiant/initializer.rb +2 -46
  64. data/lib/radiant/setup.rb +11 -21
  65. data/lib/task_support.rb +8 -14
  66. data/lib/tasks/framework.rake +10 -17
  67. data/lib/tasks/prototype.rake +3 -3
  68. data/lib/tasks/release.rake +0 -1
  69. data/public/javascripts/admin/application.js +1 -1
  70. data/public/javascripts/admin/popup.js +7 -7
  71. data/public/javascripts/admin/tabcontrol.js +0 -1
  72. data/public/javascripts/admin/utility.js +2 -3
  73. data/public/stylesheets/admin/main.css +1213 -1
  74. data/public/stylesheets/admin/overrides.css +1 -0
  75. data/public/stylesheets/sass/admin/main.sass +20 -24
  76. data/public/stylesheets/sass/admin/modules/_links.sass +3 -6
  77. data/public/stylesheets/sass/admin/modules/_opacity.sass +2 -2
  78. data/public/stylesheets/sass/admin/modules/_rounded.sass +3 -3
  79. data/public/stylesheets/sass/admin/modules/_shadow.sass +2 -5
  80. data/public/stylesheets/sass/admin/partials/_actions.sass +38 -53
  81. data/public/stylesheets/sass/admin/partials/_avatars.sass +2 -2
  82. data/public/stylesheets/sass/admin/partials/_base.sass +58 -6
  83. data/public/stylesheets/sass/admin/partials/_content.sass +182 -10
  84. data/public/stylesheets/sass/admin/partials/_dateinput.sass +5 -5
  85. data/public/stylesheets/sass/admin/partials/_deprecated.sass +1 -1
  86. data/public/stylesheets/sass/admin/partials/_forms.sass +25 -26
  87. data/public/stylesheets/sass/admin/partials/_header.sass +9 -9
  88. data/public/stylesheets/sass/admin/partials/_popup.sass +1 -1
  89. data/public/stylesheets/sass/admin/partials/_tabcontrol.sass +3 -4
  90. data/radiantcms-couchrest_model.gemspec +3673 -0
  91. data/rerun.txt +1 -0
  92. data/spec/controllers/admin/export_controller_spec.rb +16 -0
  93. data/spec/controllers/admin/pages_controller_spec.rb +6 -35
  94. data/spec/controllers/admin/preferences_controller_spec.rb +1 -1
  95. data/spec/datasets/config_dataset.rb +0 -1
  96. data/spec/datasets/home_page_dataset.rb +3 -1
  97. data/spec/datasets/pages_dataset.rb +1 -1
  98. data/spec/fixtures/radiant_config.yml +2 -2
  99. data/spec/generators/extension_generator_spec.rb +8 -28
  100. data/spec/generators/instance_generator_spec.rb +3 -10
  101. data/spec/helpers/admin/node_helper_spec.rb +0 -1
  102. data/spec/helpers/admin/references_helper_spec.rb +1 -10
  103. data/spec/helpers/application_helper_spec.rb +2 -7
  104. data/spec/lib/radiant/admin_ui_spec.rb +10 -11
  105. data/spec/lib/radiant/extension_spec.rb +3 -3
  106. data/spec/lib/task_support_spec.rb +0 -6
  107. data/spec/models/env_dump_page_spec.rb +18 -0
  108. data/spec/models/file_not_found_page_spec.rb +11 -15
  109. data/spec/models/page_spec.rb +166 -209
  110. data/spec/models/radiant/config_spec.rb +3 -38
  111. data/spec/models/radiant/exporter_spec.rb +25 -0
  112. data/spec/models/standard_tags_spec.rb +142 -132
  113. data/spec/models/status_spec.rb +0 -11
  114. data/spec/models/text_filter_spec.rb +2 -6
  115. data/test/fixtures/extensions/basic/basic_extension.rb +6 -1
  116. data/vendor/extensions/archive/README +29 -0
  117. data/vendor/extensions/archive/Rakefile +120 -0
  118. data/vendor/extensions/archive/app/models/archive_day_index_page.rb +28 -0
  119. data/vendor/extensions/archive/app/models/archive_finder.rb +60 -0
  120. data/vendor/extensions/archive/app/models/archive_month_index_page.rb +28 -0
  121. data/vendor/extensions/archive/app/models/archive_page.rb +36 -0
  122. data/vendor/extensions/archive/app/models/archive_year_index_page.rb +28 -0
  123. data/vendor/extensions/archive/archive_extension.rb +19 -0
  124. data/vendor/extensions/archive/lib/archive_index_tags_and_methods.rb +57 -0
  125. data/vendor/extensions/archive/lib/tasks/archive_extension_tasks.rake +28 -0
  126. data/vendor/extensions/archive/spec/datasets/archive_dataset.rb +51 -0
  127. data/vendor/extensions/archive/spec/models/archive_day_index_page_spec.rb +20 -0
  128. data/vendor/extensions/archive/spec/models/archive_month_index_page_spec.rb +20 -0
  129. data/vendor/extensions/archive/spec/models/archive_page_spec.rb +33 -0
  130. data/vendor/extensions/archive/spec/models/archive_year_index_page_spec.rb +20 -0
  131. data/vendor/extensions/archive/spec/spec.opts +6 -0
  132. data/vendor/extensions/archive/spec/spec_helper.rb +36 -0
  133. data/vendor/extensions/archive/test/fixtures/pages.yml +397 -0
  134. data/vendor/extensions/archive/test/functional/archive_extension_test.rb +16 -0
  135. data/vendor/extensions/archive/test/helpers/archive_index_test_helper.rb +37 -0
  136. data/vendor/extensions/archive/test/test_helper.rb +26 -0
  137. data/vendor/extensions/archive/test/unit/archive_day_index_page_test.rb +22 -0
  138. data/vendor/extensions/archive/test/unit/archive_month_index_page_test.rb +22 -0
  139. data/vendor/extensions/archive/test/unit/archive_page_test.rb +40 -0
  140. data/vendor/extensions/archive/test/unit/archive_year_index_page_test.rb +22 -0
  141. data/vendor/extensions/dutch_language_pack/README +3 -0
  142. data/vendor/extensions/dutch_language_pack/Rakefile +123 -0
  143. data/vendor/extensions/dutch_language_pack/config/locales/nl.yml +187 -0
  144. data/vendor/extensions/dutch_language_pack/config/locales/nl_available_tags.yml +553 -0
  145. data/vendor/extensions/dutch_language_pack/dutch_language_pack_extension.rb +9 -0
  146. data/vendor/extensions/dutch_language_pack/lib/tasks/i18n_nl_extension_tasks.rake +28 -0
  147. data/vendor/extensions/french_language_pack/README +3 -0
  148. data/vendor/extensions/french_language_pack/Rakefile +123 -0
  149. data/vendor/extensions/french_language_pack/config/locales/fr.yml +190 -0
  150. data/vendor/extensions/french_language_pack/config/locales/fr_available_tags.yml +553 -0
  151. data/vendor/extensions/french_language_pack/french_language_pack_extension.rb +9 -0
  152. data/vendor/extensions/french_language_pack/lib/tasks/i18n_fr_extension_tasks.rake +28 -0
  153. data/vendor/extensions/german_language_pack/README +4 -0
  154. data/vendor/extensions/german_language_pack/Rakefile +123 -0
  155. data/vendor/extensions/german_language_pack/config/locales/de.yml +186 -0
  156. data/vendor/extensions/german_language_pack/config/locales/de_available_tags.yml +624 -0
  157. data/vendor/extensions/german_language_pack/german_language_pack_extension.rb +9 -0
  158. data/vendor/extensions/german_language_pack/lib/tasks/i18n_de_extension_tasks.rake +28 -0
  159. data/vendor/extensions/italian_language_pack/README +3 -0
  160. data/vendor/extensions/italian_language_pack/Rakefile +123 -0
  161. data/vendor/extensions/italian_language_pack/config/locales/it.yml +184 -0
  162. data/vendor/extensions/italian_language_pack/config/locales/it_available_tags.yml +553 -0
  163. data/vendor/extensions/italian_language_pack/italian_language_pack_extension.rb +8 -0
  164. data/vendor/extensions/italian_language_pack/lib/tasks/i18n_it_extension_tasks.rake +28 -0
  165. data/vendor/extensions/japanese_language_pack/README +3 -0
  166. data/vendor/extensions/japanese_language_pack/Rakefile +123 -0
  167. data/vendor/extensions/japanese_language_pack/config/locales/ja.yml +184 -0
  168. data/vendor/extensions/japanese_language_pack/config/locales/ja_available_tags.yml +553 -0
  169. data/vendor/extensions/japanese_language_pack/japanese_language_pack_extension.rb +9 -0
  170. data/vendor/extensions/japanese_language_pack/lib/tasks/i18n_ja_extension_tasks.rake +28 -0
  171. data/vendor/extensions/markdown_filter/README +1 -0
  172. data/vendor/extensions/markdown_filter/Rakefile +120 -0
  173. data/vendor/extensions/markdown_filter/lib/markdown_filter.rb +14 -0
  174. data/vendor/extensions/markdown_filter/lib/markdown_tags.rb +18 -0
  175. data/vendor/extensions/markdown_filter/lib/tasks/markdown_filter_extension_tasks.rake +28 -0
  176. data/vendor/extensions/markdown_filter/markdown.html +123 -0
  177. data/vendor/extensions/markdown_filter/markdown_filter_extension.rb +18 -0
  178. data/vendor/extensions/markdown_filter/spec/models/markdown_filter_spec.rb +22 -0
  179. data/vendor/extensions/markdown_filter/spec/spec.opts +6 -0
  180. data/vendor/extensions/markdown_filter/spec/spec_helper.rb +36 -0
  181. data/vendor/extensions/markdown_filter/test/test_helper.rb +19 -0
  182. data/vendor/extensions/markdown_filter/test/unit/markdown_filter_test.rb +18 -0
  183. data/vendor/extensions/markdown_filter/vendor/kramdown/AUTHORS +1 -0
  184. data/vendor/extensions/markdown_filter/vendor/kramdown/CONTRIBUTERS +4 -0
  185. data/vendor/extensions/markdown_filter/vendor/kramdown/COPYING +24 -0
  186. data/vendor/extensions/markdown_filter/vendor/kramdown/ChangeLog +3956 -0
  187. data/vendor/extensions/markdown_filter/vendor/kramdown/GPL +674 -0
  188. data/vendor/extensions/markdown_filter/vendor/kramdown/README +30 -0
  189. data/vendor/extensions/markdown_filter/vendor/kramdown/Rakefile +342 -0
  190. data/vendor/extensions/markdown_filter/vendor/kramdown/VERSION +1 -0
  191. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/benchmark.rb +34 -0
  192. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/generate_data.rb +112 -0
  193. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/historic-jruby-1.4.0.dat +7 -0
  194. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/historic-ruby-1.8.6.dat +7 -0
  195. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/historic-ruby-1.8.7.dat +7 -0
  196. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/historic-ruby-1.9.1p243.dat +7 -0
  197. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/historic-ruby-1.9.2dev.dat +7 -0
  198. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/mdbasics.text +306 -0
  199. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/mdsyntax.text +888 -0
  200. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/static-jruby-1.4.0.dat +7 -0
  201. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/static-ruby-1.8.6.dat +7 -0
  202. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/static-ruby-1.8.7.dat +7 -0
  203. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/static-ruby-1.9.1p243.dat +7 -0
  204. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/static-ruby-1.9.2dev.dat +7 -0
  205. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/testing.sh +9 -0
  206. data/vendor/extensions/markdown_filter/vendor/kramdown/benchmark/timing.sh +10 -0
  207. data/vendor/extensions/markdown_filter/vendor/kramdown/bin/kramdown +78 -0
  208. data/vendor/extensions/markdown_filter/vendor/kramdown/data/kramdown/document.html +9 -0
  209. data/vendor/extensions/markdown_filter/vendor/kramdown/data/kramdown/document.latex +43 -0
  210. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/default.less.css +510 -0
  211. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/default.template +71 -0
  212. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/documentation.page +72 -0
  213. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/index.page +63 -0
  214. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/installation.page +90 -0
  215. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/links.markdown +6 -0
  216. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/news.feed +10 -0
  217. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/news.page +28 -0
  218. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/quickref.page +564 -0
  219. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/syntax.page +1521 -0
  220. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/tests.page +51 -0
  221. data/vendor/extensions/markdown_filter/vendor/kramdown/doc/virtual +2 -0
  222. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown.rb +23 -0
  223. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/compatibility.rb +34 -0
  224. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/converter.rb +41 -0
  225. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/converter/base.rb +111 -0
  226. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/converter/html.rb +397 -0
  227. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/converter/latex.rb +555 -0
  228. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/document.rb +164 -0
  229. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/error.rb +27 -0
  230. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/options.rb +282 -0
  231. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser.rb +39 -0
  232. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/base.rb +95 -0
  233. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/html.rb +387 -0
  234. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown.rb +301 -0
  235. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/abbreviation.rb +65 -0
  236. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/attribute_list.rb +103 -0
  237. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/autolink.rb +47 -0
  238. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/blank_line.rb +43 -0
  239. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/blockquote.rb +42 -0
  240. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/codeblock.rb +58 -0
  241. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/codespan.rb +57 -0
  242. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/emphasis.rb +70 -0
  243. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/eob.rb +39 -0
  244. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/escaped_chars.rb +38 -0
  245. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/extension.rb +101 -0
  246. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/footnote.rb +73 -0
  247. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/header.rb +66 -0
  248. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/horizontal_rule.rb +39 -0
  249. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/html.rb +173 -0
  250. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/html_entity.rb +38 -0
  251. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/line_break.rb +38 -0
  252. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/link.rb +153 -0
  253. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/list.rb +228 -0
  254. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/math.rb +53 -0
  255. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/paragraph.rb +44 -0
  256. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/smart_quotes.rb +214 -0
  257. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/table.rb +126 -0
  258. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/parser/kramdown/typographic_symbol.rb +52 -0
  259. data/vendor/extensions/markdown_filter/vendor/kramdown/lib/kramdown/version.rb +28 -0
  260. data/vendor/extensions/markdown_filter/vendor/kramdown/man/man1/kramdown.1 +222 -0
  261. data/vendor/extensions/markdown_filter/vendor/kramdown/setup.rb +1585 -0
  262. data/vendor/extensions/markdown_filter/vendor/kramdown/test/run_tests.rb +59 -0
  263. data/vendor/extensions/markdown_filter/vendor/kramdown/test/test_files.rb +100 -0
  264. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/01_blank_line/spaces.html +1 -0
  265. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/01_blank_line/spaces.text +3 -0
  266. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/01_blank_line/tabs.html +1 -0
  267. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/01_blank_line/tabs.text +6 -0
  268. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/beginning.html +1 -0
  269. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/beginning.text +3 -0
  270. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/end.html +1 -0
  271. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/end.text +3 -0
  272. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/middle.html +2 -0
  273. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/02_eob/middle.text +5 -0
  274. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/indented.html +18 -0
  275. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/indented.text +19 -0
  276. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/no_newline_at_end.html +5 -0
  277. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/no_newline_at_end.text +5 -0
  278. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/one_para.html +1 -0
  279. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/one_para.text +1 -0
  280. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/two_para.html +4 -0
  281. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/03_paragraph/two_para.text +4 -0
  282. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/atx_header.html +34 -0
  283. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/atx_header.text +32 -0
  284. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/atx_header_no_newline_at_end.html +1 -0
  285. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/atx_header_no_newline_at_end.text +1 -0
  286. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/setext_header.html +31 -0
  287. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/setext_header.text +36 -0
  288. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/setext_header_no_newline_at_end.html +1 -0
  289. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/setext_header_no_newline_at_end.text +2 -0
  290. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_id_prefix.html +3 -0
  291. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_id_prefix.options +2 -0
  292. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_id_prefix.text +3 -0
  293. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_ids.html +17 -0
  294. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_ids.options +1 -0
  295. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/04_header/with_auto_ids.text +19 -0
  296. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/indented.html +25 -0
  297. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/indented.text +14 -0
  298. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/nested.html +9 -0
  299. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/nested.text +5 -0
  300. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/no_newline_at_end.html +4 -0
  301. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/no_newline_at_end.text +2 -0
  302. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/only_first_quoted.html +8 -0
  303. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/only_first_quoted.text +4 -0
  304. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/with_code_blocks.html +15 -0
  305. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/05_blockquote/with_code_blocks.text +11 -0
  306. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/error.html +4 -0
  307. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/error.text +4 -0
  308. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/no_newline_at_end.html +2 -0
  309. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/no_newline_at_end.text +1 -0
  310. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/normal.html +13 -0
  311. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/normal.text +10 -0
  312. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/tilde_syntax.html +7 -0
  313. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/tilde_syntax.text +9 -0
  314. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/whitespace.html +3 -0
  315. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/whitespace.text +3 -0
  316. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/with_blank_line.html +13 -0
  317. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/with_blank_line.text +12 -0
  318. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/with_eob_marker.html +6 -0
  319. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/06_codeblock/with_eob_marker.text +5 -0
  320. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/error.html +7 -0
  321. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/error.text +7 -0
  322. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/normal.html +19 -0
  323. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/normal.text +19 -0
  324. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/sepspaces.html +3 -0
  325. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/sepspaces.text +3 -0
  326. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/septabs.html +3 -0
  327. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/07_horizontal_rule/septabs.text +3 -0
  328. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/escaping.html +17 -0
  329. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/escaping.text +17 -0
  330. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/item_ial.html +9 -0
  331. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/item_ial.text +5 -0
  332. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/list_and_hr.html +9 -0
  333. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/list_and_hr.text +5 -0
  334. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/list_and_others.html +38 -0
  335. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/list_and_others.text +25 -0
  336. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/mixed.html +117 -0
  337. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/mixed.text +66 -0
  338. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/nested.html +17 -0
  339. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/nested.text +7 -0
  340. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/other_first_element.html +39 -0
  341. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/other_first_element.text +18 -0
  342. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/simple_ol.html +19 -0
  343. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/simple_ol.text +13 -0
  344. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/simple_ul.html +61 -0
  345. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/simple_ul.text +43 -0
  346. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/single_item.html +3 -0
  347. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/single_item.text +1 -0
  348. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/special_cases.html +78 -0
  349. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/08_list/special_cases.text +48 -0
  350. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/comment.html +18 -0
  351. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/comment.text +15 -0
  352. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/deflists.html +6 -0
  353. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/deflists.options +1 -0
  354. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/deflists.text +6 -0
  355. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/tables.html +14 -0
  356. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/tables.options +1 -0
  357. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/content_model/tables.text +14 -0
  358. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/filtered_html.html +1 -0
  359. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/filtered_html.options +1 -0
  360. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/filtered_html.text +1 -0
  361. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_and_codeblocks.html +15 -0
  362. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_and_codeblocks.options +1 -0
  363. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_and_codeblocks.text +13 -0
  364. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/code.html +10 -0
  365. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/code.text +9 -0
  366. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/comment.html +7 -0
  367. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/comment.text +8 -0
  368. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/emphasis.html +1 -0
  369. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/emphasis.text +1 -0
  370. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/entity.html +1 -0
  371. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/entity.text +1 -0
  372. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/header.html +6 -0
  373. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/header.options +2 -0
  374. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/header.text +6 -0
  375. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_dl.html +8 -0
  376. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_dl.text +8 -0
  377. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_ol.html +15 -0
  378. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_ol.text +17 -0
  379. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_ul.html +19 -0
  380. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/list_ul.text +22 -0
  381. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/options +1 -0
  382. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/paragraph.html +3 -0
  383. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/paragraph.text +4 -0
  384. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/table_normal.html +13 -0
  385. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/table_normal.text +12 -0
  386. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/table_simple.html +10 -0
  387. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/table_simple.text +14 -0
  388. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/typography.html +1 -0
  389. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/html_to_native/typography.text +1 -0
  390. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/invalid_html_1.html +3 -0
  391. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/invalid_html_1.text +5 -0
  392. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/invalid_html_2.html +5 -0
  393. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/invalid_html_2.text +5 -0
  394. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/markdown_attr.html +38 -0
  395. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/markdown_attr.text +38 -0
  396. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/not_parsed.html +24 -0
  397. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/not_parsed.text +24 -0
  398. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_raw.html +30 -0
  399. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_raw.options +1 -0
  400. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_raw.text +29 -0
  401. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_span.html +12 -0
  402. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_span.options +1 -0
  403. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_as_span.text +9 -0
  404. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_block_html.html +21 -0
  405. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_block_html.options +1 -0
  406. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/parse_block_html.text +17 -0
  407. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/processing_instruction.html +13 -0
  408. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/processing_instruction.text +12 -0
  409. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/simple.html +62 -0
  410. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/simple.options +1 -0
  411. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/09_html/simple.text +57 -0
  412. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/10_ald/simple.html +2 -0
  413. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/10_ald/simple.text +8 -0
  414. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/11_ial/auto_id_and_ial.html +1 -0
  415. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/11_ial/auto_id_and_ial.options +1 -0
  416. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/11_ial/auto_id_and_ial.text +2 -0
  417. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/11_ial/simple.html +25 -0
  418. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/11_ial/simple.text +34 -0
  419. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/comment.html +5 -0
  420. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/comment.text +11 -0
  421. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/ignored.html +4 -0
  422. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/ignored.text +8 -0
  423. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/nomarkdown.html +6 -0
  424. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/nomarkdown.text +11 -0
  425. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options.html +24 -0
  426. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options.text +27 -0
  427. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options2.html +10 -0
  428. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options2.text +5 -0
  429. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options3.html +7 -0
  430. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/12_extension/options3.text +7 -0
  431. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/definition_at_beginning.html +1 -0
  432. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/definition_at_beginning.text +1 -0
  433. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/multiple_terms.html +13 -0
  434. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/multiple_terms.text +10 -0
  435. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/no_def_list.html +2 -0
  436. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/no_def_list.text +2 -0
  437. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/para_wrapping.html +10 -0
  438. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/para_wrapping.text +6 -0
  439. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/separated_by_eob.html +8 -0
  440. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/separated_by_eob.text +5 -0
  441. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/simple.html +8 -0
  442. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/simple.text +7 -0
  443. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/styled_terms.html +4 -0
  444. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/styled_terms.text +2 -0
  445. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/too_much_space.html +3 -0
  446. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/too_much_space.text +4 -0
  447. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/with_blocks.html +38 -0
  448. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/13_definition_list/with_blocks.text +24 -0
  449. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/errors.html +3 -0
  450. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/errors.text +3 -0
  451. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/footer.html +65 -0
  452. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/footer.text +25 -0
  453. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/header.html +103 -0
  454. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/header.text +32 -0
  455. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/no_table.html +3 -0
  456. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/no_table.text +3 -0
  457. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/simple.html +61 -0
  458. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/14_table/simple.text +16 -0
  459. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/15_math/normal.html +19 -0
  460. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/block/15_math/normal.text +18 -0
  461. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/encoding.html +46 -0
  462. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/encoding.text +28 -0
  463. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/empty.html +3 -0
  464. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/empty.text +3 -0
  465. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/image_in_a.html +5 -0
  466. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/image_in_a.text +5 -0
  467. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/imagelinks.html +12 -0
  468. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/imagelinks.text +14 -0
  469. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/inline.html +40 -0
  470. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/inline.text +42 -0
  471. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/link_defs.html +8 -0
  472. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/link_defs.text +22 -0
  473. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/links_with_angle_brackets.html +3 -0
  474. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/links_with_angle_brackets.text +3 -0
  475. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/reference.html +32 -0
  476. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/01_link/reference.text +42 -0
  477. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/empty.html +3 -0
  478. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/empty.text +3 -0
  479. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/errors.html +9 -0
  480. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/errors.text +9 -0
  481. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/nesting.html +38 -0
  482. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/nesting.text +33 -0
  483. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/normal.html +46 -0
  484. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/02_emphasis/normal.text +46 -0
  485. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/empty.html +5 -0
  486. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/empty.text +5 -0
  487. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/errors.html +1 -0
  488. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/errors.text +1 -0
  489. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/normal.html +16 -0
  490. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/03_codespan/normal.text +16 -0
  491. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/definitions.html +14 -0
  492. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/definitions.latex +18 -0
  493. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/definitions.text +18 -0
  494. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/footnote_nr.html +12 -0
  495. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/footnote_nr.latex +6 -0
  496. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/footnote_nr.options +1 -0
  497. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/footnote_nr.text +4 -0
  498. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/markers.html +46 -0
  499. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/markers.latex +32 -0
  500. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/04_footnote/markers.text +26 -0
  501. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/across_lines.html +1 -0
  502. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/across_lines.text +2 -0
  503. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/invalid.html +1 -0
  504. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/invalid.text +1 -0
  505. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/link_with_mailto.html +1 -0
  506. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/link_with_mailto.text +1 -0
  507. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/markdown_attr.html +6 -0
  508. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/markdown_attr.text +6 -0
  509. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/normal.html +28 -0
  510. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/05_html/normal.text +28 -0
  511. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/abbreviations/abbrev.html +8 -0
  512. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/abbreviations/abbrev.text +15 -0
  513. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/abbreviations/abbrev_defs.html +2 -0
  514. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/abbreviations/abbrev_defs.text +5 -0
  515. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/autolinks/url_links.html +12 -0
  516. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/autolinks/url_links.text +12 -0
  517. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/escaped_chars/normal.html +41 -0
  518. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/escaped_chars/normal.text +41 -0
  519. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/comment.html +6 -0
  520. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/comment.text +6 -0
  521. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/ignored.html +1 -0
  522. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/ignored.text +1 -0
  523. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/nomarkdown.html +1 -0
  524. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/nomarkdown.text +1 -0
  525. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/options.html +1 -0
  526. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/extension/options.text +1 -0
  527. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/ial/simple.html +6 -0
  528. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/ial/simple.text +6 -0
  529. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/line_breaks/normal.html +11 -0
  530. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/line_breaks/normal.text +11 -0
  531. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/math/normal.html +5 -0
  532. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/math/normal.text +5 -0
  533. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/entities.html +4 -0
  534. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/entities.text +4 -0
  535. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/greaterthan.html +1 -0
  536. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/greaterthan.text +1 -0
  537. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/lowerthan.html +1 -0
  538. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/lowerthan.text +1 -0
  539. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/typography.html +18 -0
  540. data/vendor/extensions/markdown_filter/vendor/kramdown/test/testcases/span/text_substitutions/typography.text +18 -0
  541. data/vendor/extensions/russian_language_pack/README +3 -0
  542. data/vendor/extensions/russian_language_pack/Rakefile +123 -0
  543. data/vendor/extensions/russian_language_pack/config/locales/ru.yml +180 -0
  544. data/vendor/extensions/russian_language_pack/config/locales/ru_available_tags.yml +553 -0
  545. data/vendor/extensions/russian_language_pack/lib/tasks/i18n_ru_extension_tasks.rake +28 -0
  546. data/vendor/extensions/russian_language_pack/russian_language_pack_extension.rb +9 -0
  547. data/vendor/extensions/smarty_pants_filter/README +1 -0
  548. data/vendor/extensions/smarty_pants_filter/Rakefile +136 -0
  549. data/vendor/extensions/smarty_pants_filter/lib/smarty_pants_filter.rb +7 -0
  550. data/vendor/extensions/smarty_pants_filter/lib/smarty_pants_tags.rb +18 -0
  551. data/vendor/extensions/smarty_pants_filter/lib/tasks/smarty_pants_filter_extension_tasks.rake +28 -0
  552. data/vendor/extensions/smarty_pants_filter/smarty_pants_filter_extension.rb +18 -0
  553. data/vendor/extensions/smarty_pants_filter/smartypants.html +47 -0
  554. data/vendor/extensions/smarty_pants_filter/spec/models/smarty_pants_filter_spec.rb +19 -0
  555. data/vendor/extensions/smarty_pants_filter/spec/spec.opts +6 -0
  556. data/vendor/extensions/smarty_pants_filter/spec/spec_helper.rb +36 -0
  557. data/vendor/extensions/smarty_pants_filter/test/test_helper.rb +19 -0
  558. data/vendor/extensions/smarty_pants_filter/test/unit/smarty_pants_filter_test.rb +14 -0
  559. data/vendor/extensions/smarty_pants_filter/vendor/rubypants/README +114 -0
  560. data/vendor/extensions/smarty_pants_filter/vendor/rubypants/Rakefile +84 -0
  561. data/vendor/extensions/smarty_pants_filter/vendor/rubypants/install.rb +9 -0
  562. data/vendor/extensions/smarty_pants_filter/vendor/rubypants/rubypants.rb +490 -0
  563. data/vendor/extensions/smarty_pants_filter/vendor/rubypants/test_rubypants.rb +162 -0
  564. data/vendor/extensions/textile_filter/README +1 -0
  565. data/vendor/extensions/textile_filter/Rakefile +120 -0
  566. data/vendor/extensions/textile_filter/lib/tasks/textile_filter_extension_tasks.rake +0 -0
  567. data/vendor/extensions/textile_filter/lib/textile_filter.rb +6 -0
  568. data/vendor/extensions/textile_filter/lib/textile_tags.rb +24 -0
  569. data/vendor/extensions/textile_filter/spec/models/textile_filter_spec.rb +19 -0
  570. data/vendor/extensions/textile_filter/spec/spec.opts +6 -0
  571. data/vendor/extensions/textile_filter/spec/spec_helper.rb +36 -0
  572. data/vendor/extensions/textile_filter/test/test_helper.rb +19 -0
  573. data/vendor/extensions/textile_filter/test/unit/textile_filter_test.rb +13 -0
  574. data/vendor/extensions/textile_filter/textile.html +115 -0
  575. data/vendor/extensions/textile_filter/textile_filter_extension.rb +10 -0
  576. data/vendor/plugins/haml/README.md +154 -95
  577. data/vendor/plugins/haml/Rakefile +91 -104
  578. data/vendor/plugins/haml/TODO +20 -26
  579. data/vendor/plugins/haml/VERSION +1 -1
  580. data/vendor/plugins/haml/VERSION_NAME +1 -1
  581. data/vendor/plugins/haml/bin/css2sass +1 -7
  582. data/vendor/plugins/haml/doc-src/FAQ.md +4 -16
  583. data/vendor/plugins/haml/doc-src/HAML_CHANGELOG.md +1 -536
  584. data/vendor/plugins/haml/doc-src/HAML_REFERENCE.md +16 -176
  585. data/vendor/plugins/haml/doc-src/SASS_CHANGELOG.md +0 -1159
  586. data/vendor/plugins/haml/doc-src/SASS_REFERENCE.md +632 -1162
  587. data/vendor/plugins/haml/extra/haml-mode.el +34 -36
  588. data/vendor/plugins/haml/extra/sass-mode.el +9 -10
  589. data/vendor/plugins/haml/haml.gemspec +33 -8
  590. data/vendor/plugins/haml/lib/haml.rb +2 -5
  591. data/vendor/plugins/haml/lib/haml/buffer.rb +4 -22
  592. data/vendor/plugins/haml/lib/haml/engine.rb +4 -13
  593. data/vendor/plugins/haml/lib/haml/exec.rb +64 -456
  594. data/vendor/plugins/haml/lib/haml/filters.rb +1 -19
  595. data/vendor/plugins/haml/lib/haml/helpers.rb +19 -40
  596. data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +12 -38
  597. data/vendor/plugins/haml/lib/haml/helpers/xss_mods.rb +2 -13
  598. data/vendor/plugins/haml/lib/haml/html.rb +49 -209
  599. data/vendor/plugins/haml/lib/haml/precompiler.rb +89 -130
  600. data/vendor/plugins/haml/lib/haml/railtie.rb +13 -16
  601. data/vendor/plugins/haml/lib/haml/template.rb +12 -13
  602. data/vendor/plugins/haml/lib/haml/template/plugin.rb +6 -18
  603. data/vendor/plugins/haml/lib/haml/util.rb +44 -483
  604. data/vendor/plugins/haml/lib/haml/version.rb +2 -25
  605. data/vendor/plugins/haml/lib/sass.rb +2 -7
  606. data/vendor/plugins/haml/lib/sass/css.rb +196 -86
  607. data/vendor/plugins/haml/lib/sass/engine.rb +99 -304
  608. data/vendor/plugins/haml/lib/sass/environment.rb +3 -67
  609. data/vendor/plugins/haml/lib/sass/error.rb +25 -166
  610. data/vendor/plugins/haml/lib/sass/files.rb +38 -43
  611. data/vendor/plugins/haml/lib/sass/plugin.rb +150 -198
  612. data/vendor/plugins/haml/lib/sass/plugin/merb.rb +20 -8
  613. data/vendor/plugins/haml/lib/sass/plugin/rack.rb +20 -2
  614. data/vendor/plugins/haml/lib/sass/plugin/rails.rb +9 -16
  615. data/vendor/plugins/haml/lib/sass/repl.rb +1 -1
  616. data/vendor/plugins/haml/lib/sass/script.rb +31 -32
  617. data/vendor/plugins/haml/lib/sass/script/bool.rb +1 -2
  618. data/vendor/plugins/haml/lib/sass/script/color.rb +26 -295
  619. data/vendor/plugins/haml/lib/sass/script/funcall.rb +6 -33
  620. data/vendor/plugins/haml/lib/sass/script/functions.rb +33 -637
  621. data/vendor/plugins/haml/lib/sass/script/lexer.rb +57 -200
  622. data/vendor/plugins/haml/lib/sass/script/literal.rb +10 -69
  623. data/vendor/plugins/haml/lib/sass/script/node.rb +1 -99
  624. data/vendor/plugins/haml/lib/sass/script/number.rb +24 -64
  625. data/vendor/plugins/haml/lib/sass/script/operation.rb +3 -53
  626. data/vendor/plugins/haml/lib/sass/script/parser.rb +50 -229
  627. data/vendor/plugins/haml/lib/sass/script/string.rb +2 -57
  628. data/vendor/plugins/haml/lib/sass/script/unary_operation.rb +2 -25
  629. data/vendor/plugins/haml/lib/sass/script/variable.rb +5 -22
  630. data/vendor/plugins/haml/lib/sass/tree/comment_node.rb +27 -71
  631. data/vendor/plugins/haml/lib/sass/tree/debug_node.rb +2 -8
  632. data/vendor/plugins/haml/lib/sass/tree/directive_node.rb +37 -44
  633. data/vendor/plugins/haml/lib/sass/tree/for_node.rb +0 -19
  634. data/vendor/plugins/haml/lib/sass/tree/if_node.rb +0 -26
  635. data/vendor/plugins/haml/lib/sass/tree/import_node.rb +27 -64
  636. data/vendor/plugins/haml/lib/sass/tree/mixin_def_node.rb +0 -31
  637. data/vendor/plugins/haml/lib/sass/tree/mixin_node.rb +7 -82
  638. data/vendor/plugins/haml/lib/sass/tree/node.rb +77 -291
  639. data/vendor/plugins/haml/lib/sass/tree/prop_node.rb +58 -157
  640. data/vendor/plugins/haml/lib/sass/tree/rule_node.rb +137 -178
  641. data/vendor/plugins/haml/lib/sass/tree/variable_node.rb +5 -10
  642. data/vendor/plugins/haml/lib/sass/tree/while_node.rb +0 -17
  643. data/vendor/plugins/haml/test/benchmark.rb +5 -5
  644. data/vendor/plugins/haml/test/haml/engine_test.rb +19 -530
  645. data/vendor/plugins/haml/test/haml/helper_test.rb +7 -124
  646. data/vendor/plugins/haml/test/haml/html2haml_test.rb +66 -250
  647. data/vendor/plugins/haml/test/haml/results/filters.xhtml +1 -1
  648. data/vendor/plugins/haml/test/haml/results/helpers.xhtml +23 -0
  649. data/vendor/plugins/haml/test/haml/results/just_stuff.xhtml +0 -2
  650. data/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml +12 -0
  651. data/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml +8 -0
  652. data/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml +62 -0
  653. data/vendor/plugins/haml/test/haml/rhtml/standard.rhtml +54 -0
  654. data/vendor/plugins/haml/test/haml/template_test.rb +3 -33
  655. data/vendor/plugins/haml/test/haml/templates/helpers.haml +66 -0
  656. data/vendor/plugins/haml/test/haml/templates/just_stuff.haml +0 -2
  657. data/vendor/plugins/haml/test/haml/util_test.rb +0 -161
  658. data/vendor/plugins/haml/test/linked_rails.rb +1 -22
  659. data/vendor/plugins/haml/test/sass/css2sass_test.rb +18 -130
  660. data/vendor/plugins/haml/test/sass/engine_test.rb +138 -1426
  661. data/vendor/plugins/haml/test/sass/functions_test.rb +47 -429
  662. data/vendor/plugins/haml/test/sass/more_results/more_import.css +1 -1
  663. data/vendor/plugins/haml/test/sass/more_templates/more_import.sass +3 -3
  664. data/vendor/plugins/haml/test/sass/plugin_test.rb +56 -246
  665. data/vendor/plugins/haml/test/sass/results/compact.css +1 -1
  666. data/vendor/plugins/haml/test/sass/results/complex.css +6 -5
  667. data/vendor/plugins/haml/test/sass/results/compressed.css +1 -1
  668. data/vendor/plugins/haml/test/sass/results/expanded.css +1 -1
  669. data/vendor/plugins/haml/test/sass/results/import.css +1 -3
  670. data/vendor/plugins/haml/test/sass/results/mixins.css +12 -12
  671. data/vendor/plugins/haml/test/sass/results/nested.css +1 -1
  672. data/vendor/plugins/haml/test/sass/results/parent_ref.css +4 -4
  673. data/vendor/plugins/haml/test/sass/results/script.css +4 -4
  674. data/vendor/plugins/haml/test/sass/script_test.rb +78 -281
  675. data/vendor/plugins/haml/test/sass/templates/alt.sass +2 -2
  676. data/vendor/plugins/haml/test/sass/templates/basic.sass +1 -1
  677. data/vendor/plugins/haml/test/sass/templates/bork.sass +2 -0
  678. data/vendor/plugins/haml/test/sass/templates/complex.sass +2 -0
  679. data/vendor/plugins/haml/test/sass/templates/import.sass +4 -5
  680. data/vendor/plugins/haml/test/sass/templates/importee.sass +3 -3
  681. data/vendor/plugins/haml/test/sass/templates/line_numbers.sass +1 -1
  682. data/vendor/plugins/haml/test/sass/templates/mixins.sass +2 -2
  683. data/vendor/plugins/haml/test/sass/templates/parent_ref.sass +2 -2
  684. data/vendor/plugins/haml/test/sass/templates/script.sass +69 -69
  685. data/vendor/plugins/haml/test/sass/templates/units.sass +10 -10
  686. data/vendor/plugins/haml/test/test_helper.rb +4 -52
  687. data/vendor/plugins/haml/yard/default/fulldoc/html/css/common.sass +1 -5
  688. metadata +2926 -2487
  689. data/vendor/rack-cache/CHANGES +0 -128
  690. data/vendor/rack-cache/COPYING +0 -18
  691. data/vendor/rack-cache/README +0 -110
  692. data/vendor/rack-cache/Rakefile +0 -137
  693. data/vendor/rack-cache/TODO +0 -31
  694. data/vendor/rack-cache/doc/configuration.markdown +0 -86
  695. data/vendor/rack-cache/doc/faq.markdown +0 -141
  696. data/vendor/rack-cache/doc/index.markdown +0 -118
  697. data/vendor/rack-cache/doc/layout.html.erb +0 -34
  698. data/vendor/rack-cache/doc/license.markdown +0 -24
  699. data/vendor/rack-cache/doc/rack-cache.css +0 -362
  700. data/vendor/rack-cache/doc/server.ru +0 -34
  701. data/vendor/rack-cache/doc/storage.markdown +0 -162
  702. data/vendor/rack-cache/example/sinatra/app.rb +0 -25
  703. data/vendor/rack-cache/example/sinatra/views/index.erb +0 -44
  704. data/vendor/rack-cache/lib/rack/cache.rb +0 -45
  705. data/vendor/rack-cache/lib/rack/cache/cachecontrol.rb +0 -193
  706. data/vendor/rack-cache/lib/rack/cache/context.rb +0 -233
  707. data/vendor/rack-cache/lib/rack/cache/entitystore.rb +0 -253
  708. data/vendor/rack-cache/lib/rack/cache/key.rb +0 -52
  709. data/vendor/rack-cache/lib/rack/cache/metastore.rb +0 -328
  710. data/vendor/rack-cache/lib/rack/cache/options.rb +0 -150
  711. data/vendor/rack-cache/lib/rack/cache/request.rb +0 -33
  712. data/vendor/rack-cache/lib/rack/cache/response.rb +0 -267
  713. data/vendor/rack-cache/lib/rack/cache/storage.rb +0 -49
  714. data/vendor/rack-cache/rack-cache.gemspec +0 -69
  715. data/vendor/rack-cache/test/cache_test.rb +0 -38
  716. data/vendor/rack-cache/test/cachecontrol_test.rb +0 -139
  717. data/vendor/rack-cache/test/context_test.rb +0 -727
  718. data/vendor/rack-cache/test/entitystore_test.rb +0 -189
  719. data/vendor/rack-cache/test/key_test.rb +0 -50
  720. data/vendor/rack-cache/test/metastore_test.rb +0 -263
  721. data/vendor/rack-cache/test/options_test.rb +0 -78
  722. data/vendor/rack-cache/test/pony.jpg +0 -0
  723. data/vendor/rack-cache/test/request_test.rb +0 -19
  724. data/vendor/rack-cache/test/response_test.rb +0 -178
  725. data/vendor/rack-cache/test/spec_setup.rb +0 -202
  726. data/vendor/rack-cache/test/storage_test.rb +0 -94
@@ -39,14 +39,9 @@ Use `haml --help` for full documentation.
39
39
 
40
40
  ### Rails/Merb Plugin {#plugin}
41
41
 
42
- To enable Haml in Rails versions before Rails 3,
43
- add the following line to `environment.rb`:
42
+ To enable Haml as a Rails plugin, run
44
43
 
45
- config.gem "haml"
46
-
47
- For Rails 3, instead add the following line to the Gemfile:
48
-
49
- gem "haml"
44
+ haml --rails path/to/rails/app
50
45
 
51
46
  Once it's installed, all view files with the `".html.haml"` extension
52
47
  will be compiled using Haml.
@@ -128,8 +123,7 @@ in `environment.rb` in Rails...
128
123
  Available options are:
129
124
 
130
125
  {#format-option} `:format`
131
- : Determines the output format. Normally the default is `:xhtml`,
132
- although under Rails 3 it's `:html5`, since that's the Rails 3's default format.
126
+ : Determines the output format. The default is `:xhtml`.
133
127
  Other options are `:html4` and `:html5`, which are
134
128
  identical to `:xhtml` except there are no self-closing tags,
135
129
  the XML prolog is ignored and correct DOCTYPEs are generated.
@@ -179,8 +173,6 @@ Available options are:
179
173
  {#autoclose-option} `:autoclose`
180
174
  : A list of tag names that should be automatically self-closed
181
175
  if they have no content.
182
- This can also contain regular expressions that match tag names
183
- (or any object which responds to `#===`).
184
176
  Defaults to `['meta', 'img', 'link', 'br', 'hr', 'input', 'area', 'param', 'col', 'base']`.
185
177
 
186
178
  {#preserve-option} `:preserve`
@@ -198,9 +190,7 @@ Available options are:
198
190
  Note that Haml **does not** automatically re-encode Ruby values;
199
191
  any strings coming from outside the application should be converted
200
192
  before being passed into the Haml template.
201
- Defaults to `Encoding.default_internal`; if that's not set,
202
- defaults to the encoding of the Haml template;
203
- if that's `us-ascii`, defaults to `"utf-8"`.
193
+ Defaults to `Encoding.default_internal` or, if that's not set, `"utf-8"`.
204
194
  <br/><br/> <!-- There's no better way to do a paragraph break in a dl in Maruku -->
205
195
  Many Ruby database drivers are not yet Ruby 1.9 compatible;
206
196
  in particular, they return strings marked as ASCII-encoded
@@ -210,25 +200,6 @@ Available options are:
210
200
  set `:encoding` to `"ascii-8bit"`, or try to get the authors of the database drivers
211
201
  to make them Ruby 1.9 compatible.
212
202
 
213
- ### Encodings
214
-
215
- When using Ruby 1.9 or later,
216
- Haml supports the same sorts of encoding-declaration comments that Ruby does.
217
- Although both Ruby and Haml support several different styles,
218
- the easiest it just to add `-# coding: encoding-name`
219
- at the beginning of the Haml template
220
- (it must come before all other lines).
221
- This will tell Haml that the template is encoded using the named encoding.
222
-
223
- By default, the HTML generated by Haml has the same encoding as the Haml template.
224
- However, if `Encoding.default_internal` is set, Haml will attempt to use that instead.
225
- In addition, the [`:encoding` option](#encoding-option) can be used
226
- to specify an output encoding manually.
227
-
228
- Note that, like Ruby, Haml does not support templates encoded in UTF-16 or UTF-32,
229
- since these encodings are not compatible with ASCII.
230
- It is possible to use these as the output encoding, though.
231
-
232
203
  ## Plain Text
233
204
 
234
205
  A substantial portion of any HTML document is its content,
@@ -337,50 +308,6 @@ is compiled to:
337
308
 
338
309
  <script src='javascripts/script_9' type='text/javascript'></script>
339
310
 
340
- #### `:class` and `:id` Attributes
341
- {#class-and-id-attributes}
342
-
343
- The `:class` and `:id` attributes can also be specified as a Ruby array
344
- whose elements will be joined together.
345
- A `:class` array is joined with `" "`
346
- and an `:id` array is joined with `"_"`.
347
- For example:
348
-
349
- %div{:id => [@item.type, @item.number], :class => [@item.type, @item.urgency]}
350
-
351
- is equivalent to:
352
-
353
- %div{:id => "#{@item.type}_#{@item.number}", :class => "#{@item.type} #{@item.urgency}"}
354
-
355
- The array will first be flattened
356
- and any elements that do not test as true will be removed.
357
- The remaining elements will be converted to strings.
358
- For example:
359
-
360
- %div{:class => [@item.type, @item == @sortcol && [:sort, @sortdir]] } Contents
361
-
362
- could render as any of:
363
-
364
- <div class="numeric sort ascending">Contents</div>
365
- <div class="numeric">Contents</div>
366
- <div class="sort descending">Contents</div>
367
- <div>Contents</div>
368
-
369
- depending on whether `@item.type` is `"numeric"` or `nil`,
370
- whether `@item == @sortcol`,
371
- and whether `@sortdir` is `"ascending"` or `"descending"`.
372
-
373
- If a single value is specified and it evaluates to false it is ignored;
374
- otherwise it gets converted to a string.
375
- For example:
376
-
377
- .item{:class => @item.is_empty? && "empty"}
378
-
379
- could render as either of:
380
-
381
- class="item"
382
- class="item empty"
383
-
384
311
  #### HTML-style Attributes: `()`
385
312
 
386
313
  Haml also supports a terser, less Ruby-specific attribute syntax
@@ -499,21 +426,6 @@ or using `true` and `false`:
499
426
 
500
427
  %input(selected=true)
501
428
 
502
- #### HTML5 Custom Data Attributes
503
-
504
- HTML5 allows for adding [custom non-visible data attributes](http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data)
505
- to elements using attribute names beginning with `data-`.
506
- Custom data attributes can be used in Haml by using the key `:data` with a Hash value
507
- in an attribute hash.
508
- Each of the key/value pairs in the Hash will be transformed into a custom data attribute.
509
- For example:
510
-
511
- %a{:href=>"/posts", :data => {:author_id => 123}} Posts By Author
512
-
513
- will render as:
514
-
515
- <a data-author_id='123' href='/posts'>Posts By Author</a>
516
-
517
429
  ### Class and ID: `.` and `#`
518
430
 
519
431
  The period and pound sign are borrowed from CSS.
@@ -539,11 +451,11 @@ is compiled to:
539
451
 
540
452
  And,
541
453
 
542
- %div#content
543
- %div.articles
544
- %div.article.title Doogie Howser Comes Out
545
- %div.article.date 2006-11-05
546
- %div.article.entry
454
+ #content
455
+ .articles
456
+ .article.title Doogie Howser Comes Out
457
+ .article.date 2006-11-05
458
+ .article.entry
547
459
  Neil Patrick Harris would like to dispel any rumors that he is straight
548
460
 
549
461
  is compiled to:
@@ -558,22 +470,6 @@ is compiled to:
558
470
  </div>
559
471
  </div>
560
472
 
561
- These shortcuts can be combined with long-hand attributes;
562
- the two values will be merged together
563
- as though they were all placed in an array
564
- (see [the documentation on `:class` and `:id` attributes](#class-and-id-attributes)).
565
- For example:
566
-
567
- %div#Article.article.entry{:id => @article.number, :class => @article.visibility}
568
-
569
- is equivalent to
570
-
571
- %div{:id => ['Article', @article.number], :class => ['article', 'entry', @article.visibility]} Gabba Hey
572
-
573
- and could compile to:
574
-
575
- <div class="article entry visible" id="Article_27">Gabba Hey</div>
576
-
577
473
  #### Implicit Div Elements
578
474
 
579
475
  Because divs are used so often, they're the default elements.
@@ -713,29 +609,6 @@ is compiled to:
713
609
  Hello!
714
610
  </div>
715
611
 
716
- If you require that the class be something other than the underscored
717
- object's class, you can implement the `haml_object_ref` method on the object.
718
-
719
- # file: app/models/crazy_user.rb
720
-
721
- class CrazyUser < ActiveRecord::Base
722
- def haml_object_ref
723
- "a_crazy_user"
724
- end
725
- end
726
-
727
- -# file: app/views/users/show.haml
728
-
729
- %div[@user]
730
- Hello!
731
-
732
- is compiled to:
733
-
734
- <div class='a_crazy_user' id='a_crazy_user_15'>
735
- Hello!
736
- </div>
737
-
738
-
739
612
  ## Doctype: `!!!`
740
613
 
741
614
  When describing HTML documents with Haml,
@@ -767,7 +640,7 @@ is compiled to:
767
640
  </html>
768
641
 
769
642
  You can also specify the specific doctype after the `!!!`
770
- When the [`:format`](#format-option) is set to `:xhtml` (the default except in Rails 3),
643
+ When the [`:format`](#format) is set to `:xhtml` (the default),
771
644
  the following doctypes are supported:
772
645
 
773
646
  `!!!`
@@ -798,11 +671,7 @@ the following doctypes are supported:
798
671
  : XHTML Mobile 1.2<br/>
799
672
  `<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">`
800
673
 
801
- `!!! RDFa`
802
- : XHTML+RDFa 1.0<br/>
803
- `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">`
804
-
805
- When the [`:format`](#format-option) option is set to `:html4`,
674
+ When the [`:format`](#format) option is set to `:html4`,
806
675
  the following doctypes are supported:
807
676
 
808
677
  `!!!`
@@ -817,7 +686,7 @@ the following doctypes are supported:
817
686
  : HTML 4.01 Frameset<br/>
818
687
  `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">`
819
688
 
820
- When the [`:format`](#format-option) option is set to `:html5`,
689
+ When the [`:format`](#format) option is set to `:html5`,
821
690
  `!!!` is always `<!DOCTYPE html>`.
822
691
 
823
692
  If you're not using the UTF-8 character set for your document,
@@ -958,14 +827,6 @@ would be compiled to
958
827
 
959
828
  <p>hello</p>
960
829
 
961
- A line of Ruby code can be stretched over multiple lines
962
- as long as each line but the last ends with a comma.
963
- For example:
964
-
965
- = link_to_remote "Add to cart",
966
- :url => { :action => "add", :id => product.id },
967
- :update => { :success => "cart", :failure => "error" }
968
-
969
830
  Note that it's illegal to nest code within a tag that ends with `=`.
970
831
 
971
832
  ### Running Ruby: `-`
@@ -990,14 +851,6 @@ is compiled to:
990
851
  hello there you!
991
852
  </p>
992
853
 
993
- A line of Ruby code can be stretched over multiple lines
994
- as long as each line but the last ends with a comma.
995
- For example:
996
-
997
- - links = {:home => "/",
998
- :docs => "/docs",
999
- :about => "/about"}
1000
-
1001
854
  #### Ruby Blocks
1002
855
 
1003
856
  Ruby blocks, like XHTML tags, don't need to be explicitly closed in Haml.
@@ -1211,11 +1064,6 @@ when you don't want lines starting with `.` or `-` to be parsed.
1211
1064
  Surrounds the filtered text with `<script>` and CDATA tags.
1212
1065
  Useful for including inline Javascript.
1213
1066
 
1214
- {#css-filter}
1215
- ### `:css`
1216
- Surrounds the filtered text with `<style>` and CDATA tags.
1217
- Useful for including inline CSS.
1218
-
1219
1067
  {#cdata-filter}
1220
1068
  ### `:cdata`
1221
1069
  Surrounds the filtered text with CDATA tags.
@@ -1243,7 +1091,7 @@ See also [Whitespace Preservation](#whitespace_preservation).
1243
1091
 
1244
1092
  {#erb-filter}
1245
1093
  ### `:erb`
1246
- Parses the filtered text with ERb, like an RHTML template.
1094
+ Parses the filtered text with ERB, like an RHTML template.
1247
1095
  Not available if the [`:suppress_eval`](#suppress_eval-option) option is set to true.
1248
1096
  Embedded Ruby code is evaluated in the same context as the Haml template.
1249
1097
 
@@ -1280,7 +1128,7 @@ It's placed at the end of a line (after some whitespace)
1280
1128
  and means that all following lines that end with `|`
1281
1129
  will be evaluated as though they were on the same line.
1282
1130
  **Note that even the last line in the multiline block
1283
- should end with `|`.**
1131
+ should end wit `|`.**
1284
1132
  For example:
1285
1133
 
1286
1134
  %whoo
@@ -1305,19 +1153,11 @@ in their Haml templates.
1305
1153
  If you find yourself using multiline declarations, stop and think:
1306
1154
  could I do this better with a helper?
1307
1155
 
1308
- Note that there are a few cases where it's useful to allow
1309
- something to flow over onto multiple lines in a non-awkward manner.
1310
- One of these is HTML attributes.
1156
+ Note that there is one case where it's useful to allow
1157
+ something to flow over onto multiple lines in a non-awkward manner: attributes.
1311
1158
  Some elements just have lots of attributes,
1312
1159
  so you can wrap attributes without using `|` (see [Attributes](#attributes)).
1313
1160
 
1314
- In addition, sometimes you need to call Ruby methods or declare data structures
1315
- that just need a lot of template information.
1316
- So data structures and functions that require lots of arguments
1317
- can be wrapped over multiple lines,
1318
- as long as each line but the last ends in a comma
1319
- (see [Inserting Ruby](#inserting_ruby_)).
1320
-
1321
1161
  ## Whitespace Preservation
1322
1162
 
1323
1163
  Sometimes you don't want Haml to indent all your text.
@@ -3,1165 +3,6 @@
3
3
  * Table of contents
4
4
  {:toc}
5
5
 
6
- ## 3.0.23
7
-
8
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.23).
9
-
10
- * Fix the error message for unloadable modules when running the executables under Ruby 1.9.2.
11
-
12
- ### `@charset` Change
13
-
14
- The behavior of `@charset` has changed in version 3.0.23
15
- in order to work around a bug in Safari,
16
- where `@charset` declarations placed anywhere other than the beginning of the document
17
- cause some CSS rules to be ignored.
18
- This change also makes `@charset`s in imported files behave in a more useful way.
19
-
20
- #### Ruby 1.9
21
-
22
- When using Ruby 1.9, which keeps track of the character encoding of the Sass document internally,
23
- `@charset` directive in the Sass stylesheet and any stylesheets it imports
24
- are no longer directly output to the generated CSS.
25
- They're still used for determining the encoding of the input and output stylesheets,
26
- but they aren't rendered in the same way other directives are.
27
-
28
- Instead, Sass adds a single `@charset` directive at the beginning of the output stylesheet
29
- if necessary, whether or not the input stylesheet had a `@charset` directive.
30
- It will add this directive if and only if the output stylesheet contains non-ASCII characters.
31
- By default, the declared charset will be UTF-8,
32
- but if the Sass stylesheet declares a different charset then that will be used instead if possible.
33
-
34
- One important consequence of this scheme is that it's possible for a Sass file
35
- to import partials with different encodings (e.g. one encoded as UTF-8 and one as IBM866).
36
- The output will then be UTF-8, unless the importing stylesheet
37
- declares a different charset.
38
-
39
- #### Ruby 1.8
40
-
41
- Ruby 1.8 doesn't have good support for encodings, so it uses a simpler but less accurate
42
- scheme for figuring out what `@charset` declaration to use for the output stylesheet.
43
- It just takes the first `@charset` declaration to appear in the stylesheet
44
- or any of its imports and moves it to the beginning of the document.
45
- This means that under Ruby 1.8 it's *not* safe to import files with different encodings.
46
-
47
- ## 3.0.22
48
-
49
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.22).
50
-
51
- * Remove `vendor/sass`, which snuck into the gem by mistake
52
- and was causing trouble for Heroku users (thanks to [Jacques Crocker](http://railsjedi.com/)).
53
-
54
- * `sass-convert` now understands better when it's acceptable
55
- to remove parentheses from expressions.
56
-
57
- ## 3.0.21
58
-
59
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.21).
60
-
61
- * Fix the permissions errors for good.
62
-
63
- * Fix more `#options` attribute errors.
64
-
65
- ## 3.0.20
66
-
67
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.20).
68
-
69
- * Fix some permissions errors.
70
-
71
- * Fix `#options` attribute errors when CSS functions were used with commas.
72
-
73
- ## 3.0.19
74
-
75
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
76
-
77
- * Make the alpha value for `rgba` colors respect {Sass::Script::Number::PRECISION}.
78
-
79
- * Remove all newlines in selectors in `:compressed` mode.
80
-
81
- * Make color names case-insensitive.
82
-
83
- * Properly detect SCSS files when using `sass -c`.
84
-
85
- * Remove spaces after commas in `:compressed` mode.
86
-
87
- * Allow the `--unix-newlines` flag to work on Unix, where it's a no-op.
88
-
89
- ## 3.0.18
90
-
91
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.18).
92
-
93
- * Don't require `rake` in the gemspec, for bundler compatibility under
94
- JRuby. Thanks to [Gordon McCreight](http://www.gmccreight.com/blog).
95
-
96
- * Add a command-line option `--stop-on-error` that causes Sass to exit
97
- when a file fails to compile using `--watch` or `--update`.
98
-
99
- * Fix a bug in `haml_tag` that would allow duplicate attributes to be added
100
- and make `data-` attributes not work.
101
-
102
- * Get rid of the annoying RDoc errors on install.
103
-
104
- * Disambiguate references to the `Rails` module when `haml-rails` is installed.
105
-
106
- * Allow `@import` in SCSS to import multiple files in the same `@import` rule.
107
-
108
- ## 3.0.17
109
-
110
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.17).
111
-
112
- * Disallow `#{}` interpolation in `@media` queries or unrecognized directives.
113
- This was never allowed, but now it explicitly throws an error
114
- rather than just producing invalid CSS.
115
-
116
- * Make `sass --watch` not throw an error when passed a single file or directory.
117
-
118
- * Understand that mingw counts as Windows.
119
-
120
- * Make `sass --update` return a non-0 exit code if one or more files being updated
121
- contained an error.
122
-
123
- ## 3.0.16
124
-
125
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.16).
126
-
127
- * Fix a bug where certain sorts of comments would get improperly
128
- rendered in the `:compact` style.
129
-
130
- * Always allow a trailing `*/` in loud comments in the indented syntax.
131
-
132
- * Fix a performance issue with SCSS parsing in rare cases.
133
- Thanks to [Chris Eppstein](http://chriseppstein.github.com).
134
-
135
- * Use better heuristics for figuring out when someone might be using
136
- the wrong syntax with `sass --watch`.
137
-
138
- ## 3.0.15
139
-
140
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.15).
141
-
142
- * Fix a bug where `sass --watch` and `sass --update` were completely broken.
143
-
144
- * Allow `@import`ed values to contain commas.
145
-
146
- ## 3.0.14
147
-
148
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.14).
149
-
150
- * Properly parse paths with drive letters on Windows (e.g. `C:\Foo\Bar.sass`)
151
- in the Sass executable.
152
-
153
- * Compile Sass files in a deterministic order.
154
-
155
- * Fix a bug where comments after `@if` statements in SCSS
156
- weren't getting passed through to the output document.
157
-
158
- ## 3.0.13
159
-
160
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.13).
161
-
162
- ## CSS `@import` Directives
163
-
164
- Sass is now more intelligent about when to compile `@import` directives to plain CSS.
165
- Any of the following conditions will cause a literal CSS `@import`:
166
-
167
- * Importing a path with a `.css` extension (e.g. `@import "foo.css"`).
168
- * Importing a path with a media type (e.g. `@import "foo" screen;`).
169
- * Importing an HTTP path (e.g. `@import "http://foo.com/style.css"`).
170
- * Importing any URL (e.g. `@import url(foo)`).
171
-
172
- The former two conditions always worked, but the latter two are new.
173
-
174
- ## `-moz-calc` Support
175
-
176
- The new [`-moz-calc()` function](http://hacks.mozilla.org/2010/06/css3-calc/) in Firefox 4
177
- will now be properly parsed by Sass.
178
- `calc()` was already supported, but because the parsing rules are different
179
- than for normal CSS functions, this had to be expanded to include `-moz-calc`.
180
-
181
- In anticipation of wider browser support, in fact,
182
- *any* function named `-*-calc` (such as `-webkit-calc` or `-ms-calc`)
183
- will be parsed the same as the `calc` function.
184
-
185
- ## `:-moz-any` Support
186
-
187
- The [`:-moz-any` pseudoclass selector](http://hacks.mozilla.org/2010/05/moz-any-selector-grouping/)
188
- is now parsed by Sass.
189
-
190
- ## `--require` Flag
191
-
192
- The Sass command-line executable can now require Ruby files
193
- using the `--require` flag (or `-r` for short).
194
-
195
- ## Rails Support
196
-
197
- Make sure the default Rails options take precedence over the default non-Rails options.
198
- This makes `./script/server --daemon` work again.
199
-
200
- ### Rails 3 Support
201
-
202
- Support for Rails 3 versions prior to beta 4 has been removed.
203
- Upgrade to Rails 3.0.0.beta4 if you haven't already.
204
-
205
- ## 3.0.12
206
-
207
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.12).
208
-
209
- ## Rails 3 Support
210
-
211
- Apparently the last version broke in new and exciting ways under Rails 3,
212
- due to the inconsistent load order caused by certain combinations of gems.
213
- 3.0.12 hacks around that inconsistency, and *should* be fully Rails 3-compatible.
214
-
215
- ### Deprecated: Rails 3 Beta 3
216
-
217
- Haml's support for Rails 3.0.0.beta.3 has been deprecated.
218
- Haml 3.0.13 will only support 3.0.0.beta.4.
219
-
220
- ## 3.0.11
221
-
222
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.11).
223
-
224
- There were no changes made to Haml between versions 3.0.10 and 3.0.11.
225
-
226
- ## Rails 3 Support
227
-
228
- Make sure Sass *actually* regenerates stylesheets under Rails 3.
229
- The fix in 3.0.10 didn't work because the Rack stack we were modifying
230
- wasn't reloaded at the proper time.
231
-
232
- ## Bug Fixes
233
-
234
- * Give a decent error message when `--recursive` is used
235
- in `sass-convert` without a directory.
236
-
237
- ## 3.0.10
238
-
239
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.10).
240
-
241
- ### Appengine-JRuby Support
242
-
243
- The way we determine the location of the Haml installation
244
- no longer breaks the version of JRuby
245
- used by [`appengine-jruby`](http://code.google.com/p/appengine-jruby/).
246
-
247
- ### Rails 3 Support
248
-
249
- Sass will regenerate stylesheets under Rails 3
250
- even when no controllers are being accessed.
251
-
252
- ### Other Improvements
253
-
254
- * When using `sass-convert --from sass2 --to sass --recursive`,
255
- suggest the use of `--in-place` as well.
256
-
257
- ## 3.0.9
258
-
259
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.9).
260
-
261
- There were no changes made to Sass between versions 3.0.8 and 3.0.9.
262
- A bug in Gemcutter caused the gem to be uploaded improperly.
263
-
264
- ## 3.0.8
265
-
266
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8).
267
-
268
- * Fix a bug with Rails versions prior to Rails 3.
269
-
270
- ## 3.0.7
271
-
272
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.7).
273
-
274
- ### Encoding Support
275
-
276
- Sass 3.0.7 adds support for `@charset` for declaring the encoding of a stylesheet.
277
- For details see {file:SASS_REFERENCE.md#encodings the reference}.
278
-
279
- The `sass` and `sass-convert` executables also now take an `-E` option
280
- for specifying the encoding of Sass/SCSS/CSS files.
281
-
282
- ### Bug Fixes
283
-
284
- * When compiling a file named `.sass` but with SCSS syntax specified,
285
- use the latter (and vice versa).
286
-
287
- * Fix a bug where interpolation would cause some selectors to render improperly.
288
-
289
- * If a line in a Sass comment starts with `*foo`,
290
- render it as `*foo` rather than `* *foo`.
291
-
292
- ## 3.0.6
293
-
294
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.6).
295
-
296
- There were no changes made to Sass between versions 3.0.5 and 3.0.6.
297
-
298
- ## 3.0.5
299
-
300
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.5).
301
-
302
- ### `#{}` Interpolation in Properties
303
-
304
- Previously, using `#{}` in some places in properties
305
- would cause a syntax error.
306
- Now it can be used just about anywhere.
307
-
308
- Note that when `#{}` is used near operators like `/`,
309
- those operators are treated as plain CSS
310
- rather than math operators.
311
- For example:
312
-
313
- p {
314
- $font-size: 12px;
315
- $line-height: 30px;
316
- font: #{$font-size}/#{$line-height};
317
- }
318
-
319
- is compiled to:
320
-
321
- p {
322
- font: 12px/30px;
323
- }
324
-
325
- This is useful, since normally {file:SASS_REFERENCE.md#division-and-slash
326
- a slash with variables is treated as division}.
327
-
328
- ### Recursive Mixins
329
-
330
- Mixins that include themselves will now print
331
- much more informative error messages.
332
- For example:
333
-
334
- @mixin foo {@include bar}
335
- @mixin bar {@include foo}
336
- @include foo
337
-
338
- will print:
339
-
340
- An @include loop has been found:
341
- foo includes bar
342
- bar includes foo
343
-
344
- Although it was previously possible to use recursive mixins
345
- without causing infinite looping, this is now disallowed,
346
- since there's no good reason to do it.
347
-
348
- ### Rails 3 Support
349
-
350
- Fix Sass configuration under Rails 3.
351
- Thanks [Dan Cheail](http://github.com/codeape).
352
-
353
- ### `sass --no-cache`
354
-
355
- Make the `--no-cache` flag properly forbid Sass from writing `.sass-cache` files.
356
-
357
- ## 3.0.4
358
-
359
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.4).
360
-
361
- * Raise an informative error when function arguments have a mispaced comma,
362
- as in `foo(bar, )`.
363
-
364
- * Fix a performance problem when using long function names
365
- such as `-moz-linear-gradient`.
366
-
367
- ## 3.0.3
368
-
369
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.3).
370
-
371
- ### Rails 3 Support
372
-
373
- Make sure Sass is loaded properly when using Rails 3
374
- along with non-Rails-3-compatible plugins like some versions of `will_paginate`.
375
-
376
- Also, In order to make some Rails loading errors like the above easier to debug,
377
- Sass will now raise an error if `Rails.root` is `nil` when Sass is loading.
378
- Previously, this would just cause the paths to be mis-set.
379
-
380
- ### Merb Support
381
-
382
- Merb, including 1.1.0 as well as earlier versions,
383
- should *really* work with this release.
384
-
385
- ### Bug Fixes
386
-
387
- * Raise an informative error when mixin arguments have a mispaced comma,
388
- as in `@include foo(bar, )`.
389
-
390
- * Make sure SassScript subtraction happens even when nothing else dynamic is going on.
391
-
392
- * Raise an error when colors are used with the wrong number of digits.
393
-
394
- ## 3.0.2
395
-
396
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.2).
397
-
398
- ### Merb 1.1.0 Support
399
-
400
- Fixed a bug inserting the Sass plugin into the Merb 1.1.0 Rack application.
401
-
402
- ### Bug Fixes
403
-
404
- * Allow identifiers to begin with multiple underscores.
405
-
406
- * Don't raise an error when using `haml --rails` with older Rails versions.
407
-
408
- ## 3.0.1
409
-
410
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.1).
411
-
412
- ### Installation in Rails
413
-
414
- `haml --rails` is no longer necessary for installing Sass in Rails.
415
- Now all you need to do is add `gem "haml"` to the Gemfile for Rails 3,
416
- or add `config.gem "haml"` to `config/environment.rb` for previous versions.
417
-
418
- `haml --rails` will still work,
419
- but it has been deprecated and will print an error message.
420
- It will not work in the next version of Sass.
421
-
422
- ### Rails 3 Beta Integration
423
-
424
- * Make sure manually importing the Sass Rack plugin still works with Rails,
425
- even though it's not necessary now.
426
-
427
- * Allow Sass to be configured in Rails even when it's being lazy-loaded.
428
-
429
- ### `:template_location` Methods
430
-
431
- The {file:SASS_REFERENCE.md#template_location-option `:template_location` option}
432
- can be either a String, a Hash, or an Array.
433
- This makes it difficult to modify or use with confidence.
434
- Thus, three new methods have been added for handling it:
435
-
436
- * {Sass::Plugin#template_location_array} --
437
- Returns the template locations and CSS locations formatted as an array.
438
-
439
- * {Sass::Plugin#add_template_location} --
440
- Converts the template location option to an array and adds a new location.
441
-
442
- * {Sass::Plugin#remove_template_location} --
443
- Converts the template location option to an array and removes an existing location.
444
-
445
- ## 3.0.0
446
- {#3-0-0}
447
-
448
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.0).
449
-
450
- ### Deprecations -- Must Read!
451
- {#3-0-0-deprecations}
452
-
453
- * Using `=` for SassScript properties and variables is deprecated,
454
- and will be removed in Sass 3.2.
455
- Use `:` instead.
456
- See also [this changelog entry](#3-0-0-sass-script-context)
457
-
458
- * Because of the above, property values using `:`
459
- will be parsed more thoroughly than they were before.
460
- Although all valid CSS3 properties
461
- as well as most hacks and proprietary syntax should be supported,
462
- it's possible that some properties will break.
463
- If this happens, please report it to [the Sass mailing list](http://groups.google.com/group/haml).
464
-
465
- * In addition, setting the default value of variables
466
- with `||=` is now deprecated
467
- and will be removed in Sass 3.2.
468
- Instead, add `!default` to the end of the value.
469
- See also [this changelog entry](#3-0-0-default-flag)
470
-
471
- * The `!` prefix for variables is deprecated,
472
- and will be removed in Sass 3.2.
473
- Use `$` as a prefix instead.
474
- See also [this changelog entry](#3-0-0-dollar-prefix).
475
-
476
- * The `css2sass` command-line tool has been deprecated,
477
- and will be removed in Sass 3.2.
478
- Use the new `sass-convert` tool instead.
479
- See also [this changelog entry](#3-0-0-sass-convert).
480
-
481
- * Selector parent references using `&` can now only be used
482
- where element names are valid.
483
- This is because Sass 3 fully parses selectors
484
- to support the new [`@extend` directive](#3-0-0-extend),
485
- and it's possible that the `&` could be replaced by an element name.
486
-
487
- ### SCSS (Sassy CSS)
488
-
489
- Sass 3 introduces a new syntax known as SCSS
490
- which is fully compatible with the syntax of CSS3,
491
- while still supporting the full power of Sass.
492
- This means that every valid CSS3 stylesheet
493
- is a valid SCSS file with the same meaning.
494
- In addition, SCSS understands most CSS hacks
495
- and vendor-specific syntax, such as [IE's old `filter` syntax](http://msdn.microsoft.com/en-us/library/ms533754%28VS.85%29.aspx).
496
-
497
- SCSS files use the `.scss` extension.
498
- They can import `.sass` files, and vice-versa.
499
- Their syntax is fully described in the {file:SASS_REFERENCE.md Sass reference};
500
- if you're already familiar with Sass, though,
501
- you may prefer the {file:SCSS_FOR_SASS_USERS.md intro to SCSS for Sass users}.
502
-
503
- Since SCSS is a much more approachable syntax for those new to Sass,
504
- it will be used as the default syntax for the reference,
505
- as well as for most other Sass documentation.
506
- The indented syntax will continue to be fully supported, however.
507
-
508
- Sass files can be converted to SCSS using the new `sass-convert` command-line tool.
509
- For example:
510
-
511
- # Convert a Sass file to SCSS
512
- $ sass-convert style.sass style.scss
513
-
514
- **Note that if you're converting a Sass file written for Sass 2**,
515
- you should use the `--from sass2` flag.
516
- For example:
517
-
518
- # Convert a Sass file to SCSS
519
- $ sass-convert --from sass2 style.sass style.scss
520
-
521
- # Convert all Sass files to SCSS
522
- $ sass-convert --recursive --in-place --from sass2 --to scss stylesheets/
523
-
524
- ### Syntax Changes {#3-0-0-syntax-changes}
525
-
526
- #### SassScript Context
527
- {#3-0-0-sass-script-context}
528
-
529
- The `=` character is no longer required for properties that use SassScript
530
- (that is, variables and operations).
531
- All properties now use SassScript automatically;
532
- this means that `:` should be used instead.
533
- Variables should also be set with `:`.
534
- For example, what used to be
535
-
536
- // Indented syntax
537
- .page
538
- color = 5px + 9px
539
-
540
- should now be
541
-
542
- // Indented syntax
543
- .page
544
- color: 5px + 9px
545
-
546
- This means that SassScript is now an extension of the CSS3 property syntax.
547
- All valid CSS3 properties are valid SassScript,
548
- and will compile without modification
549
- (some invalid properties work as well, such as Microsoft's proprietary `filter` syntax).
550
- This entails a few changes to SassScript to make it fully CSS3-compatible,
551
- which are detailed below.
552
-
553
- This also means that Sass will now be fully parsing all property values,
554
- rather than passing them through unchanged to the CSS.
555
- Although care has been taken to support all valid CSS3,
556
- as well as hacks and proprietary syntax,
557
- it's possible that a property that worked in Sass 2 won't work in Sass 3.
558
- If this happens, please report it to [the Sass mailing list](http://groups.google.com/group/haml).
559
-
560
- Note that if `=` is used,
561
- SassScript will be interpreted as backwards-compatibly as posssible.
562
- In particular, the changes listed below don't apply in an `=` context.
563
-
564
- The `sass-convert` command-line tool can be used
565
- to upgrade Sass files to the new syntax using the `--in-place` flag.
566
- For example:
567
-
568
- # Upgrade style.sass:
569
- $ sass-convert --in-place style.sass
570
-
571
- # Upgrade all Sass files:
572
- $ sass-convert --recursive --in-place --from sass2 --to sass stylesheets/
573
-
574
- ##### Quoted Strings
575
-
576
- Quoted strings (e.g. `"foo"`) in SassScript now render with quotes.
577
- In addition, unquoted strings are no longer deprecated,
578
- and render without quotes.
579
- This means that almost all strings that had quotes in Sass 2
580
- should not have quotes in Sass 3.
581
-
582
- Although quoted strings render with quotes when used with `:`,
583
- they do not render with quotes when used with `#{}`.
584
- This allows quoted strings to be used for e.g. selectors
585
- that are passed to mixins.
586
-
587
- Strings can be forced to be quoted and unquoted using the new
588
- \{Sass::Script::Functions#unquote unquote} and \{Sass::Script::Functions#quote quote}
589
- functions.
590
-
591
- ##### Division and `/`
592
-
593
- Two numbers separated by a `/` character
594
- are allowed as property syntax in CSS,
595
- e.g. for the `font` property.
596
- SassScript also uses `/` for division, however,
597
- which means it must decide what to do
598
- when it encounters numbers separated by `/`.
599
-
600
- For CSS compatibility, SassScript does not perform division by default.
601
- However, division will be done in almost all cases where division is intended.
602
- In particular, SassScript will perform division
603
- in the following three situations:
604
-
605
- 1. If the value, or any part of it, is stored in a variable.
606
- 2. If the value is surrounded by parentheses.
607
- 3. If the value is used as part of another arithmetic expression.
608
-
609
- For example:
610
-
611
- p
612
- font: 10px/8px
613
- $width: 1000px
614
- width: $width/2
615
- height: (500px/2)
616
- margin-left: 5px + 8px/2px
617
-
618
- is compiled to:
619
-
620
- p {
621
- font: 10px/8px;
622
- width: 500px;
623
- height: 250px;
624
- margin-left: 9px; }
625
-
626
- ##### Variable Defaults
627
-
628
- Since `=` is no longer used for variable assignment,
629
- assigning defaults to variables with `||=` no longer makes sense.
630
- Instead, the `!default` flag
631
- should be added to the end of the variable value.
632
- This syntax is meant to be similar to CSS's `!important` flag.
633
- For example:
634
-
635
- $var: 12px !default;
636
-
637
- #### Variable Prefix Character
638
- {#3-0-0-dollar-prefix}
639
-
640
- The Sass variable character has been changed from `!`
641
- to the more aesthetically-appealing `$`.
642
- For example, what used to be
643
-
644
- !width = 13px
645
- .icon
646
- width = !width
647
-
648
- should now be
649
-
650
- $width: 13px
651
- .icon
652
- width: $width
653
-
654
- The `sass-convert` command-line tool can be used
655
- to upgrade Sass files to the new syntax using the `--in-place` flag.
656
- For example:
657
-
658
- # Upgrade style.sass:
659
- $ sass-convert --in-place style.sass
660
-
661
- # Upgrade all Sass files:
662
- $ sass-convert --recursive --in-place --from sass2 --to sass stylesheets/
663
-
664
- `!` may still be used, but it's deprecated and will print a warning.
665
- It will be removed in the next version of Sass, 3.2.
666
-
667
- #### Variable and Mixin Names
668
-
669
- SassScript variable and mixin names may now contain hyphens.
670
- In fact, they may be any valid CSS3 identifier.
671
- For example:
672
-
673
- $prettiest-color: #542FA9
674
- =pretty-text
675
- color: $prettiest-color
676
-
677
- In order to allow frameworks like [Compass](http://compass-style.org)
678
- to use hyphens in variable names
679
- while maintaining backwards-compatibility,
680
- variables and mixins using hyphens may be referred to
681
- with underscores, and vice versa.
682
- For example:
683
-
684
- $prettiest-color: #542FA9
685
- .pretty
686
- // Using an underscore instead of a hyphen works
687
- color: $prettiest_color
688
-
689
- #### Single-Quoted Strings
690
-
691
- SassScript now supports single-quoted strings.
692
- They behave identically to double-quoted strings,
693
- except that single quotes need to be backslash-escaped
694
- and double quotes do not.
695
-
696
- #### Mixin Definition and Inclusion
697
-
698
- Sass now supports the `@mixin` directive as a way of defining mixins (like `=`),
699
- as well as the `@include` directive as a way of including them (like `+`).
700
- The old syntax is *not* deprecated,
701
- and the two are fully compatible.
702
- For example:
703
-
704
- @mixin pretty-text
705
- color: $prettiest-color
706
-
707
- a
708
- @include pretty-text
709
-
710
- is the same as:
711
-
712
- =pretty-text
713
- color: $prettiest-color
714
-
715
- a
716
- +pretty-text
717
-
718
- #### Sass Properties
719
-
720
- New-style properties (with the colon after the name) in indented syntax
721
- now allow whitespace before the colon. For example:
722
-
723
- foo
724
- color : blue
725
-
726
- #### Sass `@import`
727
-
728
- The Sass `@import` statement now allows non-CSS files to be specified with quotes,
729
- for similarity with the SCSS syntax. For example, `@import "foo.sass"`
730
- will now import the `foo.sass` file, rather than compiling to `@import "foo.sass";`.
731
-
732
- ### `@extend`
733
- {#3-0-0-extend}
734
-
735
- There are often cases when designing a page
736
- when one class should have all the styles of another class,
737
- as well as its own specific styles.
738
- The most common way of handling this is to use both the more general class
739
- and the more specific class in the HTML.
740
- For example, suppose we have a design for a normal error
741
- and also for a serious error. We might write our markup like so:
742
-
743
- <div class="error seriousError">
744
- Oh no! You've been hacked!
745
- </div>
746
-
747
- And our styles like so:
748
-
749
- .error {
750
- border: 1px #f00;
751
- background-color: #fdd;
752
- }
753
- .seriousError {
754
- border-width: 3px;
755
- }
756
-
757
- Unfortunately, this means that we have to always remember
758
- to use `.error` with `.seriousError`.
759
- This is a maintenance burden, leads to tricky bugs,
760
- and can bring non-semantic style concerns into the markup.
761
-
762
- The `@extend` directive avoids these problems
763
- by telling Sass that one selector should inherit the styles of another selector.
764
- For example:
765
-
766
- .error {
767
- border: 1px #f00;
768
- background-color: #fdd;
769
- }
770
- .seriousError {
771
- @extend .error;
772
- border-width: 3px;
773
- }
774
-
775
- This means that all styles defined for `.error`
776
- are also applied to `.seriousError`,
777
- in addition to the styles specific to `.seriousError`.
778
- In effect, everything with class `.seriousError` also has class `.error`.
779
-
780
- Other rules that use `.error` will work for `.seriousError` as well.
781
- For example, if we have special styles for errors caused by hackers:
782
-
783
- .error.intrusion {
784
- background-image: url("/image/hacked.png");
785
- }
786
-
787
- Then `<div class="seriousError intrusion">`
788
- will have the `hacked.png` background image as well.
789
-
790
- #### How it Works
791
-
792
- `@extend` works by inserting the extending selector (e.g. `.seriousError`)
793
- anywhere in the stylesheet that the extended selector (.e.g `.error`) appears.
794
- Thus the example above:
795
-
796
- .error {
797
- border: 1px #f00;
798
- background-color: #fdd;
799
- }
800
- .error.intrusion {
801
- background-image: url("/image/hacked.png");
802
- }
803
- .seriousError {
804
- @extend .error;
805
- border-width: 3px;
806
- }
807
-
808
- is compiled to:
809
-
810
- .error, .seriousError {
811
- border: 1px #f00;
812
- background-color: #fdd; }
813
-
814
- .error.intrusion, .seriousError.intrusion {
815
- background-image: url("/image/hacked.png"); }
816
-
817
- .seriousError {
818
- border-width: 3px; }
819
-
820
- When merging selectors, `@extend` is smart enough
821
- to avoid unnecessary duplication,
822
- so something like `.seriousError.seriousError` gets translated to `.seriousError`.
823
- In addition, it won't produce selectors that can't match anything, like `#main#footer`.
824
-
825
- See also {file:SASS_REFERENCE.md#extend the `@extend` reference documentation}.
826
-
827
- ### Colors
828
-
829
- SassScript color values are much more powerful than they were before.
830
- Support was added for alpha channels,
831
- and most of Chris Eppstein's [compass-colors](http://chriseppstein.github.com/compass-colors) plugin
832
- was merged in, providing color-theoretic functions for modifying colors.
833
-
834
- One of the most interesting of these functions is {Sass::Script::Functions#mix mix},
835
- which mixes two colors together.
836
- This provides a much better way of combining colors and creating themes
837
- than standard color arithmetic.
838
-
839
- #### Alpha Channels
840
-
841
- Sass now supports colors with alpha channels,
842
- constructed via the {Sass::Script::Functions#rgba rgba}
843
- and {Sass::Script::Functions#hsla hsla} functions.
844
- Alpha channels are unaffected by color arithmetic.
845
- However, the {Sass::Script::Functions#opacify opacify}
846
- and {Sass::Script::Functions#transparentize transparentize} functions
847
- allow colors to be made more and less opaque, respectively.
848
-
849
- Sass now also supports functions that return the values of the
850
- {Sass::Script::Functions#red red},
851
- {Sass::Script::Functions#blue blue},
852
- {Sass::Script::Functions#green green},
853
- and {Sass::Script::Functions#alpha alpha}
854
- components of colors.
855
-
856
- #### HSL Colors
857
-
858
- Sass has many new functions for using the HSL values of colors.
859
- For an overview of HSL colors, check out [the CSS3 Spec](http://www.w3.org/TR/css3-color/#hsl-color).
860
- All these functions work just as well on RGB colors
861
- as on colors constructed with the {Sass::Script::Functions#hsl hsl} function.
862
-
863
- * The {Sass::Script::Functions#lighten lighten}
864
- and {Sass::Script::Functions#darken darken}
865
- functions adjust the lightness of a color.
866
-
867
- * The {Sass::Script::Functions#saturate saturate}
868
- and {Sass::Script::Functions#desaturate desaturate}
869
- functions adjust the saturation of a color.
870
-
871
- * The {Sass::Script::Functions#adjust_hue adjust-hue}
872
- function adjusts the hue of a color.
873
-
874
- * The {Sass::Script::Functions#hue hue},
875
- {Sass::Script::Functions#saturation saturation},
876
- and {Sass::Script::Functions#lightness lightness}
877
- functions return the corresponding HSL values of the color.
878
-
879
- * The {Sass::Script::Functions#grayscale grayscale}
880
- function converts a color to grayscale.
881
-
882
- * The {Sass::Script::Functions#complement complement}
883
- function returns the complement of a color.
884
-
885
- ### Other New Functions
886
-
887
- Several other new functions were added to make it easier to have
888
- more flexible arguments to mixins and to enable deprecation
889
- of obsolete APIs.
890
-
891
- * {Sass::Script::Functions#type_of `type-of`} -- Returns the type of a value.
892
- * {Sass::Script::Functions#unit `unit`} --
893
- Returns the units associated with a number.
894
- * {Sass::Script::Functions#unitless `unitless`} --
895
- Returns whether a number has units or not.
896
- * {Sass::Script::Functions#comparable `comparable`} --
897
- Returns whether two numbers can be added or compared.
898
-
899
- ### Watching for Updates
900
- {#3-0-0-watch}
901
-
902
- The `sass` command-line utility has a new flag: `--watch`.
903
- `sass --watch` monitors files or directories for updated Sass files
904
- and compiles those files to CSS automatically.
905
- This will allow people not using Ruby or [Compass](http://compass-style.org)
906
- to use Sass without having to manually recompile all the time.
907
-
908
- Here's the syntax for watching a directory full of Sass files:
909
-
910
- sass --watch app/stylesheets:public/stylesheets
911
-
912
- This will watch every Sass file in `app/stylesheets`.
913
- Whenever one of them changes,
914
- the corresponding CSS file in `public/stylesheets` will be regenerated.
915
- Any files that import that file will be regenerated, too.
916
-
917
- The syntax for watching individual files is the same:
918
-
919
- sass --watch style.sass:out.css
920
-
921
- You can also omit the output filename if you just want it to compile to name.css.
922
- For example:
923
-
924
- sass --watch style.sass
925
-
926
- This will update `style.css` whenever `style.sass` changes.
927
-
928
- You can list more than one file and/or directory,
929
- and all of them will be watched:
930
-
931
- sass --watch foo/style:public/foo bar/style:public/bar
932
- sass --watch screen.sass print.sass awful-hacks.sass:ie.css
933
- sass --watch app/stylesheets:public/stylesheets public/stylesheets/test.sass
934
-
935
- File and directory watching is accessible from Ruby,
936
- using the {Sass::Plugin#watch} function.
937
-
938
- #### Bulk Updating
939
-
940
- Another new flag for the `sass` command-line utility is `--update`.
941
- It checks a group of Sass files to see if their CSS needs to be updated,
942
- and updates if so.
943
-
944
- The syntax for `--update` is just like watch:
945
-
946
- sass --update app/stylesheets:public/stylesheets
947
- sass --update style.sass:out.css
948
- sass --watch screen.sass print.sass awful-hacks.sass:ie.css
949
-
950
- In fact, `--update` work exactly the same as `--watch`,
951
- except that it doesn't continue watching the files
952
- after the first check.
953
-
954
- ### `sass-convert` (née `css2sass`) {#3-0-0-sass-convert}
955
-
956
- The `sass-convert` tool, which used to be known as `css2sass`,
957
- has been greatly improved in various ways.
958
- It now uses a full-fledged CSS3 parser,
959
- so it should be able to handle any valid CSS3,
960
- as well as most hacks and proprietary syntax.
961
-
962
- `sass-convert` can now convert between Sass and SCSS.
963
- This is normally inferred from the filename,
964
- but it can also be specified using the `--from` and `--to` flags.
965
- For example:
966
-
967
- $ generate-sass | sass-convert --from sass --to scss | consume-scss
968
-
969
- It's also now possible to convert a file in-place --
970
- that is, overwrite the old file with the new file.
971
- This is useful for converting files in the [Sass 2 syntax](#3-0-0-deprecations)
972
- to the new Sass 3 syntax,
973
- e.g. by doing `sass-convert --in-place --from sass2 style.sass`.
974
-
975
- #### `--recursive`
976
-
977
- The `--recursive` option allows `sass-convert` to convert an entire directory of files.
978
- `--recursive` requires both the `--from` and `--to` flags to be specified.
979
- For example:
980
-
981
- # Convert all .sass files in stylesheets/ to SCSS.
982
- # "sass2" means that these files are assumed to use the Sass 2 syntax.
983
- $ sass-convert --recursive --from sass2 --to scss stylesheets/
984
-
985
- #### `--dasherize`
986
-
987
- The `--dasherize` options converts all underscores to hyphens,
988
- which are now allowed as part of identifiers in Sass.
989
- Note that since underscores may still be used in place of hyphens
990
- when referring to mixins and variables,
991
- this won't cause any backwards-incompatibilities.
992
-
993
- #### Convert Less to SCSS
994
-
995
- `sass-convert` can also convert [Less](http://lesscss.org) files
996
- to SCSS (or the indented syntax, although I anticipate less interest in that).
997
- For example:
998
-
999
- # Convert all .less files in the current directory into .scss files
1000
- sass-convert --from less --to scss --recursive .
1001
-
1002
- This is done using the Less parser, so it requires that the `less` RubyGem be installed.
1003
-
1004
- ##### Incompatibilities
1005
-
1006
- Because of the reasonably substantial differences between Sass and Less,
1007
- there are some things that can't be directly translated,
1008
- and one feature that can't be translated at all.
1009
- In the tests I've run on open-source Less stylesheets,
1010
- none of these have presented issues, but it's good to be aware of them.
1011
-
1012
- First, Less doesn't distinguish fully between mixins and selector inheritance.
1013
- In Less, all classes and some other selectors may be used as mixins,
1014
- alongside more Sass-like mixins.
1015
- If a class is being used as a mixin,
1016
- it may also be used directly in the HTML,
1017
- so it's not safe to translate it into a Sass mixin.
1018
- What `sass-convert` does instead is leave the class in the stylesheet as a class,
1019
- and use {file:SASS_REFERENCE.md#extend `@extend`}
1020
- rather than {file:SASS_REFERENCE.md#including_a_mixin `@include`}
1021
- to take on the styles of that class.
1022
- Although `@extend` and mixins work quite differently,
1023
- using `@extend` here doesn't actually seem to make a difference in practice.
1024
-
1025
- Another issue with Less mixins is that Less allows nested selectors
1026
- (such as `.body .button` or `.colors > .teal`) to be used
1027
- as a means of "namespacing" mixins.
1028
- Sass's `@extend` doesn't work that way,
1029
- so it does away with the namespacing and just extends the base class
1030
- (so `.colors > .teal` becomes simply `@extend .teal`).
1031
- In practice, this feature doesn't seem to be widely-used,
1032
- but `sass-convert` will print a warning and leave a comment
1033
- when it encounters it just in case.
1034
-
1035
- Finally, Less has the ability to directly access variables and property values
1036
- defined in other selectors, which Sass does not support.
1037
- Whenever such an accessor is used,
1038
- `sass-convert` will print a warning
1039
- and comment it out in the SCSS output.
1040
- Like namespaced mixins, though,
1041
- this does not seem to be a widely-used feature.
1042
-
1043
- ### `@warn` Directive
1044
-
1045
- A new directive `@warn` has been added that allows Sass libraries to emit warnings.
1046
- This can be used to issue deprecation warnings, discourage sloppy use of mixins, etc.
1047
- `@warn` takes a single argument: a SassScript expression that will be
1048
- displayed on the console along with a stylesheet trace for locating the warning.
1049
- For example:
1050
-
1051
- @mixin blue-text {
1052
- @warn "The blue-text mixin is deprecated. Use new-blue-text instead.";
1053
- color: #00f;
1054
- }
1055
-
1056
- Warnings may be silenced with the new `--quiet` command line option,
1057
- or the corresponding {file:SASS_REFERENCE.md#quiet-option `:quiey` Sass option}.
1058
- This option will also affect warnings printed by Sass itself.
1059
- Warnings are off by default in the Rails, Rack, and Merb production environments.
1060
-
1061
- ### Sass::Plugin API
1062
-
1063
- {Sass::Plugin} now has a large collection of callbacks that allow users
1064
- to run code when various actions are performed.
1065
- For example:
1066
-
1067
- Sass::Plugin.on_updating_stylesheet do |template, css|
1068
- puts "#{template} has been compiled to #{css}!"
1069
- end
1070
-
1071
- For a full list of callbacks and usage notes, see the {Sass::Plugin} documentation.
1072
-
1073
- {Sass::Plugin} also has a new method,
1074
- {Sass::Plugin#force_update_stylesheets force_update_stylesheets}.
1075
- This works just like {Sass::Plugin#update_stylesheets},
1076
- except that it doesn't check modification times and doesn't use the cache;
1077
- all stylesheets are always compiled anew.
1078
-
1079
- ### Output Formatting
1080
-
1081
- Properties with a value and *also* nested properties
1082
- are now rendered with the nested properties indented.
1083
- For example:
1084
-
1085
- margin: auto
1086
- top: 10px
1087
- bottom: 20px
1088
-
1089
- is now compiled to:
1090
-
1091
- margin: auto;
1092
- margin-top: 10px;
1093
- margin-bottom: 20px;
1094
-
1095
- #### `:compressed` Style
1096
-
1097
- When the `:compressed` style is used,
1098
- colors will be output as the minimal possible representation.
1099
- This means whichever is smallest of the HTML4 color name
1100
- and the hex representation (shortened to the three-letter version if possible).
1101
-
1102
- ### Stylesheet Updating Speed
1103
-
1104
- Several caching layers were added to Sass's stylesheet updater.
1105
- This means that it should run significantly faster.
1106
- This benefit will be seen by people using Sass in development mode
1107
- with Rails, Rack, and Merb,
1108
- as well as people using `sass --watch` from the command line,
1109
- and to a lesser (but still significant) extent `sass --update`.
1110
- Thanks to [thedarkone](http://github.com/thedarkone).
1111
-
1112
- ### Error Backtraces
1113
-
1114
- Numerous bugs were fixed with the backtraces given for Sass errors,
1115
- especially when importing files and using mixins.
1116
- All imports and mixins will now show up in the Ruby backtrace,
1117
- with the proper filename and line number.
1118
-
1119
- In addition, when the `sass` executable encounters an error,
1120
- it now prints the filename where the error occurs,
1121
- as well as a backtrace of Sass imports and mixins.
1122
-
1123
- ### Ruby 1.9 Support
1124
-
1125
- * Sass and `css2sass` now produce more descriptive errors
1126
- when given a template with invalid byte sequences for that template's encoding,
1127
- including the line number and the offending character.
1128
-
1129
- * Sass and `css2sass` now accept Unicode documents with a
1130
- [byte-order-mark](http://en.wikipedia.org/wiki/Byte_order_mark).
1131
-
1132
- ### Firebug Support
1133
-
1134
- A new {file:SASS_REFERENCE.md#debug_info-option `:debug_info` option}
1135
- has been added that emits line-number and filename information
1136
- to the CSS file in a browser-readable format.
1137
- This can be used with the new [FireSass Firebug extension](https://addons.mozilla.org/en-US/firefox/addon/103988)
1138
- to report the Sass filename and line number for generated CSS files.
1139
-
1140
- This is also available via the `--debug-info` command-line flag.
1141
-
1142
- ### Minor Improvements
1143
-
1144
- * If a CSS or Sass function is used that has the name of a color,
1145
- it will now be parsed as a function rather than as a color.
1146
- For example, `fuchsia(12)` now renders as `fuchsia(12)`
1147
- rather than `fuchsia 12`,
1148
- and `tealbang(12)` now renders as `tealbang(12)`
1149
- rather than `teal bang(12)`.
1150
-
1151
- * The Sass Rails and Merb plugins now use Rack middleware by default.
1152
-
1153
- * Haml is now compatible with the [Rip](http://hellorip.com/) package management system.
1154
- Thanks to [Josh Peek](http://joshpeek.com/).
1155
-
1156
- * Indented-syntax `/*` comments may now include `*` on lines beyond the first.
1157
-
1158
- * A {file:SASS_REFERENCE.md#read_cache-option `:read_cache`} option has been added
1159
- to allow the Sass cache to be read from but not written to.
1160
-
1161
- * Stylesheets are no longer checked during each request
1162
- when running tests in Rails.
1163
- This should speed up some tests significantly.
1164
-
1165
6
  ## 2.2.24
1166
7
 
1167
8
  [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.24).