merb-core 1.0.15 → 1.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2176) hide show
  1. data/CHANGELOG +38 -0
  2. data/Rakefile +57 -228
  3. data/bin/merb +11 -2
  4. data/lib/merb-core/bootloader.rb +112 -72
  5. data/lib/merb-core/config.rb +4 -1
  6. data/lib/merb-core/controller/abstract_controller.rb +7 -1
  7. data/lib/merb-core/controller/merb_controller.rb +34 -1
  8. data/lib/merb-core/controller/mixins/controller.rb +50 -4
  9. data/lib/merb-core/controller/mixins/responder.rb +1 -1
  10. data/lib/merb-core/controller/template.rb +2 -2
  11. data/lib/merb-core/core_ext/kernel.rb +19 -234
  12. data/lib/merb-core/core_ext/time.rb +7 -0
  13. data/lib/merb-core/core_ext.rb +2 -1
  14. data/lib/merb-core/dispatch/cookies.rb +4 -1
  15. data/lib/merb-core/dispatch/default_exception/default_exception.rb +3 -3
  16. data/lib/merb-core/dispatch/dispatcher.rb +19 -23
  17. data/lib/merb-core/dispatch/request.rb +25 -4
  18. data/lib/merb-core/dispatch/request_parsers.rb +18 -5
  19. data/lib/merb-core/dispatch/router/behavior.rb +5 -2
  20. data/lib/merb-core/dispatch/router/resources.rb +21 -21
  21. data/lib/merb-core/dispatch/router/route.rb +2 -4
  22. data/lib/merb-core/dispatch/router.rb +1 -1
  23. data/lib/merb-core/dispatch/session.rb +9 -2
  24. data/lib/merb-core/dispatch/worker.rb +24 -1
  25. data/lib/merb-core/gem_ext/gem_dependency.rb +13 -0
  26. data/lib/merb-core/logger.rb +2 -2
  27. data/lib/merb-core/rack/adapter/abstract.rb +6 -4
  28. data/lib/merb-core/rack/adapter/irb.rb +43 -1
  29. data/lib/merb-core/rack/adapter/runner.rb +16 -3
  30. data/lib/merb-core/rack/handler/mongrel.rb +1 -1
  31. data/lib/merb-core/rack/stream_wrapper.rb +2 -0
  32. data/lib/merb-core/tasks/merb.rb +1 -4
  33. data/lib/merb-core/tasks/stats.rake +9 -3
  34. data/lib/merb-core/test/helpers/cookie_jar.rb +5 -2
  35. data/lib/merb-core/test/helpers/mock_request_helper.rb +5 -0
  36. data/lib/merb-core/test/helpers/multipart_request_helper.rb +4 -4
  37. data/lib/merb-core/test/helpers/request_helper.rb +13 -2
  38. data/lib/merb-core/test/matchers.rb +2 -2
  39. data/lib/merb-core/test/run_spec.rb +7 -8
  40. data/lib/merb-core/test/run_specs.rb +8 -5
  41. data/lib/merb-core/test/test_ext/rspec.rb +3 -1
  42. data/lib/merb-core/version.rb +1 -3
  43. data/lib/merb-core.rb +11 -12
  44. data/spec/Gemfile +0 -0
  45. data/spec/private/core_ext/kernel_spec.rb +35 -0
  46. data/spec/private/dispatch/bootloader_spec.rb +29 -0
  47. data/spec/private/dispatch/fixture/app/controllers/application.rb +4 -0
  48. data/spec/private/dispatch/fixture/app/controllers/exceptions.rb +25 -0
  49. data/spec/private/dispatch/fixture/app/controllers/foo.rb +19 -0
  50. data/spec/private/dispatch/fixture/app/helpers/global_helpers.rb +8 -0
  51. data/spec/private/dispatch/fixture/app/views/foo/bar.html.erb +0 -0
  52. data/spec/private/dispatch/fixture/app/views/layout/application.html.erb +11 -0
  53. data/spec/private/dispatch/fixture/config/black_hole.rb +12 -0
  54. data/spec/private/dispatch/fixture/config/environments/development.rb +6 -0
  55. data/spec/private/dispatch/fixture/config/environments/production.rb +5 -0
  56. data/spec/private/dispatch/fixture/config/environments/test.rb +6 -0
  57. data/spec/private/dispatch/fixture/config/init.rb +45 -0
  58. data/spec/private/dispatch/fixture/config/rack.rb +11 -0
  59. data/spec/private/dispatch/fixture/config/router.rb +35 -0
  60. data/spec/private/dispatch/fixture/public/images/merb.jpg +0 -0
  61. data/spec/private/dispatch/fixture/public/merb.fcgi +4 -0
  62. data/spec/private/dispatch/fixture/public/stylesheets/master.css +119 -0
  63. data/spec/private/dispatch/spec_helper.rb +1 -0
  64. data/spec/public/DEFINITIONS +11 -0
  65. data/spec/public/abstract_controller/controllers/alt_views/layout/application.erb +1 -0
  66. data/spec/public/abstract_controller/controllers/alt_views/layout/merb/test/fixtures/abstract/render_string_controller_layout.erb +1 -0
  67. data/spec/public/abstract_controller/controllers/alt_views/layout/merb/test/fixtures/abstract/render_template_controller_layout.erb +1 -0
  68. data/spec/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/display_object_with_multiple_roots/index.erb +1 -0
  69. data/spec/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/display_object_with_multiple_roots/show.erb +1 -0
  70. data/spec/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/render_template_multiple_roots/index.erb +1 -0
  71. data/spec/public/abstract_controller/controllers/alt_views/partial/basic_partial_with_multiple_roots/_partial.erb +1 -0
  72. data/spec/public/abstract_controller/controllers/alt_views/render_template_multiple_roots_and_custom_location/index.erb +1 -0
  73. data/spec/public/abstract_controller/controllers/alt_views/render_template_multiple_roots_inherited/index.erb +1 -0
  74. data/spec/public/abstract_controller/controllers/cousins.rb +60 -0
  75. data/spec/public/abstract_controller/controllers/display.rb +60 -0
  76. data/spec/public/abstract_controller/controllers/filters.rb +277 -0
  77. data/spec/public/abstract_controller/controllers/helpers.rb +47 -0
  78. data/spec/public/abstract_controller/controllers/partial.rb +161 -0
  79. data/spec/public/abstract_controller/controllers/render.rb +113 -0
  80. data/spec/public/abstract_controller/controllers/views/helpers/capture/index.erb +1 -0
  81. data/spec/public/abstract_controller/controllers/views/helpers/capture_eq/index.erb +1 -0
  82. data/spec/public/abstract_controller/controllers/views/helpers/capture_non_string_return_value/index.erb +1 -0
  83. data/spec/public/abstract_controller/controllers/views/helpers/capture_return_value/index.erb +1 -0
  84. data/spec/public/abstract_controller/controllers/views/helpers/capture_with_args/index.erb +1 -0
  85. data/spec/public/abstract_controller/controllers/views/helpers/concat/index.erb +1 -0
  86. data/spec/public/abstract_controller/controllers/views/layout/alt.erb +1 -0
  87. data/spec/public/abstract_controller/controllers/views/layout/custom.erb +1 -0
  88. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/display_object/index.erb +1 -0
  89. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/display_object_with_action/new.erb +1 -0
  90. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template/index.erb +1 -0
  91. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_app_layout/index.erb +0 -0
  92. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_custom_layout/index.erb +1 -0
  93. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_multiple_roots/index.erb +1 -0
  94. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_multiple_roots/show.erb +1 -0
  95. data/spec/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_two_append_contents/index.erb +1 -0
  96. data/spec/public/abstract_controller/controllers/views/partial/another_directory/_partial.erb +1 -0
  97. data/spec/public/abstract_controller/controllers/views/partial/basic_partial/_partial.erb +1 -0
  98. data/spec/public/abstract_controller/controllers/views/partial/basic_partial/_partial2.erb +1 -0
  99. data/spec/public/abstract_controller/controllers/views/partial/basic_partial/index.erb +1 -0
  100. data/spec/public/abstract_controller/controllers/views/partial/basic_partial_with_multiple_roots/index.erb +1 -0
  101. data/spec/public/abstract_controller/controllers/views/partial/nested_partial/_first.erb +1 -0
  102. data/spec/public/abstract_controller/controllers/views/partial/nested_partial/_second.erb +1 -0
  103. data/spec/public/abstract_controller/controllers/views/partial/nested_partial/index.erb +1 -0
  104. data/spec/public/abstract_controller/controllers/views/partial/partial_in_another_directory/index.erb +1 -0
  105. data/spec/public/abstract_controller/controllers/views/partial/partial_with_both/_collection.erb +1 -0
  106. data/spec/public/abstract_controller/controllers/views/partial/partial_with_both/index.erb +1 -0
  107. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections/_collection.erb +1 -0
  108. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections/index.erb +1 -0
  109. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_as/_collection.erb +1 -0
  110. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_as/index.erb +1 -0
  111. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/_collection.erb +1 -0
  112. data/spec/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/index.erb +1 -0
  113. data/spec/public/abstract_controller/controllers/views/partial/partial_with_different_sets_of_locals/_ab.erb +1 -0
  114. data/spec/public/abstract_controller/controllers/views/partial/partial_with_different_sets_of_locals/index.erb +1 -0
  115. data/spec/public/abstract_controller/controllers/views/partial/partial_with_locals/_variables.erb +1 -0
  116. data/spec/public/abstract_controller/controllers/views/partial/partial_with_locals/index.erb +1 -0
  117. data/spec/public/abstract_controller/controllers/views/partial/partial_with_locals_overriding_helpers/_variable.erb +1 -0
  118. data/spec/public/abstract_controller/controllers/views/partial/partial_with_locals_overriding_helpers/index.erb +1 -0
  119. data/spec/public/abstract_controller/controllers/views/partial/partial_with_multiple_locals/_foo.erb +1 -0
  120. data/spec/public/abstract_controller/controllers/views/partial/partial_with_with_and_locals/_both.erb +1 -0
  121. data/spec/public/abstract_controller/controllers/views/partial/partial_with_with_and_locals/index.erb +1 -0
  122. data/spec/public/abstract_controller/controllers/views/partial/with_absolute_partial/_partial.erb +1 -0
  123. data/spec/public/abstract_controller/controllers/views/partial/with_absolute_partial/index.erb +1 -0
  124. data/spec/public/abstract_controller/controllers/views/partial/with_as_partial/_with_partial.erb +1 -0
  125. data/spec/public/abstract_controller/controllers/views/partial/with_as_partial/index.erb +1 -0
  126. data/spec/public/abstract_controller/controllers/views/partial/with_nil_partial/_with_partial.erb +1 -0
  127. data/spec/public/abstract_controller/controllers/views/partial/with_nil_partial/index.erb +1 -0
  128. data/spec/public/abstract_controller/controllers/views/partial/with_partial/_with_partial.erb +1 -0
  129. data/spec/public/abstract_controller/controllers/views/partial/with_partial/index.erb +1 -0
  130. data/spec/public/abstract_controller/controllers/views/test_display/foo.html.erb +1 -0
  131. data/spec/public/abstract_controller/controllers/views/test_render/foo.html.erb +0 -0
  132. data/spec/public/abstract_controller/controllers/views/wonderful/index.erb +1 -0
  133. data/spec/public/abstract_controller/display_spec.rb +38 -0
  134. data/spec/public/abstract_controller/filter_spec.rb +151 -0
  135. data/spec/public/abstract_controller/helper_spec.rb +30 -0
  136. data/spec/public/abstract_controller/partial_spec.rb +85 -0
  137. data/spec/public/abstract_controller/render_spec.rb +91 -0
  138. data/spec/public/abstract_controller/spec_helper.rb +29 -0
  139. data/spec/public/boot_loader/boot_loader_spec.rb +41 -0
  140. data/spec/public/boot_loader/spec_helper.rb +1 -0
  141. data/spec/public/controller/authentication_spec.rb +174 -0
  142. data/spec/public/controller/base_spec.rb +96 -0
  143. data/spec/public/controller/conditional_get_spec.rb +101 -0
  144. data/spec/public/controller/config/init.rb +6 -0
  145. data/spec/public/controller/controllers/authentication.rb +74 -0
  146. data/spec/public/controller/controllers/base.rb +71 -0
  147. data/spec/public/controller/controllers/conditional_get.rb +35 -0
  148. data/spec/public/controller/controllers/cookies.rb +37 -0
  149. data/spec/public/controller/controllers/dispatcher.rb +35 -0
  150. data/spec/public/controller/controllers/display.rb +118 -0
  151. data/spec/public/controller/controllers/redirect.rb +60 -0
  152. data/spec/public/controller/controllers/responder.rb +93 -0
  153. data/spec/public/controller/controllers/streaming.rb +18 -0
  154. data/spec/public/controller/controllers/url.rb +42 -0
  155. data/spec/public/controller/controllers/views/layout/custom.html.erb +1 -0
  156. data/spec/public/controller/controllers/views/layout/custom_arg.html.erb +1 -0
  157. data/spec/public/controller/controllers/views/layout/custom_arg.json.erb +1 -0
  158. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.html.erb +1 -0
  159. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.xml.erb +1 -0
  160. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_provides/index.html.erb +1 -0
  161. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/class_provides/index.xml.erb +1 -0
  162. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template/index.html.erb +1 -0
  163. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template/no_layout.html.erb +1 -0
  164. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template_argument/index.html.erb +1 -0
  165. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/html_default/index.html.erb +1 -0
  166. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/layout/custom.html.erb +1 -0
  167. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/local_provides/index.html.erb +1 -0
  168. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/local_provides/index.xml.erb +1 -0
  169. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/multi_provides/index.html.erb +1 -0
  170. data/spec/public/controller/controllers/views/merb/test/fixtures/controllers/multi_provides/index.js.erb +1 -0
  171. data/spec/public/controller/cookies_spec.rb +101 -0
  172. data/spec/public/controller/dispatcher_spec.rb +587 -0
  173. data/spec/public/controller/display_spec.rb +84 -0
  174. data/spec/public/controller/override_spec.rb +27 -0
  175. data/spec/public/controller/redirect_spec.rb +68 -0
  176. data/spec/public/controller/resource_spec.rb +364 -0
  177. data/spec/public/controller/responder_spec.rb +179 -0
  178. data/spec/public/controller/spec_helper.rb +15 -0
  179. data/spec/public/controller/streaming_spec.rb +40 -0
  180. data/spec/public/controller/url_spec.rb +365 -0
  181. data/spec/public/core/merb_core_spec.rb +62 -0
  182. data/spec/public/core_ext/kernel_spec.rb +40 -0
  183. data/spec/public/core_ext/spec_helper.rb +1 -0
  184. data/spec/public/directory_structure/directory/app/controllers/application.rb +3 -0
  185. data/spec/public/directory_structure/directory/app/controllers/base.rb +13 -0
  186. data/spec/public/directory_structure/directory/app/controllers/custom.rb +19 -0
  187. data/spec/public/directory_structure/directory/app/views/base/template.html.erb +1 -0
  188. data/spec/public/directory_structure/directory/app/views/wonderful/template.erb +1 -0
  189. data/spec/public/directory_structure/directory/config/router.rb +3 -0
  190. data/spec/public/directory_structure/directory_spec.rb +43 -0
  191. data/spec/public/logger/logger_spec.rb +283 -0
  192. data/spec/public/logger/spec_helper.rb +1 -0
  193. data/spec/public/rack/conditinal_get_middleware_spec.rb +128 -0
  194. data/spec/public/rack/rack_middleware_spec.rb +101 -0
  195. data/spec/public/rack/shared_example_groups.rb +35 -0
  196. data/spec/public/request/multipart_spec.rb +72 -0
  197. data/spec/public/request/request_spec.rb +267 -0
  198. data/spec/public/router/behavior_spec.rb +74 -0
  199. data/spec/public/router/generation/conditions_spec.rb +143 -0
  200. data/spec/public/router/generation/default_route_spec.rb +32 -0
  201. data/spec/public/router/generation/defaults_spec.rb +20 -0
  202. data/spec/public/router/generation/identify_spec.rb +163 -0
  203. data/spec/public/router/generation/namespace_spec.rb +110 -0
  204. data/spec/public/router/generation/optional_segments_spec.rb +163 -0
  205. data/spec/public/router/generation/other_spec.rb +17 -0
  206. data/spec/public/router/generation/params_spec.rb +72 -0
  207. data/spec/public/router/generation/resources_spec.rb +320 -0
  208. data/spec/public/router/generation/string_spec.rb +125 -0
  209. data/spec/public/router/generation/using_request_params_spec.rb +130 -0
  210. data/spec/public/router/recognition/conditions_spec.rb +395 -0
  211. data/spec/public/router/recognition/default_routes_spec.rb +35 -0
  212. data/spec/public/router/recognition/defaults_spec.rb +122 -0
  213. data/spec/public/router/recognition/deferred_spec.rb +209 -0
  214. data/spec/public/router/recognition/fixation_spec.rb +27 -0
  215. data/spec/public/router/recognition/identify_spec.rb +53 -0
  216. data/spec/public/router/recognition/namespace_spec.rb +353 -0
  217. data/spec/public/router/recognition/nested_resources_spec.rb +105 -0
  218. data/spec/public/router/recognition/optional_segments_spec.rb +113 -0
  219. data/spec/public/router/recognition/params_spec.rb +228 -0
  220. data/spec/public/router/recognition/redirect_spec.rb +49 -0
  221. data/spec/public/router/recognition/regexp_paths_spec.rb +61 -0
  222. data/spec/public/router/recognition/resource_spec.rb +157 -0
  223. data/spec/public/router/recognition/resources_spec.rb +346 -0
  224. data/spec/public/router/recognition/variables_spec.rb +87 -0
  225. data/spec/public/router/router_spec.rb +169 -0
  226. data/spec/public/router/spec_helper.rb +287 -0
  227. data/spec/public/router/spec_helper_spec.rb +33 -0
  228. data/spec/public/session/controllers/sessions.rb +61 -0
  229. data/spec/public/session/cookie_session_spec.rb +80 -0
  230. data/spec/public/session/memcached_session_spec.rb +36 -0
  231. data/spec/public/session/memory_session_spec.rb +26 -0
  232. data/spec/public/session/multiple_sessions_spec.rb +81 -0
  233. data/spec/public/session/no_session_spec.rb +14 -0
  234. data/spec/public/session/session_shared.rb +108 -0
  235. data/spec/public/session/spec_helper.rb +2 -0
  236. data/spec/public/template/template_spec.rb +105 -0
  237. data/spec/public/template/templates/error.html.erb +2 -0
  238. data/spec/public/template/templates/template.html.erb +1 -0
  239. data/spec/public/template/templates/template.html.myt +1 -0
  240. data/spec/public/test/20_multipart_request_helper_spec.rb +152 -0
  241. data/spec/public/test/controller_matchers_spec.rb +422 -0
  242. data/spec/public/test/controllers/controller_assertion_mock.rb +7 -0
  243. data/spec/public/test/controllers/dispatch_controller.rb +11 -0
  244. data/spec/public/test/controllers/request_controller.rb +70 -0
  245. data/spec/public/test/controllers/spec_helper_controller.rb +41 -0
  246. data/spec/public/test/cookie_jar_spec.rb +23 -0
  247. data/spec/public/test/mock_request_helper_spec.rb +269 -0
  248. data/spec/public/test/multipart_request_helper_spec.rb +159 -0
  249. data/spec/public/test/multipart_upload_text_file.txt +1 -0
  250. data/spec/public/test/request_helper_spec.rb +152 -0
  251. data/spec/public/test/route_helper_spec.rb +75 -0
  252. data/spec/public/test/route_matchers_spec.rb +168 -0
  253. data/spec/public/test/rspec_ext_spec.rb +31 -0
  254. data/spec/public/test/spec_helper.rb +1 -0
  255. data/spec/public/webrat/spec_helper.rb +1 -0
  256. data/spec/public/webrat/test_app/Gemfile +0 -0
  257. data/spec/public/webrat/test_app/Rakefile +35 -0
  258. data/spec/public/webrat/test_app/app/controllers/application.rb +2 -0
  259. data/spec/public/webrat/test_app/app/controllers/exceptions.rb +13 -0
  260. data/spec/public/webrat/test_app/app/controllers/testing.rb +23 -0
  261. data/spec/public/webrat/test_app/app/helpers/global_helpers.rb +5 -0
  262. data/spec/public/webrat/test_app/app/helpers/testing_helper.rb +5 -0
  263. data/spec/public/webrat/test_app/app/models/user.rb +17 -0
  264. data/spec/public/webrat/test_app/app/views/exceptions/not_acceptable.html.erb +63 -0
  265. data/spec/public/webrat/test_app/app/views/exceptions/not_found.html.erb +47 -0
  266. data/spec/public/webrat/test_app/app/views/layout/application.html.erb +12 -0
  267. data/spec/public/webrat/test_app/app/views/testing/index.html.erb +3 -0
  268. data/spec/public/webrat/test_app/app/views/testing/show_form.html.erb +6 -0
  269. data/spec/public/webrat/test_app/config/database.yml +33 -0
  270. data/spec/public/webrat/test_app/config/environments/development.rb +15 -0
  271. data/spec/public/webrat/test_app/config/environments/production.rb +10 -0
  272. data/spec/public/webrat/test_app/config/environments/rake.rb +11 -0
  273. data/spec/public/webrat/test_app/config/environments/staging.rb +10 -0
  274. data/spec/public/webrat/test_app/config/environments/test.rb +12 -0
  275. data/spec/public/webrat/test_app/config/init.rb +27 -0
  276. data/spec/public/webrat/test_app/config/rack.rb +29 -0
  277. data/spec/public/webrat/test_app/config/router.rb +44 -0
  278. data/spec/public/webrat/test_app/merb/merb-auth/setup.rb +44 -0
  279. data/spec/public/webrat/test_app/merb/merb-auth/strategies.rb +11 -0
  280. data/spec/public/webrat/test_app/merb/session/session.rb +9 -0
  281. data/spec/public/webrat/test_app/public/favicon.ico +0 -0
  282. data/spec/public/webrat/test_app/public/images/merb.jpg +0 -0
  283. data/spec/public/webrat/test_app/public/javascripts/application.js +1 -0
  284. data/spec/public/webrat/test_app/public/javascripts/jquery.js +32 -0
  285. data/spec/public/webrat/test_app/public/merb.fcgi +22 -0
  286. data/spec/public/webrat/test_app/public/robots.txt +5 -0
  287. data/spec/public/webrat/test_app/public/stylesheets/master.css +119 -0
  288. data/spec/public/webrat/webrat_spec.rb +76 -0
  289. data/spec/spec_helper.rb +138 -0
  290. data/spec10/private/core_ext/kernel_spec.rb +34 -0
  291. data/spec10/private/dispatch/bootloader_spec.rb +27 -0
  292. data/spec10/private/dispatch/fixture/app/controllers/application.rb +4 -0
  293. data/spec10/private/dispatch/fixture/app/controllers/exceptions.rb +25 -0
  294. data/spec10/private/dispatch/fixture/app/controllers/foo.rb +19 -0
  295. data/spec10/private/dispatch/fixture/app/helpers/global_helpers.rb +8 -0
  296. data/spec10/private/dispatch/fixture/app/views/foo/bar.html.erb +0 -0
  297. data/spec10/private/dispatch/fixture/app/views/layout/application.html.erb +11 -0
  298. data/spec10/private/dispatch/fixture/config/black_hole.rb +12 -0
  299. data/spec10/private/dispatch/fixture/config/environments/development.rb +6 -0
  300. data/spec10/private/dispatch/fixture/config/environments/production.rb +5 -0
  301. data/spec10/private/dispatch/fixture/config/environments/test.rb +6 -0
  302. data/spec10/private/dispatch/fixture/config/init.rb +45 -0
  303. data/spec10/private/dispatch/fixture/config/rack.rb +11 -0
  304. data/spec10/private/dispatch/fixture/config/router.rb +35 -0
  305. data/spec10/private/dispatch/fixture/public/images/merb.jpg +0 -0
  306. data/spec10/private/dispatch/fixture/public/merb.fcgi +4 -0
  307. data/spec10/private/dispatch/fixture/public/stylesheets/master.css +119 -0
  308. data/spec10/private/dispatch/spec_helper.rb +1 -0
  309. data/spec10/public/DEFINITIONS +11 -0
  310. data/spec10/public/abstract_controller/controllers/alt_views/layout/application.erb +1 -0
  311. data/spec10/public/abstract_controller/controllers/alt_views/layout/merb/test/fixtures/abstract/render_string_controller_layout.erb +1 -0
  312. data/spec10/public/abstract_controller/controllers/alt_views/layout/merb/test/fixtures/abstract/render_template_controller_layout.erb +1 -0
  313. data/spec10/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/display_object_with_multiple_roots/index.erb +1 -0
  314. data/spec10/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/display_object_with_multiple_roots/show.erb +1 -0
  315. data/spec10/public/abstract_controller/controllers/alt_views/merb/test/fixtures/abstract/render_template_multiple_roots/index.erb +1 -0
  316. data/spec10/public/abstract_controller/controllers/alt_views/partial/basic_partial_with_multiple_roots/_partial.erb +1 -0
  317. data/spec10/public/abstract_controller/controllers/alt_views/render_template_multiple_roots_and_custom_location/index.erb +1 -0
  318. data/spec10/public/abstract_controller/controllers/alt_views/render_template_multiple_roots_inherited/index.erb +1 -0
  319. data/spec10/public/abstract_controller/controllers/cousins.rb +60 -0
  320. data/spec10/public/abstract_controller/controllers/display.rb +60 -0
  321. data/spec10/public/abstract_controller/controllers/filters.rb +260 -0
  322. data/spec10/public/abstract_controller/controllers/helpers.rb +47 -0
  323. data/spec10/public/abstract_controller/controllers/partial.rb +140 -0
  324. data/spec10/public/abstract_controller/controllers/render.rb +113 -0
  325. data/spec10/public/abstract_controller/controllers/views/helpers/capture/index.erb +1 -0
  326. data/spec10/public/abstract_controller/controllers/views/helpers/capture_eq/index.erb +1 -0
  327. data/spec10/public/abstract_controller/controllers/views/helpers/capture_non_string_return_value/index.erb +1 -0
  328. data/spec10/public/abstract_controller/controllers/views/helpers/capture_return_value/index.erb +1 -0
  329. data/spec10/public/abstract_controller/controllers/views/helpers/capture_with_args/index.erb +1 -0
  330. data/spec10/public/abstract_controller/controllers/views/helpers/concat/index.erb +1 -0
  331. data/spec10/public/abstract_controller/controllers/views/layout/alt.erb +1 -0
  332. data/spec10/public/abstract_controller/controllers/views/layout/custom.erb +1 -0
  333. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/display_object/index.erb +1 -0
  334. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/display_object_with_action/new.erb +1 -0
  335. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template/index.erb +1 -0
  336. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_app_layout/index.erb +0 -0
  337. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_custom_layout/index.erb +1 -0
  338. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_multiple_roots/index.erb +1 -0
  339. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_template_multiple_roots/show.erb +1 -0
  340. data/spec10/public/abstract_controller/controllers/views/merb/test/fixtures/abstract/render_two_append_contents/index.erb +1 -0
  341. data/spec10/public/abstract_controller/controllers/views/partial/another_directory/_partial.erb +1 -0
  342. data/spec10/public/abstract_controller/controllers/views/partial/basic_partial/_partial.erb +1 -0
  343. data/spec10/public/abstract_controller/controllers/views/partial/basic_partial/index.erb +1 -0
  344. data/spec10/public/abstract_controller/controllers/views/partial/basic_partial_with_multiple_roots/index.erb +1 -0
  345. data/spec10/public/abstract_controller/controllers/views/partial/nested_partial/_first.erb +1 -0
  346. data/spec10/public/abstract_controller/controllers/views/partial/nested_partial/_second.erb +1 -0
  347. data/spec10/public/abstract_controller/controllers/views/partial/nested_partial/index.erb +1 -0
  348. data/spec10/public/abstract_controller/controllers/views/partial/partial_in_another_directory/index.erb +1 -0
  349. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_both/_collection.erb +1 -0
  350. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_both/index.erb +1 -0
  351. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections/_collection.erb +1 -0
  352. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections/index.erb +1 -0
  353. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections_and_as/_collection.erb +1 -0
  354. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections_and_as/index.erb +1 -0
  355. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/_collection.erb +1 -0
  356. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_collections_and_counter/index.erb +1 -0
  357. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_different_sets_of_locals/_ab.erb +1 -0
  358. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_different_sets_of_locals/index.erb +1 -0
  359. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_locals/_variables.erb +1 -0
  360. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_locals/index.erb +1 -0
  361. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_locals_overriding_helpers/_variable.erb +1 -0
  362. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_locals_overriding_helpers/index.erb +1 -0
  363. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_with_and_locals/_both.erb +1 -0
  364. data/spec10/public/abstract_controller/controllers/views/partial/partial_with_with_and_locals/index.erb +1 -0
  365. data/spec10/public/abstract_controller/controllers/views/partial/with_absolute_partial/_partial.erb +1 -0
  366. data/spec10/public/abstract_controller/controllers/views/partial/with_absolute_partial/index.erb +1 -0
  367. data/spec10/public/abstract_controller/controllers/views/partial/with_as_partial/_with_partial.erb +1 -0
  368. data/spec10/public/abstract_controller/controllers/views/partial/with_as_partial/index.erb +1 -0
  369. data/spec10/public/abstract_controller/controllers/views/partial/with_nil_partial/_with_partial.erb +1 -0
  370. data/spec10/public/abstract_controller/controllers/views/partial/with_nil_partial/index.erb +1 -0
  371. data/spec10/public/abstract_controller/controllers/views/partial/with_partial/_with_partial.erb +1 -0
  372. data/spec10/public/abstract_controller/controllers/views/partial/with_partial/index.erb +1 -0
  373. data/spec10/public/abstract_controller/controllers/views/test_display/foo.html.erb +1 -0
  374. data/spec10/public/abstract_controller/controllers/views/test_render/foo.html.erb +0 -0
  375. data/spec10/public/abstract_controller/controllers/views/wonderful/index.erb +1 -0
  376. data/spec10/public/abstract_controller/display_spec.rb +38 -0
  377. data/spec10/public/abstract_controller/filter_spec.rb +143 -0
  378. data/spec10/public/abstract_controller/helper_spec.rb +30 -0
  379. data/spec10/public/abstract_controller/partial_spec.rb +70 -0
  380. data/spec10/public/abstract_controller/render_spec.rb +91 -0
  381. data/spec10/public/abstract_controller/spec_helper.rb +31 -0
  382. data/spec10/public/boot_loader/boot_loader_spec.rb +34 -0
  383. data/spec10/public/boot_loader/spec_helper.rb +1 -0
  384. data/spec10/public/controller/authentication_spec.rb +174 -0
  385. data/spec10/public/controller/base_spec.rb +96 -0
  386. data/spec10/public/controller/conditional_get_spec.rb +101 -0
  387. data/spec10/public/controller/config/init.rb +6 -0
  388. data/spec10/public/controller/controllers/authentication.rb +74 -0
  389. data/spec10/public/controller/controllers/base.rb +71 -0
  390. data/spec10/public/controller/controllers/conditional_get.rb +35 -0
  391. data/spec10/public/controller/controllers/cookies.rb +36 -0
  392. data/spec10/public/controller/controllers/dispatcher.rb +35 -0
  393. data/spec10/public/controller/controllers/display.rb +118 -0
  394. data/spec10/public/controller/controllers/redirect.rb +36 -0
  395. data/spec10/public/controller/controllers/responder.rb +93 -0
  396. data/spec10/public/controller/controllers/streaming.rb +18 -0
  397. data/spec10/public/controller/controllers/url.rb +42 -0
  398. data/spec10/public/controller/controllers/views/layout/custom.html.erb +1 -0
  399. data/spec10/public/controller/controllers/views/layout/custom_arg.html.erb +1 -0
  400. data/spec10/public/controller/controllers/views/layout/custom_arg.json.erb +1 -0
  401. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.html.erb +1 -0
  402. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/class_and_local_provides/index.xml.erb +1 -0
  403. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/class_provides/index.html.erb +1 -0
  404. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/class_provides/index.xml.erb +1 -0
  405. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template/index.html.erb +1 -0
  406. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template/no_layout.html.erb +1 -0
  407. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/display_with_template_argument/index.html.erb +1 -0
  408. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/html_default/index.html.erb +1 -0
  409. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/layout/custom.html.erb +1 -0
  410. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/local_provides/index.html.erb +1 -0
  411. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/local_provides/index.xml.erb +1 -0
  412. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/multi_provides/index.html.erb +1 -0
  413. data/spec10/public/controller/controllers/views/merb/test/fixtures/controllers/multi_provides/index.js.erb +1 -0
  414. data/spec10/public/controller/cookies_spec.rb +95 -0
  415. data/spec10/public/controller/dispatcher_spec.rb +556 -0
  416. data/spec10/public/controller/display_spec.rb +84 -0
  417. data/spec10/public/controller/redirect_spec.rb +41 -0
  418. data/spec10/public/controller/resource_spec.rb +364 -0
  419. data/spec10/public/controller/responder_spec.rb +169 -0
  420. data/spec10/public/controller/spec_helper.rb +15 -0
  421. data/spec10/public/controller/streaming_spec.rb +40 -0
  422. data/spec10/public/controller/url_spec.rb +361 -0
  423. data/spec10/public/core/merb_core_spec.rb +46 -0
  424. data/spec10/public/core_ext/dependency_after_load_spec.rb +13 -0
  425. data/spec10/public/core_ext/fixtures/bad_require_gem/Rakefile +42 -0
  426. data/spec10/public/core_ext/fixtures/bad_require_gem/lib/BadRequireGem.rb +6 -0
  427. data/spec10/public/core_ext/fixtures/core_ext_dependency.rb +2 -0
  428. data/spec10/public/core_ext/fixtures/gems/bin/edit_json.rb +19 -0
  429. data/spec10/public/core_ext/fixtures/gems/gems/bad_require_gem-0.0.1/Rakefile +42 -0
  430. data/spec10/public/core_ext/fixtures/gems/gems/bad_require_gem-0.0.1/lib/BadRequireGem.rb +6 -0
  431. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/CHANGES +93 -0
  432. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/GPL +340 -0
  433. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/README +78 -0
  434. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/RUBY +58 -0
  435. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/Rakefile +309 -0
  436. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/TODO +1 -0
  437. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/VERSION +1 -0
  438. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/benchmarks/benchmark.txt +133 -0
  439. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/benchmarks/benchmark_generator.rb +48 -0
  440. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/benchmarks/benchmark_parser.rb +26 -0
  441. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/benchmarks/benchmark_rails.rb +26 -0
  442. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/bin/edit_json.rb +10 -0
  443. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/bin/prettify_json.rb +76 -0
  444. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/data/example.json +1 -0
  445. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/data/index.html +38 -0
  446. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/data/prototype.js +4184 -0
  447. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/generator/extconf.rb +9 -0
  448. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/generator/generator.c +875 -0
  449. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/generator/unicode.c +182 -0
  450. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/generator/unicode.h +53 -0
  451. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/parser/extconf.rb +9 -0
  452. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/parser/parser.c +1758 -0
  453. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/parser/parser.rl +638 -0
  454. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/parser/unicode.c +154 -0
  455. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/ext/json/ext/parser/unicode.h +58 -0
  456. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/install.rb +26 -0
  457. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/Array.xpm +21 -0
  458. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/FalseClass.xpm +21 -0
  459. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/Hash.xpm +21 -0
  460. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/Key.xpm +73 -0
  461. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/NilClass.xpm +21 -0
  462. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/Numeric.xpm +28 -0
  463. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/String.xpm +96 -0
  464. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/TrueClass.xpm +21 -0
  465. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/add/core.rb +135 -0
  466. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/add/rails.rb +58 -0
  467. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/common.rb +354 -0
  468. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/editor.rb +1362 -0
  469. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/ext.rb +13 -0
  470. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/json.xpm +1499 -0
  471. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/pure/generator.rb +394 -0
  472. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/pure/parser.rb +259 -0
  473. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/pure.rb +75 -0
  474. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json/version.rb +9 -0
  475. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/lib/json.rb +235 -0
  476. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail1.json +1 -0
  477. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail10.json +1 -0
  478. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail11.json +1 -0
  479. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail12.json +1 -0
  480. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail13.json +1 -0
  481. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail14.json +1 -0
  482. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail18.json +1 -0
  483. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail19.json +1 -0
  484. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail2.json +1 -0
  485. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail20.json +1 -0
  486. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail21.json +1 -0
  487. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail22.json +1 -0
  488. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail23.json +1 -0
  489. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail24.json +1 -0
  490. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail25.json +1 -0
  491. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail27.json +2 -0
  492. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail28.json +2 -0
  493. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail3.json +1 -0
  494. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail4.json +1 -0
  495. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail5.json +1 -0
  496. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail6.json +1 -0
  497. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail7.json +1 -0
  498. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail8.json +1 -0
  499. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/fail9.json +1 -0
  500. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass1.json +56 -0
  501. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass15.json +1 -0
  502. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass16.json +1 -0
  503. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass17.json +1 -0
  504. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass2.json +1 -0
  505. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass26.json +1 -0
  506. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/fixtures/pass3.json +6 -0
  507. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/runner.rb +25 -0
  508. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json.rb +293 -0
  509. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json_addition.rb +161 -0
  510. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json_fixtures.rb +30 -0
  511. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json_generate.rb +100 -0
  512. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json_rails.rb +118 -0
  513. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tests/test_json_unicode.rb +61 -0
  514. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tools/fuzz.rb +140 -0
  515. data/spec10/public/core_ext/fixtures/gems/gems/json_pure-1.1.3/tools/server.rb +62 -0
  516. data/spec10/public/core_ext/fixtures/gems/gems/simple_gem-0.0.1/Rakefile +42 -0
  517. data/spec10/public/core_ext/fixtures/gems/gems/simple_gem-0.0.1/lib/simple_gem.rb +6 -0
  518. data/spec10/public/core_ext/fixtures/gems/gems/simple_gem-0.0.2/Rakefile +42 -0
  519. data/spec10/public/core_ext/fixtures/gems/gems/simple_gem-0.0.2/lib/simple_gem.rb +6 -0
  520. data/spec10/public/core_ext/fixtures/gems/specifications/bad_require_gem-0.0.1.gemspec +28 -0
  521. data/spec10/public/core_ext/fixtures/gems/specifications/json_pure-1.1.3.gemspec +33 -0
  522. data/spec10/public/core_ext/fixtures/gems/specifications/simple_gem-0.0.1.gemspec +28 -0
  523. data/spec10/public/core_ext/fixtures/gems/specifications/simple_gem-0.0.2.gemspec +28 -0
  524. data/spec10/public/core_ext/fixtures/simple_gem/Rakefile +42 -0
  525. data/spec10/public/core_ext/fixtures/simple_gem/lib/simple_gem.rb +6 -0
  526. data/spec10/public/core_ext/fixtures/simple_gem_2/Rakefile +42 -0
  527. data/spec10/public/core_ext/fixtures/simple_gem_2/lib/simple_gem.rb +6 -0
  528. data/spec10/public/core_ext/immediate_spec.rb +17 -0
  529. data/spec10/public/core_ext/kernel_spec.rb +44 -0
  530. data/spec10/public/core_ext/multi_versions_spec.rb +14 -0
  531. data/spec10/public/core_ext/require_as_fail_spec.rb +11 -0
  532. data/spec10/public/core_ext/require_as_immediate_spec.rb +17 -0
  533. data/spec10/public/core_ext/require_as_version_spec.rb +17 -0
  534. data/spec10/public/core_ext/require_as_working_spec.rb +17 -0
  535. data/spec10/public/core_ext/simple_dependency_spec.rb +17 -0
  536. data/spec10/public/core_ext/spec_helper.rb +1 -0
  537. data/spec10/public/core_ext/version_dependency_spec.rb +20 -0
  538. data/spec10/public/directory_structure/directory/app/controllers/application.rb +3 -0
  539. data/spec10/public/directory_structure/directory/app/controllers/base.rb +13 -0
  540. data/spec10/public/directory_structure/directory/app/controllers/custom.rb +19 -0
  541. data/spec10/public/directory_structure/directory/app/views/base/template.html.erb +1 -0
  542. data/spec10/public/directory_structure/directory/app/views/wonderful/template.erb +1 -0
  543. data/spec10/public/directory_structure/directory/config/router.rb +3 -0
  544. data/spec10/public/directory_structure/directory_spec.rb +43 -0
  545. data/spec10/public/logger/logger_spec.rb +283 -0
  546. data/spec10/public/logger/spec_helper.rb +1 -0
  547. data/spec10/public/rack/conditinal_get_middleware_spec.rb +128 -0
  548. data/spec10/public/rack/rack_middleware_spec.rb +101 -0
  549. data/spec10/public/rack/shared_example_groups.rb +35 -0
  550. data/spec10/public/request/multipart_spec.rb +43 -0
  551. data/spec10/public/request/request_spec.rb +252 -0
  552. data/spec10/public/router/behavior_spec.rb +74 -0
  553. data/spec10/public/router/generation/conditions_spec.rb +134 -0
  554. data/spec10/public/router/generation/default_route_spec.rb +32 -0
  555. data/spec10/public/router/generation/defaults_spec.rb +20 -0
  556. data/spec10/public/router/generation/identify_spec.rb +163 -0
  557. data/spec10/public/router/generation/namespace_spec.rb +110 -0
  558. data/spec10/public/router/generation/optional_segments_spec.rb +163 -0
  559. data/spec10/public/router/generation/other_spec.rb +17 -0
  560. data/spec10/public/router/generation/params_spec.rb +72 -0
  561. data/spec10/public/router/generation/resources_spec.rb +320 -0
  562. data/spec10/public/router/generation/string_spec.rb +125 -0
  563. data/spec10/public/router/generation/using_request_params_spec.rb +130 -0
  564. data/spec10/public/router/recognition/conditions_spec.rb +395 -0
  565. data/spec10/public/router/recognition/default_routes_spec.rb +35 -0
  566. data/spec10/public/router/recognition/defaults_spec.rb +122 -0
  567. data/spec10/public/router/recognition/deferred_spec.rb +209 -0
  568. data/spec10/public/router/recognition/fixation_spec.rb +27 -0
  569. data/spec10/public/router/recognition/identify_spec.rb +53 -0
  570. data/spec10/public/router/recognition/namespace_spec.rb +353 -0
  571. data/spec10/public/router/recognition/nested_resources_spec.rb +105 -0
  572. data/spec10/public/router/recognition/optional_segments_spec.rb +113 -0
  573. data/spec10/public/router/recognition/params_spec.rb +228 -0
  574. data/spec10/public/router/recognition/redirect_spec.rb +49 -0
  575. data/spec10/public/router/recognition/regexp_paths_spec.rb +61 -0
  576. data/spec10/public/router/recognition/resource_spec.rb +157 -0
  577. data/spec10/public/router/recognition/resources_spec.rb +346 -0
  578. data/spec10/public/router/recognition/variables_spec.rb +87 -0
  579. data/spec10/public/router/router_spec.rb +134 -0
  580. data/spec10/public/router/spec_helper.rb +287 -0
  581. data/spec10/public/router/spec_helper_spec.rb +33 -0
  582. data/spec10/public/session/controllers/sessions.rb +61 -0
  583. data/spec10/public/session/cookie_session_spec.rb +71 -0
  584. data/spec10/public/session/memcached_session_spec.rb +36 -0
  585. data/spec10/public/session/memory_session_spec.rb +26 -0
  586. data/spec10/public/session/multiple_sessions_spec.rb +81 -0
  587. data/spec10/public/session/no_session_spec.rb +14 -0
  588. data/spec10/public/session/session_shared.rb +108 -0
  589. data/spec10/public/session/spec_helper.rb +2 -0
  590. data/spec10/public/template/template_spec.rb +105 -0
  591. data/spec10/public/template/templates/error.html.erb +2 -0
  592. data/spec10/public/template/templates/template.html.erb +1 -0
  593. data/spec10/public/template/templates/template.html.myt +1 -0
  594. data/spec10/public/test/controller_matchers_spec.rb +422 -0
  595. data/spec10/public/test/controllers/controller_assertion_mock.rb +7 -0
  596. data/spec10/public/test/controllers/dispatch_controller.rb +11 -0
  597. data/spec10/public/test/controllers/request_controller.rb +64 -0
  598. data/spec10/public/test/controllers/spec_helper_controller.rb +39 -0
  599. data/spec10/public/test/mock_request_helper_spec.rb +269 -0
  600. data/spec10/public/test/multipart_request_helper_spec.rb +159 -0
  601. data/spec10/public/test/multipart_upload_text_file.txt +1 -0
  602. data/spec10/public/test/request_helper_spec.rb +124 -0
  603. data/spec10/public/test/route_helper_spec.rb +75 -0
  604. data/spec10/public/test/route_matchers_spec.rb +168 -0
  605. data/spec10/public/test/rspec_ext_spec.rb +17 -0
  606. data/spec10/public/test/spec_helper.rb +1 -0
  607. data/spec10/public/webrat/spec_helper.rb +1 -0
  608. data/spec10/public/webrat/test_app/Rakefile +35 -0
  609. data/spec10/public/webrat/test_app/app/controllers/application.rb +2 -0
  610. data/spec10/public/webrat/test_app/app/controllers/exceptions.rb +13 -0
  611. data/spec10/public/webrat/test_app/app/controllers/testing.rb +23 -0
  612. data/spec10/public/webrat/test_app/app/helpers/global_helpers.rb +5 -0
  613. data/spec10/public/webrat/test_app/app/helpers/testing_helper.rb +5 -0
  614. data/spec10/public/webrat/test_app/app/models/user.rb +17 -0
  615. data/spec10/public/webrat/test_app/app/views/exceptions/not_acceptable.html.erb +63 -0
  616. data/spec10/public/webrat/test_app/app/views/exceptions/not_found.html.erb +47 -0
  617. data/spec10/public/webrat/test_app/app/views/layout/application.html.erb +12 -0
  618. data/spec10/public/webrat/test_app/app/views/testing/index.html.erb +3 -0
  619. data/spec10/public/webrat/test_app/app/views/testing/show_form.html.erb +6 -0
  620. data/spec10/public/webrat/test_app/autotest/discover.rb +1 -0
  621. data/spec10/public/webrat/test_app/autotest/merb.rb +149 -0
  622. data/spec10/public/webrat/test_app/autotest/merb_rspec.rb +165 -0
  623. data/spec10/public/webrat/test_app/bin/autospec +31 -0
  624. data/spec10/public/webrat/test_app/bin/edit_json.rb +31 -0
  625. data/spec10/public/webrat/test_app/bin/erubis +31 -0
  626. data/spec10/public/webrat/test_app/bin/gpgen +31 -0
  627. data/spec10/public/webrat/test_app/bin/merb +31 -0
  628. data/spec10/public/webrat/test_app/bin/mongrel_rails +31 -0
  629. data/spec10/public/webrat/test_app/bin/rackup +31 -0
  630. data/spec10/public/webrat/test_app/bin/rake +31 -0
  631. data/spec10/public/webrat/test_app/bin/rake2thor +31 -0
  632. data/spec10/public/webrat/test_app/bin/spec +31 -0
  633. data/spec10/public/webrat/test_app/bin/thor +31 -0
  634. data/spec10/public/webrat/test_app/config/database.yml +33 -0
  635. data/spec10/public/webrat/test_app/config/dependencies.rb +23 -0
  636. data/spec10/public/webrat/test_app/config/environments/development.rb +15 -0
  637. data/spec10/public/webrat/test_app/config/environments/production.rb +10 -0
  638. data/spec10/public/webrat/test_app/config/environments/rake.rb +11 -0
  639. data/spec10/public/webrat/test_app/config/environments/staging.rb +10 -0
  640. data/spec10/public/webrat/test_app/config/environments/test.rb +12 -0
  641. data/spec10/public/webrat/test_app/config/init.rb +25 -0
  642. data/spec10/public/webrat/test_app/config/rack.rb +11 -0
  643. data/spec10/public/webrat/test_app/config/router.rb +44 -0
  644. data/spec10/public/webrat/test_app/doc/rdoc/generators/merb_generator.rb +1362 -0
  645. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/api_grease.js +640 -0
  646. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/index.html.erb +37 -0
  647. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/merb.css +252 -0
  648. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/merb.rb +351 -0
  649. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/merb_doc_styles.css +492 -0
  650. data/spec10/public/webrat/test_app/doc/rdoc/generators/template/merb/prototype.js +2515 -0
  651. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/ChangeLog +3 -0
  652. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/README.txt +57 -0
  653. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/abstract.gemspec +48 -0
  654. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/lib/abstract.rb +75 -0
  655. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/setup.rb +1331 -0
  656. data/spec10/public/webrat/test_app/gems/gems/abstract-1.0.0/test/test.rb +91 -0
  657. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/CHANGELOG +14 -0
  658. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/LICENSE +55 -0
  659. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/Manifest +6 -0
  660. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/README +40 -0
  661. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/cgi_multipart_eof_fix.gemspec +44 -0
  662. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/lib/cgi_multipart_eof_fix.rb +127 -0
  663. data/spec10/public/webrat/test_app/gems/gems/cgi_multipart_eof_fix-2.5.0/test/test_cgi_multipart_eof_fix.rb +59 -0
  664. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/LICENSE +29 -0
  665. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/README +223 -0
  666. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/Rakefile +84 -0
  667. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/Releases +126 -0
  668. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/TODO +6 -0
  669. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/call/call.rb +56 -0
  670. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/call/call_monitor.rb +55 -0
  671. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/daemonize/daemonize.rb +20 -0
  672. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_crash.rb +17 -0
  673. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_exec.rb +16 -0
  674. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_exit.rb +15 -0
  675. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_keep_pid_files.rb +17 -0
  676. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_monitor.rb +16 -0
  677. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_multiple.rb +16 -0
  678. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_normal.rb +12 -0
  679. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_ontop.rb +16 -0
  680. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_optionparser.rb +43 -0
  681. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc.rb +25 -0
  682. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc.rb.output +101 -0
  683. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb +22 -0
  684. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_multiple.rb.output +2 -0
  685. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/ctrl_proc_simple.rb +17 -0
  686. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/myserver.rb +12 -0
  687. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/myserver_crashing.rb +14 -0
  688. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/myserver_crashing.rb.output +30 -0
  689. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/examples/run/myserver_exiting.rb +8 -0
  690. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/application.rb +372 -0
  691. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/application_group.rb +152 -0
  692. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/cmdline.rb +117 -0
  693. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/controller.rb +134 -0
  694. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/daemonize.rb +263 -0
  695. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/exceptions.rb +28 -0
  696. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/monitor.rb +127 -0
  697. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/pid.rb +101 -0
  698. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/pidfile.rb +111 -0
  699. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons/pidmem.rb +10 -0
  700. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/lib/daemons.rb +283 -0
  701. data/spec10/public/webrat/test_app/gems/gems/daemons-1.0.10/setup.rb +1360 -0
  702. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/CHANGES.txt +717 -0
  703. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/MIT-LICENSE +20 -0
  704. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/README.txt +102 -0
  705. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/Makefile +6 -0
  706. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/bench.rb +314 -0
  707. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/bench_context.yaml +141 -0
  708. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/templates/_footer.html +4 -0
  709. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/templates/_header.html +52 -0
  710. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/templates/bench_erb.rhtml +29 -0
  711. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/templates/bench_erubis.rhtml +29 -0
  712. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/benchmark/templates/bench_eruby.rhtml +29 -0
  713. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/bin/erubis +11 -0
  714. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/contrib/erubis +11 -0
  715. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/contrib/erubis-run.rb +132 -0
  716. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/contrib/inline-require +153 -0
  717. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc/docstyle.css +188 -0
  718. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc/users-guide.html +3285 -0
  719. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +181 -0
  720. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/ActionView.html +105 -0
  721. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/ERB.html +101 -0
  722. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
  723. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
  724. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
  725. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ArrayEruby.html +120 -0
  726. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Basic/Converter.html +327 -0
  727. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Basic/Engine.html +130 -0
  728. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Basic.html +112 -0
  729. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
  730. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
  731. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/CGenerator.html +386 -0
  732. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/CommandOptionError.html +113 -0
  733. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Context.html +344 -0
  734. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Converter.html +283 -0
  735. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
  736. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
  737. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Ec.html +126 -0
  738. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Ejava.html +126 -0
  739. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Ejavascript.html +126 -0
  740. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Engine.html +305 -0
  741. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Eperl.html +126 -0
  742. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Ephp.html +126 -0
  743. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
  744. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ErboutEruby.html +120 -0
  745. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/ErubisError.html +117 -0
  746. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Eruby.html +132 -0
  747. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
  748. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEc.html +120 -0
  749. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEjava.html +120 -0
  750. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
  751. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEperl.html +120 -0
  752. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEphp.html +120 -0
  753. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEruby.html +127 -0
  754. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
  755. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Escheme.html +126 -0
  756. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Evaluator.html +212 -0
  757. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/FastEruby.html +131 -0
  758. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Generator.html +416 -0
  759. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
  760. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
  761. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
  762. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +164 -0
  763. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
  764. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Helpers.html +116 -0
  765. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/InterpolationEnhancer.html +306 -0
  766. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
  767. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/JavaGenerator.html +359 -0
  768. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
  769. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/Main.html +340 -0
  770. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
  771. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
  772. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
  773. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/NoTextEruby.html +120 -0
  774. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/NotSupportedError.html +119 -0
  775. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
  776. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
  777. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
  778. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Converter.html +266 -0
  779. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Ec.html +166 -0
  780. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Ejava.html +166 -0
  781. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
  782. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Engine.html +122 -0
  783. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Eperl.html +166 -0
  784. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Ephp.html +166 -0
  785. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Eruby.html +155 -0
  786. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/Escheme.html +166 -0
  787. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
  788. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PI.html +124 -0
  789. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PercentLineEnhancer.html +179 -0
  790. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
  791. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PerlGenerator.html +344 -0
  792. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PhpGenerator.html +350 -0
  793. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
  794. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
  795. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
  796. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
  797. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
  798. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
  799. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
  800. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
  801. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/RubyGenerator.html +327 -0
  802. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
  803. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
  804. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
  805. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
  806. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StdoutEruby.html +120 -0
  807. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
  808. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
  809. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
  810. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/StringIOEruby.html +120 -0
  811. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/TinyEruby.html +299 -0
  812. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/XmlEruby.html +130 -0
  813. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis/XmlHelper.html +255 -0
  814. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/classes/Erubis.html +353 -0
  815. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/created.rid +1 -0
  816. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/README_txt.html +247 -0
  817. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/context_rb.html +107 -0
  818. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/converter_rb.html +114 -0
  819. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/ec_rb.html +115 -0
  820. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/ejava_rb.html +115 -0
  821. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
  822. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
  823. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/eperl_rb.html +115 -0
  824. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/ephp_rb.html +115 -0
  825. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/eruby_rb.html +115 -0
  826. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/escheme_rb.html +115 -0
  827. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine/optimized_rb.html +114 -0
  828. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/engine_rb.html +117 -0
  829. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/enhancer_rb.html +107 -0
  830. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/error_rb.html +107 -0
  831. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/evaluator_rb.html +115 -0
  832. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/generator_rb.html +114 -0
  833. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/helper_rb.html +107 -0
  834. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  835. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
  836. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/local-setting_rb.html +107 -0
  837. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/main_rb.html +127 -0
  838. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/preprocessing_rb.html +114 -0
  839. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis/tiny_rb.html +107 -0
  840. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/files/erubis_rb.html +118 -0
  841. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/fr_class_index.html +122 -0
  842. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/fr_file_index.html +51 -0
  843. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/fr_method_index.html +248 -0
  844. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/index.html +24 -0
  845. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/doc-api/rdoc-style.css +208 -0
  846. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/Makefile +53 -0
  847. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.ec +42 -0
  848. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.ejava +45 -0
  849. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.ejs +16 -0
  850. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.eperl +16 -0
  851. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.ephp +17 -0
  852. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.eruby +15 -0
  853. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/basic/example.escheme +26 -0
  854. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/Makefile +54 -0
  855. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.ec +42 -0
  856. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.ejava +45 -0
  857. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.ejs +16 -0
  858. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.eperl +16 -0
  859. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.ephp +17 -0
  860. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.eruby +15 -0
  861. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/examples/pi/example.escheme +26 -0
  862. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/context.rb +84 -0
  863. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/converter.rb +358 -0
  864. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/ec.rb +118 -0
  865. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/ejava.rb +111 -0
  866. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/ejavascript.rb +120 -0
  867. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/enhanced.rb +122 -0
  868. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/eperl.rb +96 -0
  869. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/ephp.rb +100 -0
  870. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/eruby.rb +125 -0
  871. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/escheme.rb +115 -0
  872. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine/optimized.rb +128 -0
  873. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/engine.rb +121 -0
  874. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/enhancer.rb +681 -0
  875. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/error.rb +24 -0
  876. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/evaluator.rb +89 -0
  877. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/generator.rb +86 -0
  878. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/helper.rb +48 -0
  879. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/helpers/rails_form_helper.rb +198 -0
  880. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/helpers/rails_helper.rb +325 -0
  881. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/local-setting.rb +10 -0
  882. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/main.rb +491 -0
  883. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/preprocessing.rb +59 -0
  884. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis/tiny.rb +146 -0
  885. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/lib/erubis.rb +73 -0
  886. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/setup.rb +1331 -0
  887. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/assert-text-equal.rb +45 -0
  888. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/Example.ejava +55 -0
  889. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/array_example.result +9 -0
  890. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/arraybuffer_example.result +9 -0
  891. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/bipattern-example.rhtml +4 -0
  892. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/bipattern_example.result +6 -0
  893. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/context.rb +6 -0
  894. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/context.yaml +8 -0
  895. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/def_method.rb +14 -0
  896. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/def_method.result +3 -0
  897. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/escape_example.result +9 -0
  898. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.ec +27 -0
  899. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.ejs +20 -0
  900. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.eperl +18 -0
  901. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.ephp +18 -0
  902. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.eruby +6 -0
  903. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example.escheme +28 -0
  904. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example1.eruby +6 -0
  905. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example1.rb +17 -0
  906. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example1.result +16 -0
  907. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example10.rb +4 -0
  908. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example10.result +17 -0
  909. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example10.xhtml +14 -0
  910. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example10_x.result +17 -0
  911. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11.php +20 -0
  912. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11.result +23 -0
  913. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11.rhtml +21 -0
  914. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11_C.result +10 -0
  915. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11_N.result +16 -0
  916. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11_U.result +16 -0
  917. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example11_php.result +15 -0
  918. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example1_x.result +9 -0
  919. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example2.eruby +7 -0
  920. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example2.rb +10 -0
  921. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example2.result +27 -0
  922. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example2_trim.result +10 -0
  923. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example2_x.result +10 -0
  924. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example3.eruby +6 -0
  925. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example3.rb +10 -0
  926. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example31.result +22 -0
  927. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example32.result +4 -0
  928. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example3_e.result +8 -0
  929. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example4.eruby +3 -0
  930. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example4.rb +11 -0
  931. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example4.result +10 -0
  932. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example4_x.result +5 -0
  933. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example5.eruby +6 -0
  934. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example5.rb +16 -0
  935. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example5.result +7 -0
  936. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example6.rb +12 -0
  937. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example6.result +7 -0
  938. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example7.eruby +8 -0
  939. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example71.result +13 -0
  940. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example72.result +13 -0
  941. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example8.eruby +6 -0
  942. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example8_ruby.result +7 -0
  943. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example8_yaml.result +7 -0
  944. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example9.eruby +3 -0
  945. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example9.rb +8 -0
  946. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example9.result +9 -0
  947. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example91.result +5 -0
  948. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example92.result +4 -0
  949. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_c.result +29 -0
  950. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_java.result +56 -0
  951. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_js.result +22 -0
  952. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_perl.result +20 -0
  953. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_php.result +19 -0
  954. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_scheme.result +30 -0
  955. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/example_scheme_display.result +29 -0
  956. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/fasteruby.rb +11 -0
  957. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/fasteruby.result +38 -0
  958. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/fasteruby.rhtml +15 -0
  959. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/headerfooter-example.eruby +9 -0
  960. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/headerfooter-example2.rb +8 -0
  961. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/headerfooter-example2.rhtml +10 -0
  962. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/headerfooter_example.result +11 -0
  963. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/headerfooter_example2.result +13 -0
  964. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/interpolation_example.result +9 -0
  965. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/main_program1.rb +8 -0
  966. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/main_program1.result +6 -0
  967. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/main_program2.rb +8 -0
  968. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/main_program2.result +6 -0
  969. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/nocode-example.eruby +14 -0
  970. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/nocode-php.result +20 -0
  971. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/nocode_example.result +15 -0
  972. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/normal-eruby-test.eruby +9 -0
  973. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/normal_eruby_test.result +11 -0
  974. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/notext-example.eruby +14 -0
  975. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/notext-example.php +19 -0
  976. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/notext-php.result +20 -0
  977. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/notext_example.result +16 -0
  978. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/percentline-example.rhtml +4 -0
  979. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/percentline_example.result +7 -0
  980. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/printenable_example.result +4 -0
  981. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/printenabled-example.eruby +3 -0
  982. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/printenabled-example.rb +8 -0
  983. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/printstatement_example.result +8 -0
  984. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/simplify_example.result +9 -0
  985. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/stdout_exmple.result +9 -0
  986. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/stringbuffer_example.result +9 -0
  987. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/tail_260.result +4 -0
  988. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/tailnewline.rhtml +3 -0
  989. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/template1.rhtml +4 -0
  990. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/data/users-guide/template2.rhtml +4 -0
  991. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/hoge.rb +5 -0
  992. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test-engines.rb +370 -0
  993. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test-enhancers.rb +571 -0
  994. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test-erubis.rb +884 -0
  995. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test-main.rb +674 -0
  996. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test-users-guide.rb +58 -0
  997. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/test.rb +30 -0
  998. data/spec10/public/webrat/test_app/gems/gems/erubis-2.6.2/test/testutil.rb +101 -0
  999. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/LICENSE +20 -0
  1000. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/README.txt +3 -0
  1001. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/Rakefile +177 -0
  1002. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/assertions.rb +8 -0
  1003. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/blank.rb +59 -0
  1004. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/boolean.rb +11 -0
  1005. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/class.rb +175 -0
  1006. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/datetime.rb +9 -0
  1007. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/dictionary.rb +433 -0
  1008. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/hash.rb +419 -0
  1009. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/hook.rb +366 -0
  1010. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/inflection.rb +435 -0
  1011. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/lazy_array.rb +106 -0
  1012. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/logger.rb +202 -0
  1013. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/mash.rb +148 -0
  1014. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/module.rb +41 -0
  1015. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/nil.rb +5 -0
  1016. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/numeric.rb +5 -0
  1017. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/object.rb +175 -0
  1018. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/object_space.rb +13 -0
  1019. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/pathname.rb +5 -0
  1020. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/pooling.rb +239 -0
  1021. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/rubygems.rb +38 -0
  1022. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/simple_set.rb +39 -0
  1023. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/string.rb +132 -0
  1024. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/struct.rb +8 -0
  1025. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/symbol.rb +17 -0
  1026. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/tasks/release.rb +15 -0
  1027. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/time.rb +19 -0
  1028. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/version.rb +3 -0
  1029. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib/virtual_file.rb +10 -0
  1030. data/spec10/public/webrat/test_app/gems/gems/extlib-0.9.8/lib/extlib.rb +56 -0
  1031. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/CHANGELOG +3 -0
  1032. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/Manifest +9 -0
  1033. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/ext/fastthread/Makefile +153 -0
  1034. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/ext/fastthread/extconf.rb +3 -0
  1035. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/ext/fastthread/fastthread.bundle +0 -0
  1036. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/ext/fastthread/fastthread.c +1186 -0
  1037. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/ext/fastthread/fastthread.o +0 -0
  1038. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/fastthread.gemspec +52 -0
  1039. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/lib/fastthread.bundle +0 -0
  1040. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/setup.rb +1585 -0
  1041. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/test/test_all.rb +6 -0
  1042. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/test/test_condvar.rb +34 -0
  1043. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/test/test_mutex.rb +74 -0
  1044. data/spec10/public/webrat/test_app/gems/gems/fastthread-1.0.1/test/test_queue.rb +79 -0
  1045. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/CHANGELOG +2 -0
  1046. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/COPYING +504 -0
  1047. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/LICENSE +55 -0
  1048. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/Manifest +15 -0
  1049. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/README +115 -0
  1050. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/bin/gpgen +60 -0
  1051. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/gem_plugin.gemspec +53 -0
  1052. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/lib/gem_plugin.rb +291 -0
  1053. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/COPYING +1 -0
  1054. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/LICENSE +1 -0
  1055. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/README +5 -0
  1056. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/Rakefile +61 -0
  1057. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/lib/project/init.rb +6 -0
  1058. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/resources/resources/defaults.yaml +2 -0
  1059. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/setup.rb +1360 -0
  1060. data/spec10/public/webrat/test_app/gems/gems/gem_plugin-0.2.3/test/test_plugins.rb +72 -0
  1061. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/CHANGES +93 -0
  1062. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/GPL +340 -0
  1063. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/README +78 -0
  1064. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/RUBY +58 -0
  1065. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/Rakefile +309 -0
  1066. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/TODO +1 -0
  1067. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/VERSION +1 -0
  1068. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/benchmarks/benchmark.txt +133 -0
  1069. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/benchmarks/benchmark_generator.rb +48 -0
  1070. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/benchmarks/benchmark_parser.rb +26 -0
  1071. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/benchmarks/benchmark_rails.rb +26 -0
  1072. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/bin/edit_json.rb +10 -0
  1073. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/bin/prettify_json.rb +76 -0
  1074. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/data/example.json +1 -0
  1075. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/data/index.html +38 -0
  1076. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/data/prototype.js +4184 -0
  1077. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/generator/extconf.rb +9 -0
  1078. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/generator/generator.c +875 -0
  1079. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/generator/unicode.c +182 -0
  1080. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/generator/unicode.h +53 -0
  1081. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/parser/extconf.rb +9 -0
  1082. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/parser/parser.c +1758 -0
  1083. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/parser/parser.rl +638 -0
  1084. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/parser/unicode.c +154 -0
  1085. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/ext/json/ext/parser/unicode.h +58 -0
  1086. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/install.rb +26 -0
  1087. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/Array.xpm +21 -0
  1088. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/FalseClass.xpm +21 -0
  1089. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/Hash.xpm +21 -0
  1090. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/Key.xpm +73 -0
  1091. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/NilClass.xpm +21 -0
  1092. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/Numeric.xpm +28 -0
  1093. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/String.xpm +96 -0
  1094. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/TrueClass.xpm +21 -0
  1095. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/add/core.rb +135 -0
  1096. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/add/rails.rb +58 -0
  1097. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/common.rb +354 -0
  1098. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/editor.rb +1362 -0
  1099. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/ext.rb +13 -0
  1100. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/json.xpm +1499 -0
  1101. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/pure/generator.rb +394 -0
  1102. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/pure/parser.rb +259 -0
  1103. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/pure.rb +75 -0
  1104. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json/version.rb +9 -0
  1105. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/lib/json.rb +235 -0
  1106. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail1.json +1 -0
  1107. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail10.json +1 -0
  1108. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail11.json +1 -0
  1109. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail12.json +1 -0
  1110. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail13.json +1 -0
  1111. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail14.json +1 -0
  1112. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail18.json +1 -0
  1113. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail19.json +1 -0
  1114. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail2.json +1 -0
  1115. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail20.json +1 -0
  1116. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail21.json +1 -0
  1117. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail22.json +1 -0
  1118. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail23.json +1 -0
  1119. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail24.json +1 -0
  1120. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail25.json +1 -0
  1121. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail27.json +2 -0
  1122. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail28.json +2 -0
  1123. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail3.json +1 -0
  1124. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail4.json +1 -0
  1125. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail5.json +1 -0
  1126. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail6.json +1 -0
  1127. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail7.json +1 -0
  1128. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail8.json +1 -0
  1129. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/fail9.json +1 -0
  1130. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass1.json +56 -0
  1131. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass15.json +1 -0
  1132. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass16.json +1 -0
  1133. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass17.json +1 -0
  1134. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass2.json +1 -0
  1135. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass26.json +1 -0
  1136. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/fixtures/pass3.json +6 -0
  1137. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/runner.rb +25 -0
  1138. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json.rb +293 -0
  1139. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json_addition.rb +161 -0
  1140. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json_fixtures.rb +30 -0
  1141. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json_generate.rb +100 -0
  1142. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json_rails.rb +118 -0
  1143. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tests/test_json_unicode.rb +61 -0
  1144. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tools/fuzz.rb +140 -0
  1145. data/spec10/public/webrat/test_app/gems/gems/json_pure-1.1.3/tools/server.rb +62 -0
  1146. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/CHANGELOG +1126 -0
  1147. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/CONTRIBUTORS +133 -0
  1148. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/LICENSE +20 -0
  1149. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/PUBLIC_CHANGELOG +157 -0
  1150. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/README +53 -0
  1151. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/Rakefile +461 -0
  1152. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/TODO +0 -0
  1153. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/bin/merb +11 -0
  1154. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/bin/merb-specs +5 -0
  1155. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/autoload.rb +32 -0
  1156. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/bootloader.rb +1346 -0
  1157. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/config.rb +470 -0
  1158. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/constants.rb +97 -0
  1159. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/abstract_controller.rb +713 -0
  1160. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/exceptions.rb +346 -0
  1161. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/merb_controller.rb +390 -0
  1162. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mime.rb +135 -0
  1163. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mixins/authentication.rb +168 -0
  1164. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mixins/conditional_get.rb +97 -0
  1165. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mixins/controller.rb +348 -0
  1166. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mixins/render.rb +532 -0
  1167. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/mixins/responder.rb +492 -0
  1168. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/controller/template.rb +299 -0
  1169. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/core_ext/hash.rb +16 -0
  1170. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/core_ext/kernel.rb +406 -0
  1171. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/core_ext.rb +9 -0
  1172. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/cookies.rb +130 -0
  1173. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/default_exception/default_exception.rb +93 -0
  1174. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/default_exception/views/_css.html.erb +200 -0
  1175. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/default_exception/views/_javascript.html.erb +77 -0
  1176. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/default_exception/views/index.html.erb +98 -0
  1177. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/dispatcher.rb +156 -0
  1178. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/request.rb +608 -0
  1179. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/request_parsers.rb +236 -0
  1180. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/router/behavior.rb +785 -0
  1181. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/router/cached_proc.rb +52 -0
  1182. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/router/resources.rb +329 -0
  1183. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/router/route.rb +632 -0
  1184. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/router.rb +355 -0
  1185. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session/container.rb +90 -0
  1186. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session/cookie.rb +202 -0
  1187. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session/memcached.rb +72 -0
  1188. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session/memory.rb +111 -0
  1189. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session/store_container.rb +162 -0
  1190. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/session.rb +266 -0
  1191. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/dispatch/worker.rb +42 -0
  1192. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/gem_ext/erubis.rb +81 -0
  1193. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/logger.rb +193 -0
  1194. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/plugins.rb +80 -0
  1195. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/abstract.rb +268 -0
  1196. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/ebb.rb +24 -0
  1197. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/evented_mongrel.rb +13 -0
  1198. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/fcgi.rb +17 -0
  1199. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/irb.rb +164 -0
  1200. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/mongrel.rb +41 -0
  1201. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/runner.rb +28 -0
  1202. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/swiftiplied_mongrel.rb +14 -0
  1203. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/thin.rb +38 -0
  1204. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/thin_turbo.rb +17 -0
  1205. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter/webrick.rb +72 -0
  1206. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/adapter.rb +48 -0
  1207. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/application.rb +54 -0
  1208. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/handler/mongrel.rb +96 -0
  1209. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/helpers.rb +33 -0
  1210. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/conditional_get.rb +29 -0
  1211. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/content_length.rb +18 -0
  1212. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/path_prefix.rb +31 -0
  1213. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/profiler.rb +19 -0
  1214. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/static.rb +49 -0
  1215. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware/tracer.rb +20 -0
  1216. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/middleware.rb +20 -0
  1217. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack/stream_wrapper.rb +41 -0
  1218. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/rack.rb +27 -0
  1219. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/server.rb +386 -0
  1220. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/tasks/audit.rake +68 -0
  1221. data/{lib → spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib}/merb-core/tasks/gem_management.rb +1 -1
  1222. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/tasks/merb.rb +4 -0
  1223. data/{lib → spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib}/merb-core/tasks/merb_rake_helper.rb +1 -1
  1224. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/tasks/stats.rake +71 -0
  1225. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/controller_helper.rb +8 -0
  1226. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/cookie_jar.rb +106 -0
  1227. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/mock_request_helper.rb +400 -0
  1228. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/multipart_request_helper.rb +176 -0
  1229. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/request_helper.rb +81 -0
  1230. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers/route_helper.rb +93 -0
  1231. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/helpers.rb +10 -0
  1232. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/matchers/controller_matchers.rb +108 -0
  1233. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/matchers/request_matchers.rb +126 -0
  1234. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/matchers/route_matchers.rb +137 -0
  1235. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/matchers/view_matchers.rb +248 -0
  1236. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/matchers.rb +13 -0
  1237. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/run_spec.rb +40 -0
  1238. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/run_specs.rb +133 -0
  1239. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/tasks/spectasks.rb +78 -0
  1240. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/hpricot.rb +32 -0
  1241. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/nokogiri.rb +15 -0
  1242. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/object.rb +14 -0
  1243. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/rspec.rb +165 -0
  1244. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/test_ext/string.rb +14 -0
  1245. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test/webrat.rb +37 -0
  1246. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/test.rb +12 -0
  1247. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/generated_parser.rb +653 -0
  1248. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/generated_tokenizer.rb +159 -0
  1249. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/node.rb +95 -0
  1250. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/parser.rb +24 -0
  1251. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/parser.y +198 -0
  1252. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/tokenizer.rb +9 -0
  1253. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/tokenizer.rex +63 -0
  1254. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css/xpath_visitor.rb +159 -0
  1255. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/vendor/nokogiri/css.rb +6 -0
  1256. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core/version.rb +3 -0
  1257. data/spec10/public/webrat/test_app/gems/gems/merb-core-0.9.14/lib/merb-core.rb +750 -0
  1258. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/LICENSE +20 -0
  1259. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/README +180 -0
  1260. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/Rakefile +73 -0
  1261. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/TODO +5 -0
  1262. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/core_ext/numeric.rb +388 -0
  1263. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/core_ext.rb +57 -0
  1264. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/date_time_formatting.rb +127 -0
  1265. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/date_time_helpers.rb +190 -0
  1266. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/form/builder.rb +413 -0
  1267. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/form/helpers.rb +449 -0
  1268. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/form_helpers.rb +17 -0
  1269. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/tag_helpers.rb +61 -0
  1270. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/text_helpers.rb +61 -0
  1271. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers/time_dsl.rb +59 -0
  1272. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/lib/merb-helpers.rb +38 -0
  1273. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/core_ext_spec.rb +19 -0
  1274. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/application.rb +4 -0
  1275. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_check_box.rb +2 -0
  1276. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_file_field.rb +2 -0
  1277. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_hidden_field.rb +2 -0
  1278. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_option_tag.rb +2 -0
  1279. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_password_field.rb +2 -0
  1280. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_radio_button.rb +2 -0
  1281. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_radio_group.rb +2 -0
  1282. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_select.rb +2 -0
  1283. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_text_area.rb +2 -0
  1284. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/bound_text_field.rb +2 -0
  1285. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/button.rb +2 -0
  1286. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/check_box.rb +2 -0
  1287. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/custom_builder.rb +2 -0
  1288. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/delete_button.rb +2 -0
  1289. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/exceptions.rb +25 -0
  1290. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/field_set.rb +2 -0
  1291. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/fields_for.rb +3 -0
  1292. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/file_field.rb +2 -0
  1293. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/foo.rb +23 -0
  1294. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/form.rb +2 -0
  1295. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/form_for.rb +2 -0
  1296. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/hidden_field.rb +2 -0
  1297. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/label.rb +3 -0
  1298. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/numeric_ext.rb +3 -0
  1299. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/option_tag.rb +2 -0
  1300. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/password_field.rb +2 -0
  1301. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/radio_button.rb +2 -0
  1302. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/radio_group.rb +2 -0
  1303. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/relative_date.rb +2 -0
  1304. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/relative_date_span.rb +2 -0
  1305. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/select.rb +2 -0
  1306. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/specs_controller.rb +11 -0
  1307. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/submit.rb +2 -0
  1308. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/tag_helper.rb +21 -0
  1309. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/text_area.rb +2 -0
  1310. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/controllers/text_field.rb +3 -0
  1311. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/helpers/global_helpers.rb +8 -0
  1312. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/models/fake_dm_model.rb +25 -0
  1313. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/models/first_generic_fake_model.rb +57 -0
  1314. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/models/second_generic_fake_model.rb +18 -0
  1315. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/models/third_generic_fake_model.rb +3 -0
  1316. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/basic.html.erb +4 -0
  1317. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/checked.html.erb +4 -0
  1318. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/errors.html.erb +4 -0
  1319. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/label.html.erb +3 -0
  1320. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/on_and_off.html.erb +3 -0
  1321. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_check_box_specs/raise_value_error.html.erb +3 -0
  1322. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_file_field_specs/additional_attributes.html.erb +3 -0
  1323. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_file_field_specs/takes_string.html.erb +3 -0
  1324. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_file_field_specs/with_label.html.erb +3 -0
  1325. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_hidden_field_specs/basic.html.erb +3 -0
  1326. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_hidden_field_specs/errors.html.erb +3 -0
  1327. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_hidden_field_specs/hidden_error.html.erb +3 -0
  1328. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_hidden_field_specs/label.html.erb +3 -0
  1329. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_option_tag_specs/grouped.html.erb +3 -0
  1330. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_option_tag_specs/nested.html.erb +3 -0
  1331. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_option_tag_specs/text_and_value.html.erb +4 -0
  1332. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_password_field_specs/attributes.html.erb +3 -0
  1333. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_password_field_specs/basic.html.erb +3 -0
  1334. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_password_field_specs/label.html.erb +3 -0
  1335. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_radio_button_specs/basic.html.erb +3 -0
  1336. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_radio_group_specs/basic.html.erb +3 -0
  1337. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_radio_group_specs/hashes.html.erb +3 -0
  1338. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_radio_group_specs/mixed.html.erb +4 -0
  1339. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_radio_group_specs/override_id.html.erb +3 -0
  1340. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/basic.html.erb +3 -0
  1341. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/blank.html.erb +3 -0
  1342. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/multiple.html.erb +3 -0
  1343. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/prompt.html.erb +3 -0
  1344. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/with_options.html.erb +3 -0
  1345. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_select_specs/with_options_with_blank.html.erb +3 -0
  1346. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_text_area_specs/basic.html.erb +3 -0
  1347. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/bound_text_field_specs/basic.html.erb +3 -0
  1348. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/button_specs/button_with_label.html.erb +1 -0
  1349. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/button_specs/button_with_values.html.erb +1 -0
  1350. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/button_specs/disabled_button.html.erb +1 -0
  1351. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/basic.html.erb +1 -0
  1352. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/boolean.html.erb +1 -0
  1353. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/disabled.html.erb +1 -0
  1354. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/label.html.erb +1 -0
  1355. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/on_off_is_boolean.html.erb +1 -0
  1356. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/raise_unless_both_on_and_off.html.erb +2 -0
  1357. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/raises_error_if_not_boolean.html.erb +1 -0
  1358. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/raises_error_if_on_off_and_boolean_false.html.erb +1 -0
  1359. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/simple.html.erb +1 -0
  1360. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/to_string.html.erb +8 -0
  1361. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/check_box_specs/unchecked.html.erb +2 -0
  1362. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/custom_builder_specs/everything.html.erb +10 -0
  1363. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/delete_button_specs/delete_with_explicit_url.html.erb +1 -0
  1364. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/delete_button_specs/delete_with_extra_params.html.erb +1 -0
  1365. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/delete_button_specs/delete_with_label.html.erb +1 -0
  1366. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/delete_button_specs/simple_delete.html.erb +1 -0
  1367. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/exeptions/client_error.html.erb +37 -0
  1368. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/exeptions/internal_server_error.html.erb +216 -0
  1369. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/exeptions/not_acceptable.html.erb +38 -0
  1370. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/exeptions/not_found.html.erb +40 -0
  1371. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/fields_for_specs/basic.html.erb +3 -0
  1372. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/fields_for_specs/midstream.html.erb +7 -0
  1373. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/fields_for_specs/nil.html.erb +3 -0
  1374. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/fieldset_specs/legend.html.erb +3 -0
  1375. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/file_field_specs/disabled.html.erb +1 -0
  1376. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/file_field_specs/makes_multipart.html.erb +3 -0
  1377. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/file_field_specs/with_label.html.erb +1 -0
  1378. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/file_field_specs/with_values.html.erb +1 -0
  1379. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/foo/bar.html.erb +0 -0
  1380. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_for_specs/basic.html.erb +3 -0
  1381. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/create_a_form.html.erb +3 -0
  1382. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/create_a_multipart_form.html.erb +3 -0
  1383. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/fake_delete_if_set.html.erb +3 -0
  1384. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/fake_put_if_set.html.erb +3 -0
  1385. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/get_if_set.html.erb +3 -0
  1386. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/post_by_default.html.erb +3 -0
  1387. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/form_specs/resourceful_form.html.erb +3 -0
  1388. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/hidden_field_specs/basic.html.erb +1 -0
  1389. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/hidden_field_specs/disabled.html.erb +1 -0
  1390. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/hidden_field_specs/label.html.erb +1 -0
  1391. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/label_specs/basic.html.erb +1 -0
  1392. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/layout/application.html.erb +11 -0
  1393. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/numeric_ext_specs/minutes_to_hours.html.erb +1 -0
  1394. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/numeric_ext_specs/to_concurrency_default.html.erb +1 -0
  1395. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/numeric_ext_specs/two_digits.html.erb +1 -0
  1396. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/array.html.erb +1 -0
  1397. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/clean.html.erb +1 -0
  1398. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/collection.html.erb +1 -0
  1399. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/multiple_selects.html.erb +1 -0
  1400. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/no_extra_attributes.html.erb +1 -0
  1401. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/optgroups.html.erb +1 -0
  1402. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/selected.html.erb +1 -0
  1403. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/with_blank.html.erb +1 -0
  1404. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/option_tag_specs/with_prompt.html.erb +1 -0
  1405. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/password_field_specs/basic.html.erb +1 -0
  1406. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/password_field_specs/disabled.html.erb +1 -0
  1407. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_button_specs/basic.html.erb +1 -0
  1408. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_button_specs/disabled.html.erb +1 -0
  1409. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_button_specs/label.html.erb +1 -0
  1410. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_group_specs/attributes.html.erb +1 -0
  1411. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_group_specs/basic.html.erb +1 -0
  1412. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_group_specs/hash.html.erb +1 -0
  1413. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/radio_group_specs/specific_attributes.html.erb +1 -0
  1414. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_span_specs/date_span_on_same_day.html.erb +1 -0
  1415. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_span_specs/date_span_on_same_day_on_different_year.html.erb +1 -0
  1416. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_specs/relative_date_with_year.html.erb +1 -0
  1417. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_specs/relative_date_without_year.html.erb +1 -0
  1418. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_specs/relative_today.html.erb +1 -0
  1419. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_specs/relative_tomorrow.html.erb +1 -0
  1420. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/relative_date_specs/relative_yesterday.html.erb +1 -0
  1421. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/select_specs/blank.html.erb +1 -0
  1422. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/select_specs/multiple.html.erb +1 -0
  1423. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/submit_specs/disabled_submit.html.erb +1 -0
  1424. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/submit_specs/submit_with_label.html.erb +1 -0
  1425. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/submit_specs/submit_with_values.html.erb +1 -0
  1426. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/tag_helper/nested_tags.html.erb +5 -0
  1427. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/tag_helper/tag_with_attributes.html.erb +1 -0
  1428. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/tag_helper/tag_with_content.html.erb +1 -0
  1429. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/tag_helper/tag_with_content_in_the_block.html.erb +3 -0
  1430. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_area_specs/basic.html.erb +1 -0
  1431. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_area_specs/disabled.html.erb +1 -0
  1432. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_area_specs/label.html.erb +1 -0
  1433. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_area_specs/nil.html.erb +1 -0
  1434. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_field_specs/basic.html.erb +1 -0
  1435. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_field_specs/class.html.erb +1 -0
  1436. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_field_specs/disabled.html.erb +1 -0
  1437. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/app/views/text_field_specs/label.html.erb +1 -0
  1438. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/environments/development.rb +6 -0
  1439. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/environments/production.rb +5 -0
  1440. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/environments/test.rb +6 -0
  1441. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/init.rb +46 -0
  1442. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/rack.rb +11 -0
  1443. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/config/router.rb +38 -0
  1444. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/public/images/merb.jpg +0 -0
  1445. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/public/merb.fcgi +4 -0
  1446. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/fixture/public/stylesheets/master.css +119 -0
  1447. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/merb_helpers_config_spec.rb +82 -0
  1448. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/merb_helpers_date_time_spec.rb +268 -0
  1449. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/merb_helpers_form_spec.rb +1237 -0
  1450. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/merb_helpers_tag_helper_spec.rb +40 -0
  1451. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/merb_helpers_text_spec.rb +67 -0
  1452. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/numeric_extlib_spec.rb +135 -0
  1453. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/ordinalize_spec.rb +51 -0
  1454. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/spec_helper.rb +156 -0
  1455. data/spec10/public/webrat/test_app/gems/gems/merb-helpers-0.9.14/spec/time_dsl_spec.rb +43 -0
  1456. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/ChangeLog +101 -0
  1457. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/Install +16 -0
  1458. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/LICENCE +18 -0
  1459. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/README +30 -0
  1460. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/Rakefile +208 -0
  1461. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/lib/mime/types.rb +1558 -0
  1462. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/pre-setup.rb +46 -0
  1463. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/setup.rb +1366 -0
  1464. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/tests/tc_mime_type.rb +275 -0
  1465. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/tests/tc_mime_types.rb +77 -0
  1466. data/spec10/public/webrat/test_app/gems/gems/mime-types-1.15/tests/testall.rb +18 -0
  1467. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/CHANGELOG +18 -0
  1468. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/COPYING +55 -0
  1469. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/LICENSE +55 -0
  1470. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/Manifest +69 -0
  1471. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/README +74 -0
  1472. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/TODO +5 -0
  1473. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/bin/mongrel_rails +283 -0
  1474. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/builder.rb +29 -0
  1475. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/camping/README +3 -0
  1476. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/camping/blog.rb +294 -0
  1477. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/camping/tepee.rb +149 -0
  1478. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/httpd.conf +474 -0
  1479. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/mime.yaml +3 -0
  1480. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/mongrel.conf +9 -0
  1481. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/mongrel_simple_ctrl.rb +92 -0
  1482. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/mongrel_simple_service.rb +116 -0
  1483. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/monitrc +57 -0
  1484. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/random_thrash.rb +19 -0
  1485. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/simpletest.rb +52 -0
  1486. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/examples/webrick_compare.rb +20 -0
  1487. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/Makefile +153 -0
  1488. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/ext_help.h +14 -0
  1489. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/extconf.rb +6 -0
  1490. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11.bundle +0 -0
  1491. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11.c +402 -0
  1492. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11.o +0 -0
  1493. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser.c +1221 -0
  1494. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser.h +49 -0
  1495. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser.java.rl +170 -0
  1496. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser.o +0 -0
  1497. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser.rl +152 -0
  1498. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11/http11_parser_common.rl +54 -0
  1499. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11_java/Http11Service.java +13 -0
  1500. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11_java/org/jruby/mongrel/Http11.java +266 -0
  1501. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/ext/http11_java/org/jruby/mongrel/Http11Parser.java +572 -0
  1502. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/http11.bundle +0 -0
  1503. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/camping.rb +107 -0
  1504. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/cgi.rb +181 -0
  1505. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/command.rb +222 -0
  1506. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb +388 -0
  1507. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/const.rb +110 -0
  1508. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/debug.rb +203 -0
  1509. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/gems.rb +22 -0
  1510. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/handlers.rb +468 -0
  1511. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/header_out.rb +28 -0
  1512. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/http_request.rb +155 -0
  1513. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/http_response.rb +163 -0
  1514. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/init.rb +10 -0
  1515. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/mime_types.yml +616 -0
  1516. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/rails.rb +185 -0
  1517. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/stats.rb +89 -0
  1518. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb +18 -0
  1519. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel/uri_classifier.rb +76 -0
  1520. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/lib/mongrel.rb +355 -0
  1521. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/mongrel-public_cert.pem +20 -0
  1522. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/mongrel.gemspec +235 -0
  1523. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/setup.rb +1585 -0
  1524. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/mime.yaml +3 -0
  1525. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/mongrel.conf +1 -0
  1526. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_cgi_wrapper.rb +26 -0
  1527. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_command.rb +86 -0
  1528. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_conditional.rb +107 -0
  1529. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_configurator.rb +87 -0
  1530. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_debug.rb +25 -0
  1531. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_handlers.rb +123 -0
  1532. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_http11.rb +156 -0
  1533. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_redirect_handler.rb +44 -0
  1534. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_request_progress.rb +99 -0
  1535. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_response.rb +127 -0
  1536. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_stats.rb +35 -0
  1537. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_uriclassifier.rb +261 -0
  1538. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/test_ws.rb +115 -0
  1539. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/test/testhelp.rb +66 -0
  1540. data/spec10/public/webrat/test_app/gems/gems/mongrel-1.1.5/tools/trickletest.rb +45 -0
  1541. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/AUTHORS +8 -0
  1542. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/COPYING +18 -0
  1543. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/KNOWN-ISSUES +18 -0
  1544. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/RDOX +265 -0
  1545. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/README +287 -0
  1546. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/Rakefile +179 -0
  1547. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/SPEC +126 -0
  1548. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/bin/rackup +172 -0
  1549. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/contrib/rack_logo.svg +111 -0
  1550. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/example/lobster.ru +4 -0
  1551. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/example/protectedlobster.rb +14 -0
  1552. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/example/protectedlobster.ru +8 -0
  1553. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/adapter/camping.rb +22 -0
  1554. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/abstract/handler.rb +28 -0
  1555. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/abstract/request.rb +37 -0
  1556. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/basic.rb +58 -0
  1557. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/digest/md5.rb +124 -0
  1558. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/digest/nonce.rb +51 -0
  1559. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/digest/params.rb +55 -0
  1560. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/digest/request.rb +40 -0
  1561. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/auth/openid.rb +437 -0
  1562. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/builder.rb +56 -0
  1563. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/cascade.rb +36 -0
  1564. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/commonlogger.rb +61 -0
  1565. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/deflater.rb +63 -0
  1566. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/directory.rb +158 -0
  1567. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/file.rb +116 -0
  1568. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/cgi.rb +57 -0
  1569. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/evented_mongrel.rb +8 -0
  1570. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/fastcgi.rb +84 -0
  1571. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/lsws.rb +52 -0
  1572. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/mongrel.rb +78 -0
  1573. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/scgi.rb +57 -0
  1574. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler/webrick.rb +57 -0
  1575. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/handler.rb +44 -0
  1576. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/lint.rb +401 -0
  1577. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/lobster.rb +65 -0
  1578. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/mock.rb +160 -0
  1579. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/recursive.rb +57 -0
  1580. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/reloader.rb +64 -0
  1581. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/request.rb +209 -0
  1582. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/response.rb +166 -0
  1583. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/session/abstract/id.rb +140 -0
  1584. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/session/cookie.rb +71 -0
  1585. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/session/memcache.rb +97 -0
  1586. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/session/pool.rb +73 -0
  1587. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/showexceptions.rb +344 -0
  1588. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/showstatus.rb +105 -0
  1589. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/static.rb +38 -0
  1590. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/urlmap.rb +48 -0
  1591. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack/utils.rb +318 -0
  1592. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/lib/rack.rb +81 -0
  1593. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/cgi/lighttpd.conf +20 -0
  1594. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/cgi/test +9 -0
  1595. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/cgi/test.fcgi +8 -0
  1596. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/cgi/test.ru +7 -0
  1597. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_auth_basic.rb +69 -0
  1598. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_auth_digest.rb +169 -0
  1599. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_auth_openid.rb +137 -0
  1600. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_builder.rb +50 -0
  1601. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_camping.rb +51 -0
  1602. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_cascade.rb +50 -0
  1603. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_cgi.rb +89 -0
  1604. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_commonlogger.rb +32 -0
  1605. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_deflater.rb +70 -0
  1606. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_directory.rb +56 -0
  1607. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_fastcgi.rb +89 -0
  1608. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_file.rb +50 -0
  1609. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_handler.rb +24 -0
  1610. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_lint.rb +303 -0
  1611. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_lobster.rb +45 -0
  1612. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_mock.rb +152 -0
  1613. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_mongrel.rb +170 -0
  1614. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_recursive.rb +77 -0
  1615. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_request.rb +401 -0
  1616. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_response.rb +167 -0
  1617. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_session_cookie.rb +49 -0
  1618. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_session_memcache.rb +132 -0
  1619. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_session_pool.rb +84 -0
  1620. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_showexceptions.rb +21 -0
  1621. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_showstatus.rb +72 -0
  1622. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_static.rb +37 -0
  1623. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_urlmap.rb +175 -0
  1624. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_utils.rb +174 -0
  1625. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/spec_rack_webrick.rb +106 -0
  1626. data/spec10/public/webrat/test_app/gems/gems/rack-0.4.0/test/testrequest.rb +45 -0
  1627. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/CHANGES +400 -0
  1628. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/MIT-LICENSE +21 -0
  1629. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/README +285 -0
  1630. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/Rakefile +418 -0
  1631. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/TODO +20 -0
  1632. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/bin/rake +31 -0
  1633. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/example/Rakefile1 +38 -0
  1634. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/example/Rakefile2 +35 -0
  1635. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/example/a.c +6 -0
  1636. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/example/b.c +6 -0
  1637. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/example/main.c +11 -0
  1638. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/glossary.rdoc +51 -0
  1639. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/jamis.rb +591 -0
  1640. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/proto_rake.rdoc +127 -0
  1641. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/rake.1.gz +0 -0
  1642. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/rakefile.rdoc +534 -0
  1643. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/rational.rdoc +151 -0
  1644. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.4.14.rdoc +23 -0
  1645. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.4.15.rdoc +35 -0
  1646. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.5.0.rdoc +53 -0
  1647. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.5.3.rdoc +78 -0
  1648. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.5.4.rdoc +46 -0
  1649. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.6.0.rdoc +141 -0
  1650. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.7.0.rdoc +119 -0
  1651. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.7.1.rdoc +59 -0
  1652. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.7.2.rdoc +121 -0
  1653. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.7.3.rdoc +47 -0
  1654. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.8.0.rdoc +114 -0
  1655. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.8.2.rdoc +165 -0
  1656. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/doc/release_notes/rake-0.8.3.rdoc +112 -0
  1657. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/install.rb +88 -0
  1658. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/classic_namespace.rb +8 -0
  1659. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/clean.rb +33 -0
  1660. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/compositepublisher.rb +24 -0
  1661. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/ftptools.rb +153 -0
  1662. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/publisher.rb +75 -0
  1663. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  1664. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/sshpublisher.rb +47 -0
  1665. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/contrib/sys.rb +209 -0
  1666. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/gempackagetask.rb +103 -0
  1667. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/loaders/makefile.rb +35 -0
  1668. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/packagetask.rb +185 -0
  1669. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/rake_test_loader.rb +5 -0
  1670. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/rdoctask.rb +147 -0
  1671. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/ruby182_test_unit_fix.rb +23 -0
  1672. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/runtest.rb +23 -0
  1673. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/tasklib.rb +23 -0
  1674. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/testtask.rb +161 -0
  1675. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake/win32.rb +54 -0
  1676. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/lib/rake.rb +2468 -0
  1677. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/capture_stdout.rb +26 -0
  1678. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/check_expansion.rb +5 -0
  1679. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/contrib/test_sys.rb +47 -0
  1680. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/chains/Rakefile +15 -0
  1681. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/default/Rakefile +19 -0
  1682. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/dryrun/Rakefile +22 -0
  1683. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/file_creation_task/Rakefile +33 -0
  1684. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/imports/Rakefile +19 -0
  1685. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/imports/deps.mf +1 -0
  1686. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/multidesc/Rakefile +17 -0
  1687. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/namespace/Rakefile +57 -0
  1688. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/rakelib/test1.rb +3 -0
  1689. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/rbext/rakefile.rb +3 -0
  1690. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/sample.mf +12 -0
  1691. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/statusreturn/Rakefile +8 -0
  1692. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/data/unittest/Rakefile +1 -0
  1693. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/filecreation.rb +32 -0
  1694. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/functional.rb +15 -0
  1695. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/in_environment.rb +30 -0
  1696. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/rake_test_setup.rb +10 -0
  1697. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/reqfile.rb +3 -0
  1698. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/reqfile2.rb +3 -0
  1699. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/session_functional.rb +337 -0
  1700. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/shellcommand.rb +3 -0
  1701. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_application.rb +694 -0
  1702. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_clean.rb +14 -0
  1703. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_definitions.rb +82 -0
  1704. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_earlytime.rb +35 -0
  1705. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_extension.rb +63 -0
  1706. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_file_creation_task.rb +62 -0
  1707. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_file_task.rb +139 -0
  1708. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_filelist.rb +618 -0
  1709. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_fileutils.rb +250 -0
  1710. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_ftp.rb +59 -0
  1711. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_invocation_chain.rb +75 -0
  1712. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_makefile_loader.rb +25 -0
  1713. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_multitask.rb +45 -0
  1714. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_namespace.rb +36 -0
  1715. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_package_task.rb +116 -0
  1716. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_pathmap.rb +209 -0
  1717. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_rake.rb +41 -0
  1718. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_require.rb +33 -0
  1719. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_rules.rb +347 -0
  1720. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_task_arguments.rb +89 -0
  1721. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_task_manager.rb +170 -0
  1722. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_tasklib.rb +12 -0
  1723. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_tasks.rb +371 -0
  1724. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_test_task.rb +75 -0
  1725. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_top_level_functions.rb +84 -0
  1726. data/spec10/public/webrat/test_app/gems/gems/rake-0.8.3/test/test_win32.rb +57 -0
  1727. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/History.txt +1198 -0
  1728. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/License.txt +22 -0
  1729. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/Manifest.txt +403 -0
  1730. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/README.txt +39 -0
  1731. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/Rakefile +89 -0
  1732. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/TODO.txt +10 -0
  1733. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/bin/autospec +4 -0
  1734. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/bin/spec +4 -0
  1735. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/autogenerated_docstrings_example.rb +19 -0
  1736. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/before_and_after_example.rb +40 -0
  1737. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/behave_as_example.rb +45 -0
  1738. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_expectation_matchers.rb +54 -0
  1739. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/custom_formatter.rb +12 -0
  1740. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/dynamic_spec.rb +9 -0
  1741. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/file_accessor.rb +19 -0
  1742. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/file_accessor_spec.rb +38 -0
  1743. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/greeter_spec.rb +31 -0
  1744. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/helper_method_example.rb +14 -0
  1745. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/io_processor.rb +8 -0
  1746. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/io_processor_spec.rb +21 -0
  1747. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/legacy_spec.rb +11 -0
  1748. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/mocking_example.rb +27 -0
  1749. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/multi_threaded_behaviour_runner.rb +28 -0
  1750. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/nested_classes_example.rb +36 -0
  1751. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/partial_mock_example.rb +29 -0
  1752. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/pending_example.rb +20 -0
  1753. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/predicate_example.rb +27 -0
  1754. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/priority.txt +1 -0
  1755. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/shared_example_group_example.rb +81 -0
  1756. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/shared_stack_examples.rb +38 -0
  1757. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/spec_helper.rb +3 -0
  1758. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/stack.rb +36 -0
  1759. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/stack_spec.rb +63 -0
  1760. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/stack_spec_with_nested_example_groups.rb +67 -0
  1761. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/stubbing_example.rb +69 -0
  1762. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/pure/yielding_example.rb +33 -0
  1763. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/adder.rb +13 -0
  1764. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/addition +34 -0
  1765. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/addition.rb +9 -0
  1766. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/calculator.rb +65 -0
  1767. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/README.txt +21 -0
  1768. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/everything.rb +6 -0
  1769. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/examples/examples.rb +3 -0
  1770. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/examples/game_behaviour.rb +35 -0
  1771. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/examples/grid_behaviour.rb +66 -0
  1772. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/CellsWithLessThanTwoNeighboursDie.story +21 -0
  1773. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/CellsWithMoreThanThreeNeighboursDie.story +21 -0
  1774. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/EmptySpacesWithThreeNeighboursCreateACell.story +42 -0
  1775. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/ICanCreateACell.story +42 -0
  1776. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/ICanKillACell.story +17 -0
  1777. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/TheGridWraps.story +53 -0
  1778. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb +52 -0
  1779. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/helper.rb +6 -0
  1780. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/kill_a_cell.rb +26 -0
  1781. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/steps.rb +5 -0
  1782. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/stories.rb +3 -0
  1783. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/stories.txt +22 -0
  1784. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/life/game.rb +23 -0
  1785. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/life/grid.rb +43 -0
  1786. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/life.rb +3 -0
  1787. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/helper.rb +9 -0
  1788. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/steps/addition_steps.rb +18 -0
  1789. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/README.txt +7 -0
  1790. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/diffing_spec.rb +36 -0
  1791. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
  1792. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/failure_in_setup.rb +10 -0
  1793. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/failure_in_teardown.rb +10 -0
  1794. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/mocking_example.rb +40 -0
  1795. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/mocking_with_flexmock.rb +26 -0
  1796. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/mocking_with_mocha.rb +25 -0
  1797. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/mocking_with_rr.rb +27 -0
  1798. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/partial_mock_example.rb +20 -0
  1799. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/predicate_example.rb +29 -0
  1800. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/raising_example.rb +47 -0
  1801. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/spec_helper.rb +3 -0
  1802. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/syntax_error_example.rb +7 -0
  1803. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/team_spec.rb +44 -0
  1804. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/failing_examples/timeout_behaviour.rb +7 -0
  1805. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/init.rb +9 -0
  1806. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/autotest/discover.rb +3 -0
  1807. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/autotest/rspec.rb +46 -0
  1808. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/mri.rb +8 -0
  1809. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine/rubinius.rb +8 -0
  1810. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters/ruby_engine.rb +26 -0
  1811. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/adapters.rb +1 -0
  1812. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/before_and_after_hooks.rb +93 -0
  1813. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/configuration.rb +167 -0
  1814. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/errors.rb +30 -0
  1815. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group.rb +25 -0
  1816. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group_factory.rb +81 -0
  1817. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_group_methods.rb +368 -0
  1818. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_matcher.rb +44 -0
  1819. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/example_methods.rb +105 -0
  1820. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/module_reopening_fix.rb +21 -0
  1821. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/pending.rb +18 -0
  1822. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example/shared_example_group.rb +52 -0
  1823. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/example.rb +12 -0
  1824. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/differs/default.rb +66 -0
  1825. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/errors.rb +12 -0
  1826. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/extensions/object.rb +63 -0
  1827. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/extensions/string_and_symbol.rb +17 -0
  1828. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/extensions.rb +2 -0
  1829. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations/handler.rb +52 -0
  1830. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/expectations.rb +56 -0
  1831. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/extensions/class.rb +24 -0
  1832. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/extensions/main.rb +87 -0
  1833. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/extensions/metaclass.rb +7 -0
  1834. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/extensions/object.rb +6 -0
  1835. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/extensions.rb +4 -0
  1836. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/autorunner.rb +6 -0
  1837. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testcase.rb +71 -0
  1838. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testresult.rb +6 -0
  1839. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/testsuite_adapter.rb +34 -0
  1840. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test/unit/ui/console/testrunner.rb +61 -0
  1841. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/interop/test.rb +12 -0
  1842. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/be.rb +221 -0
  1843. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/be_close.rb +37 -0
  1844. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/change.rb +148 -0
  1845. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/eql.rb +43 -0
  1846. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/equal.rb +43 -0
  1847. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/exist.rb +22 -0
  1848. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/has.rb +34 -0
  1849. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/have.rb +150 -0
  1850. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/include.rb +77 -0
  1851. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/match.rb +41 -0
  1852. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/operator_matcher.rb +79 -0
  1853. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/raise_error.rb +132 -0
  1854. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/respond_to.rb +46 -0
  1855. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/satisfy.rb +47 -0
  1856. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/simple_matcher.rb +132 -0
  1857. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers/throw_symbol.rb +74 -0
  1858. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/matchers.rb +162 -0
  1859. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/argument_constraints.rb +165 -0
  1860. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/argument_expectation.rb +49 -0
  1861. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/error_generator.rb +84 -0
  1862. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/errors.rb +10 -0
  1863. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/extensions/object.rb +3 -0
  1864. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/extensions.rb +1 -0
  1865. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/framework.rb +15 -0
  1866. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/message_expectation.rb +331 -0
  1867. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/methods.rb +51 -0
  1868. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/mock.rb +56 -0
  1869. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/order_group.rb +29 -0
  1870. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/proxy.rb +224 -0
  1871. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/space.rb +28 -0
  1872. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks/spec_methods.rb +46 -0
  1873. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/mocks.rb +200 -0
  1874. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/rake/spectask.rb +227 -0
  1875. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/rake/verify_rcov.rb +52 -0
  1876. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/backtrace_tweaker.rb +56 -0
  1877. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/class_and_arguments_parser.rb +16 -0
  1878. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/command_line.rb +17 -0
  1879. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb +20 -0
  1880. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb +59 -0
  1881. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/base_formatter.rb +79 -0
  1882. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/base_text_formatter.rb +126 -0
  1883. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_example_groups_formatter.rb +27 -0
  1884. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_examples_formatter.rb +20 -0
  1885. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/html_formatter.rb +337 -0
  1886. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/nested_text_formatter.rb +65 -0
  1887. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/profile_formatter.rb +51 -0
  1888. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/progress_bar_formatter.rb +34 -0
  1889. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/snippet_extractor.rb +52 -0
  1890. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/specdoc_formatter.rb +39 -0
  1891. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/story/html_formatter.rb +174 -0
  1892. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/story/plain_text_formatter.rb +194 -0
  1893. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/story/progress_bar_formatter.rb +42 -0
  1894. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb +16 -0
  1895. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/heckle_runner.rb +72 -0
  1896. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/heckle_runner_unsupported.rb +10 -0
  1897. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/option_parser.rb +205 -0
  1898. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/options.rb +320 -0
  1899. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/reporter.rb +167 -0
  1900. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/spec_parser.rb +71 -0
  1901. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner.rb +213 -0
  1902. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/extensions/main.rb +86 -0
  1903. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/extensions/regexp.rb +9 -0
  1904. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/extensions/string.rb +9 -0
  1905. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/extensions.rb +3 -0
  1906. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/given_scenario.rb +14 -0
  1907. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/plain_text_story_runner.rb +48 -0
  1908. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/scenario_collector.rb +18 -0
  1909. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/scenario_runner.rb +54 -0
  1910. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/story_mediator.rb +137 -0
  1911. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/story_parser.rb +247 -0
  1912. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner/story_runner.rb +70 -0
  1913. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/runner.rb +59 -0
  1914. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/scenario.rb +14 -0
  1915. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/step.rb +70 -0
  1916. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/step_group.rb +89 -0
  1917. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/step_mother.rb +38 -0
  1918. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/story.rb +39 -0
  1919. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story/world.rb +128 -0
  1920. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/story.rb +10 -0
  1921. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/version.rb +13 -0
  1922. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec.rb +32 -0
  1923. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/plugins/mock_frameworks/flexmock.rb +23 -0
  1924. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/plugins/mock_frameworks/mocha.rb +19 -0
  1925. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/plugins/mock_frameworks/rr.rb +21 -0
  1926. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/plugins/mock_frameworks/rspec.rb +20 -0
  1927. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/rake_tasks/examples.rake +7 -0
  1928. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/rake_tasks/examples_with_rcov.rake +9 -0
  1929. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/rake_tasks/failing_examples_with_html.rake +9 -0
  1930. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/rake_tasks/verify_rcov.rake +7 -0
  1931. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/rspec.gemspec +22 -0
  1932. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/README.jruby +15 -0
  1933. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/autotest/autotest_helper.rb +6 -0
  1934. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/autotest/autotest_matchers.rb +47 -0
  1935. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/autotest/discover_spec.rb +19 -0
  1936. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/autotest/rspec_spec.rb +150 -0
  1937. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/rspec_suite.rb +6 -0
  1938. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/ruby_forker.rb +13 -0
  1939. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/adapters/ruby_engine_spec.rb +16 -0
  1940. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/configuration_spec.rb +296 -0
  1941. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_group_class_definition_spec.rb +48 -0
  1942. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_group_factory_spec.rb +165 -0
  1943. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_group_methods_spec.rb +584 -0
  1944. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_group_spec.rb +683 -0
  1945. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_matcher_spec.rb +96 -0
  1946. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_methods_spec.rb +169 -0
  1947. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/example_runner_spec.rb +194 -0
  1948. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/nested_example_group_spec.rb +71 -0
  1949. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/pending_module_spec.rb +145 -0
  1950. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/predicate_matcher_spec.rb +21 -0
  1951. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/shared_example_group_spec.rb +281 -0
  1952. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/example/subclassing_example_group_spec.rb +25 -0
  1953. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/expectations/differs/default_spec.rb +127 -0
  1954. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/expectations/extensions/object_spec.rb +95 -0
  1955. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/expectations/fail_with_spec.rb +71 -0
  1956. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/extensions/main_spec.rb +71 -0
  1957. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
  1958. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
  1959. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
  1960. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/spec_with_options_hash.rb +13 -0
  1961. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
  1962. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
  1963. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
  1964. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
  1965. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/spec_spec.rb +52 -0
  1966. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/test_unit_spec_helper.rb +14 -0
  1967. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/testcase_spec.rb +49 -0
  1968. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +9 -0
  1969. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/be_close_spec.rb +39 -0
  1970. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/be_spec.rb +248 -0
  1971. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/change_spec.rb +329 -0
  1972. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/description_generation_spec.rb +153 -0
  1973. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/eql_spec.rb +28 -0
  1974. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/equal_spec.rb +28 -0
  1975. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb +57 -0
  1976. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/handler_spec.rb +150 -0
  1977. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/has_spec.rb +63 -0
  1978. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/have_spec.rb +394 -0
  1979. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/include_spec.rb +64 -0
  1980. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/match_spec.rb +37 -0
  1981. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/matcher_methods_spec.rb +78 -0
  1982. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb +24 -0
  1983. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/operator_matcher_spec.rb +191 -0
  1984. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/raise_error_spec.rb +315 -0
  1985. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/respond_to_spec.rb +54 -0
  1986. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/satisfy_spec.rb +36 -0
  1987. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/simple_matcher_spec.rb +93 -0
  1988. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/throw_symbol_spec.rb +54 -0
  1989. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/any_number_of_times_spec.rb +36 -0
  1990. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/argument_expectation_spec.rb +23 -0
  1991. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/at_least_spec.rb +97 -0
  1992. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/at_most_spec.rb +93 -0
  1993. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10260_spec.rb +8 -0
  1994. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_10263_spec.rb +24 -0
  1995. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_11545_spec.rb +33 -0
  1996. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_15719_spec.rb +30 -0
  1997. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_496.rb +17 -0
  1998. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7611_spec.rb +19 -0
  1999. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_7805_spec.rb +22 -0
  2000. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8165_spec.rb +31 -0
  2001. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/bug_report_8302_spec.rb +26 -0
  2002. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +95 -0
  2003. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/hash_including_matcher_spec.rb +53 -0
  2004. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/mock_ordering_spec.rb +84 -0
  2005. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/mock_space_spec.rb +54 -0
  2006. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/mock_spec.rb +555 -0
  2007. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/multiple_return_value_spec.rb +113 -0
  2008. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/nil_expectation_warning_spec.rb +53 -0
  2009. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/null_object_mock_spec.rb +54 -0
  2010. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/once_counts_spec.rb +53 -0
  2011. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/options_hash_spec.rb +35 -0
  2012. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_spec.rb +149 -0
  2013. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb +66 -0
  2014. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +130 -0
  2015. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/precise_counts_spec.rb +52 -0
  2016. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/record_messages_spec.rb +26 -0
  2017. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/stub_spec.rb +188 -0
  2018. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/mocks/twice_counts_spec.rb +67 -0
  2019. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/package/bin_spec_spec.rb +22 -0
  2020. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/class_and_argument_parser_spec.rb +23 -0
  2021. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/command_line_spec.rb +141 -0
  2022. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/drb_command_line_spec.rb +97 -0
  2023. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/empty_file.txt +0 -0
  2024. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/examples.txt +2 -0
  2025. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/failed.txt +3 -0
  2026. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/base_formatter_spec.rb +112 -0
  2027. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +45 -0
  2028. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/failing_examples_formatter_spec.rb +33 -0
  2029. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.4.html +365 -0
  2030. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html +387 -0
  2031. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.5.html +371 -0
  2032. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +381 -0
  2033. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatted-1.8.6.html +370 -0
  2034. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/html_formatter_spec.rb +61 -0
  2035. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/nested_text_formatter_spec.rb +318 -0
  2036. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/profile_formatter_spec.rb +65 -0
  2037. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +155 -0
  2038. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/snippet_extractor_spec.rb +18 -0
  2039. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +103 -0
  2040. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/specdoc_formatter_spec.rb +159 -0
  2041. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/story/html_formatter_spec.rb +135 -0
  2042. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +600 -0
  2043. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb +82 -0
  2044. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.4.html +365 -0
  2045. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +370 -0
  2046. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/heckle_runner_spec.rb +78 -0
  2047. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/heckler_spec.rb +13 -0
  2048. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/noisy_backtrace_tweaker_spec.rb +45 -0
  2049. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/option_parser_spec.rb +421 -0
  2050. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/options_spec.rb +450 -0
  2051. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture.rb +7 -0
  2052. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/output_one_time_fixture_runner.rb +8 -0
  2053. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/output_one_time_spec.rb +16 -0
  2054. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/quiet_backtrace_tweaker_spec.rb +62 -0
  2055. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/reporter_spec.rb +238 -0
  2056. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/resources/a_bar.rb +0 -0
  2057. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/resources/a_foo.rb +0 -0
  2058. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/resources/a_spec.rb +1 -0
  2059. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/spec.opts +2 -0
  2060. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/spec_drb.opts +1 -0
  2061. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/spec_parser/spec_parser_fixture.rb +70 -0
  2062. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/spec_parser_spec.rb +85 -0
  2063. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner/spec_spaced.opts +2 -0
  2064. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/runner_spec.rb +11 -0
  2065. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/spec_classes.rb +133 -0
  2066. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/builders.rb +46 -0
  2067. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/extensions/main_spec.rb +161 -0
  2068. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/extensions_spec.rb +14 -0
  2069. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/given_scenario_spec.rb +27 -0
  2070. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/plain_text_story_runner_spec.rb +90 -0
  2071. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/scenario_collector_spec.rb +27 -0
  2072. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/scenario_runner_spec.rb +214 -0
  2073. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/story_mediator_spec.rb +143 -0
  2074. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/story_parser_spec.rb +401 -0
  2075. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner/story_runner_spec.rb +294 -0
  2076. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/runner_spec.rb +93 -0
  2077. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/scenario_spec.rb +18 -0
  2078. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/step_group_spec.rb +157 -0
  2079. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/step_mother_spec.rb +84 -0
  2080. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/step_spec.rb +272 -0
  2081. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/story_helper.rb +2 -0
  2082. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/story_spec.rb +84 -0
  2083. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/story/world_spec.rb +423 -0
  2084. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec.opts +6 -0
  2085. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec_helper.rb +77 -0
  2086. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/all.rb +5 -0
  2087. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/configuration/before_blocks.story +21 -0
  2088. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/configuration/stories.rb +7 -0
  2089. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/autogenerated_docstrings +45 -0
  2090. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/example_group_with_should_methods +17 -0
  2091. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/nested_groups +17 -0
  2092. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/output +25 -0
  2093. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/example_groups/stories.rb +7 -0
  2094. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/helper.rb +6 -0
  2095. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/interop/examples_and_tests_together +30 -0
  2096. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/interop/stories.rb +7 -0
  2097. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/interop/test_case_with_should_methods +17 -0
  2098. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/mock_framework_integration/stories.rb +7 -0
  2099. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/mock_framework_integration/use_flexmock.story +9 -0
  2100. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/pending_stories/README +3 -0
  2101. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/helpers/cmdline.rb +9 -0
  2102. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/helpers/story_helper.rb +16 -0
  2103. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/matchers/smart_match.rb +37 -0
  2104. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/before_blocks_example.rb +32 -0
  2105. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/example_group_with_should_methods.rb +12 -0
  2106. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/simple_spec.rb +8 -0
  2107. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/spec/spec_with_flexmock.rb +18 -0
  2108. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/steps/running_rspec.rb +50 -0
  2109. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/stories/failing_story.rb +15 -0
  2110. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/test/spec_and_test_together.rb +57 -0
  2111. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/resources/test/test_case_with_should_methods.rb +30 -0
  2112. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/stories/multiline_steps.story +23 -0
  2113. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/stories/steps/multiline_steps.rb +13 -0
  2114. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/stories/stories/stories.rb +6 -0
  2115. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/builder.js +136 -0
  2116. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/controls.js +972 -0
  2117. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/dragdrop.js +976 -0
  2118. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/effects.js +1117 -0
  2119. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/prototype.js +4140 -0
  2120. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/rspec.js +149 -0
  2121. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/scriptaculous.js +58 -0
  2122. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/slider.js +276 -0
  2123. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/sound.js +55 -0
  2124. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/javascripts/unittest.js +568 -0
  2125. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/lib/server.rb +24 -0
  2126. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/stories.html +176 -0
  2127. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/stylesheets/rspec.css +136 -0
  2128. data/spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/story_server/prototype/stylesheets/test.css +90 -0
  2129. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/CHANGELOG.rdoc +52 -0
  2130. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/LICENSE +20 -0
  2131. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/README.markdown +76 -0
  2132. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/Rakefile +6 -0
  2133. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/bin/rake2thor +83 -0
  2134. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/bin/thor +7 -0
  2135. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/error.rb +3 -0
  2136. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/options.rb +242 -0
  2137. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/ordered_hash.rb +64 -0
  2138. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/runner.rb +286 -0
  2139. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/task.rb +84 -0
  2140. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/task_hash.rb +22 -0
  2141. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/tasks/package.rb +18 -0
  2142. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/tasks.rb +77 -0
  2143. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor/util.rb +57 -0
  2144. data/spec10/public/webrat/test_app/gems/gems/thor-0.9.8/lib/thor.rb +146 -0
  2145. data/spec10/public/webrat/test_app/gems/specifications/abstract-1.0.0.gemspec +29 -0
  2146. data/spec10/public/webrat/test_app/gems/specifications/cgi_multipart_eof_fix-2.5.0.gemspec +31 -0
  2147. data/spec10/public/webrat/test_app/gems/specifications/daemons-1.0.10.gemspec +31 -0
  2148. data/spec10/public/webrat/test_app/gems/specifications/erubis-2.6.2.gemspec +34 -0
  2149. data/spec10/public/webrat/test_app/gems/specifications/extlib-0.9.8.gemspec +28 -0
  2150. data/spec10/public/webrat/test_app/gems/specifications/fastthread-1.0.1.gemspec +32 -0
  2151. data/spec10/public/webrat/test_app/gems/specifications/gem_plugin-0.2.3.gemspec +33 -0
  2152. data/spec10/public/webrat/test_app/gems/specifications/json_pure-1.1.3.gemspec +33 -0
  2153. data/spec10/public/webrat/test_app/gems/specifications/merb-core-0.9.14.gemspec +57 -0
  2154. data/spec10/public/webrat/test_app/gems/specifications/merb-helpers-0.9.14.gemspec +33 -0
  2155. data/spec10/public/webrat/test_app/gems/specifications/mime-types-1.15.gemspec +34 -0
  2156. data/spec10/public/webrat/test_app/gems/specifications/mongrel-1.1.5.gemspec +49 -0
  2157. data/spec10/public/webrat/test_app/gems/specifications/rack-0.4.0.gemspec +33 -0
  2158. data/spec10/public/webrat/test_app/gems/specifications/rake-0.8.3.gemspec +33 -0
  2159. data/spec10/public/webrat/test_app/gems/specifications/rspec-1.1.11.gemspec +35 -0
  2160. data/spec10/public/webrat/test_app/gems/specifications/thor-0.9.8.gemspec +31 -0
  2161. data/spec10/public/webrat/test_app/merb/merb-auth/setup.rb +44 -0
  2162. data/spec10/public/webrat/test_app/merb/merb-auth/strategies.rb +11 -0
  2163. data/spec10/public/webrat/test_app/merb/session/session.rb +9 -0
  2164. data/spec10/public/webrat/test_app/public/favicon.ico +0 -0
  2165. data/spec10/public/webrat/test_app/public/images/merb.jpg +0 -0
  2166. data/spec10/public/webrat/test_app/public/javascripts/application.js +1 -0
  2167. data/spec10/public/webrat/test_app/public/javascripts/jquery.js +32 -0
  2168. data/spec10/public/webrat/test_app/public/merb.fcgi +22 -0
  2169. data/spec10/public/webrat/test_app/public/robots.txt +5 -0
  2170. data/spec10/public/webrat/test_app/public/stylesheets/master.css +119 -0
  2171. data/spec10/public/webrat/test_app/tasks/doc.thor +149 -0
  2172. data/spec10/public/webrat/test_app/tasks/merb.thor +2012 -0
  2173. data/spec10/public/webrat/webrat_spec.rb +75 -0
  2174. data/spec10/spec_helper.rb +134 -0
  2175. metadata +2172 -41
  2176. data/lib/merb-core/core_ext/json_pure_fix.rb +0 -14
