picolena 0.0.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (782) hide show
  1. data/History.txt +10 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Manifest.txt +779 -0
  4. data/README.txt +59 -0
  5. data/Rakefile +4 -0
  6. data/app_generators/picolena/USAGE +15 -0
  7. data/app_generators/picolena/config/indexed_directories.yml +10 -0
  8. data/app_generators/picolena/config/white_list_ip.yml +12 -0
  9. data/app_generators/picolena/picolena_generator.rb +311 -0
  10. data/app_generators/picolena/templates/MIT-LICENSE +20 -0
  11. data/app_generators/picolena/templates/Rakefile +10 -0
  12. data/app_generators/picolena/templates/app/controllers/application.rb +24 -0
  13. data/app_generators/picolena/templates/app/controllers/documents_controller.rb +49 -0
  14. data/app_generators/picolena/templates/app/helpers/application_helper.rb +6 -0
  15. data/app_generators/picolena/templates/app/helpers/documents_helper.rb +70 -0
  16. data/app_generators/picolena/templates/app/models/document.rb +72 -0
  17. data/app_generators/picolena/templates/app/models/finder.rb +114 -0
  18. data/app_generators/picolena/templates/app/views/documents/_document.html.haml +7 -0
  19. data/app_generators/picolena/templates/app/views/documents/index.html.haml +0 -0
  20. data/app_generators/picolena/templates/app/views/documents/show.html.haml +12 -0
  21. data/app_generators/picolena/templates/app/views/documents/show_content.html.haml +3 -0
  22. data/app_generators/picolena/templates/app/views/layouts/application.html.haml +37 -0
  23. data/app_generators/picolena/templates/config/boot.rb +109 -0
  24. data/app_generators/picolena/templates/config/environment.rb +19 -0
  25. data/app_generators/picolena/templates/config/environments/development.rb +21 -0
  26. data/app_generators/picolena/templates/config/environments/production.rb +21 -0
  27. data/app_generators/picolena/templates/config/environments/test.rb +25 -0
  28. data/app_generators/picolena/templates/config/initializers/001_prepare_and_load_custom_config.rb +40 -0
  29. data/app_generators/picolena/templates/config/initializers/002_indexed_dirs.rb +8 -0
  30. data/app_generators/picolena/templates/config/initializers/003_white_list_IPs.rb +8 -0
  31. data/app_generators/picolena/templates/config/initializers/004_load_filters.rb +6 -0
  32. data/app_generators/picolena/templates/config/routes.rb +6 -0
  33. data/app_generators/picolena/templates/lang/ui/de.yml +26 -0
  34. data/app_generators/picolena/templates/lang/ui/en.yml +26 -0
  35. data/app_generators/picolena/templates/lang/ui/es.yml +26 -0
  36. data/app_generators/picolena/templates/lang/ui/fr.yml +26 -0
  37. data/app_generators/picolena/templates/lib/core_exts.rb +52 -0
  38. data/app_generators/picolena/templates/lib/ff.rb +117 -0
  39. data/app_generators/picolena/templates/lib/filter.rb +75 -0
  40. data/app_generators/picolena/templates/lib/filter_DSL.rb +77 -0
  41. data/app_generators/picolena/templates/lib/filters/adobe.pdf.rb +13 -0
  42. data/app_generators/picolena/templates/lib/filters/html.rb +17 -0
  43. data/app_generators/picolena/templates/lib/filters/ms.excel.rb +41 -0
  44. data/app_generators/picolena/templates/lib/filters/ms.powerpoint.rb +40 -0
  45. data/app_generators/picolena/templates/lib/filters/ms.rtf.rb +13 -0
  46. data/app_generators/picolena/templates/lib/filters/ms.word.rb +37 -0
  47. data/app_generators/picolena/templates/lib/filters/opendocument.presentation.rb +16 -0
  48. data/app_generators/picolena/templates/lib/filters/opendocument.spreadsheet.rb +16 -0
  49. data/app_generators/picolena/templates/lib/filters/opendocument.text.rb +16 -0
  50. data/app_generators/picolena/templates/lib/filters/plain_text.rb +36 -0
  51. data/app_generators/picolena/templates/lib/tasks/annotations.rake +5 -0
  52. data/app_generators/picolena/templates/lib/tasks/index.rake +26 -0
  53. data/app_generators/picolena/templates/lib/tasks/install_dependencies.rake +37 -0
  54. data/app_generators/picolena/templates/lib/tasks/log.rake +21 -0
  55. data/app_generators/picolena/templates/public/.htaccess +40 -0
  56. data/app_generators/picolena/templates/public/404.html +30 -0
  57. data/app_generators/picolena/templates/public/500.html +30 -0
  58. data/app_generators/picolena/templates/public/dispatch.cgi +10 -0
  59. data/app_generators/picolena/templates/public/dispatch.fcgi +24 -0
  60. data/app_generators/picolena/templates/public/dispatch.rb +10 -0
  61. data/app_generators/picolena/templates/public/favicon.ico +0 -0
  62. data/app_generators/picolena/templates/public/help/PicolenaHowTo-de.pdf +0 -0
  63. data/app_generators/picolena/templates/public/help/PicolenaHowTo-de.tex +110 -0
  64. data/app_generators/picolena/templates/public/images/bg.gif +0 -0
  65. data/app_generators/picolena/templates/public/images/icons/cad.png +0 -0
  66. data/app_generators/picolena/templates/public/images/icons/code.png +0 -0
  67. data/app_generators/picolena/templates/public/images/icons/doc.png +0 -0
  68. data/app_generators/picolena/templates/public/images/icons/exe.png +0 -0
  69. data/app_generators/picolena/templates/public/images/icons/html.png +0 -0
  70. data/app_generators/picolena/templates/public/images/icons/insel.png +0 -0
  71. data/app_generators/picolena/templates/public/images/icons/ogg.png +0 -0
  72. data/app_generators/picolena/templates/public/images/icons/package.png +0 -0
  73. data/app_generators/picolena/templates/public/images/icons/pdf.png +0 -0
  74. data/app_generators/picolena/templates/public/images/icons/picture.png +0 -0
  75. data/app_generators/picolena/templates/public/images/icons/plain_text_small.png +0 -0
  76. data/app_generators/picolena/templates/public/images/icons/ppt.png +0 -0
  77. data/app_generators/picolena/templates/public/images/icons/remote_folder.png +0 -0
  78. data/app_generators/picolena/templates/public/images/icons/txt.png +0 -0
  79. data/app_generators/picolena/templates/public/images/icons/video.png +0 -0
  80. data/app_generators/picolena/templates/public/images/icons/xls.png +0 -0
  81. data/app_generators/picolena/templates/public/images/main_img.jpg +0 -0
  82. data/app_generators/picolena/templates/public/images/zafh_net.png +0 -0
  83. data/app_generators/picolena/templates/public/robots.txt +5 -0
  84. data/app_generators/picolena/templates/public/stylesheets/style.css +225 -0
  85. data/app_generators/picolena/templates/script/about +3 -0
  86. data/app_generators/picolena/templates/script/breakpointer +3 -0
  87. data/app_generators/picolena/templates/script/console +3 -0
  88. data/app_generators/picolena/templates/script/destroy +3 -0
  89. data/app_generators/picolena/templates/script/generate +3 -0
  90. data/app_generators/picolena/templates/script/performance/benchmarker +3 -0
  91. data/app_generators/picolena/templates/script/performance/profiler +3 -0
  92. data/app_generators/picolena/templates/script/performance/request +3 -0
  93. data/app_generators/picolena/templates/script/plugin +3 -0
  94. data/app_generators/picolena/templates/script/process/inspector +3 -0
  95. data/app_generators/picolena/templates/script/process/reaper +3 -0
  96. data/app_generators/picolena/templates/script/process/spawner +3 -0
  97. data/app_generators/picolena/templates/script/runner +3 -0
  98. data/app_generators/picolena/templates/script/server +3 -0
  99. data/app_generators/picolena/templates/script/spec +4 -0
  100. data/app_generators/picolena/templates/script/spec_server +102 -0
  101. data/app_generators/picolena/templates/spec/controllers/application_controller_spec.rb +15 -0
  102. data/app_generators/picolena/templates/spec/controllers/documents_controller_spec.rb +114 -0
  103. data/app_generators/picolena/templates/spec/helpers/application_helper_spec.rb +11 -0
  104. data/app_generators/picolena/templates/spec/helpers/documents_helper_spec.rb +11 -0
  105. data/app_generators/picolena/templates/spec/models/basic_finder_spec.rb +108 -0
  106. data/app_generators/picolena/templates/spec/models/document_spec.rb +66 -0
  107. data/app_generators/picolena/templates/spec/models/filters_spec.rb +30 -0
  108. data/app_generators/picolena/templates/spec/models/finder_spec.rb +231 -0
  109. data/app_generators/picolena/templates/spec/models/host_indexing_system_spec.rb +17 -0
  110. data/app_generators/picolena/templates/spec/models/index_directories_spec.rb +17 -0
  111. data/app_generators/picolena/templates/spec/rcov.opts +2 -0
  112. data/app_generators/picolena/templates/spec/spec.opts +3 -0
  113. data/app_generators/picolena/templates/spec/spec_helper.rb +6 -0
  114. data/app_generators/picolena/templates/spec/test_dirs/indexed/README +2 -0
  115. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/another_plain.text +2 -0
  116. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/basic.odt +0 -0
  117. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/basic.pdf +0 -0
  118. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/basic.tex +19 -0
  119. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/crossed.text +1 -0
  120. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/crossed.txt +1 -0
  121. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/hello.rb +1 -0
  122. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/myfirstjavaprog.java +7 -0
  123. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/one_page.ppt +0 -0
  124. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/other_basic.PDF +0 -0
  125. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/other_too_small.dOc +0 -0
  126. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/plain.txt +2 -0
  127. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/queens.for +22 -0
  128. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/too_small.doc +0 -0
  129. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/ubuntu_theme.odp +0 -0
  130. data/app_generators/picolena/templates/spec/test_dirs/indexed/basic/weight_and_balance.ods +0 -0
  131. data/app_generators/picolena/templates/spec/test_dirs/indexed/different_encodings/iso-8859-1.txt +3 -0
  132. data/app_generators/picolena/templates/spec/test_dirs/indexed/different_encodings/iso-8859-15.txt +2 -0
  133. data/app_generators/picolena/templates/spec/test_dirs/indexed/different_encodings/utf-8.txt +1 -0
  134. data/app_generators/picolena/templates/spec/test_dirs/indexed/just_one_doc/for_test.txt +2 -0
  135. data/app_generators/picolena/templates/spec/test_dirs/indexed/literature/Simulation of district heating systems for evaluation of real-time control strategies.pdf +0 -0
  136. data/app_generators/picolena/templates/spec/test_dirs/indexed/literature/Types of malfunction in DH substations.doc +0 -0
  137. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/'weird'filename.txt +1 -0
  138. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/7.html +277 -0
  139. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/BIN_FILE_WITHOUT_EXTENSION +2 -0
  140. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/Thumbs.db +0 -0
  141. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/asfg.abc +1 -0
  142. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/ccmatrix1.cpp +84 -0
  143. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/cross_site_scripting.txt +5 -0
  144. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/gcd.c +50 -0
  145. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/ghjopdfg.xyz +1 -0
  146. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/lemonde.htm +1733 -0
  147. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/nested/README +211 -0
  148. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/nested/ReadMe.rtf +176 -0
  149. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/nested/table.xls +0 -0
  150. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/nested/unreadable.pdf +0 -0
  151. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/picolena.pps +0 -0
  152. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/placeholder.txt +1 -0
  153. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/square.ins +14 -0
  154. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/stem_de.txt +0 -0
  155. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/stem_en.txt +1 -0
  156. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/und_oder.txt +5 -0
  157. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/unreadable.png +0 -0
  158. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/utf8.pdf +0 -0
  159. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/utf8.txt +2 -0
  160. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/weird_chars.txt +2 -0
  161. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/whatever.db +0 -0
  162. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/xor.vee +2169 -0
  163. data/app_generators/picolena/templates/spec/test_dirs/indexed/others/zafh.net.html +77 -0
  164. data/app_generators/picolena/templates/spec/test_dirs/indexed/yet_another_dir/office2003-word-template.dot +0 -0
  165. data/app_generators/picolena/templates/spec/test_dirs/indexed/yet_another_dir/office2007-excel.xlsx +0 -0
  166. data/app_generators/picolena/templates/spec/test_dirs/indexed/yet_another_dir/office2007-powerpoint.pptx +0 -0
  167. data/app_generators/picolena/templates/spec/test_dirs/indexed/yet_another_dir/office2007-word-template.dotx +0 -0
  168. data/app_generators/picolena/templates/spec/test_dirs/indexed/yet_another_dir/office2007-word.docx +0 -0
  169. data/app_generators/picolena/templates/spec/test_dirs/not_indexed/Rakefile +10 -0
  170. data/app_generators/picolena/templates/vendor/plugins/globalite/CHANGELOG +16 -0
  171. data/app_generators/picolena/templates/vendor/plugins/globalite/README +166 -0
  172. data/app_generators/picolena/templates/vendor/plugins/globalite/Rakefile +32 -0
  173. data/app_generators/picolena/templates/vendor/plugins/globalite/init.rb +3 -0
  174. data/app_generators/picolena/templates/vendor/plugins/globalite/install.rb +1 -0
  175. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/de-DE.yml +357 -0
  176. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/en-UK.yml +357 -0
  177. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/en-US.yml +357 -0
  178. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/es-ES.yml +357 -0
  179. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/fr-FR.yml +359 -0
  180. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/it.yml +358 -0
  181. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/pt-BR.yml +324 -0
  182. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/pt-PT.yml +324 -0
  183. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/zh-CN.yml +357 -0
  184. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/zh-HK.yml +357 -0
  185. data/app_generators/picolena/templates/vendor/plugins/globalite/lang/rails/zh-TW.yml +357 -0
  186. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/globalite/l10n.rb +300 -0
  187. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/globalite/locale.rb +56 -0
  188. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/globalite.rb +26 -0
  189. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/rails/core_ext.rb +19 -0
  190. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/rails/localization.rb +58 -0
  191. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/rails/localized_action_view.rb +195 -0
  192. data/app_generators/picolena/templates/vendor/plugins/globalite/lib/rails/localized_active_record.rb +45 -0
  193. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActionView/Helpers/DateHelper.html +298 -0
  194. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActionView/Helpers/FormOptionsHelper.html +153 -0
  195. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActionView/Helpers/NumberHelper.html +185 -0
  196. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActionView/Helpers.html +120 -0
  197. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActionView.html +111 -0
  198. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActiveRecord/Errors.html +162 -0
  199. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/ActiveRecord.html +111 -0
  200. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Array.html +161 -0
  201. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Date.html +180 -0
  202. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Globalite/L10n.html +862 -0
  203. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Globalite.html +150 -0
  204. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Kernel.html +149 -0
  205. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Locale.html +269 -0
  206. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/classes/Time.html +180 -0
  207. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/created.rid +1 -0
  208. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/README.html +356 -0
  209. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/globalite/l10n_rb.html +101 -0
  210. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/globalite/locale_rb.html +101 -0
  211. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/globalite_rb.html +119 -0
  212. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/rails/core_ext_rb.html +108 -0
  213. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/rails/localization_rb.html +101 -0
  214. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/rails/localized_action_view_rb.html +101 -0
  215. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/files/lib/rails/localized_active_record_rb.html +101 -0
  216. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/fr_class_index.html +40 -0
  217. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/fr_file_index.html +34 -0
  218. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/fr_method_index.html +72 -0
  219. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/index.html +24 -0
  220. data/app_generators/picolena/templates/vendor/plugins/globalite/rdoc/rdoc-style.css +208 -0
  221. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/core_localization_spec.rb +111 -0
  222. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/helpers/spec_helper.rb +16 -0
  223. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/l10n_spec.rb +251 -0
  224. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/lang/rails/zz.yml +13 -0
  225. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/lang/ui/en-UK.yml +3 -0
  226. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/lang/ui/en-US.yml +3 -0
  227. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/lang/ui/es.yml +3 -0
  228. data/app_generators/picolena/templates/vendor/plugins/globalite/spec/lang/ui/fr-FR.yml +8 -0
  229. data/app_generators/picolena/templates/vendor/plugins/globalite/tasks/cruise.rake +4 -0
  230. data/app_generators/picolena/templates/vendor/plugins/globalite/tasks/globalite_tasks.rake +47 -0
  231. data/app_generators/picolena/templates/vendor/plugins/globalite/uninstall.rb +1 -0
  232. data/app_generators/picolena/templates/vendor/plugins/haml/init.rb +2 -0
  233. data/app_generators/picolena/templates/vendor/plugins/rspec/CHANGES +1045 -0
  234. data/app_generators/picolena/templates/vendor/plugins/rspec/MIT-LICENSE +20 -0
  235. data/app_generators/picolena/templates/vendor/plugins/rspec/README +71 -0
  236. data/app_generators/picolena/templates/vendor/plugins/rspec/Rakefile +279 -0
  237. data/app_generators/picolena/templates/vendor/plugins/rspec/TODO +2 -0
  238. data/app_generators/picolena/templates/vendor/plugins/rspec/UPGRADE +31 -0
  239. data/app_generators/picolena/templates/vendor/plugins/rspec/autotest/discover.rb +6 -0
  240. data/app_generators/picolena/templates/vendor/plugins/rspec/autotest/rspec.rb +1 -0
  241. data/app_generators/picolena/templates/vendor/plugins/rspec/bin/spec +4 -0
  242. data/app_generators/picolena/templates/vendor/plugins/rspec/bin/spec_translator +8 -0
  243. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/autogenerated_docstrings_example.rb +19 -0
  244. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/before_and_after_example.rb +40 -0
  245. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/behave_as_example.rb +45 -0
  246. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/custom_expectation_matchers.rb +54 -0
  247. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/custom_formatter.rb +12 -0
  248. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/dynamic_spec.rb +9 -0
  249. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/file_accessor.rb +19 -0
  250. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/file_accessor_spec.rb +38 -0
  251. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/greeter_spec.rb +31 -0
  252. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/helper_method_example.rb +14 -0
  253. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/io_processor.rb +8 -0
  254. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/io_processor_spec.rb +21 -0
  255. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/legacy_spec.rb +11 -0
  256. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/mocking_example.rb +27 -0
  257. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/multi_threaded_behaviour_runner.rb +28 -0
  258. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/nested_classes_example.rb +36 -0
  259. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/partial_mock_example.rb +28 -0
  260. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/pending_example.rb +20 -0
  261. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/predicate_example.rb +27 -0
  262. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/priority.txt +1 -0
  263. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/shared_example_group_example.rb +81 -0
  264. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/shared_stack_examples.rb +38 -0
  265. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/spec_helper.rb +3 -0
  266. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/stack.rb +36 -0
  267. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/stack_spec.rb +63 -0
  268. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/stack_spec_with_nested_example_groups.rb +67 -0
  269. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/pure/stubbing_example.rb +69 -0
  270. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/adder.rb +13 -0
  271. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/addition +34 -0
  272. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/addition.rb +9 -0
  273. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/calculator.rb +65 -0
  274. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/README.txt +21 -0
  275. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/everything.rb +6 -0
  276. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/examples.rb +3 -0
  277. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +35 -0
  278. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +66 -0
  279. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story +21 -0
  280. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +21 -0
  281. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story +42 -0
  282. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story +42 -0
  283. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/ICanKillACell.story +17 -0
  284. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story +53 -0
  285. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +52 -0
  286. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/helper.rb +6 -0
  287. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +26 -0
  288. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/steps.rb +5 -0
  289. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.rb +3 -0
  290. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/stories.txt +22 -0
  291. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/life/game.rb +23 -0
  292. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/life/grid.rb +43 -0
  293. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/life.rb +3 -0
  294. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/helper.rb +9 -0
  295. data/app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/steps/addition_steps.rb +18 -0
  296. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/README.txt +7 -0
  297. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/diffing_spec.rb +36 -0
  298. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
  299. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/failure_in_setup.rb +10 -0
  300. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/failure_in_teardown.rb +10 -0
  301. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/mocking_example.rb +40 -0
  302. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/mocking_with_flexmock.rb +26 -0
  303. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/mocking_with_mocha.rb +25 -0
  304. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/mocking_with_rr.rb +27 -0
  305. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/partial_mock_example.rb +20 -0
  306. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/predicate_example.rb +29 -0
  307. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/raising_example.rb +47 -0
  308. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/spec_helper.rb +3 -0
  309. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/syntax_error_example.rb +7 -0
  310. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/team_spec.rb +44 -0
  311. data/app_generators/picolena/templates/vendor/plugins/rspec/failing_examples/timeout_behaviour.rb +7 -0
  312. data/app_generators/picolena/templates/vendor/plugins/rspec/init.rb +9 -0
  313. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/autotest/discover.rb +3 -0
  314. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/autotest/rspec.rb +74 -0
  315. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/configuration.rb +144 -0
  316. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/errors.rb +9 -0
  317. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/example_group.rb +16 -0
  318. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb +62 -0
  319. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb +424 -0
  320. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/example_matcher.rb +42 -0
  321. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/example_methods.rb +106 -0
  322. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/module_reopening_fix.rb +21 -0
  323. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/pending.rb +18 -0
  324. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example/shared_example_group.rb +58 -0
  325. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/example.rb +12 -0
  326. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/differs/default.rb +66 -0
  327. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/errors.rb +12 -0
  328. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/extensions/object.rb +71 -0
  329. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/extensions/string_and_symbol.rb +17 -0
  330. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/extensions.rb +2 -0
  331. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations/handler.rb +52 -0
  332. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/expectations.rb +56 -0
  333. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/extensions/class.rb +24 -0
  334. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/extensions/main.rb +102 -0
  335. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/extensions/object.rb +10 -0
  336. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/extensions.rb +3 -0
  337. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/autorunner.rb +6 -0
  338. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/testcase.rb +61 -0
  339. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/testresult.rb +6 -0
  340. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/testsuite_adapter.rb +34 -0
  341. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +61 -0
  342. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/interop/test.rb +12 -0
  343. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/be.rb +224 -0
  344. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/be_close.rb +37 -0
  345. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/change.rb +144 -0
  346. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/eql.rb +43 -0
  347. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/equal.rb +43 -0
  348. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/exist.rb +17 -0
  349. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/has.rb +44 -0
  350. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/have.rb +145 -0
  351. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/include.rb +70 -0
  352. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/match.rb +41 -0
  353. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb +73 -0
  354. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb +109 -0
  355. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/respond_to.rb +45 -0
  356. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/satisfy.rb +47 -0
  357. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/simple_matcher.rb +29 -0
  358. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers/throw_symbol.rb +74 -0
  359. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/matchers.rb +156 -0
  360. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/argument_constraint_matchers.rb +27 -0
  361. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/argument_expectation.rb +183 -0
  362. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/error_generator.rb +84 -0
  363. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/errors.rb +10 -0
  364. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/extensions/object.rb +3 -0
  365. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb +267 -0
  366. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/methods.rb +39 -0
  367. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/mock.rb +50 -0
  368. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/order_group.rb +29 -0
  369. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/proxy.rb +170 -0
  370. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/space.rb +28 -0
  371. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks/spec_methods.rb +38 -0
  372. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/mocks.rb +211 -0
  373. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/rake/spectask.rb +235 -0
  374. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/rake/verify_rcov.rb +52 -0
  375. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/backtrace_tweaker.rb +57 -0
  376. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/class_and_arguments_parser.rb +16 -0
  377. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/command_line.rb +28 -0
  378. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb +20 -0
  379. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb +59 -0
  380. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/base_formatter.rb +78 -0
  381. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb +130 -0
  382. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb +31 -0
  383. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/failing_examples_formatter.rb +20 -0
  384. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/html_formatter.rb +333 -0
  385. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/profile_formatter.rb +47 -0
  386. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/progress_bar_formatter.rb +30 -0
  387. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/snippet_extractor.rb +52 -0
  388. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/specdoc_formatter.rb +39 -0
  389. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +128 -0
  390. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +131 -0
  391. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb +16 -0
  392. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/heckle_runner.rb +72 -0
  393. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/heckle_runner_unsupported.rb +10 -0
  394. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/option_parser.rb +201 -0
  395. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/options.rb +286 -0
  396. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/reporter.rb +143 -0
  397. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb +71 -0
  398. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner.rb +202 -0
  399. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/extensions/main.rb +86 -0
  400. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/extensions/regexp.rb +9 -0
  401. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/extensions/string.rb +9 -0
  402. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/extensions.rb +3 -0
  403. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/given_scenario.rb +14 -0
  404. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/plain_text_story_runner.rb +48 -0
  405. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/scenario_collector.rb +18 -0
  406. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/scenario_runner.rb +46 -0
  407. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/story_mediator.rb +123 -0
  408. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb +227 -0
  409. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb +68 -0
  410. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/runner.rb +56 -0
  411. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/scenario.rb +14 -0
  412. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/step.rb +58 -0
  413. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/step_group.rb +89 -0
  414. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/step_mother.rb +37 -0
  415. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/story.rb +42 -0
  416. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story/world.rb +125 -0
  417. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/story.rb +10 -0
  418. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/translator.rb +114 -0
  419. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/version.rb +22 -0
  420. data/app_generators/picolena/templates/vendor/plugins/rspec/lib/spec.rb +30 -0
  421. data/app_generators/picolena/templates/vendor/plugins/rspec/plugins/mock_frameworks/flexmock.rb +23 -0
  422. data/app_generators/picolena/templates/vendor/plugins/rspec/plugins/mock_frameworks/mocha.rb +19 -0
  423. data/app_generators/picolena/templates/vendor/plugins/rspec/plugins/mock_frameworks/rr.rb +21 -0
  424. data/app_generators/picolena/templates/vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb +18 -0
  425. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/lib/pre_commit/core.rb +50 -0
  426. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/lib/pre_commit/pre_commit.rb +54 -0
  427. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec.rb +111 -0
  428. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec_on_rails.rb +313 -0
  429. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/lib/pre_commit.rb +4 -0
  430. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb +15 -0
  431. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +36 -0
  432. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/spec/spec_helper.rb +3 -0
  433. data/app_generators/picolena/templates/vendor/plugins/rspec/pre_commit/spec/spec_suite.rb +11 -0
  434. data/app_generators/picolena/templates/vendor/plugins/rspec/rake_tasks/examples.rake +7 -0
  435. data/app_generators/picolena/templates/vendor/plugins/rspec/rake_tasks/examples_with_rcov.rake +9 -0
  436. data/app_generators/picolena/templates/vendor/plugins/rspec/rake_tasks/failing_examples_with_html.rake +9 -0
  437. data/app_generators/picolena/templates/vendor/plugins/rspec/rake_tasks/verify_rcov.rake +7 -0
  438. data/app_generators/picolena/templates/vendor/plugins/rspec/report.html +4358 -0
  439. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/README.jruby +15 -0
  440. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/autotest/discover_spec.rb +19 -0
  441. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/autotest/rspec_spec.rb +195 -0
  442. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/autotest_helper.rb +6 -0
  443. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/autotest_matchers.rb +47 -0
  444. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/rspec_suite.rb +7 -0
  445. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/ruby_forker.rb +13 -0
  446. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb +282 -0
  447. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_group_class_definition_spec.rb +48 -0
  448. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_group_factory_spec.rb +129 -0
  449. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb +489 -0
  450. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_group_spec.rb +711 -0
  451. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_matcher_spec.rb +96 -0
  452. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb +104 -0
  453. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_runner_spec.rb +194 -0
  454. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/example_spec.rb +53 -0
  455. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/nested_example_group_spec.rb +59 -0
  456. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/pending_module_spec.rb +31 -0
  457. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +21 -0
  458. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/shared_example_group_spec.rb +265 -0
  459. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/example/subclassing_example_group_spec.rb +25 -0
  460. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb +109 -0
  461. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/expectations/extensions/object_spec.rb +107 -0
  462. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/expectations/fail_with_spec.rb +71 -0
  463. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/extensions/main_spec.rb +76 -0
  464. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
  465. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
  466. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
  467. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
  468. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
  469. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
  470. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
  471. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +45 -0
  472. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +14 -0
  473. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +45 -0
  474. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +9 -0
  475. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/be_close_spec.rb +39 -0
  476. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/be_spec.rb +224 -0
  477. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/change_spec.rb +319 -0
  478. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/description_generation_spec.rb +153 -0
  479. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/eql_spec.rb +28 -0
  480. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/equal_spec.rb +28 -0
  481. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb +57 -0
  482. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/handler_spec.rb +129 -0
  483. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/has_spec.rb +37 -0
  484. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb +291 -0
  485. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/include_spec.rb +45 -0
  486. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb +37 -0
  487. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/matcher_methods_spec.rb +78 -0
  488. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb +24 -0
  489. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/operator_matcher_spec.rb +158 -0
  490. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb +191 -0
  491. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/respond_to_spec.rb +54 -0
  492. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/satisfy_spec.rb +36 -0
  493. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/simple_matcher_spec.rb +31 -0
  494. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/matchers/throw_symbol_spec.rb +54 -0
  495. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/any_number_of_times_spec.rb +29 -0
  496. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/argument_expectation_spec.rb +23 -0
  497. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/at_least_spec.rb +97 -0
  498. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/at_most_spec.rb +93 -0
  499. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_10260_spec.rb +8 -0
  500. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_10263.rb +24 -0
  501. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_11545_spec.rb +31 -0
  502. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_15719_spec.rb +30 -0
  503. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_7611_spec.rb +19 -0
  504. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_7805_spec.rb +22 -0
  505. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_8165_spec.rb +31 -0
  506. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/bug_report_8302_spec.rb +26 -0
  507. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +115 -0
  508. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/mock_ordering_spec.rb +84 -0
  509. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/mock_space_spec.rb +54 -0
  510. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/mock_spec.rb +475 -0
  511. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/multiple_return_value_spec.rb +113 -0
  512. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/null_object_mock_spec.rb +40 -0
  513. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/once_counts_spec.rb +53 -0
  514. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/options_hash_spec.rb +45 -0
  515. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/partial_mock_spec.rb +106 -0
  516. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +66 -0
  517. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +154 -0
  518. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/precise_counts_spec.rb +52 -0
  519. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/record_messages_spec.rb +26 -0
  520. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/stub_spec.rb +181 -0
  521. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/mocks/twice_counts_spec.rb +67 -0
  522. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/package/bin_spec_spec.rb +14 -0
  523. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/class_and_argument_parser_spec.rb +23 -0
  524. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb +147 -0
  525. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/drb_command_line_spec.rb +92 -0
  526. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/empty_file.txt +0 -0
  527. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/examples.txt +2 -0
  528. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/execution_context_spec.rb +31 -0
  529. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/failed.txt +3 -0
  530. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +44 -0
  531. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +33 -0
  532. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.4.html +365 -0
  533. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +387 -0
  534. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.5.html +371 -0
  535. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +381 -0
  536. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6.html +365 -0
  537. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb +66 -0
  538. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/profile_formatter_spec.rb +65 -0
  539. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +127 -0
  540. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/snippet_extractor_spec.rb +18 -0
  541. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +103 -0
  542. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/specdoc_formatter_spec.rb +126 -0
  543. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +61 -0
  544. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +335 -0
  545. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +365 -0
  546. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +365 -0
  547. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/heckle_runner_spec.rb +78 -0
  548. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/heckler_spec.rb +13 -0
  549. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +45 -0
  550. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb +378 -0
  551. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/options_spec.rb +364 -0
  552. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture.rb +7 -0
  553. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/output_one_time_fixture_runner.rb +8 -0
  554. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/output_one_time_spec.rb +16 -0
  555. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +56 -0
  556. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/reporter_spec.rb +189 -0
  557. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/resources/a_bar.rb +0 -0
  558. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/resources/a_foo.rb +0 -0
  559. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/resources/a_spec.rb +1 -0
  560. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/spec.opts +2 -0
  561. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/spec_parser/spec_parser_fixture.rb +70 -0
  562. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb +79 -0
  563. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner/spec_spaced.opts +2 -0
  564. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/runner_spec.rb +11 -0
  565. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/spec_classes.rb +133 -0
  566. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/builders.rb +46 -0
  567. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/extensions/main_spec.rb +161 -0
  568. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/extensions_spec.rb +14 -0
  569. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/given_scenario_spec.rb +27 -0
  570. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb +92 -0
  571. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/scenario_collector_spec.rb +27 -0
  572. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/scenario_runner_spec.rb +142 -0
  573. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb +133 -0
  574. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/story_parser_spec.rb +384 -0
  575. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +256 -0
  576. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/runner_spec.rb +106 -0
  577. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/scenario_spec.rb +20 -0
  578. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/step_group_spec.rb +157 -0
  579. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/step_mother_spec.rb +72 -0
  580. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/step_spec.rb +200 -0
  581. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/story_helper.rb +2 -0
  582. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/story_spec.rb +86 -0
  583. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/story/world_spec.rb +423 -0
  584. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec/translator_spec.rb +265 -0
  585. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec.opts +6 -0
  586. data/app_generators/picolena/templates/vendor/plugins/rspec/spec/spec_helper.rb +103 -0
  587. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/all.rb +5 -0
  588. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings +45 -0
  589. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/example_group_with_should_methods +17 -0
  590. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/nested_groups +17 -0
  591. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/output +25 -0
  592. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/example_groups/stories.rb +7 -0
  593. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/helper.rb +6 -0
  594. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/interop/examples_and_tests_together +30 -0
  595. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/interop/stories.rb +7 -0
  596. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/interop/test_case_with_should_methods +17 -0
  597. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/pending_stories/README +3 -0
  598. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/helpers/cmdline.rb +9 -0
  599. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/helpers/story_helper.rb +16 -0
  600. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/matchers/smart_match.rb +37 -0
  601. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/spec/example_group_with_should_methods.rb +12 -0
  602. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/spec/simple_spec.rb +8 -0
  603. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/steps/running_rspec.rb +50 -0
  604. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/stories/failing_story.rb +15 -0
  605. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/test/spec_and_test_together.rb +57 -0
  606. data/app_generators/picolena/templates/vendor/plugins/rspec/stories/resources/test/test_case_with_should_methods.rb +30 -0
  607. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/builder.js +136 -0
  608. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/controls.js +972 -0
  609. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/dragdrop.js +976 -0
  610. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/effects.js +1117 -0
  611. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/prototype.js +4140 -0
  612. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/rspec.js +149 -0
  613. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/scriptaculous.js +58 -0
  614. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/slider.js +276 -0
  615. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/sound.js +55 -0
  616. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/javascripts/unittest.js +568 -0
  617. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/lib/server.rb +24 -0
  618. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/stories.html +176 -0
  619. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/stylesheets/rspec.css +136 -0
  620. data/app_generators/picolena/templates/vendor/plugins/rspec/story_server/prototype/stylesheets/test.css +90 -0
  621. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/MIT-LICENSE +31 -0
  622. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/README +3 -0
  623. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/Rakefile +9 -0
  624. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/CHANGES +1 -0
  625. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/rspec_generator.rb +35 -0
  626. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/all_stories.rb +4 -0
  627. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/previous_failures.txt +0 -0
  628. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/rcov.opts +2 -0
  629. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec +4 -0
  630. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/script/spec_server +102 -0
  631. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec.opts +6 -0
  632. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec_helper.rb +39 -0
  633. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec/templates/stories_helper.rb +3 -0
  634. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_controller/USAGE +33 -0
  635. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_controller/rspec_controller_generator.rb +49 -0
  636. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb +25 -0
  637. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/helper_spec.rb +11 -0
  638. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/view_spec.rb +12 -0
  639. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_model/USAGE +18 -0
  640. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_model/rspec_model_generator.rb +30 -0
  641. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_model/templates/model_spec.rb +11 -0
  642. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +167 -0
  643. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +313 -0
  644. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/edit_erb_spec.rb +25 -0
  645. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/helper_spec.rb +11 -0
  646. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/index_erb_spec.rb +22 -0
  647. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/new_erb_spec.rb +26 -0
  648. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/routing_spec.rb +61 -0
  649. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/show_erb_spec.rb +22 -0
  650. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/init.rb +9 -0
  651. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/autotest/discover.rb +1 -0
  652. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +81 -0
  653. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/assigns_hash_proxy.rb +42 -0
  654. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +255 -0
  655. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/functional_example_group.rb +66 -0
  656. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/helper_example_group.rb +82 -0
  657. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/ivar_proxy.rb +62 -0
  658. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/model_example_group.rb +14 -0
  659. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +68 -0
  660. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/render_observer.rb +90 -0
  661. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +171 -0
  662. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/example.rb +47 -0
  663. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +14 -0
  664. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/rescue.rb +21 -0
  665. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/test_response.rb +11 -0
  666. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_view/base.rb +27 -0
  667. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/active_record/base.rb +30 -0
  668. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/object.rb +5 -0
  669. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/example/configuration.rb +66 -0
  670. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/matchers/have.rb +21 -0
  671. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions.rb +12 -0
  672. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/assert_select.rb +130 -0
  673. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +55 -0
  674. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/redirect_to.rb +113 -0
  675. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +70 -0
  676. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb +29 -0
  677. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/story_adapter.rb +71 -0
  678. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb +23 -0
  679. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/lib/spec/rails.rb +51 -0
  680. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +36 -0
  681. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/autotest/rails_rspec_spec.rb +8 -0
  682. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/assigns_hash_proxy_spec.rb +55 -0
  683. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/configuration_spec.rb +83 -0
  684. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/controller_isolation_spec.rb +43 -0
  685. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +187 -0
  686. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/example_group_factory_spec.rb +112 -0
  687. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +118 -0
  688. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/ivar_proxy_spec.rb +64 -0
  689. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/model_spec_spec.rb +18 -0
  690. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +16 -0
  691. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/test_unit_assertion_accessibility_spec.rb +33 -0
  692. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +263 -0
  693. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_controller_rescue_action_spec.rb +54 -0
  694. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +48 -0
  695. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/extensions/active_record_spec.rb +14 -0
  696. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/assert_select_spec.rb +783 -0
  697. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/description_generation_spec.rb +37 -0
  698. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/errors_on_spec.rb +13 -0
  699. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +62 -0
  700. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb +203 -0
  701. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/matchers/render_spec.rb +169 -0
  702. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/mocks/mock_model_spec.rb +65 -0
  703. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/sample_spec.rb +7 -0
  704. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/spec_server_spec.rb +89 -0
  705. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails/spec_spec.rb +11 -0
  706. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/rails_suite.rb +7 -0
  707. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec/spec_helper.rb +46 -0
  708. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/controllers/action_view_base_spec_controller.rb +2 -0
  709. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +56 -0
  710. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/controllers/redirect_spec_controller.rb +59 -0
  711. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +26 -0
  712. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/controllers/rjs_spec_controller.rb +58 -0
  713. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/helpers/explicit_helper.rb +10 -0
  714. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/helpers/more_explicit_helper.rb +5 -0
  715. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/helpers/plugin_application_helper.rb +6 -0
  716. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/helpers/view_spec_helper.rb +13 -0
  717. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/_partial.rhtml +0 -0
  718. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_after_session_reset.rhtml +1 -0
  719. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_flash_before_session_reset.rhtml +1 -0
  720. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_setting_the_assigns_hash.rhtml +0 -0
  721. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_errors_in_template.rhtml +1 -0
  722. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/controller_spec/action_with_template.rhtml +1 -0
  723. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/_a_partial.rhtml +0 -0
  724. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.js.rjs +1 -0
  725. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rhtml +0 -0
  726. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/render_spec/some_action.rjs +1 -0
  727. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/_replacement_partial.rhtml +1 -0
  728. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_div.rjs +1 -0
  729. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/hide_page_element.rjs +1 -0
  730. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/insert_html.rjs +1 -0
  731. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace.rjs +1 -0
  732. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html.rjs +1 -0
  733. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/replace_html_with_partial.rjs +1 -0
  734. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_effect.rjs +1 -0
  735. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/rjs_spec/visual_toggle_effect.rjs +1 -0
  736. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/no_tags.rhtml +1 -0
  737. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_no_attributes.rhtml +1 -0
  738. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/tag_spec/single_div_with_one_attribute.rhtml +1 -0
  739. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial.rhtml +2 -0
  740. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_used_twice.rhtml +0 -0
  741. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_local_variable.rhtml +1 -0
  742. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_partial_with_sub_partial.rhtml +1 -0
  743. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/_spacer.rhtml +1 -0
  744. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/accessor.rhtml +3 -0
  745. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/entry_form.rhtml +2 -0
  746. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/explicit_helper.rhtml +2 -0
  747. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/foo/show.rhtml +1 -0
  748. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/implicit_helper.rhtml +2 -0
  749. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/multiple_helpers.rhtml +3 -0
  750. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial.rhtml +5 -0
  751. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_using_collection.rhtml +3 -0
  752. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/template_with_partial_with_array.rhtml +1 -0
  753. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/stories/all.rb +10 -0
  754. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/stories/helper.rb +5 -0
  755. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/stories/steps/people.rb +8 -0
  756. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback +15 -0
  757. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/stories/transactions_should_rollback.rb +25 -0
  758. data/app_generators/picolena/templates/vendor/plugins/rspec_on_rails/tasks/rspec.rake +137 -0
  759. data/bin/picolena +24 -0
  760. data/config/hoe.rb +76 -0
  761. data/config/requirements.rb +15 -0
  762. data/lib/picolena/version.rb +9 -0
  763. data/lib/rubigen_ext.rb +23 -0
  764. data/script/destroy +14 -0
  765. data/script/generate +14 -0
  766. data/script/txt2html +74 -0
  767. data/setup.rb +1585 -0
  768. data/spec/picolena_spec.rb +3 -0
  769. data/tasks/default.rake +1 -0
  770. data/tasks/deployment.rake +34 -0
  771. data/tasks/environment.rake +7 -0
  772. data/tasks/rspec.rake +20 -0
  773. data/tasks/website.rake +17 -0
  774. data/website/index.html +126 -0
  775. data/website/index.txt +61 -0
  776. data/website/index_devjavu +116 -0
  777. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  778. data/website/stylesheets/screen.css +138 -0
  779. data/website/template.rhtml +49 -0
  780. data.tar.gz.sig +0 -0
  781. metadata +933 -0
  782. metadata.gz.sig +0 -0