@@ -0,0 +1,2012 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'thor'
4
+ require 'fileutils'
5
+ require 'yaml'
6
+
7
+ # Important - don't change this line or its position
8
+ MERB_THOR_VERSION = '0.2.0'
9
+
10
+ ##############################################################################
11
+
12
+ module ColorfulMessages
13
+
14
+ # red
15
+ def error(*messages)
16
+ puts messages.map { |msg| "\033[1;31m#{msg}\033[0m" }
17
+ end
18
+
19
+ # yellow
20
+ def warning(*messages)
21
+ puts messages.map { |msg| "\033[1;33m#{msg}\033[0m" }
22
+ end
23
+
24
+ # green
25
+ def success(*messages)
26
+ puts messages.map { |msg| "\033[1;32m#{msg}\033[0m" }
27
+ end
28
+
29
+ alias_method :message, :success
30
+
31
+ # magenta
32
+ def note(*messages)
33
+ puts messages.map { |msg| "\033[1;35m#{msg}\033[0m" }
34
+ end
35
+
36
+ # blue
37
+ def info(*messages)
38
+ puts messages.map { |msg| "\033[1;34m#{msg}\033[0m" }
39
+ end
40
+
41
+ end
42
+
43
+ ##############################################################################
44
+
45
+ require 'rubygems/dependency_installer'
46
+ require 'rubygems/uninstaller'
47
+ require 'rubygems/dependency'
48
+
49
+ module GemManagement
50
+
51
+ include ColorfulMessages
52
+
53
+ # Install a gem - looks remotely and local gem cache;
54
+ # won't process rdoc or ri options.
55
+ def install_gem(gem, options = {})
56
+ refresh = options.delete(:refresh) || []
57
+ from_cache = (options.key?(:cache) && options.delete(:cache))
58
+ if from_cache
59
+ install_gem_from_cache(gem, options)
60
+ else
61
+ version = options.delete(:version)
62
+ Gem.configuration.update_sources = false
63
+
64
+ # Limit source index to install dir
65
+ update_source_index(options[:install_dir]) if options[:install_dir]
66
+
67
+ installer = Gem::DependencyInstaller.new(options.merge(:user_install => false))
68
+
69
+ # Force-refresh certain gems by excluding them from the current index
70
+ if !options[:ignore_dependencies] && refresh.respond_to?(:include?) && !refresh.empty?
71
+ source_index = installer.instance_variable_get(:@source_index)
72
+ source_index.gems.each do |name, spec|
73
+ source_index.gems.delete(name) if refresh.include?(spec.name)
74
+ end
75
+ end
76
+
77
+ exception = nil
78
+ begin
79
+ installer.install gem, version
80
+ rescue Gem::InstallError => e
81
+ exception = e
82
+ rescue Gem::GemNotFoundException => e
83
+ if from_cache && gem_file = find_gem_in_cache(gem, version)
84
+ puts "Located #{gem} in gem cache..."
85
+ installer.install gem_file
86
+ else
87
+ exception = e
88
+ end
89
+ rescue => e
90
+ exception = e
91
+ end
92
+ if installer.installed_gems.empty? && exception
93
+ error "Failed to install gem '#{gem} (#{version || 'any version'})' (#{exception.message})"
94
+ end
95
+ ensure_bin_wrapper_for_installed_gems(installer.installed_gems, options)
96
+ installer.installed_gems.each do |spec|
97
+ success "Successfully installed #{spec.full_name}"
98
+ end
99
+ return !installer.installed_gems.empty?
100
+ end
101
+ end
102
+
103
+ # Install a gem - looks in the system's gem cache instead of remotely;
104
+ # won't process rdoc or ri options.
105
+ def install_gem_from_cache(gem, options = {})
106
+ version = options.delete(:version)
107
+ Gem.configuration.update_sources = false
108
+ installer = Gem::DependencyInstaller.new(options.merge(:user_install => false))
109
+ exception = nil
110
+ begin
111
+ if gem_file = find_gem_in_cache(gem, version)
112
+ puts "Located #{gem} in gem cache..."
113
+ installer.install gem_file
114
+ else
115
+ raise Gem::InstallError, "Unknown gem #{gem}"
116
+ end
117
+ rescue Gem::InstallError => e
118
+ exception = e
119
+ end
120
+ if installer.installed_gems.empty? && exception
121
+ error "Failed to install gem '#{gem}' (#{e.message})"
122
+ end
123
+ ensure_bin_wrapper_for_installed_gems(installer.installed_gems, options)
124
+ installer.installed_gems.each do |spec|
125
+ success "Successfully installed #{spec.full_name}"
126
+ end
127
+ end
128
+
129
+ # Install a gem from source - builds and packages it first then installs.
130
+ #
131
+ # Examples:
132
+ # install_gem_from_source(source_dir, :install_dir => ...)
133
+ # install_gem_from_source(source_dir, gem_name)
134
+ # install_gem_from_source(source_dir, :skip => [...])
135
+ def install_gem_from_source(source_dir, *args)
136
+ installed_gems = []
137
+ opts = args.last.is_a?(Hash) ? args.pop : {}
138
+ Dir.chdir(source_dir) do
139
+ gem_name = args[0] || File.basename(source_dir)
140
+ gem_pkg_dir = File.join(source_dir, 'pkg')
141
+ gem_pkg_glob = File.join(gem_pkg_dir, "#{gem_name}-*.gem")
142
+ skip_gems = opts.delete(:skip) || []
143
+
144
+ # Cleanup what's already there
145
+ clobber(source_dir)
146
+ FileUtils.mkdir_p(gem_pkg_dir) unless File.directory?(gem_pkg_dir)
147
+
148
+ # Recursively process all gem packages within the source dir
149
+ skip_gems << gem_name
150
+ packages = package_all(source_dir, skip_gems)
151
+
152
+ if packages.length == 1
153
+ # The are no subpackages for the main package
154
+ refresh = [gem_name]
155
+ else
156
+ # Gather all packages into the top-level pkg directory
157
+ packages.each do |pkg|
158
+ FileUtils.copy_entry(pkg, File.join(gem_pkg_dir, File.basename(pkg)))
159
+ end
160
+
161
+ # Finally package the main gem - without clobbering the already copied pkgs
162
+ package(source_dir, false)
163
+
164
+ # Gather subgems to refresh during installation of the main gem
165
+ refresh = packages.map do |pkg|
166
+ File.basename(pkg, '.gem')[/^(.*?)-([\d\.]+)$/, 1] rescue nil
167
+ end.compact
168
+
169
+ # Install subgems explicitly even if ignore_dependencies is set
170
+ if opts[:ignore_dependencies]
171
+ refresh.each do |name|
172
+ gem_pkg = Dir[File.join(gem_pkg_dir, "#{name}-*.gem")][0]
173
+ install_pkg(gem_pkg, opts)
174
+ end
175
+ end
176
+ end
177
+
178
+ ensure_bin_wrapper_for(opts[:install_dir], opts[:bin_dir], *installed_gems)
179
+
180
+ # Finally install the main gem
181
+ if install_pkg(Dir[gem_pkg_glob][0], opts.merge(:refresh => refresh))
182
+ installed_gems = refresh
183
+ else
184
+ installed_gems = []
185
+ end
186
+ end
187
+ installed_gems
188
+ end
189
+
190
+ def install_pkg(gem_pkg, opts = {})
191
+ if (gem_pkg && File.exists?(gem_pkg))
192
+ # Needs to be executed from the directory that contains all packages
193
+ Dir.chdir(File.dirname(gem_pkg)) { install_gem(gem_pkg, opts) }
194
+ else
195
+ false
196
+ end
197
+ end
198
+
199
+ # Uninstall a gem.
200
+ def uninstall_gem(gem, options = {})
201
+ if options[:version] && !options[:version].is_a?(Gem::Requirement)
202
+ options[:version] = Gem::Requirement.new ["= #{options[:version]}"]
203
+ end
204
+ update_source_index(options[:install_dir]) if options[:install_dir]
205
+ Gem::Uninstaller.new(gem, options).uninstall rescue nil
206
+ end
207
+
208
+ def clobber(source_dir)
209
+ Dir.chdir(source_dir) do
210
+ system "#{Gem.ruby} -S rake -s clobber" unless File.exists?('Thorfile')
211
+ end
212
+ end
213
+
214
+ def package(source_dir, clobber = true)
215
+ Dir.chdir(source_dir) do
216
+ if File.exists?('Thorfile')
217
+ thor ":package"
218
+ elsif File.exists?('Rakefile')
219
+ rake "clobber" if clobber
220
+ rake "package"
221
+ end
222
+ end
223
+ Dir[File.join(source_dir, 'pkg/*.gem')]
224
+ end
225
+
226
+ def package_all(source_dir, skip = [], packages = [])
227
+ if Dir[File.join(source_dir, '{Rakefile,Thorfile}')][0]
228
+ name = File.basename(source_dir)
229
+ Dir[File.join(source_dir, '*', '{Rakefile,Thorfile}')].each do |taskfile|
230
+ package_all(File.dirname(taskfile), skip, packages)
231
+ end
232
+ packages.push(*package(source_dir)) unless skip.include?(name)
233
+ end
234
+ packages.uniq
235
+ end
236
+
237
+ def rake(cmd)
238
+ cmd << " >/dev/null" if $SILENT && !Gem.win_platform?
239
+ system "#{Gem.ruby} -S #{which('rake')} -s #{cmd} >/dev/null"
240
+ end
241
+
242
+ def thor(cmd)
243
+ cmd << " >/dev/null" if $SILENT && !Gem.win_platform?
244
+ system "#{Gem.ruby} -S #{which('thor')} #{cmd}"
245
+ end
246
+
247
+ # Use the local bin/* executables if available.
248
+ def which(executable)
249
+ if File.executable?(exec = File.join(Dir.pwd, 'bin', executable))
250
+ exec
251
+ else
252
+ executable
253
+ end
254
+ end
255
+
256
+ # Partition gems into system, local and missing gems
257
+ def partition_dependencies(dependencies, gem_dir)
258
+ system_specs, local_specs, missing_deps = [], [], []
259
+ if gem_dir && File.directory?(gem_dir)
260
+ gem_dir = File.expand_path(gem_dir)
261
+ ::Gem.clear_paths; ::Gem.path.unshift(gem_dir)
262
+ ::Gem.source_index.refresh!
263
+ dependencies.each do |dep|
264
+ gemspecs = ::Gem.source_index.search(dep)
265
+ local = gemspecs.reverse.find { |s| s.loaded_from.index(gem_dir) == 0 }
266
+ if local
267
+ local_specs << local
268
+ elsif gemspecs.last
269
+ system_specs << gemspecs.last
270
+ else
271
+ missing_deps << dep
272
+ end
273
+ end
274
+ ::Gem.clear_paths
275
+ else
276
+ dependencies.each do |dep|
277
+ gemspecs = ::Gem.source_index.search(dep)
278
+ if gemspecs.last
279
+ system_specs << gemspecs.last
280
+ else
281
+ missing_deps << dep
282
+ end
283
+ end
284
+ end
285
+ [system_specs, local_specs, missing_deps]
286
+ end
287
+
288
+ # Create a modified executable wrapper in the specified bin directory.
289
+ def ensure_bin_wrapper_for(gem_dir, bin_dir, *gems)
290
+ options = gems.last.is_a?(Hash) ? gems.last : {}
291
+ options[:no_minigems] ||= []
292
+ if bin_dir && File.directory?(bin_dir)
293
+ gems.each do |gem|
294
+ if gemspec_path = Dir[File.join(gem_dir, 'specifications', "#{gem}-*.gemspec")].last
295
+ spec = Gem::Specification.load(gemspec_path)
296
+ enable_minigems = !options[:no_minigems].include?(spec.name)
297
+ spec.executables.each do |exec|
298
+ executable = File.join(bin_dir, exec)
299
+ message "Writing executable wrapper #{executable}"
300
+ File.open(executable, 'w', 0755) do |f|
301
+ f.write(executable_wrapper(spec, exec, enable_minigems))
302
+ end
303
+ end
304
+ end
305
+ end
306
+ end
307
+ end
308
+
309
+ def ensure_bin_wrapper_for_installed_gems(gemspecs, options)
310
+ if options[:install_dir] && options[:bin_dir]
311
+ gems = gemspecs.map { |spec| spec.name }
312
+ ensure_bin_wrapper_for(options[:install_dir], options[:bin_dir], *gems)
313
+ end
314
+ end
315
+
316
+ private
317
+
318
+ def executable_wrapper(spec, bin_file_name, minigems = true)
319
+ requirements = ['minigems', 'rubygems']
320
+ requirements.reverse! unless minigems
321
+ try_req, then_req = requirements
322
+ <<-TEXT
323
+ #!/usr/bin/env ruby
324
+ #
325
+ # This file was generated by Merb's GemManagement
326
+ #
327
+ # The application '#{spec.name}' is installed as part of a gem, and
328
+ # this file is here to facilitate running it.
329
+
330
+ begin
331
+ require '#{try_req}'
332
+ rescue LoadError
333
+ require '#{then_req}'
334
+ end
335
+
336
+ # use gems dir if ../gems exists - eg. only for ./bin/#{bin_file_name}
337
+ if File.directory?(gems_dir = File.join(File.dirname(__FILE__), '..', 'gems'))
338
+ $BUNDLE = true; Gem.clear_paths; Gem.path.replace([File.expand_path(gems_dir)])
339
+ ENV["PATH"] = "\#{File.dirname(__FILE__)}:\#{gems_dir}/bin:\#{ENV["PATH"]}"
340
+ if (local_gem = Dir[File.join(gems_dir, "specifications", "#{spec.name}-*.gemspec")].last)
341
+ version = File.basename(local_gem)[/-([\\.\\d]+)\\.gemspec$/, 1]
342
+ end
343
+ end
344
+
345
+ version ||= "#{Gem::Requirement.default}"
346
+
347
+ if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
348
+ version = $1
349
+ ARGV.shift
350
+ end
351
+
352
+ gem '#{spec.name}', version
353
+ load '#{bin_file_name}'
354
+ TEXT
355
+ end
356
+
357
+ def find_gem_in_cache(gem, version)
358
+ spec = if version
359
+ version = Gem::Requirement.new ["= #{version}"] unless version.is_a?(Gem::Requirement)
360
+ Gem.source_index.find_name(gem, version).first
361
+ else
362
+ Gem.source_index.find_name(gem).sort_by { |g| g.version }.last
363
+ end
364
+ if spec && File.exists?(gem_file = "#{spec.installation_path}/cache/#{spec.full_name}.gem")
365
+ gem_file
366
+ end
367
+ end
368
+
369
+ def update_source_index(dir)
370
+ Gem.source_index.load_gems_in(File.join(dir, 'specifications'))
371
+ end
372
+
373
+ end
374
+
375
+ ##############################################################################
376
+
377
+ class SourceManager
378
+
379
+ include ColorfulMessages
380
+
381
+ attr_accessor :source_dir
382
+
383
+ def initialize(source_dir)
384
+ self.source_dir = source_dir
385
+ end
386
+
387
+ def clone(name, url)
388
+ FileUtils.cd(source_dir) do
389
+ raise "destination directory already exists" if File.directory?(name)
390
+ system("git clone --depth 1 #{url} #{name}")
391
+ end
392
+ rescue => e
393
+ error "Unable to clone #{name} repository (#{e.message})"
394
+ end
395
+
396
+ def update(name, url)
397
+ if File.directory?(repository_dir = File.join(source_dir, name))
398
+ FileUtils.cd(repository_dir) do
399
+ repos = existing_repos(name)
400
+ fork_name = url[/.com\/+?(.+)\/.+\.git/u, 1]
401
+ if url == repos["origin"]
402
+ # Pull from the original repository - no branching needed
403
+ info "Pulling from origin: #{url}"
404
+ system "git fetch; git checkout master; git rebase origin/master"
405
+ elsif repos.values.include?(url) && fork_name
406
+ # Update and switch to a remote branch for a particular github fork
407
+ info "Switching to remote branch: #{fork_name}"
408
+ system "git checkout -b #{fork_name} #{fork_name}/master"
409
+ system "git rebase #{fork_name}/master"
410
+ elsif fork_name
411
+ # Create a new remote branch for a particular github fork
412
+ info "Adding a new remote branch: #{fork_name}"
413
+ system "git remote add -f #{fork_name} #{url}"
414
+ system "git checkout -b #{fork_name} #{fork_name}/master"
415
+ else
416
+ warning "No valid repository found for: #{name}"
417
+ end
418
+ end
419
+ return true
420
+ else
421
+ warning "No valid repository found at: #{repository_dir}"
422
+ end
423
+ rescue => e
424
+ error "Unable to update #{name} repository (#{e.message})"
425
+ return false
426
+ end
427
+
428
+ def existing_repos(name)
429
+ repos = []
430
+ FileUtils.cd(File.join(source_dir, name)) do
431
+ repos = %x[git remote -v].split("\n").map { |branch| branch.split(/\s+/) }
432
+ end
433
+ Hash[*repos.flatten]
434
+ end
435
+
436
+ end
437
+
438
+ ##############################################################################
439
+
440
+ module MerbThorHelper
441
+
442
+ attr_accessor :force_gem_dir
443
+
444
+ def self.included(base)
445
+ base.send(:include, ColorfulMessages)
446
+ base.extend ColorfulMessages
447
+ end
448
+
449
+ def use_edge_gem_server
450
+ ::Gem.sources << 'http://edge.merbivore.com'
451
+ end
452
+
453
+ def source_manager
454
+ @_source_manager ||= SourceManager.new(source_dir)
455
+ end
456
+
457
+ def extract_repositories(names)
458
+ repos = []
459
+ names.each do |name|
460
+ if repo_url = Merb::Source.repo(name, options[:sources])
461
+ # A repository entry for this dependency exists
462
+ repo = [name, repo_url]
463
+ repos << repo unless repos.include?(repo)
464
+ elsif (repo_name = Merb::Stack.lookup_repository_name(name)) &&
465
+ (repo_url = Merb::Source.repo(repo_name, options[:sources]))
466
+ # A parent repository entry for this dependency exists
467
+ repo = [repo_name, repo_url]
468
+ unless repos.include?(repo)
469
+ puts "Found #{repo_name}/#{name} at #{repo_url}"
470
+ repos << repo
471
+ end
472
+ end
473
+ end
474
+ repos
475
+ end
476
+
477
+ def update_dependency_repositories(dependencies)
478
+ repos = extract_repositories(dependencies.map { |d| d.name })
479
+ update_repositories(repos)
480
+ end
481
+
482
+ def update_repositories(repos)
483
+ repos.each do |(name, url)|
484
+ if File.directory?(repository_dir = File.join(source_dir, name))
485
+ message "Updating or branching #{name}..."
486
+ source_manager.update(name, url)
487
+ else
488
+ message "Cloning #{name} repository from #{url}..."
489
+ source_manager.clone(name, url)
490
+ end
491
+ end
492
+ end
493
+
494
+ def install_dependency(dependency, opts = {})
495
+ version = dependency.version_requirements.to_s
496
+ install_opts = default_install_options.merge(:version => version)
497
+ Merb::Gem.install(dependency.name, install_opts.merge(opts))
498
+ end
499
+
500
+ def install_dependency_from_source(dependency, opts = {})
501
+ matches = Dir[File.join(source_dir, "**", dependency.name, "{Rakefile,Thorfile}")]
502
+ matches.reject! { |m| File.basename(m) == 'Thorfile' }
503
+ if matches.length == 1 && matches[0]
504
+ if File.directory?(gem_src_dir = File.dirname(matches[0]))
505
+ begin
506
+ Merb::Gem.install_gem_from_source(gem_src_dir, default_install_options.merge(opts))
507
+ puts "Installed #{dependency.name}"
508
+ return true
509
+ rescue => e
510
+ warning "Unable to install #{dependency.name} from source (#{e.message})"
511
+ end
512
+ else
513
+ msg = "Unknown directory: #{gem_src_dir}"
514
+ warning "Unable to install #{dependency.name} from source (#{msg})"
515
+ end
516
+ elsif matches.length > 1
517
+ error "Ambigous source(s) for dependency: #{dependency.name}"
518
+ matches.each { |m| puts "- #{m}" }
519
+ end
520
+ return false
521
+ end
522
+
523
+ def clobber_dependencies!
524
+ if options[:force] && gem_dir && File.directory?(gem_dir)
525
+ # Remove all existing local gems by clearing the gems directory
526
+ if dry_run?
527
+ note 'Clearing existing local gems...'
528
+ else
529
+ message 'Clearing existing local gems...'
530
+ FileUtils.rm_rf(gem_dir) && FileUtils.mkdir_p(default_gem_dir)
531
+ end
532
+ elsif !local.empty?
533
+ # Uninstall all local versions of the gems to install
534
+ if dry_run?
535
+ note 'Uninstalling existing local gems:'
536
+ local.each { |gemspec| note "Uninstalled #{gemspec.name}" }
537
+ else
538
+ message 'Uninstalling existing local gems:' if local.size > 1
539
+ local.each do |gemspec|
540
+ Merb::Gem.uninstall(gemspec.name, default_uninstall_options)
541
+ end
542
+ end
543
+ end
544
+ end
545
+
546
+ def display_gemspecs(gemspecs)
547
+ if gemspecs.empty?
548
+ puts "- none"
549
+ else
550
+ gemspecs.each do |spec|
551
+ if hint = Dir[File.join(spec.full_gem_path, '*.strategy')][0]
552
+ strategy = File.basename(hint, '.strategy')
553
+ puts "- #{spec.full_name} (#{strategy})"
554
+ else
555
+ puts "~ #{spec.full_name}" # unknown strategy
556
+ end
557
+ end
558
+ end
559
+ end
560
+
561
+ def display_dependencies(dependencies)
562
+ if dependencies.empty?
563
+ puts "- none"
564
+ else
565
+ dependencies.each { |d| puts "- #{d.name} (#{d.version_requirements})" }
566
+ end
567
+ end
568
+
569
+ def default_install_options
570
+ { :install_dir => gem_dir, :bin_dir => bin_dir, :ignore_dependencies => ignore_dependencies? }
571
+ end
572
+
573
+ def default_uninstall_options
574
+ { :install_dir => gem_dir, :bin_dir => bin_dir, :ignore => true, :all => true, :executables => true }
575
+ end
576
+
577
+ def dry_run?
578
+ options[:"dry-run"]
579
+ end
580
+
581
+ def ignore_dependencies?
582
+ options[:"ignore-dependencies"]
583
+ end
584
+
585
+ # The current working directory, or Merb app root (--merb-root option).
586
+ def working_dir
587
+ @_working_dir ||= File.expand_path(options['merb-root'] || Dir.pwd)
588
+ end
589
+
590
+ # We should have a ./src dir for local and system-wide management.
591
+ def source_dir
592
+ @_source_dir ||= File.join(working_dir, 'src')
593
+ create_if_missing(@_source_dir)
594
+ @_source_dir
595
+ end
596
+
597
+ # If a local ./gems dir is found, return it.
598
+ def gem_dir
599
+ return force_gem_dir if force_gem_dir
600
+ if File.directory?(dir = default_gem_dir)
601
+ dir
602
+ end
603
+ end
604
+
605
+ def default_gem_dir
606
+ File.join(working_dir, 'gems')
607
+ end
608
+
609
+ # If we're in a Merb app, we can have a ./bin directory;
610
+ # create it if it's not there.
611
+ def bin_dir
612
+ @_bin_dir ||= begin
613
+ if gem_dir
614
+ dir = File.join(working_dir, 'bin')
615
+ create_if_missing(dir)
616
+ dir
617
+ end
618
+ end
619
+ end
620
+
621
+ # Helper to create dir unless it exists.
622
+ def create_if_missing(path)
623
+ FileUtils.mkdir(path) unless File.exists?(path)
624
+ end
625
+
626
+ def sudo
627
+ ENV['THOR_SUDO'] ||= "sudo"
628
+ sudo = Gem.win_platform? ? "" : ENV['THOR_SUDO']
629
+ end
630
+
631
+ def local_gemspecs(directory = gem_dir)
632
+ if File.directory?(specs_dir = File.join(directory, 'specifications'))
633
+ Dir[File.join(specs_dir, '*.gemspec')].map do |gemspec_path|
634
+ gemspec = Gem::Specification.load(gemspec_path)
635
+ gemspec.loaded_from = gemspec_path
636
+ gemspec
637
+ end
638
+ else
639
+ []
640
+ end
641
+ end
642
+
643
+ end
644
+
645
+ ##############################################################################
646
+
647
+ $SILENT = true # don't output all the mess some rake package tasks spit out
648
+
649
+ module Merb
650
+
651
+ class Gem < Thor
652
+
653
+ include MerbThorHelper
654
+ extend GemManagement
655
+
656
+ attr_accessor :system, :local, :missing
657
+
658
+ global_method_options = {
659
+ "--merb-root" => :optional, # the directory to operate on
660
+ "--version" => :optional, # gather specific version of gem
661
+ "--ignore-dependencies" => :boolean # don't install sub-dependencies
662
+ }
663
+
664
+ method_options global_method_options
665
+ def initialize(*args); super; end
666
+
667
+ # List gems that match the specified criteria.
668
+ #
669
+ # By default all local gems are listed. When the first argument is 'all' the
670
+ # list is partitioned into system an local gems; specify 'system' to show
671
+ # only system gems. A second argument can be used to filter on a set of known
672
+ # components, like all merb-more gems for example.
673
+ #
674
+ # Examples:
675
+ #
676
+ # merb:gem:list # list all local gems - the default
677
+ # merb:gem:list all # list system and local gems
678
+ # merb:gem:list system # list only system gems
679
+ # merb:gem:list all merb-more # list only merb-more related gems
680
+ # merb:gem:list --version 0.9.8 # list gems that match the version
681
+
682
+ desc 'list [all|local|system] [comp]', 'Show installed gems'
683
+ def list(filter = 'local', comp = nil)
684
+ deps = comp ? Merb::Stack.select_component_dependencies(dependencies, comp) : dependencies
685
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
686
+ case filter
687
+ when 'all'
688
+ message 'Installed system gems:'
689
+ display_gemspecs(system)
690
+ message 'Installed local gems:'
691
+ display_gemspecs(local)
692
+ when 'system'
693
+ message 'Installed system gems:'
694
+ display_gemspecs(system)
695
+ when 'local'
696
+ message 'Installed local gems:'
697
+ display_gemspecs(local)
698
+ else
699
+ warning "Invalid listing filter '#{filter}'"
700
+ end
701
+ end
702
+
703
+ # Install the specified gems.
704
+ #
705
+ # All arguments should be names of gems to install.
706
+ #
707
+ # When :force => true then any existing versions of the gems to be installed
708
+ # will be uninstalled first. It's important to note that so-called meta-gems
709
+ # or gems that exactly match a set of Merb::Stack.components will have their
710
+ # sub-gems uninstalled too. For example, uninstalling merb-more will install
711
+ # all contained gems: merb-action-args, merb-assets, merb-gen, ...
712
+ #
713
+ # Examples:
714
+ #
715
+ # merb:gem:install merb-core merb-slices # install all specified gems
716
+ # merb:gem:install merb-core --version 0.9.8 # install a specific version of a gem
717
+ # merb:gem:install merb-core --force # uninstall then subsequently install the gem
718
+ # merb:gem:install merb-core --cache # try to install locally from system gems
719
+ # merb:gem:install merb --merb-edge # install from edge.merbivore.com
720
+
721
+ desc 'install GEM_NAME [GEM_NAME, ...]', 'Install a gem from rubygems'
722
+ method_options "--cache" => :boolean,
723
+ "--dry-run" => :boolean,
724
+ "--force" => :boolean,
725
+ "--merb-edge" => :boolean
726
+ def install(*names)
727
+ opts = { :version => options[:version], :cache => options[:cache] }
728
+ use_edge_gem_server if options[:"merb-edge"]
729
+ current_gem = nil
730
+
731
+ # uninstall existing gems of the ones we're going to install
732
+ uninstall(*names) if options[:force]
733
+
734
+ names.each do |gem_name|
735
+ current_gem = gem_name
736
+ if dry_run?
737
+ note "Installing #{current_gem}..."
738
+ else
739
+ message "Installing #{current_gem}..."
740
+ self.class.install(gem_name, default_install_options.merge(opts))
741
+ end
742
+ end
743
+ rescue => e
744
+ error "Failed to install #{current_gem ? current_gem : 'gem'} (#{e.message})"
745
+ end
746
+
747
+ # Uninstall the specified gems.
748
+ #
749
+ # By default all specified gems are uninstalled. It's important to note that
750
+ # so-called meta-gems or gems that match a set of Merb::Stack.components will
751
+ # have their sub-gems uninstalled too. For example, uninstalling merb-more
752
+ # will install all contained gems: merb-action-args, merb-assets, ...
753
+ #
754
+ # Existing dependencies will be clobbered; when :force => true then all gems
755
+ # will be cleared, otherwise only existing local dependencies of the
756
+ # matching component set will be removed.
757
+ #
758
+ # Examples:
759
+ #
760
+ # merb:gem:uninstall merb-core merb-slices # uninstall all specified gems
761
+ # merb:gem:uninstall merb-core --version 0.9.8 # uninstall a specific version of a gem
762
+
763
+ desc 'uninstall GEM_NAME [GEM_NAME, ...]', 'Unstall a gem'
764
+ method_options "--dry-run" => :boolean
765
+ def uninstall(*names)
766
+ opts = { :version => options[:version] }
767
+ current_gem = nil
768
+ if dry_run?
769
+ note "Uninstalling any existing gems of: #{names.join(', ')}"
770
+ else
771
+ message "Uninstalling any existing gems of: #{names.join(', ')}"
772
+ names.each do |gem_name|
773
+ current_gem = gem_name
774
+ Merb::Gem.uninstall(gem_name, default_uninstall_options) rescue nil
775
+ # if this gem is a meta-gem or a component set name, remove sub-gems
776
+ (Merb::Stack.components(gem_name) || []).each do |comp|
777
+ Merb::Gem.uninstall(comp, default_uninstall_options) rescue nil
778
+ end
779
+ end
780
+ end
781
+ rescue => e
782
+ error "Failed to uninstall #{current_gem ? current_gem : 'gem'} (#{e.message})"
783
+ end
784
+
785
+ # Recreate all gems from gems/cache on the current platform.
786
+ #
787
+ # This task should be executed as part of a deployment setup, where the
788
+ # deployment system runs this after the app has been installed.
789
+ # Usually triggered by Capistrano, God...
790
+ #
791
+ # It will regenerate gems from the bundled gems cache for any gem that has
792
+ # C extensions - which need to be recompiled for the target deployment platform.
793
+ #
794
+ # Note: at least gems/cache and gems/specifications should be in your SCM.
795
+
796
+ desc 'redeploy', 'Recreate any binary gems on the target platform'
797
+ method_options "--dry-run" => :boolean, "--force" => :boolean
798
+ def redeploy
799
+ require 'tempfile' # for Dir::tmpdir access
800
+ if gem_dir && File.directory?(cache_dir = File.join(gem_dir, 'cache'))
801
+ local_gemspecs.each do |gemspec|
802
+ if File.exists?(gem_file = File.join(cache_dir, "#{gemspec.full_name}.gem"))
803
+ gem_file_copy = File.join(Dir::tmpdir, File.basename(gem_file))
804
+ if dry_run?
805
+ note "Recreating #{gemspec.full_name}"
806
+ else
807
+ message "Recreating #{gemspec.full_name}"
808
+ if options[:force] && File.directory?(gem = File.join(gem_dir, 'gems', gemspec.full_name))
809
+ puts "Removing existing #{gemspec.full_name}"
810
+ FileUtils.rm_rf(gem)
811
+ end
812
+ # Copy the gem to a temporary file, because otherwise RubyGems/FileUtils
813
+ # will complain about copying identical files (same source/destination).
814
+ FileUtils.cp(gem_file, gem_file_copy)
815
+ Merb::Gem.install(gem_file_copy, :install_dir => gem_dir, :ignore_dependencies => true)
816
+ File.delete(gem_file_copy)
817
+ end
818
+ end
819
+ end
820
+ else
821
+ error "No application local gems directory found"
822
+ end
823
+ end
824
+
825
+ private
826
+
827
+ # Return dependencies for all installed gems; both system-wide and locally;
828
+ # optionally filters on :version requirement.
829
+ def dependencies
830
+ version_req = if options[:version]
831
+ ::Gem::Requirement.create(options[:version])
832
+ else
833
+ ::Gem::Requirement.default
834
+ end
835
+ if gem_dir
836
+ ::Gem.clear_paths; ::Gem.path.unshift(gem_dir)
837
+ ::Gem.source_index.refresh!
838
+ end
839
+ deps = []
840
+ ::Gem.source_index.each do |fullname, gemspec|
841
+ if version_req.satisfied_by?(gemspec.version)
842
+ deps << ::Gem::Dependency.new(gemspec.name, "= #{gemspec.version}")
843
+ end
844
+ end
845
+ ::Gem.clear_paths if gem_dir
846
+ deps.sort
847
+ end
848
+
849
+ public
850
+
851
+ # Install gem with some default options.
852
+ def self.install(name, options = {})
853
+ defaults = {}
854
+ defaults[:cache] = false unless opts[:install_dir]
855
+ install_gem(name, defaults.merge(options))
856
+ end
857
+
858
+ # Uninstall gem with some default options.
859
+ def self.uninstall(name, options = {})
860
+ defaults = { :ignore => true, :executables => true }
861
+ uninstall_gem(name, defaults.merge(options))
862
+ end
863
+
864
+ end
865
+
866
+ class Tasks < Thor
867
+
868
+ include MerbThorHelper
869
+
870
+ # Show merb.thor version information
871
+ #
872
+ # merb:tasks:version # show the current version info
873
+ # merb:tasks:version --info # show extended version info
874
+
875
+ desc 'version', 'Show verion info'
876
+ method_options "--info" => :boolean
877
+ def version
878
+ message "Currently installed merb.thor version: #{MERB_THOR_VERSION}"
879
+ if options[:version]
880
+ self.options = { :"dry-run" => true }
881
+ self.update # run update task with dry-run enabled
882
+ end
883
+ end
884
+
885
+ # Update merb.thor tasks from remotely available version
886
+ #
887
+ # merb:tasks:update # update merb.thor
888
+ # merb:tasks:update --force # force-update merb.thor
889
+ # merb:tasks:update --dry-run # show version info only
890
+
891
+ desc 'update [URL]', 'Fetch the latest merb.thor and install it locally'
892
+ method_options "--dry-run" => :boolean, "--force" => :boolean
893
+ def update(url = 'http://merbivore.com/merb.thor')
894
+ require 'open-uri'
895
+ require 'rubygems/version'
896
+ remote_file = open(url)
897
+ code = remote_file.read
898
+
899
+ # Extract version information from the source code
900
+ if version = code[/^MERB_THOR_VERSION\s?=\s?('|")([\.\d]+)('|")/,2]
901
+ # borrow version comparison from rubygems' Version class
902
+ current_version = ::Gem::Version.new(MERB_THOR_VERSION)
903
+ remote_version = ::Gem::Version.new(version)
904
+
905
+ if current_version >= remote_version
906
+ puts "currently installed: #{current_version}"
907
+ if current_version != remote_version
908
+ puts "available version: #{remote_version}"
909
+ end
910
+ info "No update of merb.thor necessary#{options[:force] ? ' (forced)' : ''}"
911
+ proceed = options[:force]
912
+ elsif current_version < remote_version
913
+ puts "currently installed: #{current_version}"
914
+ puts "available version: #{remote_version}"
915
+ proceed = true
916
+ end
917
+
918
+ if proceed && !dry_run?
919
+ File.open(File.join(__FILE__), 'w') do |f|
920
+ f.write(code)
921
+ end
922
+ success "Installed the latest merb.thor (v#{version})"
923
+ end
924
+ else
925
+ raise "invalid source-code data"
926
+ end
927
+ rescue OpenURI::HTTPError
928
+ error "Error opening #{url}"
929
+ rescue => e
930
+ error "An error occurred (#{e.message})"
931
+ end
932
+
933
+ end
934
+
935
+ #### MORE LOW-LEVEL TASKS ####
936
+
937
+ class Source < Thor
938
+
939
+ group 'core'
940
+
941
+ include MerbThorHelper
942
+ extend GemManagement
943
+
944
+ attr_accessor :system, :local, :missing
945
+
946
+ global_method_options = {
947
+ "--merb-root" => :optional, # the directory to operate on
948
+ "--ignore-dependencies" => :boolean, # don't install sub-dependencies
949
+ "--sources" => :optional # a yml config to grab sources from
950
+ }
951
+
952
+ method_options global_method_options
953
+ def initialize(*args); super; end
954
+
955
+ # List source repositories, of either local or known sources.
956
+ #
957
+ # Examples:
958
+ #
959
+ # merb:source:list # list all local sources
960
+ # merb:source:list available # list all known sources
961
+
962
+ desc 'list [local|available]', 'Show git source repositories'
963
+ def list(mode = 'local')
964
+ if mode == 'available'
965
+ message 'Available source repositories:'
966
+ repos = self.class.repos(options[:sources])
967
+ repos.keys.sort.each { |name| puts "- #{name}: #{repos[name]}" }
968
+ elsif mode == 'local'
969
+ message 'Current source repositories:'
970
+ Dir[File.join(source_dir, '*')].each do |src|
971
+ next unless File.directory?(src)
972
+ src_name = File.basename(src)
973
+ unless (repos = source_manager.existing_repos(src_name)).empty?
974
+ puts "#{src_name}"
975
+ repos.keys.sort.each { |b| puts "- #{b}: #{repos[b]}" }
976
+ end
977
+ end
978
+ else
979
+ error "Unknown listing: #{mode}"
980
+ end
981
+ end
982
+
983
+ # Install the specified gems.
984
+ #
985
+ # All arguments should be names of gems to install.
986
+ #
987
+ # When :force => true then any existing versions of the gems to be installed
988
+ # will be uninstalled first. It's important to note that so-called meta-gems
989
+ # or gems that exactly match a set of Merb::Stack.components will have their
990
+ # sub-gems uninstalled too. For example, uninstalling merb-more will install
991
+ # all contained gems: merb-action-args, merb-assets, merb-gen, ...
992
+ #
993
+ # Examples:
994
+ #
995
+ # merb:source:install merb-core merb-slices # install all specified gems
996
+ # merb:source:install merb-core --force # uninstall then subsequently install the gem
997
+ # merb:source:install merb-core --wipe # clear repo then install the gem
998
+
999
+ desc 'install GEM_NAME [GEM_NAME, ...]', 'Install a gem from git source/edge'
1000
+ method_options "--dry-run" => :boolean,
1001
+ "--force" => :boolean,
1002
+ "--wipe" => :boolean
1003
+ def install(*names)
1004
+ use_edge_gem_server
1005
+ # uninstall existing gems of the ones we're going to install
1006
+ uninstall(*names) if options[:force] || options[:wipe]
1007
+
1008
+ # We want dependencies instead of just names
1009
+ deps = names.map { |n| ::Gem::Dependency.new(n, ::Gem::Requirement.default) }
1010
+
1011
+ # Selectively update repositories for the matching dependencies
1012
+ update_dependency_repositories(deps) unless dry_run?
1013
+
1014
+ current_gem = nil
1015
+ deps.each do |dependency|
1016
+ current_gem = dependency.name
1017
+ if dry_run?
1018
+ note "Installing #{current_gem} from source..."
1019
+ else
1020
+ message "Installing #{current_gem} from source..."
1021
+ unless install_dependency_from_source(dependency)
1022
+ raise "gem source not found"
1023
+ end
1024
+ end
1025
+ end
1026
+ rescue => e
1027
+ error "Failed to install #{current_gem ? current_gem : 'gem'} (#{e.message})"
1028
+ end
1029
+
1030
+ # Uninstall the specified gems.
1031
+ #
1032
+ # By default all specified gems are uninstalled. It's important to note that
1033
+ # so-called meta-gems or gems that match a set of Merb::Stack.components will
1034
+ # have their sub-gems uninstalled too. For example, uninstalling merb-more
1035
+ # will install all contained gems: merb-action-args, merb-assets, ...
1036
+ #
1037
+ # Existing dependencies will be clobbered; when :force => true then all gems
1038
+ # will be cleared, otherwise only existing local dependencies of the
1039
+ # matching component set will be removed. Additionally when :wipe => true,
1040
+ # the matching git repositories will be removed from the source directory.
1041
+ #
1042
+ # Examples:
1043
+ #
1044
+ # merb:source:uninstall merb-core merb-slices # uninstall all specified gems
1045
+ # merb:source:uninstall merb-core --wipe # force-uninstall a gem and clear repo
1046
+
1047
+ desc 'uninstall GEM_NAME [GEM_NAME, ...]', 'Unstall a gem (specify --force to remove the repo)'
1048
+ method_options "--version" => :optional, "--dry-run" => :boolean, "--wipe" => :boolean
1049
+ def uninstall(*names)
1050
+ # Remove the repos that contain the gem
1051
+ if options[:wipe]
1052
+ extract_repositories(names).each do |(name, url)|
1053
+ if File.directory?(src = File.join(source_dir, name))
1054
+ if dry_run?
1055
+ note "Removing #{src}..."
1056
+ else
1057
+ info "Removing #{src}..."
1058
+ FileUtils.rm_rf(src)
1059
+ end
1060
+ end
1061
+ end
1062
+ end
1063
+
1064
+ # Use the Merb::Gem#uninstall task to handle this
1065
+ gem_tasks = Merb::Gem.new
1066
+ gem_tasks.options = options
1067
+ gem_tasks.uninstall(*names)
1068
+ end
1069
+
1070
+ # Update the specified source repositories.
1071
+ #
1072
+ # The arguments can be actual repository names (from Merb::Source.repos)
1073
+ # or names of known merb stack gems. If the repo doesn't exist already,
1074
+ # it will be created and cloned.
1075
+ #
1076
+ # merb:source:pull merb-core # update source of specified gem
1077
+ # merb:source:pull merb-slices # implicitly updates merb-more
1078
+
1079
+ desc 'pull REPO_NAME [GEM_NAME, ...]', 'Update git source repository from edge'
1080
+ def pull(*names)
1081
+ repos = extract_repositories(names)
1082
+ update_repositories(repos)
1083
+ unless repos.empty?
1084
+ message "Updated the following repositories:"
1085
+ repos.each { |name, url| puts "- #{name}: #{url}" }
1086
+ else
1087
+ warning "No repositories found to update!"
1088
+ end
1089
+ end
1090
+
1091
+ # Clone a git repository into ./src.
1092
+
1093
+ # The repository can be a direct git url or a known -named- repository.
1094
+ #
1095
+ # Examples:
1096
+ #
1097
+ # merb:source:clone merb-core
1098
+ # merb:source:clone dm-core awesome-repo
1099
+ # merb:source:clone dm-core --sources ./path/to/sources.yml
1100
+ # merb:source:clone git://github.com/sam/dm-core.git
1101
+
1102
+ desc 'clone (REPO_NAME|URL) [DIR_NAME]', 'Clone git source repository by name or url'
1103
+ def clone(repository, name = nil)
1104
+ if repository =~ /^git:\/\//
1105
+ repository_url = repository
1106
+ repository_name = File.basename(repository_url, '.git')
1107
+ elsif url = Merb::Source.repo(repository, options[:sources])
1108
+ repository_url = url
1109
+ repository_name = repository
1110
+ end
1111
+ source_manager.clone(name || repository_name, repository_url)
1112
+ end
1113
+
1114
+ # Git repository sources - pass source_config option to load a yaml
1115
+ # configuration file - defaults to ./config/git-sources.yml and
1116
+ # ~/.merb/git-sources.yml - which you need to create yourself.
1117
+ #
1118
+ # Example of contents:
1119
+ #
1120
+ # merb-core: git://github.com/myfork/merb-core.git
1121
+ # merb-more: git://github.com/myfork/merb-more.git
1122
+
1123
+ def self.repos(source_config = nil)
1124
+ source_config ||= begin
1125
+ local_config = File.join(Dir.pwd, 'config', 'git-sources.yml')
1126
+ user_config = File.join(ENV["HOME"] || ENV["APPDATA"], '.merb', 'git-sources.yml')
1127
+ File.exists?(local_config) ? local_config : user_config
1128
+ end
1129
+ if source_config && File.exists?(source_config)
1130
+ default_repos.merge(YAML.load(File.read(source_config)))
1131
+ else
1132
+ default_repos
1133
+ end
1134
+ end
1135
+
1136
+ def self.repo(name, source_config = nil)
1137
+ self.repos(source_config)[name]
1138
+ end
1139
+
1140
+ # Default Git repositories
1141
+ def self.default_repos
1142
+ @_default_repos ||= {
1143
+ 'merb' => "git://github.com/wycats/merb.git",
1144
+ 'merb-plugins' => "git://github.com/wycats/merb-plugins.git",
1145
+ 'extlib' => "git://github.com/sam/extlib.git",
1146
+ 'dm-core' => "git://github.com/sam/dm-core.git",
1147
+ 'dm-more' => "git://github.com/sam/dm-more.git",
1148
+ 'sequel' => "git://github.com/wayneeseguin/sequel.git",
1149
+ 'do' => "git://github.com/sam/do.git",
1150
+ 'thor' => "git://github.com/wycats/thor.git",
1151
+ 'rake' => "git://github.com/jimweirich/rake.git"
1152
+ }
1153
+ end
1154
+
1155
+ end
1156
+
1157
+ class Dependencies < Thor
1158
+
1159
+ group 'core'
1160
+
1161
+ # The Dependencies tasks will install dependencies based on actual application
1162
+ # dependencies. For this, the application is queried for any dependencies.
1163
+ # All operations will be performed within this context.
1164
+
1165
+ attr_accessor :system, :local, :missing, :extract_dependencies
1166
+
1167
+ include MerbThorHelper
1168
+
1169
+ global_method_options = {
1170
+ "--merb-root" => :optional, # the directory to operate on
1171
+ "--ignore-dependencies" => :boolean, # ignore sub-dependencies
1172
+ "--stack" => :boolean, # gather only stack dependencies
1173
+ "--no-stack" => :boolean, # gather only non-stack dependencies
1174
+ "--extract" => :boolean, # gather dependencies from the app itself
1175
+ "--config-file" => :optional, # gather from the specified yaml config
1176
+ "--version" => :optional # gather specific version of framework
1177
+ }
1178
+
1179
+ method_options global_method_options
1180
+ def initialize(*args); super; end
1181
+
1182
+ # List application dependencies.
1183
+ #
1184
+ # By default all dependencies are listed, partitioned into system, local and
1185
+ # currently missing dependencies. The first argument allows you to filter
1186
+ # on any of the partitionings. A second argument can be used to filter on
1187
+ # a set of known components, like all merb-more gems for example.
1188
+ #
1189
+ # Examples:
1190
+ #
1191
+ # merb:dependencies:list # list all dependencies - the default
1192
+ # merb:dependencies:list local # list only local gems
1193
+ # merb:dependencies:list all merb-more # list only merb-more related dependencies
1194
+ # merb:dependencies:list --stack # list framework dependencies
1195
+ # merb:dependencies:list --no-stack # list 3rd party dependencies
1196
+ # merb:dependencies:list --extract # list dependencies by extracting them
1197
+ # merb:dependencies:list --config-file file.yml # list from the specified config file
1198
+
1199
+ desc 'list [all|local|system|missing] [comp]', 'Show application dependencies'
1200
+ def list(filter = 'all', comp = nil)
1201
+ deps = comp ? Merb::Stack.select_component_dependencies(dependencies, comp) : dependencies
1202
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1203
+ case filter
1204
+ when 'all'
1205
+ message 'Installed system gem dependencies:'
1206
+ display_gemspecs(system)
1207
+ message 'Installed local gem dependencies:'
1208
+ display_gemspecs(local)
1209
+ unless missing.empty?
1210
+ error 'Missing gem dependencies:'
1211
+ display_dependencies(missing)
1212
+ end
1213
+ when 'system'
1214
+ message 'Installed system gem dependencies:'
1215
+ display_gemspecs(system)
1216
+ when 'local'
1217
+ message 'Installed local gem dependencies:'
1218
+ display_gemspecs(local)
1219
+ when 'missing'
1220
+ error 'Missing gem dependencies:'
1221
+ display_dependencies(missing)
1222
+ else
1223
+ warning "Invalid listing filter '#{filter}'"
1224
+ end
1225
+ if missing.size > 0
1226
+ info "Some dependencies are currently missing!"
1227
+ elsif local.size == deps.size
1228
+ info "All dependencies have been bundled with the application."
1229
+ elsif local.size > system.size
1230
+ info "Most dependencies have been bundled with the application."
1231
+ elsif system.size > 0 && local.size > 0
1232
+ info "Some dependencies have been bundled with the application."
1233
+ elsif local.empty? && system.size == deps.size
1234
+ info "All dependencies are available on the system."
1235
+ end
1236
+ end
1237
+
1238
+ # Install application dependencies.
1239
+ #
1240
+ # By default all required dependencies are installed. The first argument
1241
+ # specifies which strategy to use: stable or edge. A second argument can be
1242
+ # used to filter on a set of known components.
1243
+ #
1244
+ # Existing dependencies will be clobbered; when :force => true then all gems
1245
+ # will be cleared first, otherwise only existing local dependencies of the
1246
+ # gems to be installed will be removed.
1247
+ #
1248
+ # Examples:
1249
+ #
1250
+ # merb:dependencies:install # install all dependencies using stable strategy
1251
+ # merb:dependencies:install stable --version 0.9.8 # install a specific version of the framework
1252
+ # merb:dependencies:install stable missing # install currently missing gems locally
1253
+ # merb:dependencies:install stable merb-more # install only merb-more related dependencies
1254
+ # merb:dependencies:install stable --stack # install framework dependencies
1255
+ # merb:dependencies:install stable --no-stack # install 3rd party dependencies
1256
+ # merb:dependencies:install stable --extract # extract dependencies from the actual app
1257
+ # merb:dependencies:install stable --config-file file.yml # read from the specified config file
1258
+ #
1259
+ # In addition to the options above, edge install uses the following:
1260
+ #
1261
+ # merb:dependencies:install edge # install all dependencies using edge strategy
1262
+ # merb:dependencies:install edge --sources file.yml # install edge from the specified git sources config
1263
+
1264
+ desc 'install [stable|edge] [comp]', 'Install application dependencies'
1265
+ method_options "--sources" => :optional, # only for edge strategy
1266
+ "--local" => :boolean, # force local install
1267
+ "--dry-run" => :boolean,
1268
+ "--force" => :boolean
1269
+ def install(strategy = 'stable', comp = nil)
1270
+ if strategy?(strategy)
1271
+ # Force local dependencies by creating ./gems before proceeding
1272
+ create_if_missing(default_gem_dir) if options[:local]
1273
+
1274
+ where = gem_dir ? 'locally' : 'system-wide'
1275
+
1276
+ # When comp == 'missing' then filter on missing dependencies
1277
+ if only_missing = comp == 'missing'
1278
+ message "Preparing to install missing gems #{where} using #{strategy} strategy..."
1279
+ comp = nil
1280
+ clobber = false
1281
+ else
1282
+ message "Preparing to install #{where} using #{strategy} strategy..."
1283
+ clobber = true
1284
+ end
1285
+
1286
+ # If comp given, filter on known stack components
1287
+ deps = comp ? Merb::Stack.select_component_dependencies(dependencies, comp) : dependencies
1288
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1289
+
1290
+ # Only install currently missing gems (for comp == missing)
1291
+ if only_missing
1292
+ deps.reject! { |dep| not missing.include?(dep) }
1293
+ end
1294
+
1295
+ if deps.empty?
1296
+ warning "No dependencies to install..."
1297
+ else
1298
+ puts "#{deps.length} dependencies to install..."
1299
+ install_dependencies(strategy, deps, clobber)
1300
+ end
1301
+
1302
+ # Show current dependency info now that we're done
1303
+ puts # Seperate output
1304
+ list('local', comp)
1305
+ else
1306
+ warning "Invalid install strategy '#{strategy}'"
1307
+ puts
1308
+ message "Please choose one of the following installation strategies: stable or edge:"
1309
+ puts "$ thor merb:dependencies:install stable"
1310
+ puts "$ thor merb:dependencies:install edge"
1311
+ end
1312
+ end
1313
+
1314
+ # Uninstall application dependencies.
1315
+ #
1316
+ # By default all required dependencies are installed. An optional argument
1317
+ # can be used to filter on a set of known components.
1318
+ #
1319
+ # Existing dependencies will be clobbered; when :force => true then all gems
1320
+ # will be cleared, otherwise only existing local dependencies of the
1321
+ # matching component set will be removed.
1322
+ #
1323
+ # Examples:
1324
+ #
1325
+ # merb:dependencies:uninstall # uninstall all dependencies - the default
1326
+ # merb:dependencies:uninstall merb-more # uninstall merb-more related gems locally
1327
+
1328
+ desc 'uninstall [comp]', 'Uninstall application dependencies'
1329
+ method_options "--dry-run" => :boolean, "--force" => :boolean
1330
+ def uninstall(comp = nil)
1331
+ # If comp given, filter on known stack components
1332
+ deps = comp ? Merb::Stack.select_component_dependencies(dependencies, comp) : dependencies
1333
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1334
+ # Clobber existing local dependencies - based on self.local
1335
+ clobber_dependencies!
1336
+ end
1337
+
1338
+ # Recreate all gems from gems/cache on the current platform.
1339
+ #
1340
+ # Note: use merb:gem:redeploy instead
1341
+
1342
+ desc 'redeploy', 'Recreate any binary gems on the target platform'
1343
+ method_options "--dry-run" => :boolean, "--force" => :boolean
1344
+ def redeploy
1345
+ warning 'Warning: merb:dependencies:redeploy has been deprecated - use merb:gem:redeploy instead'
1346
+ gem = Merb::Gem.new
1347
+ gem.options = options
1348
+ gem.redeploy
1349
+ end
1350
+
1351
+ # Create a dependencies configuration file.
1352
+ #
1353
+ # A configuration yaml file will be created from the extracted application
1354
+ # dependencies. The format of the configuration is as follows:
1355
+ #
1356
+ # ---
1357
+ # - merb-core (= 0.9.8, runtime)
1358
+ # - merb-slices (= 0.9.8, runtime)
1359
+ #
1360
+ # This format is exactly the same as Gem::Dependency#to_s returns.
1361
+ #
1362
+ # Examples:
1363
+ #
1364
+ # merb:dependencies:configure --force # overwrite the default config file
1365
+ # merb:dependencies:configure --version 0.9.8 # configure specific framework version
1366
+ # merb:dependencies:configure --config-file file.yml # write to the specified config file
1367
+
1368
+ desc 'configure [comp]', 'Create a dependencies config file'
1369
+ method_options "--dry-run" => :boolean, "--force" => :boolean, "--versions" => :boolean
1370
+ def configure(comp = nil)
1371
+ self.extract_dependencies = true # of course we need to consult the app itself
1372
+ # If comp given, filter on known stack components
1373
+ deps = comp ? Merb::Stack.select_component_dependencies(dependencies, comp) : dependencies
1374
+
1375
+ # If --versions is set, update the version_requirements with the actual version available
1376
+ if options[:versions]
1377
+ specs = local_gemspecs
1378
+ deps.each do |dep|
1379
+ if spec = specs.find { |s| s.name == dep.name }
1380
+ dep.version_requirements = ::Gem::Requirement.create(spec.version)
1381
+ end
1382
+ end
1383
+ end
1384
+
1385
+ config = YAML.dump(deps.map { |d| d.to_s })
1386
+ puts "#{config}\n"
1387
+ if File.exists?(config_file) && !options[:force]
1388
+ error "File already exists! Use --force to overwrite."
1389
+ else
1390
+ if dry_run?
1391
+ note "Written #{config_file}"
1392
+ else
1393
+ FileUtils.mkdir_p(config_dir) unless File.directory?(config_dir)
1394
+ File.open(config_file, 'w') { |f| f.write config }
1395
+ success "Written #{config_file}"
1396
+ end
1397
+ end
1398
+ rescue
1399
+ error "Failed to write to #{config_file}"
1400
+ end
1401
+
1402
+ ### Helper Methods
1403
+
1404
+ def strategy?(strategy)
1405
+ if self.respond_to?(method = :"#{strategy}_strategy", true)
1406
+ method
1407
+ end
1408
+ end
1409
+
1410
+ def install_dependencies(strategy, deps, clobber = true)
1411
+ if method = strategy?(strategy)
1412
+ # Clobber existing local dependencies
1413
+ clobber_dependencies! if clobber
1414
+
1415
+ # Run the chosen strategy - collect files installed from stable gems
1416
+ installed_from_stable = send(method, deps).map { |d| d.name }
1417
+
1418
+ unless dry_run?
1419
+ # Sleep a bit otherwise the following steps won't see the new files
1420
+ sleep(deps.length) if deps.length > 0 && deps.length <= 10
1421
+
1422
+ # Leave a file to denote the strategy that has been used for this dependency
1423
+ self.local.each do |spec|
1424
+ next unless File.directory?(spec.full_gem_path)
1425
+ unless installed_from_stable.include?(spec.name)
1426
+ FileUtils.touch(File.join(spec.full_gem_path, "#{strategy}.strategy"))
1427
+ else
1428
+ FileUtils.touch(File.join(spec.full_gem_path, "stable.strategy"))
1429
+ end
1430
+ end
1431
+ end
1432
+ return true
1433
+ end
1434
+ false
1435
+ end
1436
+
1437
+ def dependencies
1438
+ if extract_dependencies?
1439
+ # Extract dependencies from the current application
1440
+ deps = Merb::Stack.core_dependencies(gem_dir, ignore_dependencies?)
1441
+ deps += Merb::Dependencies.extract_dependencies(working_dir)
1442
+ else
1443
+ # Use preconfigured dependencies from yaml file
1444
+ deps = config_dependencies
1445
+ end
1446
+
1447
+ stack_components = Merb::Stack.components
1448
+
1449
+ if options[:stack]
1450
+ # Limit to stack components only
1451
+ deps.reject! { |dep| not stack_components.include?(dep.name) }
1452
+ elsif options[:"no-stack"]
1453
+ # Limit to non-stack components
1454
+ deps.reject! { |dep| stack_components.include?(dep.name) }
1455
+ end
1456
+
1457
+ if options[:version]
1458
+ version_req = ::Gem::Requirement.create("= #{options[:version]}")
1459
+ elsif core = deps.find { |d| d.name == 'merb-core' }
1460
+ version_req = core.version_requirements
1461
+ end
1462
+
1463
+ if version_req
1464
+ # Handle specific version requirement for framework components
1465
+ framework_components = Merb::Stack.framework_components
1466
+ deps.each do |dep|
1467
+ if framework_components.include?(dep.name)
1468
+ dep.version_requirements = version_req
1469
+ end
1470
+ end
1471
+ end
1472
+
1473
+ deps
1474
+ end
1475
+
1476
+ def config_dependencies
1477
+ if File.exists?(config_file)
1478
+ self.class.parse_dependencies_yaml(File.read(config_file))
1479
+ else
1480
+ warning "No dependencies.yml file found at: #{config_file}"
1481
+ []
1482
+ end
1483
+ end
1484
+
1485
+ def extract_dependencies?
1486
+ options[:extract] || extract_dependencies
1487
+ end
1488
+
1489
+ def config_file
1490
+ @config_file ||= begin
1491
+ options[:"config-file"] || File.join(working_dir, 'config', 'dependencies.yml')
1492
+ end
1493
+ end
1494
+
1495
+ def config_dir
1496
+ File.dirname(config_file)
1497
+ end
1498
+
1499
+ ### Strategy handlers
1500
+
1501
+ private
1502
+
1503
+ def stable_strategy(deps)
1504
+ installed_from_rubygems = []
1505
+ if core = deps.find { |d| d.name == 'merb-core' }
1506
+ if dry_run?
1507
+ note "Installing #{core.name}..."
1508
+ else
1509
+ if install_dependency(core)
1510
+ installed_from_rubygems << core
1511
+ else
1512
+ msg = "Try specifying a lower version of merb-core with --version"
1513
+ if version_no = core.version_requirements.to_s[/([\.\d]+)$/, 1]
1514
+ num = "%03d" % (version_no.gsub('.', '').to_i - 1)
1515
+ puts "The required version (#{version_no}) probably isn't available as a stable rubygem yet."
1516
+ info "#{msg} #{num.split(//).join('.')}"
1517
+ else
1518
+ puts "The required version probably isn't available as a stable rubygem yet."
1519
+ info msg
1520
+ end
1521
+ end
1522
+ end
1523
+ end
1524
+
1525
+ deps.each do |dependency|
1526
+ next if dependency.name == 'merb-core'
1527
+ if dry_run?
1528
+ note "Installing #{dependency.name}..."
1529
+ else
1530
+ install_dependency(dependency)
1531
+ installed_from_rubygems << dependency
1532
+ end
1533
+ end
1534
+ installed_from_rubygems
1535
+ end
1536
+
1537
+ def edge_strategy(deps)
1538
+ use_edge_gem_server
1539
+ installed_from_rubygems = []
1540
+
1541
+ # Selectively update repositories for the matching dependencies
1542
+ update_dependency_repositories(deps) unless dry_run?
1543
+
1544
+ if core = deps.find { |d| d.name == 'merb-core' }
1545
+ if dry_run?
1546
+ note "Installing #{core.name}..."
1547
+ else
1548
+ if install_dependency_from_source(core)
1549
+ elsif install_dependency(core)
1550
+ info "Installed #{core.name} from rubygems..."
1551
+ installed_from_rubygems << core
1552
+ end
1553
+ end
1554
+ end
1555
+
1556
+ deps.each do |dependency|
1557
+ next if dependency.name == 'merb-core'
1558
+ if dry_run?
1559
+ note "Installing #{dependency.name}..."
1560
+ else
1561
+ if install_dependency_from_source(dependency)
1562
+ elsif install_dependency(dependency)
1563
+ info "Installed #{dependency.name} from rubygems..."
1564
+ installed_from_rubygems << dependency
1565
+ end
1566
+ end
1567
+ end
1568
+
1569
+ installed_from_rubygems
1570
+ end
1571
+
1572
+ ### Class Methods
1573
+
1574
+ public
1575
+
1576
+ def self.list(filter = 'all', comp = nil, options = {})
1577
+ instance = Merb::Dependencies.new
1578
+ instance.options = options
1579
+ instance.list(filter, comp)
1580
+ end
1581
+
1582
+ # Extract application dependencies by querying the app directly.
1583
+ def self.extract_dependencies(merb_root)
1584
+ require 'merb-core'
1585
+ if !@_merb_loaded || Merb.root != merb_root
1586
+ Merb.start_environment(
1587
+ :log_level => :fatal,
1588
+ :testing => true,
1589
+ :adapter => 'runner',
1590
+ :environment => ENV['MERB_ENV'] || 'development',
1591
+ :merb_root => merb_root
1592
+ )
1593
+ @_merb_loaded = true
1594
+ end
1595
+ Merb::BootLoader::Dependencies.dependencies
1596
+ rescue StandardError => e
1597
+ error "Couldn't extract dependencies from application!"
1598
+ error e.message
1599
+ puts "Make sure you're executing the task from your app (--merb-root)"
1600
+ return []
1601
+ rescue SystemExit
1602
+ error "Couldn't extract dependencies from application!"
1603
+ error "application failed to run"
1604
+ puts "Please check if your application runs using 'merb'; for example,"
1605
+ puts "look for any gem version mismatches in dependencies.rb"
1606
+ return []
1607
+ end
1608
+
1609
+ # Parse the basic YAML config data, and process Gem::Dependency output.
1610
+ # Formatting example: merb_helpers (>= 0.9.8, runtime)
1611
+ def self.parse_dependencies_yaml(yaml)
1612
+ dependencies = []
1613
+ entries = YAML.load(yaml) rescue []
1614
+ entries.each do |entry|
1615
+ if matches = entry.match(/^(\S+) \(([^,]+)?, ([^\)]+)\)/)
1616
+ name, version_req, type = matches.captures
1617
+ dependencies << ::Gem::Dependency.new(name, version_req, type.to_sym)
1618
+ else
1619
+ error "Invalid entry: #{entry}"
1620
+ end
1621
+ end
1622
+ dependencies
1623
+ end
1624
+
1625
+ end
1626
+
1627
+ class Stack < Thor
1628
+
1629
+ group 'core'
1630
+
1631
+ # The Stack tasks will install dependencies based on known sets of gems,
1632
+ # regardless of actual application dependency settings.
1633
+
1634
+ DM_STACK = %w[
1635
+ extlib
1636
+ data_objects
1637
+ dm-core
1638
+ dm-aggregates
1639
+ dm-migrations
1640
+ dm-timestamps
1641
+ dm-types
1642
+ dm-validations
1643
+ merb_datamapper
1644
+ ]
1645
+
1646
+ MERB_STACK = %w[
1647
+ extlib
1648
+ merb-core
1649
+ merb-action-args
1650
+ merb-assets
1651
+ merb-cache
1652
+ merb-helpers
1653
+ merb-mailer
1654
+ merb-slices
1655
+ merb-auth
1656
+ merb-auth-core
1657
+ merb-auth-more
1658
+ merb-auth-slice-password
1659
+ merb-param-protection
1660
+ merb-exceptions
1661
+ ] + DM_STACK
1662
+
1663
+ MERB_BASICS = %w[
1664
+ extlib
1665
+ merb-core
1666
+ merb-action-args
1667
+ merb-assets
1668
+ merb-cache
1669
+ merb-helpers
1670
+ merb-mailer
1671
+ merb-slices
1672
+ ]
1673
+
1674
+ # The following sets are meant for repository lookup; unlike the sets above
1675
+ # these correspond to specific git repository items.
1676
+
1677
+ MERB_MORE = %w[
1678
+ merb-action-args
1679
+ merb-assets
1680
+ merb-auth
1681
+ merb-auth-core
1682
+ merb-auth-more
1683
+ merb-auth-slice-password
1684
+ merb-cache
1685
+ merb-exceptions
1686
+ merb-gen
1687
+ merb-haml
1688
+ merb-helpers
1689
+ merb-mailer
1690
+ merb-param-protection
1691
+ merb-slices
1692
+ merb_datamapper
1693
+ ]
1694
+
1695
+ MERB_PLUGINS = %w[
1696
+ merb_activerecord
1697
+ merb_builder
1698
+ merb_jquery
1699
+ merb_laszlo
1700
+ merb_parts
1701
+ merb_screw_unit
1702
+ merb_sequel
1703
+ merb_stories
1704
+ merb_test_unit
1705
+ ]
1706
+
1707
+ DM_MORE = %w[
1708
+ dm-adjust
1709
+ dm-aggregates
1710
+ dm-ar-finders
1711
+ dm-cli
1712
+ dm-constraints
1713
+ dm-is-example
1714
+ dm-is-list
1715
+ dm-is-nested_set
1716
+ dm-is-remixable
1717
+ dm-is-searchable
1718
+ dm-is-state_machine
1719
+ dm-is-tree
1720
+ dm-is-versioned
1721
+ dm-migrations
1722
+ dm-observer
1723
+ dm-querizer
1724
+ dm-serializer
1725
+ dm-shorthand
1726
+ dm-sweatshop
1727
+ dm-tags
1728
+ dm-timestamps
1729
+ dm-types
1730
+ dm-validations
1731
+
1732
+ dm-couchdb-adapter
1733
+ dm-ferret-adapter
1734
+ dm-rest-adapter
1735
+ ]
1736
+
1737
+ DATA_OBJECTS = %w[
1738
+ data_objects
1739
+ do_derby do_hsqldb
1740
+ do_jdbc
1741
+ do_mysql
1742
+ do_postgres
1743
+ do_sqlite3
1744
+ ]
1745
+
1746
+ attr_accessor :system, :local, :missing
1747
+
1748
+ include MerbThorHelper
1749
+
1750
+ global_method_options = {
1751
+ "--merb-root" => :optional, # the directory to operate on
1752
+ "--ignore-dependencies" => :boolean, # skip sub-dependencies
1753
+ "--version" => :optional # gather specific version of framework
1754
+ }
1755
+
1756
+ method_options global_method_options
1757
+ def initialize(*args); super; end
1758
+
1759
+ # List components and their dependencies.
1760
+ #
1761
+ # Examples:
1762
+ #
1763
+ # merb:stack:list # list all standard stack components
1764
+ # merb:stack:list all # list all component sets
1765
+ # merb:stack:list merb-more # list all dependencies of merb-more
1766
+
1767
+ desc 'list [all|comp]', 'List available components (optionally filtered, defaults to merb stack)'
1768
+ def list(comp = 'stack')
1769
+ if comp == 'all'
1770
+ Merb::Stack.component_sets.keys.sort.each do |comp|
1771
+ unless (components = Merb::Stack.component_sets[comp]).empty?
1772
+ message "Dependencies for '#{comp}' set:"
1773
+ components.each { |c| puts "- #{c}" }
1774
+ end
1775
+ end
1776
+ else
1777
+ message "Dependencies for '#{comp}' set:"
1778
+ Merb::Stack.components(comp).each { |c| puts "- #{c}" }
1779
+ end
1780
+ end
1781
+
1782
+ # Install stack components or individual gems - from stable rubygems by default.
1783
+ #
1784
+ # See also: Merb::Dependencies#install and Merb::Dependencies#install_dependencies
1785
+ #
1786
+ # Examples:
1787
+ #
1788
+ # merb:stack:install # install the default merb stack
1789
+ # merb:stack:install basics # install a basic set of dependencies
1790
+ # merb:stack:install merb-core # install merb-core from stable
1791
+ # merb:stack:install merb-more --edge # install merb-core from edge
1792
+ # merb:stack:install merb-core thor merb-slices # install the specified gems
1793
+
1794
+ desc 'install [COMP, ...]', 'Install stack components'
1795
+ method_options "--edge" => :boolean,
1796
+ "--sources" => :optional,
1797
+ "--force" => :boolean,
1798
+ "--dry-run" => :boolean,
1799
+ "--strategy" => :optional
1800
+ def install(*comps)
1801
+ use_edge_gem_server if options[:edge]
1802
+ mngr = self.dependency_manager
1803
+ deps = gather_dependencies(comps)
1804
+ mngr.system, mngr.local, mngr.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1805
+ mngr.install_dependencies(strategy, deps)
1806
+ end
1807
+
1808
+ # Uninstall stack components or individual gems.
1809
+ #
1810
+ # See also: Merb::Dependencies#uninstall
1811
+ #
1812
+ # Examples:
1813
+ #
1814
+ # merb:stack:uninstall # uninstall the default merb stack
1815
+ # merb:stack:uninstall merb-more # uninstall merb-more
1816
+ # merb:stack:uninstall merb-core thor merb-slices # uninstall the specified gems
1817
+
1818
+ desc 'uninstall [COMP, ...]', 'Uninstall stack components'
1819
+ method_options "--dry-run" => :boolean, "--force" => :boolean
1820
+ def uninstall(*comps)
1821
+ deps = gather_dependencies(comps)
1822
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1823
+ # Clobber existing local dependencies - based on self.local
1824
+ clobber_dependencies!
1825
+ end
1826
+
1827
+ # Install or uninstall minigems from the system.
1828
+ #
1829
+ # Due to the specific nature of MiniGems it can only be installed system-wide.
1830
+ #
1831
+ # Examples:
1832
+ #
1833
+ # merb:stack:minigems install # install minigems
1834
+ # merb:stack:minigems uninstall # uninstall minigems
1835
+
1836
+ desc 'minigems (install|uninstall)', 'Install or uninstall minigems (needs sudo privileges)'
1837
+ def minigems(action)
1838
+ case action
1839
+ when 'install'
1840
+ Kernel.system "#{sudo} thor merb:stack:install_minigems"
1841
+ when 'uninstall'
1842
+ Kernel.system "#{sudo} thor merb:stack:uninstall_minigems"
1843
+ else
1844
+ error "Invalid command: merb:stack:minigems #{action}"
1845
+ end
1846
+ end
1847
+
1848
+ # hidden minigems install task
1849
+ def install_minigems
1850
+ message "Installing MiniGems"
1851
+ mngr = self.dependency_manager
1852
+ deps = gather_dependencies('minigems')
1853
+ mngr.system, mngr.local, mngr.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1854
+ mngr.force_gem_dir = ::Gem.dir
1855
+ mngr.install_dependencies(strategy, deps)
1856
+ Kernel.system "#{sudo} minigem install"
1857
+ end
1858
+
1859
+ # hidden minigems uninstall task
1860
+ def uninstall_minigems
1861
+ message "Uninstalling MiniGems"
1862
+ Kernel.system "#{sudo} minigem uninstall"
1863
+ deps = gather_dependencies('minigems')
1864
+ self.system, self.local, self.missing = Merb::Gem.partition_dependencies(deps, gem_dir)
1865
+ # Clobber existing local dependencies - based on self.local
1866
+ clobber_dependencies!
1867
+ end
1868
+
1869
+ protected
1870
+
1871
+ def gather_dependencies(comps = [])
1872
+ if comps.empty?
1873
+ gems = MERB_STACK
1874
+ else
1875
+ gems = comps.map { |c| Merb::Stack.components(c) }.flatten
1876
+ end
1877
+
1878
+ version_req = if options[:version]
1879
+ ::Gem::Requirement.create(options[:version])
1880
+ end
1881
+
1882
+ framework_components = Merb::Stack.framework_components
1883
+
1884
+ gems.map do |gem|
1885
+ if version_req && framework_components.include?(gem)
1886
+ ::Gem::Dependency.new(gem, version_req)
1887
+ else
1888
+ ::Gem::Dependency.new(gem, ::Gem::Requirement.default)
1889
+ end
1890
+ end
1891
+ end
1892
+
1893
+ def strategy
1894
+ options[:strategy] || (options[:edge] ? 'edge' : 'stable')
1895
+ end
1896
+
1897
+ def dependency_manager
1898
+ @_dependency_manager ||= begin
1899
+ instance = Merb::Dependencies.new
1900
+ instance.options = options
1901
+ instance
1902
+ end
1903
+ end
1904
+
1905
+ public
1906
+
1907
+ def self.repository_sets
1908
+ @_repository_sets ||= begin
1909
+ # the component itself as a fallback
1910
+ comps = Hash.new { |(hsh,c)| [c] }
1911
+
1912
+ # git repository based component sets
1913
+ comps["merb"] = ["merb-core"] + MERB_MORE
1914
+ comps["merb-more"] = MERB_MORE.sort
1915
+ comps["merb-plugins"] = MERB_PLUGINS.sort
1916
+ comps["dm-more"] = DM_MORE.sort
1917
+ comps["do"] = DATA_OBJECTS.sort
1918
+
1919
+ comps
1920
+ end
1921
+ end
1922
+
1923
+ def self.component_sets
1924
+ @_component_sets ||= begin
1925
+ # the component itself as a fallback
1926
+ comps = Hash.new { |(hsh,c)| [c] }
1927
+ comps.update(repository_sets)
1928
+
1929
+ # specific set of dependencies
1930
+ comps["stack"] = MERB_STACK.sort
1931
+ comps["basics"] = MERB_BASICS.sort
1932
+
1933
+ # orm dependencies
1934
+ comps["datamapper"] = DM_STACK.sort
1935
+ comps["sequel"] = ["merb_sequel", "sequel"]
1936
+ comps["activerecord"] = ["merb_activerecord", "activerecord"]
1937
+
1938
+ comps
1939
+ end
1940
+ end
1941
+
1942
+ def self.framework_components
1943
+ %w[merb-core merb-more].inject([]) do |all, comp|
1944
+ all + components(comp)
1945
+ end
1946
+ end
1947
+
1948
+ def self.components(comp = nil)
1949
+ if comp
1950
+ component_sets[comp]
1951
+ else
1952
+ comps = %w[merb-core merb-more merb-plugins dm-core dm-more]
1953
+ comps.inject([]) do |all, grp|
1954
+ all + (component_sets[grp] || [])
1955
+ end
1956
+ end
1957
+ end
1958
+
1959
+ def self.select_component_dependencies(dependencies, comp = nil)
1960
+ comps = components(comp) || []
1961
+ dependencies.select { |dep| comps.include?(dep.name) }
1962
+ end
1963
+
1964
+ def self.base_components
1965
+ %w[thor rake extlib]
1966
+ end
1967
+
1968
+ def self.all_components
1969
+ base_components + framework_components
1970
+ end
1971
+
1972
+ # Find the latest merb-core and gather its dependencies.
1973
+ # We check for 0.9.8 as a minimum release version.
1974
+ def self.core_dependencies(gem_dir = nil, ignore_deps = false)
1975
+ @_core_dependencies ||= begin
1976
+ if gem_dir # add local gems to index
1977
+ orig_gem_path = ::Gem.path
1978
+ ::Gem.clear_paths; ::Gem.path.unshift(gem_dir)
1979
+ end
1980
+ deps = []
1981
+ merb_core = ::Gem::Dependency.new('merb-core', '>= 0.9.8')
1982
+ if gemspec = ::Gem.source_index.search(merb_core).last
1983
+ deps << ::Gem::Dependency.new('merb-core', gemspec.version)
1984
+ if ignore_deps
1985
+ deps += gemspec.dependencies.select do |d|
1986
+ base_components.include?(d.name)
1987
+ end
1988
+ else
1989
+ deps += gemspec.dependencies
1990
+ end
1991
+ end
1992
+ ::Gem.path.replace(orig_gem_path) if gem_dir # reset
1993
+ deps
1994
+ end
1995
+ end
1996
+
1997
+ def self.lookup_repository_name(item)
1998
+ set_name = nil
1999
+ # The merb repo contains -more as well, so it needs special attention
2000
+ return 'merb' if self.repository_sets['merb'].include?(item)
2001
+
2002
+ # Proceed with finding the item in a known component set
2003
+ self.repository_sets.find do |set, items|
2004
+ next if set == 'merb'
2005
+ items.include?(item) ? (set_name = set) : nil
2006
+ end
2007
+ set_name
2008
+ end
2009
+
2010
+ end
2011
+
2012
+ end