@@ -0,0 +1,114 @@
1
+ require 'ff'
2
+
3
+ class Finder
4
+ attr_reader :index, :query
5
+
6
+ def initialize(raw_query,page=1,results_per_page=ResultsPerPage)
7
+ query_parser = Ferret::QueryParser.new(:fields => [:content, :file, :basename, :filetype, :date], :or_default => false, :analyzer=>Analyzer)
8
+ @query = query_parser.parse(convert_to_english(raw_query))
9
+ @raw_query= raw_query
10
+ Finder.ensure_that_index_exists_on_disk
11
+ @index = Ferret::Index::Index.new(:path => IndexSavePath, :analyzer=>Analyzer)
12
+ @per_page=results_per_page
13
+ @offset=(page.to_i-1)*results_per_page
14
+ validate_that_index_has_documents
15
+ end
16
+
17
+ def execute!
18
+ @matching_documents=[]
19
+ start=Time.now
20
+ begin
21
+ top_docs=index.search(query, :limit => @per_page, :offset=>@offset)
22
+ top_docs.hits.each{|hit|
23
+ ferret_doc,score=hit.doc,hit.score
24
+ begin
25
+ found_doc=Document.new(index[ferret_doc][:complete_path])
26
+ found_doc.matching_content=index.highlight(query, ferret_doc,
27
+ :field => :content, :excerpt_length => 80,
28
+ :pre_tag => "<<", :post_tag => ">>"
29
+ ) unless @raw_query=~/^\*+\.\w*$/
30
+ found_doc.score=score
31
+ @matching_documents<<found_doc
32
+ rescue Errno::ENOENT
33
+ #"File has been moved/deleted!"
34
+ end
35
+ }
36
+ @executed=true
37
+ @time_needed=Time.now-start
38
+ @total_hits=top_docs.total_hits
39
+ ensure
40
+ index.close
41
+ end
42
+ end
43
+
44
+ def executed?
45
+ @executed
46
+ end
47
+
48
+ [:matching_documents, :total_hits, :time_needed].each{|attribute_name|
49
+ define_method(attribute_name){
50
+ execute! unless executed?
51
+ instance_variable_get("@#{attribute_name}")
52
+ }
53
+ }
54
+
55
+ def self.has_index?
56
+ index_filename and File.exists?(index_filename)
57
+ end
58
+
59
+ def has_documents?
60
+ index.size>0
61
+ end
62
+
63
+ def self.up_to_date?
64
+ IndexedDirectories.keys.all?{|dir| File.mtime(index_filename) > File.mtime(dir)}
65
+ end
66
+
67
+ def matching_document
68
+ case matching_documents.size
69
+ when 0
70
+ raise IndexError, "No document found"
71
+ when 1
72
+ matching_documents.first
73
+ else
74
+ raise IndexError, "More than one document found"
75
+ end
76
+ end
77
+
78
+ private
79
+
80
+ def convert_to_english(str)
81
+ to_en={
82
+ /\b#{:AND.l}\b/=>'AND',
83
+ /\b#{:OR.l}\b/=>'OR',
84
+ /\b#{:NOT.l}\b/=>'NOT',
85
+ /(#{:filetype.l}):/=>'filetype:',
86
+ /#{:content.l}:/ => 'content:',
87
+ /#{:date.l}:/ => 'date:',
88
+ /\b#{:LIKE.l}\s+(\S+)/=>'\1~'
89
+ }
90
+ to_en.inject(str){|mem,non_english_to_english_keyword|
91
+ mem.gsub(*non_english_to_english_keyword)
92
+ }
93
+ end
94
+
95
+ def self.index_filename
96
+ Dir.glob(File.join(IndexSavePath,'*.cfs')).first
97
+ end
98
+
99
+ def self.ensure_that_index_exists_on_disk
100
+ force_index_creation unless has_index? or RAILS_ENV=="production"
101
+ end
102
+
103
+ def self.force_index_creation
104
+ create_index(IndexedDirectories.keys)
105
+ end
106
+
107
+ def self.delete_index
108
+ FileUtils.rm(Dir.glob(File.join(IndexSavePath,'*.cfs'))) if has_index?
109
+ end
110
+
111
+ def validate_that_index_has_documents
112
+ raise IndexError, "no document found" unless has_documents?
113
+ end
114
+ end
@@ -0,0 +1,7 @@
1
+ %h2
2
+ =link_to icon_and_filename_for(document), download_document_path(document.md5)
3
+ %small=number_to_percentage(document.score*100, :precision=>1)
4
+ =highlight_matching_content(document)
5
+ %p=link_to_containing_directory(document)
6
+ %p=link_to_plain_text_content(document)
7
+ %hr/
@@ -0,0 +1,12 @@
1
+ -content_for :info_bar do
2
+ .info_bar
3
+ %p
4
+ -if nothing_found? then
5
+ %span{:class=>'pagination'}=google?(@query)
6
+ =:nothing_found_for.l
7
+ %strong=@query
8
+ =show_time_needed(@time_needed)
9
+ -else
10
+ %span{:class=>'pagination'}=should_paginate(@matching_documents, @query)
11
+ =describe_results(@matching_documents, @total_hits, @time_needed, @query)
12
+ = render :partial =>'document', :collection => @matching_documents
@@ -0,0 +1,3 @@
1
+ %h2=link_to icon_and_filename_for(@document), download_document_path(@md5_hash)
2
+ %p=link_to_containing_directory(@document)
3
+ %blockquote=h(@document.content).gsub(/\n/,'<br/>')
@@ -0,0 +1,37 @@
1
+ !!!
2
+ %html{"xmlns"=>"http://www.w3.org/1999/xhtml"}
3
+ %head
4
+ %meta{"content"=>"text/html; charset=iso-8859-1", "http-equiv"=>"Content-Type"}/
5
+ %title
6
+ = :page_title.l
7
+ =' | '<<@query if @query
8
+ = stylesheet_link_tag 'style'
9
+ %link{"href"=>"/images/zafh_net.png", "rel"=>"shortcut icon", "type"=>"image/vnd.microsoft.icon"}/
10
+ %body
11
+ #wrapper
12
+ #content
13
+ #header
14
+ #mainimg
15
+ %p= link_to :help.l, :help_file.l
16
+ %h3
17
+ =:type_your_query_here.l
18
+ &darr;
19
+ -form_tag(:action=>:check_query) do
20
+ = text_field_tag :query, @query, :size=>60, :class=>'text_field'
21
+ %br/
22
+ = submit_tag "#{:search.l}", :class => 'btn'
23
+ #contentarea
24
+ = yield(:info_bar)
25
+ #results
26
+ = yield
27
+ %br/
28
+ #bottom
29
+ = yield(:info_bar) unless nothing_found?
30
+ #link
31
+ =link_to :website_name.l, :website_url.l
32
+ #validtext
33
+ %p
34
+ Valid
35
+ =link_to 'XHTML', 'http://validator.w3.org/check?uri=referer'
36
+ |
37
+ =link_to 'CSS', 'http://jigsaw.w3.org/css-validator'
@@ -0,0 +1,109 @@
1
+ # Don't change this file!
2
+ # Configure your app in config/environment.rb and config/environments/*.rb
3
+
4
+ RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
5
+
6
+ module Rails
7
+ class << self
8
+ def boot!
9
+ unless booted?
10
+ preinitialize
11
+ pick_boot.run
12
+ end
13
+ end
14
+
15
+ def booted?
16
+ defined? Rails::Initializer
17
+ end
18
+
19
+ def pick_boot
20
+ (vendor_rails? ? VendorBoot : GemBoot).new
21
+ end
22
+
23
+ def vendor_rails?
24
+ File.exist?("#{RAILS_ROOT}/vendor/rails")
25
+ end
26
+
27
+ # FIXME : Ruby 1.9
28
+ def preinitialize
29
+ load(preinitializer_path) if File.exists?(preinitializer_path)
30
+ end
31
+
32
+ def preinitializer_path
33
+ "#{RAILS_ROOT}/config/preinitializer.rb"
34
+ end
35
+ end
36
+
37
+ class Boot
38
+ def run
39
+ load_initializer
40
+ Rails::Initializer.run(:set_load_path)
41
+ end
42
+ end
43
+
44
+ class VendorBoot < Boot
45
+ def load_initializer
46
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
47
+ end
48
+ end
49
+
50
+ class GemBoot < Boot
51
+ def load_initializer
52
+ self.class.load_rubygems
53
+ load_rails_gem
54
+ require 'initializer'
55
+ end
56
+
57
+ def load_rails_gem
58
+ if version = self.class.gem_version
59
+ gem 'rails', version
60
+ else
61
+ gem 'rails'
62
+ end
63
+ rescue Gem::LoadError => load_error
64
+ $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
65
+ exit 1
66
+ end
67
+
68
+ class << self
69
+ def rubygems_version
70
+ Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
71
+ end
72
+
73
+ def gem_version
74
+ if defined? RAILS_GEM_VERSION
75
+ RAILS_GEM_VERSION
76
+ elsif ENV.include?('RAILS_GEM_VERSION')
77
+ ENV['RAILS_GEM_VERSION']
78
+ else
79
+ parse_gem_version(read_environment_rb)
80
+ end
81
+ end
82
+
83
+ def load_rubygems
84
+ require 'rubygems'
85
+
86
+ unless rubygems_version >= '0.9.4'
87
+ $stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
88
+ exit 1
89
+ end
90
+
91
+ rescue LoadError
92
+ $stderr.puts %(Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
93
+ exit 1
94
+ end
95
+
96
+ def parse_gem_version(text)
97
+ $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
98
+ end
99
+
100
+ private
101
+ def read_environment_rb
102
+ File.read("#{RAILS_ROOT}/config/environment.rb")
103
+ end
104
+ end
105
+ end
106
+ end
107
+
108
+ # All that for this:
109
+ Rails.boot!
@@ -0,0 +1,19 @@
1
+ %w(rubygems paginator pathname logger).each{|lib| require lib}
2
+
3
+ # Uncomment below to force Rails into production mode when
4
+ # you don't control web/app server and can't set it the proper way
5
+ # ENV['RAILS_ENV'] ||= 'production'
6
+
7
+ # Specifies gem version of Rails to use when vendor/rails is not present
8
+ RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
9
+
10
+ IndexLogger=Logger.new($stdout)
11
+
12
+ # Bootstrap the Rails environment, frameworks, and default configuration
13
+ require File.join(File.dirname(__FILE__), 'boot')
14
+
15
+ Rails::Initializer.run do |config|
16
+ # We don't need no stinkin' AR!
17
+ # Ferret backs us up.
18
+ config.frameworks -= [ :active_record ]
19
+ end
@@ -0,0 +1,21 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # In the development environment your application's code is reloaded on
4
+ # every request. This slows down response time but is perfect for development
5
+ # since you don't have to restart the webserver when you make code changes.
6
+ config.cache_classes = false
7
+
8
+ # Log error messages when you accidentally call methods on nil.
9
+ config.whiny_nils = true
10
+
11
+ # Show full error reports and disable caching
12
+ config.action_controller.consider_all_requests_local = true
13
+ config.action_view.debug_rjs = true
14
+ config.action_controller.perform_caching = false
15
+ config.action_view.cache_template_extensions = false
16
+
17
+ # Don't care if the mailer can't send
18
+ config.action_mailer.raise_delivery_errors = false
19
+
20
+
21
+ IndexLogger.level = Logger::DEBUG
@@ -0,0 +1,21 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # The production environment is meant for finished, "live" apps.
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Use a different logger for distributed setups
8
+ # config.logger = SyslogLogger.new
9
+
10
+ # Full error reports are disabled and caching is turned on
11
+ config.action_controller.consider_all_requests_local = false
12
+ config.action_controller.perform_caching = true
13
+ config.action_view.cache_template_loading = true
14
+
15
+ # Enable serving of images, stylesheets, and javascripts from an asset server
16
+ # config.action_controller.asset_host = "http://assets.example.com"
17
+
18
+ # Disable delivery errors, bad email addresses will be ignored
19
+ # config.action_mailer.raise_delivery_errors = false
20
+
21
+ IndexLogger.level = Logger::INFO
@@ -0,0 +1,25 @@
1
+ # Settings specified here will take precedence over those in config/environment.rb
2
+
3
+ # The test environment is used exclusively to run your application's
4
+ # test suite. You never need to work with it otherwise. Remember that
5
+ # your test database is "scratch space" for the test suite and is wiped
6
+ # and recreated between test runs. Don't rely on the data there!
7
+ config.cache_classes = true
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.action_controller.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Disable request forgery protection in test environment
17
+ config.action_controller.allow_forgery_protection = false
18
+
19
+ # Tell ActionMailer not to deliver emails to the real world.
20
+ # The :test delivery method accumulates sent emails in the
21
+ # ActionMailer::Base.deliveries array.
22
+ config.action_mailer.delivery_method = :test
23
+
24
+
25
+ IndexLogger.level = Logger::WARN
@@ -0,0 +1,40 @@
1
+ ### You should not modify this file if you'd like to customize your search engine.
2
+ ### Please modify config/custom.rb instead.
3
+ ### A template config/custom.rb will be created the first time you launch your web server.
4
+
5
+
6
+ custom_config_file = File.join(RAILS_ROOT, 'config/custom.rb')
7
+
8
+ File.open(custom_config_file,'w'){|custom|
9
+ custom.puts <<-DEFAULT_CONF
10
+ ### This file has been automatically generated the first time you launched your web server.
11
+ ### You should add custom requirements here, they will be loaded everytime you restart the web server.
12
+
13
+
14
+ # Specify indexes path.
15
+ # Storage should be sufficient in order to store all indexed data.
16
+ IndexesSavePath=File.join(RAILS_ROOT, 'tmp/ferret_indexes/')
17
+
18
+
19
+ # Which language should be used?
20
+ # English (:en), German (:de), French (:fr) and Spanish (:es) are currently supported
21
+ # English is chosen by default.
22
+ # If you'd like to use another language, you can find templates in #{RAILS_ROOT}/lang/ui,
23
+ # then add your own language in this directory, and modify this line:
24
+ Globalite.language = :en
25
+
26
+
27
+ # Specify which locale should be used by Ferret
28
+ Ferret.locale = "en_US.UTF-8"
29
+
30
+ # Results per page
31
+ ResultsPerPage = 10
32
+
33
+ # Specify the default Levenshtein distance when using FuzzyQuery
34
+ # see http://ferret.davebalmain.com/api/classes/Ferret/QueryParser.html for more information.
35
+ Ferret::Search::FuzzyQuery.default_min_similarity=0.6
36
+ DEFAULT_CONF
37
+ } unless File.readable?(custom_config_file)
38
+
39
+ require 'ferret'
40
+ require custom_config_file
@@ -0,0 +1,8 @@
1
+ #Loading directories to be indexed
2
+ indexed_dir_config_file=['config/indexed_directories.yml', 'config/indexed_directories.yml.template'].find{|f| File.file?(f)}
3
+ IndexedDirectories={}
4
+ YAML.load_file(indexed_dir_config_file)[RAILS_ENV].each_pair{|abs_or_rel_path, alias_path|
5
+ IndexedDirectories[Pathname(abs_or_rel_path).realpath.to_s]=alias_path
6
+ }
7
+
8
+ IndexSavePath=File.join(IndexesSavePath,ENV["RAILS_ENV"] || "development")
@@ -0,0 +1,8 @@
1
+ #Deny all, Allow only IPs described in config/white_list_ip.yml
2
+ white_list_ip_config_file=['config/white_list_ip.yml', 'config/white_list_ip.yml.template'].find{|f| File.file?(f)}
3
+ WhiteListIPs=Regexp.new(
4
+ "^("<<
5
+ YAML.load_file(white_list_ip_config_file)["Allow"].collect{|ip|
6
+ ip.downcase.include?("all") ? /.*/ : Regexp.escape(ip)
7
+ }.join("|")<<")"
8
+ ) rescue /^(127\.0\.0\.1|0\.0\.0\.0)/
@@ -0,0 +1,6 @@
1
+ require 'core_exts'
2
+ require 'filter'
3
+
4
+ Dir.glob(File.join(RAILS_ROOT,'lib/filters/*.rb')).each{|filter|
5
+ require filter
6
+ }
@@ -0,0 +1,6 @@
1
+ ActionController::Routing::Routes.draw do |map|
2
+ map.resources :documents, :collection=>{:check_query=>:post}, :member=>{:download=>:get, :show_content=>:get}
3
+ map.connect 'documents/:id', :controller=>'documents', :action=>'show', :id => /.*/
4
+ map.connect 'access_denied', :controller=> 'application', :action => 'access_denied'
5
+ map.connect "*anything", :controller=>'application', :action => 'unknown_request'
6
+ end
@@ -0,0 +1,26 @@
1
+ locale_name: Deutsch
2
+ page_title: Picolena Suchmaschine
3
+ help: Hilfe
4
+ help_file: /help/PicolenaHowTo-de.pdf
5
+ type_your_query_here: Tippen Sie bitte einen Begriff
6
+ search: Suchen!
7
+ nothing_found_for: Nichts gefunden für
8
+ results: Ergebnisse
9
+ of: von
10
+ for: für
11
+ text_content: Text-Inhalt
12
+
13
+ ## Link to a website, located in the bottom-left corner.
14
+ website_name: Picolena
15
+ website_url: http://picolena.devjavu.com/
16
+
17
+ ## Boolean operators
18
+ AND: UND
19
+ OR: ODER
20
+ NOT: NICHT
21
+ LIKE: WIE
22
+
23
+ ## Fields
24
+ filetype: erweiterung|ext
25
+ content: inhalt
26
+ date: jahr|zeit
@@ -0,0 +1,26 @@
1
+ locale_name: English
2
+ page_title: Picolena Search Engine
3
+ help: Help
4
+ help_file: /help/PicolenaHowTo-en.pdf
5
+ type_your_query_here: Type your query here
6
+ search: Search!
7
+ nothing_found_for: Nothing found for
8
+ results: Results
9
+ of: of
10
+ for: for
11
+ text_content: Text content
12
+
13
+ ## Link to a website, located in the bottom-left corner.
14
+ website_name: Picolena
15
+ website_url: http://picolena.devjavu.com/
16
+
17
+ ## Boolean operators
18
+ AND: AND
19
+ OR: OR
20
+ NOT: NOT
21
+ LIKE: LIKE
22
+
23
+ ## Fields
24
+ filetype: filetype|ext
25
+ content: content
26
+ date: year|date
@@ -0,0 +1,26 @@
1
+ locale_name: Español
2
+ page_title: Buscador Picolena
3
+ help: Ayuda
4
+ help_file: /help/PicolenaHowTo-es.pdf
5
+ type_your_query_here: teclee por favor su búsqueda
6
+ search: ¡Busca!
7
+ nothing_found_for: Ningún documento encontrado por
8
+ results: Resultados
9
+ of: de
10
+ for: por
11
+ text_content: ver_contenido
12
+
13
+ ## Link to a website, located in the bottom-left corner.
14
+ website_name: Picolena
15
+ website_url: http://picolena.devjavu.com/
16
+
17
+ ## Boolean operators
18
+ AND: Y
19
+ OR: O
20
+ NOT: "NO"
21
+ LIKE: COMO
22
+
23
+ ## Fields
24
+ filetype: extensión|ext
25
+ content: contenido
26
+ date: fecha|año|anho
@@ -0,0 +1,26 @@
1
+ locale_name: Francais
2
+ page_title: Moteur de Recherche Picolena
3
+ help: Aide
4
+ help_file: /help/PicolenaHowTo-fr.pdf
5
+ type_your_query_here: Veuillez taper votre recherche
6
+ search: Recherche!
7
+ nothing_found_for: Rien trouvé pour
8
+ results: Résultats
9
+ of: parmi
10
+ for: pour
11
+ text_content: contenu
12
+
13
+ ## Link to a website, located in the bottom-left corner.
14
+ website_name: Picolena
15
+ website_url: http://picolena.devjavu.com/
16
+
17
+ ## Boolean operators
18
+ AND: ET
19
+ OR: OU
20
+ NOT: NON
21
+ LIKE: COMME
22
+
23
+ ## Fields
24
+ filetype: extension|ext
25
+ content: contenu
26
+ date: année|date|annee
@@ -0,0 +1,52 @@
1
+ class MimeType
2
+ @@all=[]
3
+ def self.all
4
+ @@all
5
+ end
6
+
7
+ def self.add(exts,mime_name)
8
+ all<<new(exts,mime_name)
9
+ end
10
+
11
+ attr_reader :exts, :name
12
+
13
+ def initialize(exts,mime_name)
14
+ @exts,@name=exts,mime_name
15
+ end
16
+ end
17
+
18
+ class File
19
+ def self.ext_as_sym(filename)
20
+ File.extname(filename).sub(/^\./,'').downcase.to_sym rescue :no_extension
21
+ end
22
+
23
+ def self.mime(filename)
24
+ ext=ext_as_sym(filename)
25
+ m=MimeType.all.find{|m| m.exts.include?(ext)}
26
+ m ? m.name : 'application/octet-stream'
27
+ end
28
+
29
+ def self.encoding(source)
30
+ parse_for_charset="grep -io charset=[a-z0-9\\-]* | sed 's/charset=//i'"
31
+ if File.extname(source)[0,4]==".htm" then
32
+ enc=%x{head -n20 \"#{source}\" | #{parse_for_charset}}.chomp
33
+ else
34
+ enc=%x{file -i \"#{source}\" | #{parse_for_charset}}.chomp
35
+ end
36
+ #iso-8859-15 should be used instead of iso-8859-1, for € char
37
+ case enc
38
+ when "iso-8859-1"
39
+ "iso-8859-15"
40
+ when "unknown"
41
+ ""
42
+ else
43
+ enc
44
+ end
45
+ end
46
+
47
+ def self.read_and_remove(filename)
48
+ content=read(filename)
49
+ FileUtils.rm filename, :force=>true
50
+ content
51
+ end
52
+ end