backbone-queryparams-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2390) hide show
  1. data/MIT-LICENSE +0 -0
  2. data/README.md +23 -0
  3. data/lib/backbone-queryparams-rails.rb +9 -0
  4. data/lib/backbone/query_params/rails/engine.rb +9 -0
  5. data/lib/backbone/query_params/rails/version.rb +7 -0
  6. data/vendor/assets/javascripts/backbone-queryparams-rails.js +1 -0
  7. data/vendor/assets/javascripts/backbone-queryparams-rails/backbone-queryparams.js +286 -0
  8. data/vendor/bundle/bin/erubis +23 -0
  9. data/vendor/bundle/bin/rackup +23 -0
  10. data/vendor/bundle/bin/rails +23 -0
  11. data/vendor/bundle/bin/rake +23 -0
  12. data/vendor/bundle/bin/rake2thor +23 -0
  13. data/vendor/bundle/bin/rdoc +23 -0
  14. data/vendor/bundle/bin/ri +23 -0
  15. data/vendor/bundle/bin/sprockets +23 -0
  16. data/vendor/bundle/bin/thor +23 -0
  17. data/vendor/bundle/bin/tilt +23 -0
  18. data/vendor/bundle/cache/actionpack-3.2.11.gem +0 -0
  19. data/vendor/bundle/cache/activemodel-3.2.11.gem +0 -0
  20. data/vendor/bundle/cache/activesupport-3.2.11.gem +0 -0
  21. data/vendor/bundle/cache/builder-3.0.4.gem +0 -0
  22. data/vendor/bundle/cache/erubis-2.7.0.gem +0 -0
  23. data/vendor/bundle/cache/hike-1.2.1.gem +0 -0
  24. data/vendor/bundle/cache/i18n-0.6.1.gem +0 -0
  25. data/vendor/bundle/cache/journey-1.0.4.gem +0 -0
  26. data/vendor/bundle/cache/json-1.7.6.gem +0 -0
  27. data/vendor/bundle/cache/multi_json-1.5.0.gem +0 -0
  28. data/vendor/bundle/cache/rack-1.4.4.gem +0 -0
  29. data/vendor/bundle/cache/rack-cache-1.2.gem +0 -0
  30. data/vendor/bundle/cache/rack-ssl-1.3.2.gem +0 -0
  31. data/vendor/bundle/cache/rack-test-0.6.2.gem +0 -0
  32. data/vendor/bundle/cache/railties-3.2.11.gem +0 -0
  33. data/vendor/bundle/cache/rake-10.0.3.gem +0 -0
  34. data/vendor/bundle/cache/rdoc-3.12.gem +0 -0
  35. data/vendor/bundle/cache/sprockets-2.2.2.gem +0 -0
  36. data/vendor/bundle/cache/thor-0.16.0.gem +0 -0
  37. data/vendor/bundle/cache/tilt-1.3.3.gem +0 -0
  38. data/vendor/bundle/gems/actionpack-3.2.11/CHANGELOG.md +447 -0
  39. data/vendor/bundle/gems/actionpack-3.2.11/MIT-LICENSE +21 -0
  40. data/vendor/bundle/gems/actionpack-3.2.11/README.rdoc +341 -0
  41. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller.rb +28 -0
  42. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/asset_paths.rb +10 -0
  43. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/base.rb +213 -0
  44. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/callbacks.rb +198 -0
  45. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/collector.rb +32 -0
  46. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/helpers.rb +167 -0
  47. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/layouts.rb +423 -0
  48. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/logger.rb +13 -0
  49. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/railties/routes_helpers.rb +18 -0
  50. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/rendering.rb +179 -0
  51. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/translation.rb +13 -0
  52. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/url_for.rb +33 -0
  53. data/vendor/bundle/gems/actionpack-3.2.11/lib/abstract_controller/view_paths.rb +96 -0
  54. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller.rb +65 -0
  55. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/base.rb +235 -0
  56. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/caching.rb +86 -0
  57. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/caching/actions.rb +185 -0
  58. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/caching/fragments.rb +127 -0
  59. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/caching/pages.rb +187 -0
  60. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/caching/sweeping.rb +97 -0
  61. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/deprecated.rb +3 -0
  62. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/deprecated/integration_test.rb +2 -0
  63. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/deprecated/performance_test.rb +1 -0
  64. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/log_subscriber.rb +67 -0
  65. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal.rb +250 -0
  66. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/compatibility.rb +64 -0
  67. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/conditional_get.rb +131 -0
  68. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/cookies.rb +16 -0
  69. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/data_streaming.rb +177 -0
  70. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/exceptions.rb +46 -0
  71. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/flash.rb +28 -0
  72. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/force_ssl.rb +39 -0
  73. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/head.rb +35 -0
  74. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/helpers.rb +113 -0
  75. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/hide_actions.rb +47 -0
  76. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/http_authentication.rb +466 -0
  77. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/implicit_render.rb +19 -0
  78. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/instrumentation.rb +105 -0
  79. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/mime_responds.rb +317 -0
  80. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/params_wrapper.rb +240 -0
  81. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/rack_delegation.rb +26 -0
  82. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/redirecting.rb +109 -0
  83. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/renderers.rb +109 -0
  84. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/rendering.rb +65 -0
  85. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/request_forgery_protection.rb +113 -0
  86. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/rescue.rb +35 -0
  87. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/responder.rb +286 -0
  88. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/session_management.rb +14 -0
  89. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/streaming.rb +229 -0
  90. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/testing.rb +37 -0
  91. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/metal/url_for.rb +47 -0
  92. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/middleware.rb +39 -0
  93. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/railtie.rb +51 -0
  94. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/railties/paths.rb +25 -0
  95. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/record_identifier.rb +85 -0
  96. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/test_case.rb +558 -0
  97. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner.rb +20 -0
  98. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/document.rb +68 -0
  99. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/node.rb +532 -0
  100. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +177 -0
  101. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/selector.rb +830 -0
  102. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +107 -0
  103. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
  104. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch.rb +102 -0
  105. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/cache.rb +123 -0
  106. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/filter_parameters.rb +70 -0
  107. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/headers.rb +31 -0
  108. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/mime_negotiation.rb +110 -0
  109. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/mime_type.rb +276 -0
  110. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/mime_types.rb +35 -0
  111. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/parameter_filter.rb +74 -0
  112. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/parameters.rb +83 -0
  113. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/rack_cache.rb +62 -0
  114. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/request.rb +279 -0
  115. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/response.rb +206 -0
  116. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/upload.rb +47 -0
  117. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/http/url.rb +174 -0
  118. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/best_standards_support.rb +22 -0
  119. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/body_proxy.rb +30 -0
  120. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/callbacks.rb +32 -0
  121. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/cookies.rb +353 -0
  122. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/debug_exceptions.rb +82 -0
  123. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/exception_wrapper.rb +82 -0
  124. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/flash.rb +263 -0
  125. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/head.rb +18 -0
  126. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/params_parser.rb +75 -0
  127. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/public_exceptions.rb +30 -0
  128. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb +89 -0
  129. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/remote_ip.rb +81 -0
  130. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/request_id.rb +39 -0
  131. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/rescue.rb +26 -0
  132. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/session/abstract_store.rb +88 -0
  133. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/session/cache_store.rb +49 -0
  134. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/session/cookie_store.rb +71 -0
  135. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/session/mem_cache_store.rb +17 -0
  136. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/show_exceptions.rb +87 -0
  137. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/stack.rb +124 -0
  138. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/static.rb +65 -0
  139. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +31 -0
  140. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb +26 -0
  141. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +10 -0
  142. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/layout.erb +32 -0
  143. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/missing_template.erb +2 -0
  144. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +15 -0
  145. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb +17 -0
  146. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb +2 -0
  147. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/railtie.rb +34 -0
  148. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing.rb +293 -0
  149. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/mapper.rb +1509 -0
  150. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/polymorphic_routes.rb +209 -0
  151. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/redirection.rb +131 -0
  152. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/route_set.rb +659 -0
  153. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/routes_proxy.rb +39 -0
  154. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/routing/url_for.rb +167 -0
  155. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions.rb +18 -0
  156. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions/dom.rb +37 -0
  157. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions/response.rb +96 -0
  158. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions/routing.rb +217 -0
  159. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions/selector.rb +435 -0
  160. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/assertions/tag.rb +138 -0
  161. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/integration.rb +498 -0
  162. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/performance_test.rb +10 -0
  163. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/test_process.rb +41 -0
  164. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/test_request.rb +74 -0
  165. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_dispatch/testing/test_response.rb +29 -0
  166. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_pack.rb +24 -0
  167. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_pack/version.rb +10 -0
  168. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view.rb +84 -0
  169. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/asset_paths.rb +142 -0
  170. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/base.rb +220 -0
  171. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/buffers.rb +43 -0
  172. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/context.rb +36 -0
  173. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/flows.rb +79 -0
  174. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers.rb +60 -0
  175. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/active_model_helper.rb +50 -0
  176. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_paths.rb +7 -0
  177. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_tag_helper.rb +457 -0
  178. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +146 -0
  179. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +93 -0
  180. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +193 -0
  181. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +148 -0
  182. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/atom_feed_helper.rb +200 -0
  183. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/cache_helper.rb +64 -0
  184. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/capture_helper.rb +203 -0
  185. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/controller_helper.rb +25 -0
  186. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/csrf_helper.rb +32 -0
  187. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/date_helper.rb +1057 -0
  188. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/debug_helper.rb +40 -0
  189. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/form_helper.rb +1487 -0
  190. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/form_options_helper.rb +658 -0
  191. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/form_tag_helper.rb +685 -0
  192. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/javascript_helper.rb +110 -0
  193. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/number_helper.rb +608 -0
  194. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/output_safety_helper.rb +38 -0
  195. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/record_tag_helper.rb +109 -0
  196. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/rendering_helper.rb +90 -0
  197. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/sanitize_helper.rb +259 -0
  198. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/tag_helper.rb +160 -0
  199. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/text_helper.rb +426 -0
  200. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/translation_helper.rb +88 -0
  201. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/helpers/url_helper.rb +693 -0
  202. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/locale/en.yml +160 -0
  203. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/log_subscriber.rb +28 -0
  204. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/lookup_context.rb +241 -0
  205. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/path_set.rb +89 -0
  206. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/railtie.rb +55 -0
  207. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/renderer/abstract_renderer.rb +41 -0
  208. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/renderer/partial_renderer.rb +415 -0
  209. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/renderer/renderer.rb +54 -0
  210. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/renderer/streaming_template_renderer.rb +106 -0
  211. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/renderer/template_renderer.rb +94 -0
  212. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template.rb +337 -0
  213. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/error.rb +128 -0
  214. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/handlers.rb +50 -0
  215. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/handlers/builder.rb +26 -0
  216. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/handlers/erb.rb +109 -0
  217. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/resolver.rb +258 -0
  218. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/template/text.rb +30 -0
  219. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/test_case.rb +245 -0
  220. data/vendor/bundle/gems/actionpack-3.2.11/lib/action_view/testing/resolvers.rb +50 -0
  221. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/assets.rake +99 -0
  222. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/bootstrap.rb +37 -0
  223. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/compressors.rb +83 -0
  224. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/helpers.rb +6 -0
  225. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/helpers/isolated_helper.rb +13 -0
  226. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb +175 -0
  227. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/railtie.rb +62 -0
  228. data/vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/static_compiler.rb +56 -0
  229. data/vendor/bundle/gems/activemodel-3.2.11/CHANGELOG.md +62 -0
  230. data/vendor/bundle/gems/activemodel-3.2.11/MIT-LICENSE +21 -0
  231. data/vendor/bundle/gems/activemodel-3.2.11/README.rdoc +211 -0
  232. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model.rb +61 -0
  233. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/attribute_methods.rb +452 -0
  234. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/callbacks.rb +134 -0
  235. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/conversion.rb +73 -0
  236. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/dirty.rb +167 -0
  237. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/errors.rb +370 -0
  238. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/lint.rb +123 -0
  239. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/locale/en.yml +27 -0
  240. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/mass_assignment_security.rb +237 -0
  241. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/mass_assignment_security/permission_set.rb +40 -0
  242. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/mass_assignment_security/sanitizer.rb +59 -0
  243. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/naming.rb +171 -0
  244. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/observer_array.rb +147 -0
  245. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/observing.rb +252 -0
  246. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/railtie.rb +2 -0
  247. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/secure_password.rb +74 -0
  248. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/serialization.rb +139 -0
  249. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/serializers/json.rb +108 -0
  250. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/serializers/xml.rb +199 -0
  251. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/test_case.rb +16 -0
  252. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/translation.rb +70 -0
  253. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations.rb +237 -0
  254. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/acceptance.rb +67 -0
  255. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/callbacks.rb +57 -0
  256. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/confirmation.rb +67 -0
  257. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/exclusion.rb +79 -0
  258. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/format.rb +105 -0
  259. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/inclusion.rb +79 -0
  260. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/length.rb +127 -0
  261. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/numericality.rb +138 -0
  262. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/presence.rb +49 -0
  263. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/validates.rb +137 -0
  264. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validations/with.rb +142 -0
  265. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/validator.rb +184 -0
  266. data/vendor/bundle/gems/activemodel-3.2.11/lib/active_model/version.rb +10 -0
  267. data/vendor/bundle/gems/activesupport-3.2.11/CHANGELOG.md +157 -0
  268. data/vendor/bundle/gems/activesupport-3.2.11/MIT-LICENSE +20 -0
  269. data/vendor/bundle/gems/activesupport-3.2.11/README.rdoc +33 -0
  270. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support.rb +82 -0
  271. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/all.rb +3 -0
  272. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/backtrace_cleaner.rb +99 -0
  273. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/base64.rb +54 -0
  274. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/basic_object.rb +21 -0
  275. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/benchmarkable.rb +55 -0
  276. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/buffered_logger.rb +125 -0
  277. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/builder.rb +6 -0
  278. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache.rb +638 -0
  279. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/file_store.rb +178 -0
  280. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/mem_cache_store.rb +206 -0
  281. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/memory_store.rb +159 -0
  282. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/null_store.rb +44 -0
  283. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb +169 -0
  284. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/callbacks.rb +626 -0
  285. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/concern.rb +131 -0
  286. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/configurable.rb +90 -0
  287. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext.rb +3 -0
  288. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array.rb +8 -0
  289. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/access.rb +46 -0
  290. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/conversions.rb +164 -0
  291. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/extract_options.rb +29 -0
  292. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/grouping.rb +100 -0
  293. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/prepend_and_append.rb +7 -0
  294. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/random_access.rb +30 -0
  295. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/uniq_by.rb +16 -0
  296. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/wrap.rb +48 -0
  297. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb +7 -0
  298. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal.rb +1 -0
  299. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal/conversions.rb +45 -0
  300. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class.rb +4 -0
  301. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute.rb +115 -0
  302. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute_accessors.rb +168 -0
  303. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
  304. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/subclasses.rb +36 -0
  305. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/acts_like.rb +8 -0
  306. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/calculations.rb +276 -0
  307. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/conversions.rb +106 -0
  308. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/freeze.rb +33 -0
  309. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/zones.rb +14 -0
  310. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
  311. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/calculations.rb +143 -0
  312. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/conversions.rb +103 -0
  313. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/zones.rb +21 -0
  314. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/enumerable.rb +127 -0
  315. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/exception.rb +3 -0
  316. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file.rb +2 -0
  317. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/atomic.rb +42 -0
  318. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/path.rb +5 -0
  319. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float.rb +1 -0
  320. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float/rounding.rb +19 -0
  321. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash.rb +9 -0
  322. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/conversions.rb +175 -0
  323. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_dup.rb +18 -0
  324. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_merge.rb +21 -0
  325. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/diff.rb +13 -0
  326. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/except.rb +23 -0
  327. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
  328. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/keys.rb +54 -0
  329. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/reverse_merge.rb +23 -0
  330. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/slice.rb +40 -0
  331. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer.rb +3 -0
  332. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/inflections.rb +17 -0
  333. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/multiple.rb +10 -0
  334. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/time.rb +39 -0
  335. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/io.rb +15 -0
  336. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel.rb +4 -0
  337. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
  338. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/debugger.rb +10 -0
  339. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/reporting.rb +93 -0
  340. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
  341. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/load_error.rb +23 -0
  342. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/logger.rb +83 -0
  343. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module.rb +12 -0
  344. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb +70 -0
  345. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/anonymous.rb +24 -0
  346. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attr_internal.rb +39 -0
  347. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attribute_accessors.rb +64 -0
  348. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/delegation.rb +153 -0
  349. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/deprecation.rb +9 -0
  350. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/introspection.rb +88 -0
  351. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/method_names.rb +14 -0
  352. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/qualified_const.rb +64 -0
  353. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/reachable.rb +8 -0
  354. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/remove_method.rb +16 -0
  355. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/synchronization.rb +45 -0
  356. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/name_error.rb +18 -0
  357. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric.rb +2 -0
  358. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/bytes.rb +44 -0
  359. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/time.rb +79 -0
  360. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object.rb +13 -0
  361. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/acts_like.rb +10 -0
  362. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/blank.rb +121 -0
  363. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/conversions.rb +4 -0
  364. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/duplicable.rb +119 -0
  365. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/inclusion.rb +25 -0
  366. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/instance_variables.rb +33 -0
  367. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_json.rb +19 -0
  368. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_param.rb +55 -0
  369. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_query.rb +27 -0
  370. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/try.rb +57 -0
  371. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/with_options.rb +43 -0
  372. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/proc.rb +14 -0
  373. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process.rb +1 -0
  374. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process/daemon.rb +23 -0
  375. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range.rb +5 -0
  376. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/blockless_step.rb +29 -0
  377. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/conversions.rb +21 -0
  378. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/cover.rb +3 -0
  379. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/include_range.rb +21 -0
  380. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/overlaps.rb +8 -0
  381. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/regexp.rb +5 -0
  382. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/rexml.rb +46 -0
  383. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string.rb +14 -0
  384. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/access.rb +99 -0
  385. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/behavior.rb +6 -0
  386. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/conversions.rb +66 -0
  387. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/encoding.rb +11 -0
  388. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/exclude.rb +11 -0
  389. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/filters.rb +49 -0
  390. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inflections.rb +202 -0
  391. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inquiry.rb +13 -0
  392. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/interpolation.rb +2 -0
  393. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/multibyte.rb +72 -0
  394. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/output_safety.rb +186 -0
  395. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
  396. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/strip.rb +26 -0
  397. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/xchar.rb +18 -0
  398. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/acts_like.rb +8 -0
  399. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/calculations.rb +360 -0
  400. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/conversions.rb +85 -0
  401. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/marshal.rb +57 -0
  402. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
  403. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/zones.rb +86 -0
  404. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/uri.rb +30 -0
  405. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies.rb +703 -0
  406. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies/autoload.rb +50 -0
  407. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation.rb +18 -0
  408. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/behaviors.rb +49 -0
  409. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/method_wrappers.rb +29 -0
  410. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
  411. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/reporting.rb +65 -0
  412. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/descendants_tracker.rb +45 -0
  413. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/duration.rb +110 -0
  414. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_update_checker.rb +121 -0
  415. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_watcher.rb +36 -0
  416. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/gzip.rb +30 -0
  417. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/hash_with_indifferent_access.rb +178 -0
  418. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n.rb +9 -0
  419. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n_railtie.rb +102 -0
  420. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflections.rb +63 -0
  421. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector.rb +7 -0
  422. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/inflections.rb +174 -0
  423. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/methods.rb +321 -0
  424. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/transliterate.rb +98 -0
  425. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json.rb +2 -0
  426. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/decoding.rb +79 -0
  427. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/encoding.rb +284 -0
  428. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/variable.rb +9 -0
  429. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb +46 -0
  430. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/locale/en.yml +36 -0
  431. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber.rb +122 -0
  432. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber/test_helper.rb +101 -0
  433. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/memoizable.rb +116 -0
  434. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_encryptor.rb +103 -0
  435. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_verifier.rb +74 -0
  436. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte.rb +44 -0
  437. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/chars.rb +476 -0
  438. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/exceptions.rb +8 -0
  439. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/unicode.rb +393 -0
  440. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/utils.rb +60 -0
  441. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications.rb +154 -0
  442. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/fanout.rb +61 -0
  443. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb +53 -0
  444. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/option_merger.rb +25 -0
  445. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_hash.rb +222 -0
  446. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_options.rb +61 -0
  447. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/railtie.rb +59 -0
  448. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/rescuable.rb +115 -0
  449. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ruby/shim.rb +22 -0
  450. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/string_inquirer.rb +21 -0
  451. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb +80 -0
  452. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/test_case.rb +34 -0
  453. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/assertions.rb +97 -0
  454. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/declarative.rb +40 -0
  455. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/deprecation.rb +55 -0
  456. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/isolation.rb +157 -0
  457. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/mochaing.rb +7 -0
  458. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/pending.rb +52 -0
  459. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance.rb +317 -0
  460. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/jruby.rb +115 -0
  461. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/rubinius.rb +113 -0
  462. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby.rb +152 -0
  463. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/mri.rb +57 -0
  464. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
  465. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/setup_and_teardown.rb +118 -0
  466. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time.rb +35 -0
  467. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time/autoload.rb +5 -0
  468. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time_with_zone.rb +358 -0
  469. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/time_zone.rb +397 -0
  470. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/unicode_tables.dat +0 -0
  471. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/version.rb +10 -0
  472. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/whiny_nil.rb +24 -0
  473. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini.rb +168 -0
  474. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/jdom.rb +175 -0
  475. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxml.rb +80 -0
  476. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxmlsax.rb +86 -0
  477. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogiri.rb +84 -0
  478. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogirisax.rb +88 -0
  479. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/rexml.rb +130 -0
  480. data/vendor/bundle/gems/builder-3.0.4/CHANGES +101 -0
  481. data/vendor/bundle/gems/builder-3.0.4/MIT-LICENSE +20 -0
  482. data/vendor/bundle/gems/builder-3.0.4/README.rdoc +225 -0
  483. data/vendor/bundle/gems/builder-3.0.4/Rakefile +189 -0
  484. data/vendor/bundle/gems/builder-3.0.4/doc/releases/builder-1.2.4.rdoc +31 -0
  485. data/vendor/bundle/gems/builder-3.0.4/doc/releases/builder-2.0.0.rdoc +46 -0
  486. data/vendor/bundle/gems/builder-3.0.4/doc/releases/builder-2.1.1.rdoc +58 -0
  487. data/vendor/bundle/gems/builder-3.0.4/lib/blankslate.rb +137 -0
  488. data/vendor/bundle/gems/builder-3.0.4/lib/builder.rb +13 -0
  489. data/vendor/bundle/gems/builder-3.0.4/lib/builder/blankslate.rb +23 -0
  490. data/vendor/bundle/gems/builder-3.0.4/lib/builder/version.rb +8 -0
  491. data/vendor/bundle/gems/builder-3.0.4/lib/builder/xchar.rb +197 -0
  492. data/vendor/bundle/gems/builder-3.0.4/lib/builder/xmlbase.rb +192 -0
  493. data/vendor/bundle/gems/builder-3.0.4/lib/builder/xmlevents.rb +63 -0
  494. data/vendor/bundle/gems/builder-3.0.4/lib/builder/xmlmarkup.rb +334 -0
  495. data/vendor/bundle/gems/builder-3.0.4/test/performance.rb +40 -0
  496. data/vendor/bundle/gems/builder-3.0.4/test/preload.rb +39 -0
  497. data/vendor/bundle/gems/builder-3.0.4/test/test_blankslate.rb +217 -0
  498. data/vendor/bundle/gems/builder-3.0.4/test/test_eventbuilder.rb +150 -0
  499. data/vendor/bundle/gems/builder-3.0.4/test/test_markupbuilder.rb +578 -0
  500. data/vendor/bundle/gems/builder-3.0.4/test/test_method_caching.rb +62 -0
  501. data/vendor/bundle/gems/builder-3.0.4/test/test_namecollision.rb +39 -0
  502. data/vendor/bundle/gems/builder-3.0.4/test/test_xchar.rb +77 -0
  503. data/vendor/bundle/gems/erubis-2.7.0/CHANGES.txt +828 -0
  504. data/vendor/bundle/gems/erubis-2.7.0/MIT-LICENSE +20 -0
  505. data/vendor/bundle/gems/erubis-2.7.0/README.txt +102 -0
  506. data/vendor/bundle/gems/erubis-2.7.0/benchmark/Makefile +6 -0
  507. data/vendor/bundle/gems/erubis-2.7.0/benchmark/bench.rb +313 -0
  508. data/vendor/bundle/gems/erubis-2.7.0/benchmark/bench_context.yaml +141 -0
  509. data/vendor/bundle/gems/erubis-2.7.0/benchmark/templates/_footer.html +4 -0
  510. data/vendor/bundle/gems/erubis-2.7.0/benchmark/templates/_header.html +52 -0
  511. data/vendor/bundle/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +29 -0
  512. data/vendor/bundle/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +29 -0
  513. data/vendor/bundle/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +29 -0
  514. data/vendor/bundle/gems/erubis-2.7.0/bin/erubis +10 -0
  515. data/vendor/bundle/gems/erubis-2.7.0/contrib/erubis +3468 -0
  516. data/vendor/bundle/gems/erubis-2.7.0/contrib/erubis-run.rb +132 -0
  517. data/vendor/bundle/gems/erubis-2.7.0/contrib/inline-require +179 -0
  518. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/ActionView.html +105 -0
  519. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +209 -0
  520. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/ERB.html +101 -0
  521. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis.html +362 -0
  522. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +175 -0
  523. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +120 -0
  524. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +174 -0
  525. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +120 -0
  526. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +112 -0
  527. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +327 -0
  528. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +130 -0
  529. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +215 -0
  530. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +120 -0
  531. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +386 -0
  532. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +113 -0
  533. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +344 -0
  534. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +283 -0
  535. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +382 -0
  536. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +150 -0
  537. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +120 -0
  538. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +126 -0
  539. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +126 -0
  540. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +126 -0
  541. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +126 -0
  542. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +305 -0
  543. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +126 -0
  544. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +126 -0
  545. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +175 -0
  546. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +120 -0
  547. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +117 -0
  548. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +132 -0
  549. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +165 -0
  550. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +120 -0
  551. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +120 -0
  552. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +120 -0
  553. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +120 -0
  554. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +120 -0
  555. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +120 -0
  556. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +127 -0
  557. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +120 -0
  558. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +126 -0
  559. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +212 -0
  560. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +131 -0
  561. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +416 -0
  562. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +267 -0
  563. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +120 -0
  564. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +116 -0
  565. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +787 -0
  566. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +349 -0
  567. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +213 -0
  568. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +305 -0
  569. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +120 -0
  570. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +359 -0
  571. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +386 -0
  572. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +341 -0
  573. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +249 -0
  574. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +120 -0
  575. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +159 -0
  576. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +120 -0
  577. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +119 -0
  578. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +163 -0
  579. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +439 -0
  580. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +163 -0
  581. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +125 -0
  582. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +266 -0
  583. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +166 -0
  584. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +166 -0
  585. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +166 -0
  586. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +166 -0
  587. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +122 -0
  588. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +166 -0
  589. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +166 -0
  590. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +155 -0
  591. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +166 -0
  592. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +293 -0
  593. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +163 -0
  594. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +120 -0
  595. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +344 -0
  596. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +350 -0
  597. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +210 -0
  598. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +120 -0
  599. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +183 -0
  600. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +212 -0
  601. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +212 -0
  602. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +120 -0
  603. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +244 -0
  604. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +120 -0
  605. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +121 -0
  606. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +227 -0
  607. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +328 -0
  608. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +382 -0
  609. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +120 -0
  610. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +191 -0
  611. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +173 -0
  612. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +120 -0
  613. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +121 -0
  614. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +174 -0
  615. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +120 -0
  616. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +120 -0
  617. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +298 -0
  618. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +130 -0
  619. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +255 -0
  620. data/vendor/bundle/gems/erubis-2.7.0/doc-api/classes/Kernel.html +155 -0
  621. data/vendor/bundle/gems/erubis-2.7.0/doc-api/created.rid +1 -0
  622. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/README_txt.html +247 -0
  623. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +107 -0
  624. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +114 -0
  625. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +115 -0
  626. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +115 -0
  627. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +115 -0
  628. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +115 -0
  629. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +115 -0
  630. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +115 -0
  631. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +115 -0
  632. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +115 -0
  633. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +115 -0
  634. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +114 -0
  635. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +117 -0
  636. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +107 -0
  637. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +107 -0
  638. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +115 -0
  639. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +114 -0
  640. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +107 -0
  641. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +107 -0
  642. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +116 -0
  643. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +107 -0
  644. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +129 -0
  645. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +114 -0
  646. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +107 -0
  647. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +107 -0
  648. data/vendor/bundle/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +118 -0
  649. data/vendor/bundle/gems/erubis-2.7.0/doc-api/fr_class_index.html +129 -0
  650. data/vendor/bundle/gems/erubis-2.7.0/doc-api/fr_file_index.html +53 -0
  651. data/vendor/bundle/gems/erubis-2.7.0/doc-api/fr_method_index.html +265 -0
  652. data/vendor/bundle/gems/erubis-2.7.0/doc-api/index.html +24 -0
  653. data/vendor/bundle/gems/erubis-2.7.0/doc-api/rdoc-style.css +208 -0
  654. data/vendor/bundle/gems/erubis-2.7.0/doc/docstyle.css +209 -0
  655. data/vendor/bundle/gems/erubis-2.7.0/doc/users-guide.html +3551 -0
  656. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/Makefile +58 -0
  657. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.ec +42 -0
  658. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.ecpp +33 -0
  659. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.ejava +45 -0
  660. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.ejs +16 -0
  661. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.eperl +16 -0
  662. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.ephp +17 -0
  663. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.eruby +15 -0
  664. data/vendor/bundle/gems/erubis-2.7.0/examples/basic/example.escheme +26 -0
  665. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/Makefile +54 -0
  666. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.ec +42 -0
  667. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.ejava +45 -0
  668. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.ejs +16 -0
  669. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.eperl +16 -0
  670. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.ephp +17 -0
  671. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.eruby +15 -0
  672. data/vendor/bundle/gems/erubis-2.7.0/examples/pi/example.escheme +26 -0
  673. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis.rb +73 -0
  674. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/context.rb +83 -0
  675. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/converter.rb +357 -0
  676. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine.rb +120 -0
  677. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +117 -0
  678. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +113 -0
  679. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +110 -0
  680. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +119 -0
  681. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +126 -0
  682. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +95 -0
  683. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +99 -0
  684. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +125 -0
  685. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +114 -0
  686. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +127 -0
  687. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/enhancer.rb +723 -0
  688. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/error.rb +23 -0
  689. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/evaluator.rb +88 -0
  690. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/generator.rb +85 -0
  691. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/helper.rb +47 -0
  692. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +197 -0
  693. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +353 -0
  694. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/local-setting.rb +9 -0
  695. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/main.rb +516 -0
  696. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +58 -0
  697. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/tiny.rb +144 -0
  698. data/vendor/bundle/gems/erubis-2.7.0/lib/erubis/util.rb +22 -0
  699. data/vendor/bundle/gems/erubis-2.7.0/setup.rb +1331 -0
  700. data/vendor/bundle/gems/erubis-2.7.0/test/assert-text-equal.rb +44 -0
  701. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +55 -0
  702. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/array_example.result +9 -0
  703. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +9 -0
  704. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +4 -0
  705. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +6 -0
  706. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +10 -0
  707. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +17 -0
  708. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/context.rb +6 -0
  709. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/context.yaml +8 -0
  710. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +14 -0
  711. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/def_method.result +3 -0
  712. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +9 -0
  713. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.ec +27 -0
  714. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +30 -0
  715. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.ejs +20 -0
  716. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.eperl +18 -0
  717. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.ephp +18 -0
  718. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.eruby +6 -0
  719. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example.escheme +28 -0
  720. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +6 -0
  721. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example1.rb +17 -0
  722. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example1.result +16 -0
  723. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example10.rb +4 -0
  724. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example10.result +17 -0
  725. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +14 -0
  726. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +17 -0
  727. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11.php +20 -0
  728. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11.result +23 -0
  729. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +21 -0
  730. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +10 -0
  731. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +16 -0
  732. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +16 -0
  733. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +15 -0
  734. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +9 -0
  735. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +7 -0
  736. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example2.rb +10 -0
  737. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example2.result +27 -0
  738. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +10 -0
  739. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +10 -0
  740. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +6 -0
  741. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example3.rb +10 -0
  742. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example31.result +22 -0
  743. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example32.result +4 -0
  744. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +8 -0
  745. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +3 -0
  746. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example4.rb +11 -0
  747. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example4.result +10 -0
  748. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +5 -0
  749. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +6 -0
  750. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example5.rb +16 -0
  751. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example5.result +7 -0
  752. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example6.rb +12 -0
  753. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example6.result +7 -0
  754. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +8 -0
  755. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example71.result +13 -0
  756. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example72.result +13 -0
  757. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +6 -0
  758. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +7 -0
  759. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +7 -0
  760. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +3 -0
  761. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.rb +8 -0
  762. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example9.result +9 -0
  763. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example91.result +5 -0
  764. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example92.result +4 -0
  765. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_c.result +32 -0
  766. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_java.result +56 -0
  767. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_js.result +22 -0
  768. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +20 -0
  769. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_php.result +19 -0
  770. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +30 -0
  771. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +29 -0
  772. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +8 -0
  773. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +18 -0
  774. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +11 -0
  775. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +38 -0
  776. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +15 -0
  777. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +9 -0
  778. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +8 -0
  779. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +10 -0
  780. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +11 -0
  781. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +13 -0
  782. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +9 -0
  783. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +8 -0
  784. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +6 -0
  785. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +8 -0
  786. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +6 -0
  787. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +14 -0
  788. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +20 -0
  789. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +15 -0
  790. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +9 -0
  791. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +11 -0
  792. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +14 -0
  793. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +19 -0
  794. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +20 -0
  795. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +16 -0
  796. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +6 -0
  797. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +9 -0
  798. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +9 -0
  799. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +6 -0
  800. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +9 -0
  801. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +4 -0
  802. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +3 -0
  803. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +8 -0
  804. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +8 -0
  805. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +9 -0
  806. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/stderr.log +3 -0
  807. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +9 -0
  808. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +9 -0
  809. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +4 -0
  810. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +3 -0
  811. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +4 -0
  812. data/vendor/bundle/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +4 -0
  813. data/vendor/bundle/gems/erubis-2.7.0/test/test-engines.rb +425 -0
  814. data/vendor/bundle/gems/erubis-2.7.0/test/test-enhancers.rb +646 -0
  815. data/vendor/bundle/gems/erubis-2.7.0/test/test-erubis.rb +887 -0
  816. data/vendor/bundle/gems/erubis-2.7.0/test/test-index-cgi.rb +191 -0
  817. data/vendor/bundle/gems/erubis-2.7.0/test/test-main.rb +752 -0
  818. data/vendor/bundle/gems/erubis-2.7.0/test/test-users-guide.rb +73 -0
  819. data/vendor/bundle/gems/erubis-2.7.0/test/test.rb +45 -0
  820. data/vendor/bundle/gems/erubis-2.7.0/test/testutil.rb +111 -0
  821. data/vendor/bundle/gems/hike-1.2.1/LICENSE +20 -0
  822. data/vendor/bundle/gems/hike-1.2.1/README.md +52 -0
  823. data/vendor/bundle/gems/hike-1.2.1/lib/hike.rb +9 -0
  824. data/vendor/bundle/gems/hike-1.2.1/lib/hike/extensions.rb +23 -0
  825. data/vendor/bundle/gems/hike-1.2.1/lib/hike/index.rb +204 -0
  826. data/vendor/bundle/gems/hike-1.2.1/lib/hike/normalized_array.rb +59 -0
  827. data/vendor/bundle/gems/hike-1.2.1/lib/hike/paths.rb +27 -0
  828. data/vendor/bundle/gems/hike-1.2.1/lib/hike/trail.rb +179 -0
  829. data/vendor/bundle/gems/i18n-0.6.1/CHANGELOG.textile +152 -0
  830. data/vendor/bundle/gems/i18n-0.6.1/MIT-LICENSE +20 -0
  831. data/vendor/bundle/gems/i18n-0.6.1/README.textile +105 -0
  832. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.no-rails +5 -0
  833. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.no-rails.lock +14 -0
  834. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.rails-2.3.x +9 -0
  835. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.rails-2.3.x.lock +23 -0
  836. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.rails-3.x +9 -0
  837. data/vendor/bundle/gems/i18n-0.6.1/ci/Gemfile.rails-3.x.lock +23 -0
  838. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n.rb +332 -0
  839. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend.rb +18 -0
  840. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/base.rb +181 -0
  841. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/cache.rb +96 -0
  842. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/cascade.rb +54 -0
  843. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/chain.rb +78 -0
  844. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/fallbacks.rb +65 -0
  845. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/flatten.rb +113 -0
  846. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/gettext.rb +72 -0
  847. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/interpolation_compiler.rb +121 -0
  848. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/key_value.rb +101 -0
  849. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/memoize.rb +46 -0
  850. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/metadata.rb +65 -0
  851. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/pluralization.rb +53 -0
  852. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/simple.rb +87 -0
  853. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/backend/transliterator.rb +98 -0
  854. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/config.rb +86 -0
  855. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/core_ext/hash.rb +29 -0
  856. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/core_ext/kernel/surpress_warnings.rb +9 -0
  857. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/core_ext/string/interpolate.rb +105 -0
  858. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/exceptions.rb +106 -0
  859. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/gettext.rb +25 -0
  860. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/gettext/helpers.rb +64 -0
  861. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/gettext/po_parser.rb +329 -0
  862. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/interpolate/ruby.rb +31 -0
  863. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale.rb +6 -0
  864. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale/fallbacks.rb +96 -0
  865. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale/tag.rb +28 -0
  866. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale/tag/parents.rb +22 -0
  867. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale/tag/rfc4646.rb +74 -0
  868. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/locale/tag/simple.rb +39 -0
  869. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests.rb +12 -0
  870. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/basics.rb +54 -0
  871. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/defaults.rb +40 -0
  872. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/interpolation.rb +133 -0
  873. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/link.rb +56 -0
  874. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/localization.rb +19 -0
  875. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/localization/date.rb +84 -0
  876. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/localization/date_time.rb +77 -0
  877. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/localization/procs.rb +116 -0
  878. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/localization/time.rb +76 -0
  879. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/lookup.rb +74 -0
  880. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/pluralization.rb +35 -0
  881. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/tests/procs.rb +55 -0
  882. data/vendor/bundle/gems/i18n-0.6.1/lib/i18n/version.rb +3 -0
  883. data/vendor/bundle/gems/i18n-0.6.1/test/all.rb +8 -0
  884. data/vendor/bundle/gems/i18n-0.6.1/test/api/all_features_test.rb +58 -0
  885. data/vendor/bundle/gems/i18n-0.6.1/test/api/cascade_test.rb +28 -0
  886. data/vendor/bundle/gems/i18n-0.6.1/test/api/chain_test.rb +24 -0
  887. data/vendor/bundle/gems/i18n-0.6.1/test/api/fallbacks_test.rb +30 -0
  888. data/vendor/bundle/gems/i18n-0.6.1/test/api/key_value_test.rb +28 -0
  889. data/vendor/bundle/gems/i18n-0.6.1/test/api/memoize_test.rb +60 -0
  890. data/vendor/bundle/gems/i18n-0.6.1/test/api/override_test.rb +48 -0
  891. data/vendor/bundle/gems/i18n-0.6.1/test/api/pluralization_test.rb +30 -0
  892. data/vendor/bundle/gems/i18n-0.6.1/test/api/simple_test.rb +28 -0
  893. data/vendor/bundle/gems/i18n-0.6.1/test/backend/cache_test.rb +85 -0
  894. data/vendor/bundle/gems/i18n-0.6.1/test/backend/cascade_test.rb +85 -0
  895. data/vendor/bundle/gems/i18n-0.6.1/test/backend/chain_test.rb +72 -0
  896. data/vendor/bundle/gems/i18n-0.6.1/test/backend/exceptions_test.rb +30 -0
  897. data/vendor/bundle/gems/i18n-0.6.1/test/backend/fallbacks_test.rb +125 -0
  898. data/vendor/bundle/gems/i18n-0.6.1/test/backend/interpolation_compiler_test.rb +102 -0
  899. data/vendor/bundle/gems/i18n-0.6.1/test/backend/key_value_test.rb +46 -0
  900. data/vendor/bundle/gems/i18n-0.6.1/test/backend/memoize_test.rb +47 -0
  901. data/vendor/bundle/gems/i18n-0.6.1/test/backend/metadata_test.rb +47 -0
  902. data/vendor/bundle/gems/i18n-0.6.1/test/backend/pluralization_test.rb +44 -0
  903. data/vendor/bundle/gems/i18n-0.6.1/test/backend/simple_test.rb +83 -0
  904. data/vendor/bundle/gems/i18n-0.6.1/test/backend/transliterator_test.rb +81 -0
  905. data/vendor/bundle/gems/i18n-0.6.1/test/core_ext/hash_test.rb +30 -0
  906. data/vendor/bundle/gems/i18n-0.6.1/test/core_ext/string/interpolate_test.rb +99 -0
  907. data/vendor/bundle/gems/i18n-0.6.1/test/gettext/api_test.rb +206 -0
  908. data/vendor/bundle/gems/i18n-0.6.1/test/gettext/backend_test.rb +101 -0
  909. data/vendor/bundle/gems/i18n-0.6.1/test/i18n/exceptions_test.rb +116 -0
  910. data/vendor/bundle/gems/i18n-0.6.1/test/i18n/interpolate_test.rb +61 -0
  911. data/vendor/bundle/gems/i18n-0.6.1/test/i18n/load_path_test.rb +26 -0
  912. data/vendor/bundle/gems/i18n-0.6.1/test/i18n_test.rb +254 -0
  913. data/vendor/bundle/gems/i18n-0.6.1/test/locale/fallbacks_test.rb +136 -0
  914. data/vendor/bundle/gems/i18n-0.6.1/test/locale/tag/rfc4646_test.rb +142 -0
  915. data/vendor/bundle/gems/i18n-0.6.1/test/locale/tag/simple_test.rb +32 -0
  916. data/vendor/bundle/gems/i18n-0.6.1/test/run_all.rb +21 -0
  917. data/vendor/bundle/gems/i18n-0.6.1/test/test_data/locales/de.po +82 -0
  918. data/vendor/bundle/gems/i18n-0.6.1/test/test_data/locales/en.rb +3 -0
  919. data/vendor/bundle/gems/i18n-0.6.1/test/test_data/locales/en.yml +3 -0
  920. data/vendor/bundle/gems/i18n-0.6.1/test/test_data/locales/invalid/empty.yml +0 -0
  921. data/vendor/bundle/gems/i18n-0.6.1/test/test_data/locales/plurals.rb +113 -0
  922. data/vendor/bundle/gems/i18n-0.6.1/test/test_helper.rb +56 -0
  923. data/vendor/bundle/gems/journey-1.0.4/CHANGELOG.rdoc +20 -0
  924. data/vendor/bundle/gems/journey-1.0.4/Gemfile +14 -0
  925. data/vendor/bundle/gems/journey-1.0.4/Manifest.txt +49 -0
  926. data/vendor/bundle/gems/journey-1.0.4/README.rdoc +48 -0
  927. data/vendor/bundle/gems/journey-1.0.4/Rakefile +32 -0
  928. data/vendor/bundle/gems/journey-1.0.4/journey.gemspec +48 -0
  929. data/vendor/bundle/gems/journey-1.0.4/lib/journey.rb +5 -0
  930. data/vendor/bundle/gems/journey-1.0.4/lib/journey/backwards.rb +5 -0
  931. data/vendor/bundle/gems/journey-1.0.4/lib/journey/core-ext/hash.rb +11 -0
  932. data/vendor/bundle/gems/journey-1.0.4/lib/journey/formatter.rb +131 -0
  933. data/vendor/bundle/gems/journey-1.0.4/lib/journey/gtg/builder.rb +159 -0
  934. data/vendor/bundle/gems/journey-1.0.4/lib/journey/gtg/simulator.rb +43 -0
  935. data/vendor/bundle/gems/journey-1.0.4/lib/journey/gtg/transition_table.rb +153 -0
  936. data/vendor/bundle/gems/journey-1.0.4/lib/journey/nfa/builder.rb +74 -0
  937. data/vendor/bundle/gems/journey-1.0.4/lib/journey/nfa/dot.rb +34 -0
  938. data/vendor/bundle/gems/journey-1.0.4/lib/journey/nfa/simulator.rb +45 -0
  939. data/vendor/bundle/gems/journey-1.0.4/lib/journey/nfa/transition_table.rb +164 -0
  940. data/vendor/bundle/gems/journey-1.0.4/lib/journey/nodes/node.rb +122 -0
  941. data/vendor/bundle/gems/journey-1.0.4/lib/journey/parser.rb +204 -0
  942. data/vendor/bundle/gems/journey-1.0.4/lib/journey/parser.y +47 -0
  943. data/vendor/bundle/gems/journey-1.0.4/lib/journey/parser_extras.rb +21 -0
  944. data/vendor/bundle/gems/journey-1.0.4/lib/journey/path/pattern.rb +193 -0
  945. data/vendor/bundle/gems/journey-1.0.4/lib/journey/route.rb +95 -0
  946. data/vendor/bundle/gems/journey-1.0.4/lib/journey/router.rb +145 -0
  947. data/vendor/bundle/gems/journey-1.0.4/lib/journey/router/strexp.rb +22 -0
  948. data/vendor/bundle/gems/journey-1.0.4/lib/journey/router/utils.rb +57 -0
  949. data/vendor/bundle/gems/journey-1.0.4/lib/journey/routes.rb +75 -0
  950. data/vendor/bundle/gems/journey-1.0.4/lib/journey/scanner.rb +58 -0
  951. data/vendor/bundle/gems/journey-1.0.4/lib/journey/visitors.rb +190 -0
  952. data/vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/fsm.css +34 -0
  953. data/vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/fsm.js +134 -0
  954. data/vendor/bundle/gems/journey-1.0.4/lib/journey/visualizer/index.html.erb +52 -0
  955. data/vendor/bundle/gems/journey-1.0.4/test/gtg/test_builder.rb +77 -0
  956. data/vendor/bundle/gems/journey-1.0.4/test/gtg/test_transition_table.rb +113 -0
  957. data/vendor/bundle/gems/journey-1.0.4/test/helper.rb +4 -0
  958. data/vendor/bundle/gems/journey-1.0.4/test/nfa/test_simulator.rb +96 -0
  959. data/vendor/bundle/gems/journey-1.0.4/test/nfa/test_transition_table.rb +70 -0
  960. data/vendor/bundle/gems/journey-1.0.4/test/nodes/test_symbol.rb +15 -0
  961. data/vendor/bundle/gems/journey-1.0.4/test/path/test_pattern.rb +282 -0
  962. data/vendor/bundle/gems/journey-1.0.4/test/route/definition/test_parser.rb +108 -0
  963. data/vendor/bundle/gems/journey-1.0.4/test/route/definition/test_scanner.rb +54 -0
  964. data/vendor/bundle/gems/journey-1.0.4/test/router/test_strexp.rb +30 -0
  965. data/vendor/bundle/gems/journey-1.0.4/test/router/test_utils.rb +19 -0
  966. data/vendor/bundle/gems/journey-1.0.4/test/test_route.rb +109 -0
  967. data/vendor/bundle/gems/journey-1.0.4/test/test_router.rb +544 -0
  968. data/vendor/bundle/gems/journey-1.0.4/test/test_routes.rb +51 -0
  969. data/vendor/bundle/gems/json-1.7.6/CHANGES +258 -0
  970. data/vendor/bundle/gems/json-1.7.6/COPYING +58 -0
  971. data/vendor/bundle/gems/json-1.7.6/COPYING-json-jruby +57 -0
  972. data/vendor/bundle/gems/json-1.7.6/GPL +340 -0
  973. data/vendor/bundle/gems/json-1.7.6/Gemfile +9 -0
  974. data/vendor/bundle/gems/json-1.7.6/README-json-jruby.markdown +33 -0
  975. data/vendor/bundle/gems/json-1.7.6/README.rdoc +358 -0
  976. data/vendor/bundle/gems/json-1.7.6/Rakefile +412 -0
  977. data/vendor/bundle/gems/json-1.7.6/TODO +1 -0
  978. data/vendor/bundle/gems/json-1.7.6/VERSION +1 -0
  979. data/vendor/bundle/gems/json-1.7.6/data/example.json +1 -0
  980. data/vendor/bundle/gems/json-1.7.6/data/index.html +38 -0
  981. data/vendor/bundle/gems/json-1.7.6/data/prototype.js +4184 -0
  982. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/fbuffer/fbuffer.h +185 -0
  983. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/Makefile +214 -0
  984. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/depend +1 -0
  985. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/extconf.rb +14 -0
  986. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.bundle +0 -0
  987. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.c +1427 -0
  988. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.h +149 -0
  989. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.o +0 -0
  990. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/Makefile +214 -0
  991. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/depend +1 -0
  992. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/extconf.rb +13 -0
  993. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.bundle +0 -0
  994. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.c +2204 -0
  995. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.h +77 -0
  996. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.o +0 -0
  997. data/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.rl +927 -0
  998. data/vendor/bundle/gems/json-1.7.6/install.rb +23 -0
  999. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/ByteListTranscoder.java +167 -0
  1000. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/Generator.java +444 -0
  1001. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/GeneratorMethods.java +232 -0
  1002. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/GeneratorService.java +43 -0
  1003. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/GeneratorState.java +542 -0
  1004. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/OptionsReader.java +113 -0
  1005. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/Parser.java +2644 -0
  1006. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/Parser.rl +968 -0
  1007. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/ParserService.java +35 -0
  1008. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/RuntimeInfo.java +121 -0
  1009. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/StringDecoder.java +167 -0
  1010. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/StringEncoder.java +106 -0
  1011. data/vendor/bundle/gems/json-1.7.6/java/src/json/ext/Utils.java +89 -0
  1012. data/vendor/bundle/gems/json-1.7.6/json-java.gemspec +22 -0
  1013. data/vendor/bundle/gems/json-1.7.6/json.gemspec +37 -0
  1014. data/vendor/bundle/gems/json-1.7.6/json_pure.gemspec +39 -0
  1015. data/vendor/bundle/gems/json-1.7.6/lib/json.rb +62 -0
  1016. data/vendor/bundle/gems/json-1.7.6/lib/json/add/bigdecimal.rb +28 -0
  1017. data/vendor/bundle/gems/json-1.7.6/lib/json/add/complex.rb +22 -0
  1018. data/vendor/bundle/gems/json-1.7.6/lib/json/add/core.rb +11 -0
  1019. data/vendor/bundle/gems/json-1.7.6/lib/json/add/date.rb +34 -0
  1020. data/vendor/bundle/gems/json-1.7.6/lib/json/add/date_time.rb +50 -0
  1021. data/vendor/bundle/gems/json-1.7.6/lib/json/add/exception.rb +31 -0
  1022. data/vendor/bundle/gems/json-1.7.6/lib/json/add/ostruct.rb +31 -0
  1023. data/vendor/bundle/gems/json-1.7.6/lib/json/add/range.rb +29 -0
  1024. data/vendor/bundle/gems/json-1.7.6/lib/json/add/rational.rb +22 -0
  1025. data/vendor/bundle/gems/json-1.7.6/lib/json/add/regexp.rb +30 -0
  1026. data/vendor/bundle/gems/json-1.7.6/lib/json/add/struct.rb +30 -0
  1027. data/vendor/bundle/gems/json-1.7.6/lib/json/add/symbol.rb +25 -0
  1028. data/vendor/bundle/gems/json-1.7.6/lib/json/add/time.rb +38 -0
  1029. data/vendor/bundle/gems/json-1.7.6/lib/json/common.rb +480 -0
  1030. data/vendor/bundle/gems/json-1.7.6/lib/json/ext.rb +21 -0
  1031. data/vendor/bundle/gems/json-1.7.6/lib/json/ext/generator.bundle +0 -0
  1032. data/vendor/bundle/gems/json-1.7.6/lib/json/ext/parser.bundle +0 -0
  1033. data/vendor/bundle/gems/json-1.7.6/lib/json/generic_object.rb +54 -0
  1034. data/vendor/bundle/gems/json-1.7.6/lib/json/pure.rb +21 -0
  1035. data/vendor/bundle/gems/json-1.7.6/lib/json/pure/generator.rb +492 -0
  1036. data/vendor/bundle/gems/json-1.7.6/lib/json/pure/parser.rb +359 -0
  1037. data/vendor/bundle/gems/json-1.7.6/lib/json/version.rb +8 -0
  1038. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail1.json +1 -0
  1039. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail10.json +1 -0
  1040. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail11.json +1 -0
  1041. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail12.json +1 -0
  1042. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail13.json +1 -0
  1043. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail14.json +1 -0
  1044. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail18.json +1 -0
  1045. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail19.json +1 -0
  1046. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail2.json +1 -0
  1047. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail20.json +1 -0
  1048. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail21.json +1 -0
  1049. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail22.json +1 -0
  1050. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail23.json +1 -0
  1051. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail24.json +1 -0
  1052. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail25.json +1 -0
  1053. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail27.json +2 -0
  1054. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail28.json +2 -0
  1055. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail3.json +1 -0
  1056. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail4.json +1 -0
  1057. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail5.json +1 -0
  1058. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail6.json +1 -0
  1059. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail7.json +1 -0
  1060. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail8.json +1 -0
  1061. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/fail9.json +1 -0
  1062. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass1.json +56 -0
  1063. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass15.json +1 -0
  1064. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass16.json +1 -0
  1065. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass17.json +1 -0
  1066. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass2.json +1 -0
  1067. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass26.json +1 -0
  1068. data/vendor/bundle/gems/json-1.7.6/tests/fixtures/pass3.json +6 -0
  1069. data/vendor/bundle/gems/json-1.7.6/tests/setup_variant.rb +11 -0
  1070. data/vendor/bundle/gems/json-1.7.6/tests/test_json.rb +539 -0
  1071. data/vendor/bundle/gems/json-1.7.6/tests/test_json_addition.rb +188 -0
  1072. data/vendor/bundle/gems/json-1.7.6/tests/test_json_encoding.rb +65 -0
  1073. data/vendor/bundle/gems/json-1.7.6/tests/test_json_fixtures.rb +35 -0
  1074. data/vendor/bundle/gems/json-1.7.6/tests/test_json_generate.rb +299 -0
  1075. data/vendor/bundle/gems/json-1.7.6/tests/test_json_generic_object.rb +46 -0
  1076. data/vendor/bundle/gems/json-1.7.6/tests/test_json_string_matching.rb +40 -0
  1077. data/vendor/bundle/gems/json-1.7.6/tests/test_json_unicode.rb +72 -0
  1078. data/vendor/bundle/gems/json-1.7.6/tools/fuzz.rb +139 -0
  1079. data/vendor/bundle/gems/json-1.7.6/tools/server.rb +62 -0
  1080. data/vendor/bundle/gems/multi_json-1.5.0/Gemfile +7 -0
  1081. data/vendor/bundle/gems/multi_json-1.5.0/LICENSE.md +20 -0
  1082. data/vendor/bundle/gems/multi_json-1.5.0/README.md +88 -0
  1083. data/vendor/bundle/gems/multi_json-1.5.0/Rakefile +20 -0
  1084. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json.rb +130 -0
  1085. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/json_common.rb +25 -0
  1086. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/json_gem.rb +12 -0
  1087. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/json_pure.rb +12 -0
  1088. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
  1089. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/oj.rb +26 -0
  1090. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/ok_json.rb +48 -0
  1091. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/adapters/yajl.rb +18 -0
  1092. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/vendor/okjson.rb +602 -0
  1093. data/vendor/bundle/gems/multi_json-1.5.0/lib/multi_json/version.rb +3 -0
  1094. data/vendor/bundle/gems/multi_json-1.5.0/multi_json.gemspec +23 -0
  1095. data/vendor/bundle/gems/multi_json-1.5.0/spec/adapter_shared_example.rb +127 -0
  1096. data/vendor/bundle/gems/multi_json-1.5.0/spec/helper.rb +39 -0
  1097. data/vendor/bundle/gems/multi_json-1.5.0/spec/multi_json_spec.rb +100 -0
  1098. data/vendor/bundle/gems/rack-1.4.4/COPYING +18 -0
  1099. data/vendor/bundle/gems/rack-1.4.4/KNOWN-ISSUES +30 -0
  1100. data/vendor/bundle/gems/rack-1.4.4/README.rdoc +579 -0
  1101. data/vendor/bundle/gems/rack-1.4.4/Rakefile +122 -0
  1102. data/vendor/bundle/gems/rack-1.4.4/SPEC +173 -0
  1103. data/vendor/bundle/gems/rack-1.4.4/bin/rackup +4 -0
  1104. data/vendor/bundle/gems/rack-1.4.4/contrib/rack.png +0 -0
  1105. data/vendor/bundle/gems/rack-1.4.4/contrib/rack.svg +150 -0
  1106. data/vendor/bundle/gems/rack-1.4.4/contrib/rack_logo.svg +111 -0
  1107. data/vendor/bundle/gems/rack-1.4.4/contrib/rdoc.css +412 -0
  1108. data/vendor/bundle/gems/rack-1.4.4/example/lobster.ru +4 -0
  1109. data/vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb +14 -0
  1110. data/vendor/bundle/gems/rack-1.4.4/example/protectedlobster.ru +8 -0
  1111. data/vendor/bundle/gems/rack-1.4.4/lib/rack.rb +95 -0
  1112. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/abstract/handler.rb +37 -0
  1113. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/abstract/request.rb +47 -0
  1114. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/basic.rb +58 -0
  1115. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/digest/md5.rb +129 -0
  1116. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/digest/nonce.rb +51 -0
  1117. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/digest/params.rb +53 -0
  1118. data/vendor/bundle/gems/rack-1.4.4/lib/rack/auth/digest/request.rb +41 -0
  1119. data/vendor/bundle/gems/rack-1.4.4/lib/rack/backports/uri/common_18.rb +56 -0
  1120. data/vendor/bundle/gems/rack-1.4.4/lib/rack/backports/uri/common_192.rb +52 -0
  1121. data/vendor/bundle/gems/rack-1.4.4/lib/rack/backports/uri/common_193.rb +29 -0
  1122. data/vendor/bundle/gems/rack-1.4.4/lib/rack/body_proxy.rb +39 -0
  1123. data/vendor/bundle/gems/rack-1.4.4/lib/rack/builder.rb +145 -0
  1124. data/vendor/bundle/gems/rack-1.4.4/lib/rack/cascade.rb +52 -0
  1125. data/vendor/bundle/gems/rack-1.4.4/lib/rack/chunked.rb +58 -0
  1126. data/vendor/bundle/gems/rack-1.4.4/lib/rack/commonlogger.rb +64 -0
  1127. data/vendor/bundle/gems/rack-1.4.4/lib/rack/conditionalget.rb +67 -0
  1128. data/vendor/bundle/gems/rack-1.4.4/lib/rack/config.rb +15 -0
  1129. data/vendor/bundle/gems/rack-1.4.4/lib/rack/content_length.rb +33 -0
  1130. data/vendor/bundle/gems/rack-1.4.4/lib/rack/content_type.rb +29 -0
  1131. data/vendor/bundle/gems/rack-1.4.4/lib/rack/deflater.rb +103 -0
  1132. data/vendor/bundle/gems/rack-1.4.4/lib/rack/directory.rb +161 -0
  1133. data/vendor/bundle/gems/rack-1.4.4/lib/rack/etag.rb +64 -0
  1134. data/vendor/bundle/gems/rack-1.4.4/lib/rack/file.rb +151 -0
  1135. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler.rb +94 -0
  1136. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/cgi.rb +61 -0
  1137. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/evented_mongrel.rb +8 -0
  1138. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/fastcgi.rb +98 -0
  1139. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/lsws.rb +61 -0
  1140. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/mongrel.rb +100 -0
  1141. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/scgi.rb +67 -0
  1142. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/swiftiplied_mongrel.rb +8 -0
  1143. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/thin.rb +24 -0
  1144. data/vendor/bundle/gems/rack-1.4.4/lib/rack/handler/webrick.rb +80 -0
  1145. data/vendor/bundle/gems/rack-1.4.4/lib/rack/head.rb +20 -0
  1146. data/vendor/bundle/gems/rack-1.4.4/lib/rack/lint.rb +569 -0
  1147. data/vendor/bundle/gems/rack-1.4.4/lib/rack/lobster.rb +65 -0
  1148. data/vendor/bundle/gems/rack-1.4.4/lib/rack/lock.rb +24 -0
  1149. data/vendor/bundle/gems/rack-1.4.4/lib/rack/logger.rb +18 -0
  1150. data/vendor/bundle/gems/rack-1.4.4/lib/rack/methodoverride.rb +33 -0
  1151. data/vendor/bundle/gems/rack-1.4.4/lib/rack/mime.rb +648 -0
  1152. data/vendor/bundle/gems/rack-1.4.4/lib/rack/mock.rb +190 -0
  1153. data/vendor/bundle/gems/rack-1.4.4/lib/rack/multipart.rb +34 -0
  1154. data/vendor/bundle/gems/rack-1.4.4/lib/rack/multipart/generator.rb +93 -0
  1155. data/vendor/bundle/gems/rack-1.4.4/lib/rack/multipart/parser.rb +176 -0
  1156. data/vendor/bundle/gems/rack-1.4.4/lib/rack/multipart/uploaded_file.rb +34 -0
  1157. data/vendor/bundle/gems/rack-1.4.4/lib/rack/nulllogger.rb +18 -0
  1158. data/vendor/bundle/gems/rack-1.4.4/lib/rack/recursive.rb +61 -0
  1159. data/vendor/bundle/gems/rack-1.4.4/lib/rack/reloader.rb +109 -0
  1160. data/vendor/bundle/gems/rack-1.4.4/lib/rack/request.rb +339 -0
  1161. data/vendor/bundle/gems/rack-1.4.4/lib/rack/response.rb +156 -0
  1162. data/vendor/bundle/gems/rack-1.4.4/lib/rack/rewindable_input.rb +104 -0
  1163. data/vendor/bundle/gems/rack-1.4.4/lib/rack/runtime.rb +27 -0
  1164. data/vendor/bundle/gems/rack-1.4.4/lib/rack/sendfile.rb +141 -0
  1165. data/vendor/bundle/gems/rack-1.4.4/lib/rack/server.rb +349 -0
  1166. data/vendor/bundle/gems/rack-1.4.4/lib/rack/session/abstract/id.rb +377 -0
  1167. data/vendor/bundle/gems/rack-1.4.4/lib/rack/session/cookie.rb +170 -0
  1168. data/vendor/bundle/gems/rack-1.4.4/lib/rack/session/memcache.rb +93 -0
  1169. data/vendor/bundle/gems/rack-1.4.4/lib/rack/session/pool.rb +79 -0
  1170. data/vendor/bundle/gems/rack-1.4.4/lib/rack/showexceptions.rb +378 -0
  1171. data/vendor/bundle/gems/rack-1.4.4/lib/rack/showstatus.rb +113 -0
  1172. data/vendor/bundle/gems/rack-1.4.4/lib/rack/static.rb +153 -0
  1173. data/vendor/bundle/gems/rack-1.4.4/lib/rack/urlmap.rb +75 -0
  1174. data/vendor/bundle/gems/rack-1.4.4/lib/rack/utils.rb +553 -0
  1175. data/vendor/bundle/gems/rack-1.4.4/rack.gemspec +37 -0
  1176. data/vendor/bundle/gems/rack-1.4.4/test/builder/anything.rb +5 -0
  1177. data/vendor/bundle/gems/rack-1.4.4/test/builder/comment.ru +4 -0
  1178. data/vendor/bundle/gems/rack-1.4.4/test/builder/end.ru +5 -0
  1179. data/vendor/bundle/gems/rack-1.4.4/test/builder/line.ru +1 -0
  1180. data/vendor/bundle/gems/rack-1.4.4/test/builder/options.ru +2 -0
  1181. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/folder/test.js +1 -0
  1182. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/fonts/font.eot +1 -0
  1183. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/images/image.png +1 -0
  1184. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/index.html +1 -0
  1185. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/javascripts/app.js +1 -0
  1186. data/vendor/bundle/gems/rack-1.4.4/test/cgi/assets/stylesheets/app.css +1 -0
  1187. data/vendor/bundle/gems/rack-1.4.4/test/cgi/lighttpd.conf +26 -0
  1188. data/vendor/bundle/gems/rack-1.4.4/test/cgi/rackup_stub.rb +6 -0
  1189. data/vendor/bundle/gems/rack-1.4.4/test/cgi/sample_rackup.ru +5 -0
  1190. data/vendor/bundle/gems/rack-1.4.4/test/cgi/test +9 -0
  1191. data/vendor/bundle/gems/rack-1.4.4/test/cgi/test+directory/test+file +1 -0
  1192. data/vendor/bundle/gems/rack-1.4.4/test/cgi/test.fcgi +8 -0
  1193. data/vendor/bundle/gems/rack-1.4.4/test/cgi/test.ru +5 -0
  1194. data/vendor/bundle/gems/rack-1.4.4/test/gemloader.rb +10 -0
  1195. data/vendor/bundle/gems/rack-1.4.4/test/multipart/bad_robots +259 -0
  1196. data/vendor/bundle/gems/rack-1.4.4/test/multipart/binary +0 -0
  1197. data/vendor/bundle/gems/rack-1.4.4/test/multipart/content_type_and_no_filename +6 -0
  1198. data/vendor/bundle/gems/rack-1.4.4/test/multipart/empty +10 -0
  1199. data/vendor/bundle/gems/rack-1.4.4/test/multipart/fail_16384_nofile +814 -0
  1200. data/vendor/bundle/gems/rack-1.4.4/test/multipart/file1.txt +1 -0
  1201. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_and_modification_param +7 -0
  1202. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_escaped_quotes +6 -0
  1203. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_escaped_quotes_and_modification_param +7 -0
  1204. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_percent_escaped_quotes +6 -0
  1205. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_unescaped_percentages +6 -0
  1206. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_unescaped_percentages2 +6 -0
  1207. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_unescaped_percentages3 +6 -0
  1208. data/vendor/bundle/gems/rack-1.4.4/test/multipart/filename_with_unescaped_quotes +6 -0
  1209. data/vendor/bundle/gems/rack-1.4.4/test/multipart/ie +6 -0
  1210. data/vendor/bundle/gems/rack-1.4.4/test/multipart/mixed_files +21 -0
  1211. data/vendor/bundle/gems/rack-1.4.4/test/multipart/nested +10 -0
  1212. data/vendor/bundle/gems/rack-1.4.4/test/multipart/none +9 -0
  1213. data/vendor/bundle/gems/rack-1.4.4/test/multipart/semicolon +6 -0
  1214. data/vendor/bundle/gems/rack-1.4.4/test/multipart/text +15 -0
  1215. data/vendor/bundle/gems/rack-1.4.4/test/multipart/webkit +32 -0
  1216. data/vendor/bundle/gems/rack-1.4.4/test/rackup/config.ru +31 -0
  1217. data/vendor/bundle/gems/rack-1.4.4/test/registering_handler/rack/handler/registering_myself.rb +8 -0
  1218. data/vendor/bundle/gems/rack-1.4.4/test/spec_auth.rb +57 -0
  1219. data/vendor/bundle/gems/rack-1.4.4/test/spec_auth_basic.rb +81 -0
  1220. data/vendor/bundle/gems/rack-1.4.4/test/spec_auth_digest.rb +259 -0
  1221. data/vendor/bundle/gems/rack-1.4.4/test/spec_body_proxy.rb +69 -0
  1222. data/vendor/bundle/gems/rack-1.4.4/test/spec_builder.rb +207 -0
  1223. data/vendor/bundle/gems/rack-1.4.4/test/spec_cascade.rb +61 -0
  1224. data/vendor/bundle/gems/rack-1.4.4/test/spec_cgi.rb +102 -0
  1225. data/vendor/bundle/gems/rack-1.4.4/test/spec_chunked.rb +87 -0
  1226. data/vendor/bundle/gems/rack-1.4.4/test/spec_commonlogger.rb +57 -0
  1227. data/vendor/bundle/gems/rack-1.4.4/test/spec_conditionalget.rb +102 -0
  1228. data/vendor/bundle/gems/rack-1.4.4/test/spec_config.rb +22 -0
  1229. data/vendor/bundle/gems/rack-1.4.4/test/spec_content_length.rb +86 -0
  1230. data/vendor/bundle/gems/rack-1.4.4/test/spec_content_type.rb +45 -0
  1231. data/vendor/bundle/gems/rack-1.4.4/test/spec_deflater.rb +187 -0
  1232. data/vendor/bundle/gems/rack-1.4.4/test/spec_directory.rb +88 -0
  1233. data/vendor/bundle/gems/rack-1.4.4/test/spec_etag.rb +98 -0
  1234. data/vendor/bundle/gems/rack-1.4.4/test/spec_fastcgi.rb +107 -0
  1235. data/vendor/bundle/gems/rack-1.4.4/test/spec_file.rb +200 -0
  1236. data/vendor/bundle/gems/rack-1.4.4/test/spec_handler.rb +59 -0
  1237. data/vendor/bundle/gems/rack-1.4.4/test/spec_head.rb +48 -0
  1238. data/vendor/bundle/gems/rack-1.4.4/test/spec_lint.rb +515 -0
  1239. data/vendor/bundle/gems/rack-1.4.4/test/spec_lobster.rb +58 -0
  1240. data/vendor/bundle/gems/rack-1.4.4/test/spec_lock.rb +167 -0
  1241. data/vendor/bundle/gems/rack-1.4.4/test/spec_logger.rb +23 -0
  1242. data/vendor/bundle/gems/rack-1.4.4/test/spec_methodoverride.rb +72 -0
  1243. data/vendor/bundle/gems/rack-1.4.4/test/spec_mock.rb +269 -0
  1244. data/vendor/bundle/gems/rack-1.4.4/test/spec_mongrel.rb +182 -0
  1245. data/vendor/bundle/gems/rack-1.4.4/test/spec_multipart.rb +445 -0
  1246. data/vendor/bundle/gems/rack-1.4.4/test/spec_nulllogger.rb +23 -0
  1247. data/vendor/bundle/gems/rack-1.4.4/test/spec_recursive.rb +72 -0
  1248. data/vendor/bundle/gems/rack-1.4.4/test/spec_request.rb +938 -0
  1249. data/vendor/bundle/gems/rack-1.4.4/test/spec_response.rb +313 -0
  1250. data/vendor/bundle/gems/rack-1.4.4/test/spec_rewindable_input.rb +118 -0
  1251. data/vendor/bundle/gems/rack-1.4.4/test/spec_runtime.rb +49 -0
  1252. data/vendor/bundle/gems/rack-1.4.4/test/spec_sendfile.rb +89 -0
  1253. data/vendor/bundle/gems/rack-1.4.4/test/spec_server.rb +121 -0
  1254. data/vendor/bundle/gems/rack-1.4.4/test/spec_session_abstract_id.rb +43 -0
  1255. data/vendor/bundle/gems/rack-1.4.4/test/spec_session_cookie.rb +361 -0
  1256. data/vendor/bundle/gems/rack-1.4.4/test/spec_session_memcache.rb +321 -0
  1257. data/vendor/bundle/gems/rack-1.4.4/test/spec_session_pool.rb +209 -0
  1258. data/vendor/bundle/gems/rack-1.4.4/test/spec_showexceptions.rb +92 -0
  1259. data/vendor/bundle/gems/rack-1.4.4/test/spec_showstatus.rb +84 -0
  1260. data/vendor/bundle/gems/rack-1.4.4/test/spec_static.rb +145 -0
  1261. data/vendor/bundle/gems/rack-1.4.4/test/spec_thin.rb +86 -0
  1262. data/vendor/bundle/gems/rack-1.4.4/test/spec_urlmap.rb +213 -0
  1263. data/vendor/bundle/gems/rack-1.4.4/test/spec_utils.rb +537 -0
  1264. data/vendor/bundle/gems/rack-1.4.4/test/spec_webrick.rb +143 -0
  1265. data/vendor/bundle/gems/rack-1.4.4/test/static/another/index.html +1 -0
  1266. data/vendor/bundle/gems/rack-1.4.4/test/static/index.html +1 -0
  1267. data/vendor/bundle/gems/rack-1.4.4/test/testrequest.rb +78 -0
  1268. data/vendor/bundle/gems/rack-1.4.4/test/unregistered_handler/rack/handler/unregistered.rb +7 -0
  1269. data/vendor/bundle/gems/rack-1.4.4/test/unregistered_handler/rack/handler/unregistered_long_one.rb +7 -0
  1270. data/vendor/bundle/gems/rack-cache-1.2/CHANGES +241 -0
  1271. data/vendor/bundle/gems/rack-cache-1.2/COPYING +18 -0
  1272. data/vendor/bundle/gems/rack-cache-1.2/Gemfile +2 -0
  1273. data/vendor/bundle/gems/rack-cache-1.2/README +126 -0
  1274. data/vendor/bundle/gems/rack-cache-1.2/Rakefile +139 -0
  1275. data/vendor/bundle/gems/rack-cache-1.2/TODO +27 -0
  1276. data/vendor/bundle/gems/rack-cache-1.2/doc/configuration.markdown +127 -0
  1277. data/vendor/bundle/gems/rack-cache-1.2/doc/faq.markdown +148 -0
  1278. data/vendor/bundle/gems/rack-cache-1.2/doc/index.markdown +121 -0
  1279. data/vendor/bundle/gems/rack-cache-1.2/doc/layout.html.erb +34 -0
  1280. data/vendor/bundle/gems/rack-cache-1.2/doc/license.markdown +24 -0
  1281. data/vendor/bundle/gems/rack-cache-1.2/doc/rack-cache.css +362 -0
  1282. data/vendor/bundle/gems/rack-cache-1.2/doc/server.ru +34 -0
  1283. data/vendor/bundle/gems/rack-cache-1.2/doc/storage.markdown +164 -0
  1284. data/vendor/bundle/gems/rack-cache-1.2/example/sinatra/app.rb +21 -0
  1285. data/vendor/bundle/gems/rack-cache-1.2/example/sinatra/views/index.erb +44 -0
  1286. data/vendor/bundle/gems/rack-cache-1.2/lib/rack-cache.rb +1 -0
  1287. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache.rb +45 -0
  1288. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/appengine.rb +52 -0
  1289. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/cachecontrol.rb +194 -0
  1290. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/context.rb +286 -0
  1291. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/entitystore.rb +341 -0
  1292. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/key.rb +52 -0
  1293. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/metastore.rb +418 -0
  1294. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/options.rb +166 -0
  1295. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/request.rb +33 -0
  1296. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/response.rb +255 -0
  1297. data/vendor/bundle/gems/rack-cache-1.2/lib/rack/cache/storage.rb +62 -0
  1298. data/vendor/bundle/gems/rack-cache-1.2/rack-cache.gemspec +75 -0
  1299. data/vendor/bundle/gems/rack-cache-1.2/test/cache_test.rb +38 -0
  1300. data/vendor/bundle/gems/rack-cache-1.2/test/cachecontrol_test.rb +145 -0
  1301. data/vendor/bundle/gems/rack-cache-1.2/test/context_test.rb +916 -0
  1302. data/vendor/bundle/gems/rack-cache-1.2/test/entitystore_test.rb +268 -0
  1303. data/vendor/bundle/gems/rack-cache-1.2/test/key_test.rb +50 -0
  1304. data/vendor/bundle/gems/rack-cache-1.2/test/metastore_test.rb +338 -0
  1305. data/vendor/bundle/gems/rack-cache-1.2/test/options_test.rb +77 -0
  1306. data/vendor/bundle/gems/rack-cache-1.2/test/pony.jpg +0 -0
  1307. data/vendor/bundle/gems/rack-cache-1.2/test/request_test.rb +19 -0
  1308. data/vendor/bundle/gems/rack-cache-1.2/test/response_test.rb +184 -0
  1309. data/vendor/bundle/gems/rack-cache-1.2/test/spec_setup.rb +232 -0
  1310. data/vendor/bundle/gems/rack-cache-1.2/test/storage_test.rb +94 -0
  1311. data/vendor/bundle/gems/rack-ssl-1.3.2/LICENSE +22 -0
  1312. data/vendor/bundle/gems/rack-ssl-1.3.2/README.md +13 -0
  1313. data/vendor/bundle/gems/rack-ssl-1.3.2/lib/rack/ssl.rb +88 -0
  1314. data/vendor/bundle/gems/rack-test-0.6.2/Gemfile +6 -0
  1315. data/vendor/bundle/gems/rack-test-0.6.2/Gemfile.lock +31 -0
  1316. data/vendor/bundle/gems/rack-test-0.6.2/History.txt +166 -0
  1317. data/vendor/bundle/gems/rack-test-0.6.2/MIT-LICENSE.txt +19 -0
  1318. data/vendor/bundle/gems/rack-test-0.6.2/README.rdoc +85 -0
  1319. data/vendor/bundle/gems/rack-test-0.6.2/Rakefile +33 -0
  1320. data/vendor/bundle/gems/rack-test-0.6.2/Thorfile +114 -0
  1321. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/mock_session.rb +66 -0
  1322. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test.rb +304 -0
  1323. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/cookie_jar.rb +182 -0
  1324. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/methods.rb +82 -0
  1325. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb +29 -0
  1326. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/uploaded_file.rb +50 -0
  1327. data/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/utils.rb +136 -0
  1328. data/vendor/bundle/gems/rack-test-0.6.2/rack-test.gemspec +77 -0
  1329. data/vendor/bundle/gems/rack-test-0.6.2/spec/fixtures/bar.txt +1 -0
  1330. data/vendor/bundle/gems/rack-test-0.6.2/spec/fixtures/config.ru +3 -0
  1331. data/vendor/bundle/gems/rack-test-0.6.2/spec/fixtures/fake_app.rb +143 -0
  1332. data/vendor/bundle/gems/rack-test-0.6.2/spec/fixtures/foo.txt +1 -0
  1333. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test/cookie_spec.rb +219 -0
  1334. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test/digest_auth_spec.rb +46 -0
  1335. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test/multipart_spec.rb +145 -0
  1336. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test/uploaded_file_spec.rb +22 -0
  1337. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test/utils_spec.rb +122 -0
  1338. data/vendor/bundle/gems/rack-test-0.6.2/spec/rack/test_spec.rb +510 -0
  1339. data/vendor/bundle/gems/rack-test-0.6.2/spec/spec_helper.rb +66 -0
  1340. data/vendor/bundle/gems/rack-test-0.6.2/spec/support/matchers/body.rb +9 -0
  1341. data/vendor/bundle/gems/rack-test-0.6.2/spec/support/matchers/challenge.rb +11 -0
  1342. data/vendor/bundle/gems/railties-3.2.11/CHANGELOG.md +87 -0
  1343. data/vendor/bundle/gems/railties-3.2.11/README.rdoc +35 -0
  1344. data/vendor/bundle/gems/railties-3.2.11/bin/rails +7 -0
  1345. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/belongs_to.png +0 -0
  1346. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/book_icon.gif +0 -0
  1347. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/bullet.gif +0 -0
  1348. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/challenge.png +0 -0
  1349. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/chapters_icon.gif +0 -0
  1350. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/check_bullet.gif +0 -0
  1351. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/credits_pic_blank.gif +0 -0
  1352. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/csrf.png +0 -0
  1353. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/customized_error_messages.png +0 -0
  1354. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/edge_badge.png +0 -0
  1355. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/error_messages.png +0 -0
  1356. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/feature_tile.gif +0 -0
  1357. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/footer_tile.gif +0 -0
  1358. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/fxn.png +0 -0
  1359. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/grey_bullet.gif +0 -0
  1360. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/habtm.png +0 -0
  1361. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/has_many.png +0 -0
  1362. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/has_many_through.png +0 -0
  1363. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/has_one.png +0 -0
  1364. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/has_one_through.png +0 -0
  1365. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/header_backdrop.png +0 -0
  1366. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/header_tile.gif +0 -0
  1367. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_html_safe.png +0 -0
  1368. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
  1369. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_translated_en.png +0 -0
  1370. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
  1371. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_translation_missing.png +0 -0
  1372. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/i18n/demo_untranslated.png +0 -0
  1373. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/README +5 -0
  1374. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/1.png +0 -0
  1375. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/10.png +0 -0
  1376. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/11.png +0 -0
  1377. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/12.png +0 -0
  1378. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/13.png +0 -0
  1379. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/14.png +0 -0
  1380. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/15.png +0 -0
  1381. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/2.png +0 -0
  1382. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/3.png +0 -0
  1383. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/4.png +0 -0
  1384. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/5.png +0 -0
  1385. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/6.png +0 -0
  1386. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/7.png +0 -0
  1387. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/8.png +0 -0
  1388. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/callouts/9.png +0 -0
  1389. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/caution.png +0 -0
  1390. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/example.png +0 -0
  1391. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/home.png +0 -0
  1392. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/important.png +0 -0
  1393. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/next.png +0 -0
  1394. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/note.png +0 -0
  1395. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/prev.png +0 -0
  1396. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/tip.png +0 -0
  1397. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/up.png +0 -0
  1398. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/icons/warning.png +0 -0
  1399. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/jaimeiniesta.jpg +0 -0
  1400. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/nav_arrow.gif +0 -0
  1401. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/polymorphic.png +0 -0
  1402. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/posts_index.png +0 -0
  1403. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/radar.png +0 -0
  1404. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  1405. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/rails_guides_logo.gif +0 -0
  1406. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/rails_logo_remix.gif +0 -0
  1407. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/rails_welcome.png +0 -0
  1408. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/session_fixation.png +0 -0
  1409. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_grey.gif +0 -0
  1410. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_info.gif +0 -0
  1411. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_note.gif +0 -0
  1412. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_red.gif +0 -0
  1413. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_yellow.gif +0 -0
  1414. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/tab_yellow.png +0 -0
  1415. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/validation_error_messages.png +0 -0
  1416. data/vendor/bundle/gems/railties-3.2.11/guides/assets/images/vijaydev.jpg +0 -0
  1417. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/guides.js +7 -0
  1418. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  1419. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  1420. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  1421. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  1422. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  1423. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  1424. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  1425. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  1426. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  1427. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  1428. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  1429. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  1430. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  1431. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  1432. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  1433. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  1434. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  1435. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  1436. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  1437. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  1438. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  1439. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  1440. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  1441. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  1442. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  1443. data/vendor/bundle/gems/railties-3.2.11/guides/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  1444. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/fixes.css +16 -0
  1445. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/kindle.css +11 -0
  1446. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/main.css +453 -0
  1447. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/print.css +52 -0
  1448. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/reset.css +43 -0
  1449. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/style.css +13 -0
  1450. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  1451. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  1452. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  1453. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  1454. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  1455. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  1456. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  1457. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  1458. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  1459. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  1460. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  1461. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  1462. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  1463. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  1464. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  1465. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  1466. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  1467. data/vendor/bundle/gems/railties-3.2.11/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  1468. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/Gemfile +38 -0
  1469. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/README.rdoc +261 -0
  1470. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/Rakefile +7 -0
  1471. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/images/rails.png +0 -0
  1472. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/javascripts/application.js +15 -0
  1473. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +3 -0
  1474. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/javascripts/home.js.coffee +3 -0
  1475. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +3 -0
  1476. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/stylesheets/application.css +13 -0
  1477. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +3 -0
  1478. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/stylesheets/home.css.scss +3 -0
  1479. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +3 -0
  1480. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +56 -0
  1481. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/controllers/application_controller.rb +3 -0
  1482. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/controllers/comments_controller.rb +16 -0
  1483. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/controllers/home_controller.rb +5 -0
  1484. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/controllers/posts_controller.rb +84 -0
  1485. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/helpers/application_helper.rb +2 -0
  1486. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/helpers/comments_helper.rb +2 -0
  1487. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/helpers/home_helper.rb +2 -0
  1488. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/helpers/posts_helper.rb +5 -0
  1489. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/models/comment.rb +3 -0
  1490. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/models/post.rb +11 -0
  1491. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/models/tag.rb +3 -0
  1492. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/comments/_comment.html.erb +15 -0
  1493. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/comments/_form.html.erb +13 -0
  1494. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/home/index.html.erb +2 -0
  1495. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/layouts/application.html.erb +14 -0
  1496. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/posts/_form.html.erb +32 -0
  1497. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/posts/edit.html.erb +6 -0
  1498. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/posts/index.html.erb +27 -0
  1499. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/posts/new.html.erb +5 -0
  1500. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/posts/show.html.erb +31 -0
  1501. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/app/views/tags/_form.html.erb +12 -0
  1502. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config.ru +4 -0
  1503. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/application.rb +59 -0
  1504. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/boot.rb +6 -0
  1505. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/database.yml +25 -0
  1506. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/environment.rb +5 -0
  1507. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/environments/development.rb +37 -0
  1508. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/environments/production.rb +67 -0
  1509. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/environments/test.rb +37 -0
  1510. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/backtrace_silencers.rb +7 -0
  1511. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/inflections.rb +15 -0
  1512. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/mime_types.rb +5 -0
  1513. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/secret_token.rb +7 -0
  1514. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/session_store.rb +8 -0
  1515. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/initializers/wrap_parameters.rb +14 -0
  1516. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/locales/en.yml +5 -0
  1517. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/config/routes.rb +64 -0
  1518. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +11 -0
  1519. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +12 -0
  1520. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +11 -0
  1521. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/db/schema.rb +43 -0
  1522. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/db/seeds.rb +7 -0
  1523. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/doc/README_FOR_APP +2 -0
  1524. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/public/404.html +26 -0
  1525. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/public/422.html +26 -0
  1526. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/public/500.html +25 -0
  1527. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/public/favicon.ico +0 -0
  1528. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/public/robots.txt +5 -0
  1529. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/script/rails +6 -0
  1530. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/fixtures/comments.yml +11 -0
  1531. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/fixtures/posts.yml +11 -0
  1532. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/fixtures/tags.yml +9 -0
  1533. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/functional/comments_controller_test.rb +7 -0
  1534. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/functional/home_controller_test.rb +9 -0
  1535. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/functional/posts_controller_test.rb +49 -0
  1536. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/performance/browsing_test.rb +12 -0
  1537. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/test_helper.rb +13 -0
  1538. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/comment_test.rb +7 -0
  1539. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +4 -0
  1540. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +4 -0
  1541. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +4 -0
  1542. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/post_test.rb +7 -0
  1543. data/vendor/bundle/gems/railties-3.2.11/guides/code/getting_started/test/unit/tag_test.rb +7 -0
  1544. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides.rb +50 -0
  1545. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides/generator.rb +310 -0
  1546. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides/helpers.rb +45 -0
  1547. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides/indexer.rb +69 -0
  1548. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides/levenshtein.rb +31 -0
  1549. data/vendor/bundle/gems/railties-3.2.11/guides/rails_guides/textile_extensions.rb +63 -0
  1550. data/vendor/bundle/gems/railties-3.2.11/guides/source/2_2_release_notes.textile +422 -0
  1551. data/vendor/bundle/gems/railties-3.2.11/guides/source/2_3_release_notes.textile +610 -0
  1552. data/vendor/bundle/gems/railties-3.2.11/guides/source/3_0_release_notes.textile +595 -0
  1553. data/vendor/bundle/gems/railties-3.2.11/guides/source/3_1_release_notes.textile +553 -0
  1554. data/vendor/bundle/gems/railties-3.2.11/guides/source/3_2_release_notes.textile +540 -0
  1555. data/vendor/bundle/gems/railties-3.2.11/guides/source/_license.html.erb +2 -0
  1556. data/vendor/bundle/gems/railties-3.2.11/guides/source/_welcome.html.erb +19 -0
  1557. data/vendor/bundle/gems/railties-3.2.11/guides/source/action_controller_overview.textile +820 -0
  1558. data/vendor/bundle/gems/railties-3.2.11/guides/source/action_mailer_basics.textile +516 -0
  1559. data/vendor/bundle/gems/railties-3.2.11/guides/source/action_view_overview.textile +1497 -0
  1560. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_model_basics.textile +205 -0
  1561. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_record_basics.textile +218 -0
  1562. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_record_querying.textile +1433 -0
  1563. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_record_validations_callbacks.textile +1283 -0
  1564. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_resource_basics.textile +120 -0
  1565. data/vendor/bundle/gems/railties-3.2.11/guides/source/active_support_core_extensions.textile +3713 -0
  1566. data/vendor/bundle/gems/railties-3.2.11/guides/source/ajax_on_rails.textile +267 -0
  1567. data/vendor/bundle/gems/railties-3.2.11/guides/source/api_documentation_guidelines.textile +185 -0
  1568. data/vendor/bundle/gems/railties-3.2.11/guides/source/asset_pipeline.textile +707 -0
  1569. data/vendor/bundle/gems/railties-3.2.11/guides/source/association_basics.textile +1959 -0
  1570. data/vendor/bundle/gems/railties-3.2.11/guides/source/caching_with_rails.textile +437 -0
  1571. data/vendor/bundle/gems/railties-3.2.11/guides/source/command_line.textile +574 -0
  1572. data/vendor/bundle/gems/railties-3.2.11/guides/source/configuring.textile +641 -0
  1573. data/vendor/bundle/gems/railties-3.2.11/guides/source/contributing_to_ruby_on_rails.textile +448 -0
  1574. data/vendor/bundle/gems/railties-3.2.11/guides/source/credits.html.erb +72 -0
  1575. data/vendor/bundle/gems/railties-3.2.11/guides/source/debugging_rails_applications.textile +714 -0
  1576. data/vendor/bundle/gems/railties-3.2.11/guides/source/documents.yaml +157 -0
  1577. data/vendor/bundle/gems/railties-3.2.11/guides/source/engines.textile +618 -0
  1578. data/vendor/bundle/gems/railties-3.2.11/guides/source/form_helpers.textile +798 -0
  1579. data/vendor/bundle/gems/railties-3.2.11/guides/source/generators.textile +621 -0
  1580. data/vendor/bundle/gems/railties-3.2.11/guides/source/getting_started.textile +1929 -0
  1581. data/vendor/bundle/gems/railties-3.2.11/guides/source/i18n.textile +931 -0
  1582. data/vendor/bundle/gems/railties-3.2.11/guides/source/index.html.erb +30 -0
  1583. data/vendor/bundle/gems/railties-3.2.11/guides/source/initialization.textile +1116 -0
  1584. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/KINDLE.md +26 -0
  1585. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/copyright.html.erb +1 -0
  1586. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/layout.html.erb +27 -0
  1587. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/rails_guides.opf.erb +52 -0
  1588. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/toc.html.erb +24 -0
  1589. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/toc.ncx.erb +64 -0
  1590. data/vendor/bundle/gems/railties-3.2.11/guides/source/kindle/welcome.html.erb +5 -0
  1591. data/vendor/bundle/gems/railties-3.2.11/guides/source/layout.html.erb +124 -0
  1592. data/vendor/bundle/gems/railties-3.2.11/guides/source/layouts_and_rendering.textile +1237 -0
  1593. data/vendor/bundle/gems/railties-3.2.11/guides/source/migrations.textile +900 -0
  1594. data/vendor/bundle/gems/railties-3.2.11/guides/source/nested_model_forms.textile +222 -0
  1595. data/vendor/bundle/gems/railties-3.2.11/guides/source/performance_testing.textile +597 -0
  1596. data/vendor/bundle/gems/railties-3.2.11/guides/source/plugins.textile +464 -0
  1597. data/vendor/bundle/gems/railties-3.2.11/guides/source/rails_application_templates.textile +240 -0
  1598. data/vendor/bundle/gems/railties-3.2.11/guides/source/rails_on_rack.textile +236 -0
  1599. data/vendor/bundle/gems/railties-3.2.11/guides/source/routing.textile +885 -0
  1600. data/vendor/bundle/gems/railties-3.2.11/guides/source/ruby_on_rails_guides_guidelines.textile +79 -0
  1601. data/vendor/bundle/gems/railties-3.2.11/guides/source/security.textile +1004 -0
  1602. data/vendor/bundle/gems/railties-3.2.11/guides/source/testing.textile +947 -0
  1603. data/vendor/bundle/gems/railties-3.2.11/guides/w3c_validator.rb +91 -0
  1604. data/vendor/bundle/gems/railties-3.2.11/lib/rails.rb +126 -0
  1605. data/vendor/bundle/gems/railties-3.2.11/lib/rails/all.rb +15 -0
  1606. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application.rb +320 -0
  1607. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/bootstrap.rb +73 -0
  1608. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/configuration.rb +151 -0
  1609. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/finisher.rb +98 -0
  1610. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/railties.rb +13 -0
  1611. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/route_inspector.rb +84 -0
  1612. data/vendor/bundle/gems/railties-3.2.11/lib/rails/application/routes_reloader.rb +56 -0
  1613. data/vendor/bundle/gems/railties-3.2.11/lib/rails/backtrace_cleaner.rb +42 -0
  1614. data/vendor/bundle/gems/railties-3.2.11/lib/rails/cli.rb +16 -0
  1615. data/vendor/bundle/gems/railties-3.2.11/lib/rails/code_statistics.rb +118 -0
  1616. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands.rb +104 -0
  1617. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/application.rb +38 -0
  1618. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/benchmarker.rb +34 -0
  1619. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/console.rb +55 -0
  1620. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/dbconsole.rb +123 -0
  1621. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/destroy.rb +10 -0
  1622. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/generate.rb +12 -0
  1623. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/plugin.rb +544 -0
  1624. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/plugin_new.rb +11 -0
  1625. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/profiler.rb +32 -0
  1626. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/runner.rb +54 -0
  1627. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/server.rb +100 -0
  1628. data/vendor/bundle/gems/railties-3.2.11/lib/rails/commands/update.rb +9 -0
  1629. data/vendor/bundle/gems/railties-3.2.11/lib/rails/configuration.rb +89 -0
  1630. data/vendor/bundle/gems/railties-3.2.11/lib/rails/console/app.rb +36 -0
  1631. data/vendor/bundle/gems/railties-3.2.11/lib/rails/console/helpers.rb +11 -0
  1632. data/vendor/bundle/gems/railties-3.2.11/lib/rails/engine.rb +657 -0
  1633. data/vendor/bundle/gems/railties-3.2.11/lib/rails/engine/commands.rb +43 -0
  1634. data/vendor/bundle/gems/railties-3.2.11/lib/rails/engine/configuration.rb +84 -0
  1635. data/vendor/bundle/gems/railties-3.2.11/lib/rails/engine/railties.rb +33 -0
  1636. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators.rb +339 -0
  1637. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/actions.rb +325 -0
  1638. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/active_model.rb +78 -0
  1639. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/app_base.rb +281 -0
  1640. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/base.rb +390 -0
  1641. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/css/assets/assets_generator.rb +13 -0
  1642. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/css/assets/templates/stylesheet.css +4 -0
  1643. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/css/scaffold/scaffold_generator.rb +16 -0
  1644. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb.rb +21 -0
  1645. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/controller/controller_generator.rb +20 -0
  1646. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/controller/templates/view.html.erb +2 -0
  1647. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/mailer/mailer_generator.rb +13 -0
  1648. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/mailer/templates/view.text.erb +3 -0
  1649. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/scaffold_generator.rb +29 -0
  1650. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/_form.html.erb +23 -0
  1651. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/edit.html.erb +6 -0
  1652. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/index.html.erb +27 -0
  1653. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/new.html.erb +5 -0
  1654. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/erb/scaffold/templates/show.html.erb +12 -0
  1655. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/generated_attribute.rb +107 -0
  1656. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/js/assets/assets_generator.rb +13 -0
  1657. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/js/assets/templates/javascript.js +2 -0
  1658. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/migration.rb +68 -0
  1659. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/named_base.rb +202 -0
  1660. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/USAGE +15 -0
  1661. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/app_generator.rb +303 -0
  1662. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/Gemfile +26 -0
  1663. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/README +261 -0
  1664. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/Rakefile +7 -0
  1665. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
  1666. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +17 -0
  1667. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +13 -0
  1668. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +3 -0
  1669. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +2 -0
  1670. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +14 -0
  1671. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config.ru +4 -0
  1672. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/application.rb +74 -0
  1673. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/boot.rb +6 -0
  1674. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +31 -0
  1675. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +86 -0
  1676. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +62 -0
  1677. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +33 -0
  1678. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +43 -0
  1679. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +20 -0
  1680. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +54 -0
  1681. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +39 -0
  1682. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +55 -0
  1683. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +25 -0
  1684. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/environment.rb +5 -0
  1685. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +41 -0
  1686. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +73 -0
  1687. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +39 -0
  1688. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +7 -0
  1689. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +15 -0
  1690. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +5 -0
  1691. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +7 -0
  1692. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +8 -0
  1693. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +16 -0
  1694. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/locales/en.yml +5 -0
  1695. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/config/routes.rb +58 -0
  1696. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +7 -0
  1697. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +2 -0
  1698. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/gitignore +15 -0
  1699. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/404.html +26 -0
  1700. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/422.html +26 -0
  1701. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/500.html +25 -0
  1702. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/favicon.ico +0 -0
  1703. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/index.html +241 -0
  1704. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/public/robots.txt +5 -0
  1705. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/script/rails +5 -0
  1706. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +12 -0
  1707. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/app/templates/test/test_helper.rb +15 -0
  1708. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/assets/USAGE +20 -0
  1709. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/assets/assets_generator.rb +25 -0
  1710. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/assets/templates/javascript.js +2 -0
  1711. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/assets/templates/stylesheet.css +4 -0
  1712. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/USAGE +18 -0
  1713. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/controller_generator.rb +20 -0
  1714. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/controller/templates/controller.rb +13 -0
  1715. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/generator/USAGE +12 -0
  1716. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/generator/generator_generator.rb +25 -0
  1717. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +3 -0
  1718. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/generator/templates/USAGE.tt +8 -0
  1719. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/helper/USAGE +17 -0
  1720. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/helper/helper_generator.rb +13 -0
  1721. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/helper/templates/helper.rb +4 -0
  1722. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/integration_test/USAGE +10 -0
  1723. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/integration_test/integration_test_generator.rb +7 -0
  1724. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/migration/USAGE +29 -0
  1725. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/migration/migration_generator.rb +8 -0
  1726. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/model/USAGE +45 -0
  1727. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/model/model_generator.rb +8 -0
  1728. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/observer/USAGE +12 -0
  1729. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/observer/observer_generator.rb +7 -0
  1730. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/performance_test/USAGE +10 -0
  1731. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/performance_test/performance_test_generator.rb +7 -0
  1732. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/USAGE +10 -0
  1733. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +318 -0
  1734. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +29 -0
  1735. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/Gemfile +23 -0
  1736. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +20 -0
  1737. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/README.rdoc +3 -0
  1738. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/Rakefile +31 -0
  1739. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +4 -0
  1740. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +4 -0
  1741. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +14 -0
  1742. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +6 -0
  1743. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/gitignore +7 -0
  1744. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +6 -0
  1745. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +7 -0
  1746. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +3 -0
  1747. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +4 -0
  1748. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +18 -0
  1749. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +10 -0
  1750. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +4 -0
  1751. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +7 -0
  1752. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +7 -0
  1753. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +12 -0
  1754. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +15 -0
  1755. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/resource/USAGE +23 -0
  1756. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/resource/resource_generator.rb +20 -0
  1757. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/resource_route/resource_route_generator.rb +50 -0
  1758. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold/USAGE +35 -0
  1759. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold/scaffold_generator.rb +23 -0
  1760. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold/templates/scaffold.css +56 -0
  1761. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold_controller/USAGE +19 -0
  1762. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +25 -0
  1763. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +89 -0
  1764. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/session_migration/USAGE +8 -0
  1765. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/session_migration/session_migration_generator.rb +8 -0
  1766. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/task/USAGE +9 -0
  1767. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/task/task_generator.rb +12 -0
  1768. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/rails/task/templates/task.rb +8 -0
  1769. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/resource_helpers.rb +80 -0
  1770. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_case.rb +247 -0
  1771. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit.rb +8 -0
  1772. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/controller/controller_generator.rb +15 -0
  1773. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/controller/templates/functional_test.rb +19 -0
  1774. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/helper/helper_generator.rb +13 -0
  1775. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/helper/templates/helper_test.rb +6 -0
  1776. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/integration/integration_generator.rb +13 -0
  1777. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/integration/templates/integration_test.rb +7 -0
  1778. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/mailer/mailer_generator.rb +14 -0
  1779. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +21 -0
  1780. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/model/model_generator.rb +24 -0
  1781. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/model/templates/fixtures.yml +23 -0
  1782. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/model/templates/unit_test.rb +9 -0
  1783. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/observer/observer_generator.rb +13 -0
  1784. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/observer/templates/unit_test.rb +9 -0
  1785. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/performance/performance_generator.rb +13 -0
  1786. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/performance/templates/performance_test.rb +12 -0
  1787. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/plugin/plugin_generator.rb +13 -0
  1788. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +7 -0
  1789. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +3 -0
  1790. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +38 -0
  1791. data/vendor/bundle/gems/railties-3.2.11/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +51 -0
  1792. data/vendor/bundle/gems/railties-3.2.11/lib/rails/info.rb +116 -0
  1793. data/vendor/bundle/gems/railties-3.2.11/lib/rails/info_controller.rb +15 -0
  1794. data/vendor/bundle/gems/railties-3.2.11/lib/rails/initializable.rb +89 -0
  1795. data/vendor/bundle/gems/railties-3.2.11/lib/rails/paths.rb +211 -0
  1796. data/vendor/bundle/gems/railties-3.2.11/lib/rails/performance_test_help.rb +3 -0
  1797. data/vendor/bundle/gems/railties-3.2.11/lib/rails/plugin.rb +92 -0
  1798. data/vendor/bundle/gems/railties-3.2.11/lib/rails/rack.rb +7 -0
  1799. data/vendor/bundle/gems/railties-3.2.11/lib/rails/rack/debugger.rb +24 -0
  1800. data/vendor/bundle/gems/railties-3.2.11/lib/rails/rack/log_tailer.rb +34 -0
  1801. data/vendor/bundle/gems/railties-3.2.11/lib/rails/rack/logger.rb +60 -0
  1802. data/vendor/bundle/gems/railties-3.2.11/lib/rails/railtie.rb +202 -0
  1803. data/vendor/bundle/gems/railties-3.2.11/lib/rails/railtie/configurable.rb +35 -0
  1804. data/vendor/bundle/gems/railties-3.2.11/lib/rails/railtie/configuration.rb +90 -0
  1805. data/vendor/bundle/gems/railties-3.2.11/lib/rails/ruby_version_check.rb +23 -0
  1806. data/vendor/bundle/gems/railties-3.2.11/lib/rails/rubyprof_ext.rb +35 -0
  1807. data/vendor/bundle/gems/railties-3.2.11/lib/rails/script_rails_loader.rb +29 -0
  1808. data/vendor/bundle/gems/railties-3.2.11/lib/rails/source_annotation_extractor.rb +104 -0
  1809. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks.rb +16 -0
  1810. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/annotations.rake +20 -0
  1811. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/documentation.rake +155 -0
  1812. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/engine.rake +72 -0
  1813. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/framework.rake +76 -0
  1814. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/log.rake +9 -0
  1815. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/middleware.rake +7 -0
  1816. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/misc.rake +67 -0
  1817. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/routes.rake +9 -0
  1818. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/statistics.rake +16 -0
  1819. data/vendor/bundle/gems/railties-3.2.11/lib/rails/tasks/tmp.rake +37 -0
  1820. data/vendor/bundle/gems/railties-3.2.11/lib/rails/test_help.rb +56 -0
  1821. data/vendor/bundle/gems/railties-3.2.11/lib/rails/test_unit/railtie.rb +15 -0
  1822. data/vendor/bundle/gems/railties-3.2.11/lib/rails/test_unit/sub_test_task.rb +8 -0
  1823. data/vendor/bundle/gems/railties-3.2.11/lib/rails/test_unit/testing.rake +146 -0
  1824. data/vendor/bundle/gems/railties-3.2.11/lib/rails/version.rb +10 -0
  1825. data/vendor/bundle/gems/rake-10.0.3/CHANGES +526 -0
  1826. data/vendor/bundle/gems/rake-10.0.3/MIT-LICENSE +21 -0
  1827. data/vendor/bundle/gems/rake-10.0.3/README.rdoc +187 -0
  1828. data/vendor/bundle/gems/rake-10.0.3/Rakefile +374 -0
  1829. data/vendor/bundle/gems/rake-10.0.3/TODO +21 -0
  1830. data/vendor/bundle/gems/rake-10.0.3/bin/rake +33 -0
  1831. data/vendor/bundle/gems/rake-10.0.3/doc/command_line_usage.rdoc +152 -0
  1832. data/vendor/bundle/gems/rake-10.0.3/doc/example/Rakefile1 +38 -0
  1833. data/vendor/bundle/gems/rake-10.0.3/doc/example/Rakefile2 +35 -0
  1834. data/vendor/bundle/gems/rake-10.0.3/doc/example/a.c +6 -0
  1835. data/vendor/bundle/gems/rake-10.0.3/doc/example/b.c +6 -0
  1836. data/vendor/bundle/gems/rake-10.0.3/doc/example/main.c +11 -0
  1837. data/vendor/bundle/gems/rake-10.0.3/doc/glossary.rdoc +51 -0
  1838. data/vendor/bundle/gems/rake-10.0.3/doc/jamis.rb +591 -0
  1839. data/vendor/bundle/gems/rake-10.0.3/doc/proto_rake.rdoc +127 -0
  1840. data/vendor/bundle/gems/rake-10.0.3/doc/rake.1.gz +0 -0
  1841. data/vendor/bundle/gems/rake-10.0.3/doc/rakefile.rdoc +557 -0
  1842. data/vendor/bundle/gems/rake-10.0.3/doc/rational.rdoc +151 -0
  1843. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.4.14.rdoc +23 -0
  1844. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.4.15.rdoc +35 -0
  1845. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.0.rdoc +53 -0
  1846. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.3.rdoc +78 -0
  1847. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.5.4.rdoc +46 -0
  1848. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.6.0.rdoc +141 -0
  1849. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.0.rdoc +119 -0
  1850. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.1.rdoc +59 -0
  1851. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.2.rdoc +121 -0
  1852. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.7.3.rdoc +47 -0
  1853. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.0.rdoc +114 -0
  1854. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.2.rdoc +165 -0
  1855. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.3.rdoc +112 -0
  1856. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.4.rdoc +147 -0
  1857. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.5.rdoc +53 -0
  1858. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.6.rdoc +55 -0
  1859. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.8.7.rdoc +55 -0
  1860. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.0.rdoc +112 -0
  1861. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.1.rdoc +52 -0
  1862. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
  1863. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.2.rdoc +49 -0
  1864. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.3.rdoc +102 -0
  1865. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.4.rdoc +110 -0
  1866. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.5.rdoc +114 -0
  1867. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-0.9.6.rdoc +127 -0
  1868. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.0.rdoc +178 -0
  1869. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.1.rdoc +187 -0
  1870. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.2.rdoc +191 -0
  1871. data/vendor/bundle/gems/rake-10.0.3/doc/release_notes/rake-10.0.3.rdoc +191 -0
  1872. data/vendor/bundle/gems/rake-10.0.3/install.rb +90 -0
  1873. data/vendor/bundle/gems/rake-10.0.3/lib/rake.rb +71 -0
  1874. data/vendor/bundle/gems/rake-10.0.3/lib/rake/alt_system.rb +109 -0
  1875. data/vendor/bundle/gems/rake-10.0.3/lib/rake/application.rb +669 -0
  1876. data/vendor/bundle/gems/rake-10.0.3/lib/rake/backtrace.rb +18 -0
  1877. data/vendor/bundle/gems/rake-10.0.3/lib/rake/clean.rb +32 -0
  1878. data/vendor/bundle/gems/rake-10.0.3/lib/rake/cloneable.rb +16 -0
  1879. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/compositepublisher.rb +21 -0
  1880. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/ftptools.rb +151 -0
  1881. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/publisher.rb +73 -0
  1882. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/rubyforgepublisher.rb +16 -0
  1883. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/sshpublisher.rb +50 -0
  1884. data/vendor/bundle/gems/rake-10.0.3/lib/rake/contrib/sys.rb +1 -0
  1885. data/vendor/bundle/gems/rake-10.0.3/lib/rake/default_loader.rb +10 -0
  1886. data/vendor/bundle/gems/rake-10.0.3/lib/rake/dsl_definition.rb +156 -0
  1887. data/vendor/bundle/gems/rake-10.0.3/lib/rake/early_time.rb +18 -0
  1888. data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/core.rb +27 -0
  1889. data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/module.rb +0 -0
  1890. data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/string.rb +168 -0
  1891. data/vendor/bundle/gems/rake-10.0.3/lib/rake/ext/time.rb +15 -0
  1892. data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_creation_task.rb +24 -0
  1893. data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_list.rb +410 -0
  1894. data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_task.rb +47 -0
  1895. data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_utils.rb +114 -0
  1896. data/vendor/bundle/gems/rake-10.0.3/lib/rake/file_utils_ext.rb +146 -0
  1897. data/vendor/bundle/gems/rake-10.0.3/lib/rake/gempackagetask.rb +1 -0
  1898. data/vendor/bundle/gems/rake-10.0.3/lib/rake/invocation_chain.rb +51 -0
  1899. data/vendor/bundle/gems/rake-10.0.3/lib/rake/invocation_exception_mixin.rb +16 -0
  1900. data/vendor/bundle/gems/rake-10.0.3/lib/rake/loaders/makefile.rb +40 -0
  1901. data/vendor/bundle/gems/rake-10.0.3/lib/rake/multi_task.rb +13 -0
  1902. data/vendor/bundle/gems/rake-10.0.3/lib/rake/name_space.rb +25 -0
  1903. data/vendor/bundle/gems/rake-10.0.3/lib/rake/packagetask.rb +185 -0
  1904. data/vendor/bundle/gems/rake-10.0.3/lib/rake/pathmap.rb +1 -0
  1905. data/vendor/bundle/gems/rake-10.0.3/lib/rake/phony.rb +15 -0
  1906. data/vendor/bundle/gems/rake-10.0.3/lib/rake/private_reader.rb +20 -0
  1907. data/vendor/bundle/gems/rake-10.0.3/lib/rake/promise.rb +99 -0
  1908. data/vendor/bundle/gems/rake-10.0.3/lib/rake/pseudo_status.rb +24 -0
  1909. data/vendor/bundle/gems/rake-10.0.3/lib/rake/rake_module.rb +37 -0
  1910. data/vendor/bundle/gems/rake-10.0.3/lib/rake/rake_test_loader.rb +22 -0
  1911. data/vendor/bundle/gems/rake-10.0.3/lib/rake/rdoctask.rb +1 -0
  1912. data/vendor/bundle/gems/rake-10.0.3/lib/rake/ruby182_test_unit_fix.rb +25 -0
  1913. data/vendor/bundle/gems/rake-10.0.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
  1914. data/vendor/bundle/gems/rake-10.0.3/lib/rake/runtest.rb +22 -0
  1915. data/vendor/bundle/gems/rake-10.0.3/lib/rake/task.rb +350 -0
  1916. data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_argument_error.rb +7 -0
  1917. data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_arguments.rb +78 -0
  1918. data/vendor/bundle/gems/rake-10.0.3/lib/rake/task_manager.rb +296 -0
  1919. data/vendor/bundle/gems/rake-10.0.3/lib/rake/tasklib.rb +22 -0
  1920. data/vendor/bundle/gems/rake-10.0.3/lib/rake/testtask.rb +198 -0
  1921. data/vendor/bundle/gems/rake-10.0.3/lib/rake/thread_history_display.rb +48 -0
  1922. data/vendor/bundle/gems/rake-10.0.3/lib/rake/thread_pool.rb +155 -0
  1923. data/vendor/bundle/gems/rake-10.0.3/lib/rake/trace_output.rb +19 -0
  1924. data/vendor/bundle/gems/rake-10.0.3/lib/rake/version.rb +13 -0
  1925. data/vendor/bundle/gems/rake-10.0.3/lib/rake/win32.rb +55 -0
  1926. data/vendor/bundle/gems/rake-10.0.3/test/file_creation.rb +34 -0
  1927. data/vendor/bundle/gems/rake-10.0.3/test/helper.rb +562 -0
  1928. data/vendor/bundle/gems/rake-10.0.3/test/test_private_reader.rb +42 -0
  1929. data/vendor/bundle/gems/rake-10.0.3/test/test_rake.rb +40 -0
  1930. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_application.rb +515 -0
  1931. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_application_options.rb +443 -0
  1932. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_backtrace.rb +89 -0
  1933. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_clean.rb +14 -0
  1934. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_definitions.rb +80 -0
  1935. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_directory_task.rb +57 -0
  1936. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_dsl.rb +40 -0
  1937. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_early_time.rb +31 -0
  1938. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_extension.rb +59 -0
  1939. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_creation_task.rb +56 -0
  1940. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_list.rb +628 -0
  1941. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_list_path_map.rb +8 -0
  1942. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_task.rb +122 -0
  1943. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_file_utils.rb +305 -0
  1944. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_ftp_file.rb +59 -0
  1945. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_functional.rb +496 -0
  1946. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_invocation_chain.rb +52 -0
  1947. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_makefile_loader.rb +44 -0
  1948. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_multi_task.rb +59 -0
  1949. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_name_space.rb +43 -0
  1950. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_package_task.rb +79 -0
  1951. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map.rb +157 -0
  1952. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map_explode.rb +34 -0
  1953. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_path_map_partial.rb +18 -0
  1954. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_pseudo_status.rb +21 -0
  1955. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_rake_test_loader.rb +21 -0
  1956. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_reduce_compat.rb +30 -0
  1957. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_require.rb +40 -0
  1958. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_rules.rb +327 -0
  1959. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task.rb +316 -0
  1960. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_argument_parsing.rb +103 -0
  1961. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_arguments.rb +88 -0
  1962. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_lib.rb +9 -0
  1963. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_manager.rb +157 -0
  1964. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_manager_argument_resolution.rb +19 -0
  1965. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_task_with_arguments.rb +171 -0
  1966. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_test_task.rb +120 -0
  1967. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_thread_pool.rb +123 -0
  1968. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_top_level_functions.rb +71 -0
  1969. data/vendor/bundle/gems/rake-10.0.3/test/test_rake_win32.rb +72 -0
  1970. data/vendor/bundle/gems/rake-10.0.3/test/test_thread_history_display.rb +91 -0
  1971. data/vendor/bundle/gems/rake-10.0.3/test/test_trace_output.rb +43 -0
  1972. data/vendor/bundle/gems/rdoc-3.12/DEVELOPERS.rdoc +141 -0
  1973. data/vendor/bundle/gems/rdoc-3.12/History.rdoc +962 -0
  1974. data/vendor/bundle/gems/rdoc-3.12/LEGAL.rdoc +27 -0
  1975. data/vendor/bundle/gems/rdoc-3.12/LICENSE.rdoc +57 -0
  1976. data/vendor/bundle/gems/rdoc-3.12/Manifest.txt +228 -0
  1977. data/vendor/bundle/gems/rdoc-3.12/README.rdoc +61 -0
  1978. data/vendor/bundle/gems/rdoc-3.12/RI.rdoc +57 -0
  1979. data/vendor/bundle/gems/rdoc-3.12/Rakefile +135 -0
  1980. data/vendor/bundle/gems/rdoc-3.12/TODO.rdoc +40 -0
  1981. data/vendor/bundle/gems/rdoc-3.12/bin/rdoc +40 -0
  1982. data/vendor/bundle/gems/rdoc-3.12/bin/ri +12 -0
  1983. data/vendor/bundle/gems/rdoc-3.12/lib/gauntlet_rdoc.rb +84 -0
  1984. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc.rb +221 -0
  1985. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/alias.rb +111 -0
  1986. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/anon_class.rb +10 -0
  1987. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/any_method.rb +208 -0
  1988. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/attr.rb +134 -0
  1989. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/class_module.rb +619 -0
  1990. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/code_object.rb +305 -0
  1991. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/code_objects.rb +5 -0
  1992. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/comment.rb +225 -0
  1993. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/constant.rb +84 -0
  1994. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/context.rb +1136 -0
  1995. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/context/section.rb +123 -0
  1996. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/cross_reference.rb +175 -0
  1997. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/encoding.rb +90 -0
  1998. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/erbio.rb +37 -0
  1999. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator.rb +45 -0
  2000. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/darkfish.rb +532 -0
  2001. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/json_index.rb +240 -0
  2002. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/markup.rb +171 -0
  2003. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/ri.rb +83 -0
  2004. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
  2005. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_head.rhtml +16 -0
  2006. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +18 -0
  2007. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
  2008. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +8 -0
  2009. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +16 -0
  2010. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
  2011. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +7 -0
  2012. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
  2013. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +10 -0
  2014. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +10 -0
  2015. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +10 -0
  2016. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/class.rhtml +165 -0
  2017. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  2018. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
  2019. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
  2020. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
  2021. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
  2022. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
  2023. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
  2024. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
  2025. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  2026. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
  2027. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
  2028. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
  2029. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
  2030. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
  2031. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
  2032. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
  2033. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
  2034. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
  2035. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  2036. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
  2037. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  2038. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
  2039. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
  2040. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
  2041. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/index.rhtml +19 -0
  2042. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/darkfish.js +153 -0
  2043. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/jquery.js +18 -0
  2044. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/js/search.js +94 -0
  2045. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/page.rhtml +16 -0
  2046. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/rdoc.css +543 -0
  2047. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +55 -0
  2048. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/navigation.js +142 -0
  2049. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/generator/template/json_index/js/searcher.js +228 -0
  2050. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ghost_method.rb +6 -0
  2051. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/include.rb +110 -0
  2052. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/known_classes.rb +72 -0
  2053. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup.rb +813 -0
  2054. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/attr_changer.rb +25 -0
  2055. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/attr_span.rb +29 -0
  2056. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/attribute.rb +51 -0
  2057. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/attribute_manager.rb +335 -0
  2058. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/blank_line.rb +27 -0
  2059. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/document.rb +148 -0
  2060. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/formatter.rb +173 -0
  2061. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/formatter_test_case.rb +698 -0
  2062. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/heading.rb +64 -0
  2063. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/include.rb +42 -0
  2064. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/indented_paragraph.rb +33 -0
  2065. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/inline.rb +1 -0
  2066. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/list.rb +82 -0
  2067. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/list_item.rb +86 -0
  2068. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/paragraph.rb +14 -0
  2069. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/parser.rb +504 -0
  2070. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/pre_process.rb +293 -0
  2071. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/raw.rb +69 -0
  2072. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/rule.rb +20 -0
  2073. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/special.rb +40 -0
  2074. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/text_formatter_test_case.rb +114 -0
  2075. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_ansi.rb +87 -0
  2076. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_bs.rb +78 -0
  2077. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_html.rb +394 -0
  2078. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_html_crossref.rb +156 -0
  2079. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_html_snippet.rb +268 -0
  2080. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_label.rb +55 -0
  2081. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_rdoc.rb +302 -0
  2082. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_table_of_contents.rb +56 -0
  2083. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_test.rb +69 -0
  2084. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/to_tt_only.rb +111 -0
  2085. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/markup/verbatim.rb +64 -0
  2086. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/meta_method.rb +6 -0
  2087. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/method_attr.rb +384 -0
  2088. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/normal_class.rb +69 -0
  2089. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/normal_module.rb +64 -0
  2090. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/options.rb +1040 -0
  2091. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser.rb +242 -0
  2092. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/c.rb +1024 -0
  2093. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/rd.rb +22 -0
  2094. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/ruby.rb +1816 -0
  2095. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/ruby_tools.rb +162 -0
  2096. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/simple.rb +61 -0
  2097. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/parser/text.rb +11 -0
  2098. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rd.rb +95 -0
  2099. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rd/block_parser.ry +638 -0
  2100. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rd/inline.rb +71 -0
  2101. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rd/inline_parser.ry +593 -0
  2102. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rdoc.rb +532 -0
  2103. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/require.rb +51 -0
  2104. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ri.rb +20 -0
  2105. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ri/driver.rb +1174 -0
  2106. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ri/formatter.rb +5 -0
  2107. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ri/paths.rb +128 -0
  2108. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ri/store.rb +357 -0
  2109. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ruby_lex.rb +1334 -0
  2110. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/ruby_token.rb +458 -0
  2111. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/rubygems_hook.rb +220 -0
  2112. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/single_class.rb +21 -0
  2113. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/stats.rb +436 -0
  2114. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/stats/normal.rb +48 -0
  2115. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/stats/quiet.rb +59 -0
  2116. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/stats/verbose.rb +45 -0
  2117. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/task.rb +329 -0
  2118. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/test_case.rb +76 -0
  2119. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/text.rb +314 -0
  2120. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/token_stream.rb +95 -0
  2121. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/tom_doc.rb +232 -0
  2122. data/vendor/bundle/gems/rdoc-3.12/lib/rdoc/top_level.rb +523 -0
  2123. data/vendor/bundle/gems/rdoc-3.12/test/README +1 -0
  2124. data/vendor/bundle/gems/rdoc-3.12/test/binary.dat +0 -0
  2125. data/vendor/bundle/gems/rdoc-3.12/test/hidden.zip.txt +1 -0
  2126. data/vendor/bundle/gems/rdoc-3.12/test/test.ja.large.rdoc +3 -0
  2127. data/vendor/bundle/gems/rdoc-3.12/test/test.ja.rdoc +10 -0
  2128. data/vendor/bundle/gems/rdoc-3.12/test/test.ja.txt +8 -0
  2129. data/vendor/bundle/gems/rdoc-3.12/test/test.txt +1 -0
  2130. data/vendor/bundle/gems/rdoc-3.12/test/test_attribute_manager.rb +117 -0
  2131. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_alias.rb +13 -0
  2132. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_any_method.rb +248 -0
  2133. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_attr.rb +136 -0
  2134. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_class_module.rb +814 -0
  2135. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_code_object.rb +297 -0
  2136. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_comment.rb +504 -0
  2137. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_constant.rb +15 -0
  2138. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_context.rb +791 -0
  2139. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_context_section.rb +53 -0
  2140. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_cross_reference.rb +176 -0
  2141. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_encoding.rb +188 -0
  2142. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_generator_darkfish.rb +151 -0
  2143. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_generator_json_index.rb +255 -0
  2144. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_generator_markup.rb +56 -0
  2145. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_generator_ri.rb +84 -0
  2146. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_include.rb +96 -0
  2147. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup.rb +95 -0
  2148. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_attribute_manager.rb +237 -0
  2149. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_document.rb +180 -0
  2150. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_formatter.rb +55 -0
  2151. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_heading.rb +20 -0
  2152. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_include.rb +19 -0
  2153. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_indented_paragraph.rb +39 -0
  2154. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_paragraph.rb +18 -0
  2155. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_parser.rb +1624 -0
  2156. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_pre_process.rb +461 -0
  2157. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_raw.rb +29 -0
  2158. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_ansi.rb +348 -0
  2159. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_bs.rb +342 -0
  2160. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_html.rb +515 -0
  2161. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_html_crossref.rb +200 -0
  2162. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_html_snippet.rb +668 -0
  2163. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_label.rb +50 -0
  2164. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_rdoc.rb +357 -0
  2165. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_table_of_contents.rb +90 -0
  2166. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_to_tt_only.rb +226 -0
  2167. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_markup_verbatim.rb +16 -0
  2168. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_method_attr.rb +150 -0
  2169. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_normal_class.rb +23 -0
  2170. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_normal_module.rb +37 -0
  2171. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_options.rb +579 -0
  2172. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_parser.rb +162 -0
  2173. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_parser_c.rb +1438 -0
  2174. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_parser_rd.rb +52 -0
  2175. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_parser_ruby.rb +2490 -0
  2176. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_parser_simple.rb +115 -0
  2177. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rd.rb +30 -0
  2178. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rd_block_parser.rb +527 -0
  2179. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rd_inline.rb +63 -0
  2180. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rd_inline_parser.rb +173 -0
  2181. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rdoc.rb +280 -0
  2182. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_require.rb +25 -0
  2183. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_ri_driver.rb +1059 -0
  2184. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_ri_paths.rb +46 -0
  2185. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_ri_store.rb +466 -0
  2186. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_ruby_lex.rb +137 -0
  2187. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_rubygems_hook.rb +202 -0
  2188. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_single_class.rb +12 -0
  2189. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_stats.rb +588 -0
  2190. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_task.rb +120 -0
  2191. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_text.rb +542 -0
  2192. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_token_stream.rb +42 -0
  2193. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_tom_doc.rb +458 -0
  2194. data/vendor/bundle/gems/rdoc-3.12/test/test_rdoc_top_level.rb +313 -0
  2195. data/vendor/bundle/gems/rdoc-3.12/test/xref_data.rb +76 -0
  2196. data/vendor/bundle/gems/rdoc-3.12/test/xref_test_case.rb +67 -0
  2197. data/vendor/bundle/gems/sprockets-2.2.2/LICENSE +21 -0
  2198. data/vendor/bundle/gems/sprockets-2.2.2/README.md +405 -0
  2199. data/vendor/bundle/gems/sprockets-2.2.2/bin/sprockets +80 -0
  2200. data/vendor/bundle/gems/sprockets-2.2.2/lib/rake/sprocketstask.rb +140 -0
  2201. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets.rb +64 -0
  2202. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/asset.rb +260 -0
  2203. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/asset_attributes.rb +126 -0
  2204. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/base.rb +307 -0
  2205. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/bundled_asset.rb +79 -0
  2206. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/cache/file_store.rb +32 -0
  2207. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/caching.rb +96 -0
  2208. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/charset_normalizer.rb +41 -0
  2209. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/context.rb +235 -0
  2210. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/directive_processor.rb +406 -0
  2211. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/eco_template.rb +38 -0
  2212. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/ejs_template.rb +37 -0
  2213. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/engines.rb +74 -0
  2214. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/environment.rb +91 -0
  2215. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/errors.rb +19 -0
  2216. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/index.rb +99 -0
  2217. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/jst_processor.rb +33 -0
  2218. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/manifest.rb +203 -0
  2219. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/mime.rb +48 -0
  2220. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/processed_asset.rb +152 -0
  2221. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/processing.rb +280 -0
  2222. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/processor.rb +32 -0
  2223. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/safety_colons.rb +28 -0
  2224. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/server.rb +247 -0
  2225. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/static_asset.rb +57 -0
  2226. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/trail.rb +90 -0
  2227. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/utils.rb +69 -0
  2228. data/vendor/bundle/gems/sprockets-2.2.2/lib/sprockets/version.rb +3 -0
  2229. data/vendor/bundle/gems/thor-0.16.0/CHANGELOG.rdoc +134 -0
  2230. data/vendor/bundle/gems/thor-0.16.0/Gemfile +15 -0
  2231. data/vendor/bundle/gems/thor-0.16.0/LICENSE.md +20 -0
  2232. data/vendor/bundle/gems/thor-0.16.0/README.md +28 -0
  2233. data/vendor/bundle/gems/thor-0.16.0/Thorfile +30 -0
  2234. data/vendor/bundle/gems/thor-0.16.0/bin/rake2thor +86 -0
  2235. data/vendor/bundle/gems/thor-0.16.0/bin/thor +6 -0
  2236. data/vendor/bundle/gems/thor-0.16.0/lib/thor.rb +379 -0
  2237. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions.rb +318 -0
  2238. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/create_file.rb +105 -0
  2239. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/create_link.rb +57 -0
  2240. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/directory.rb +98 -0
  2241. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/empty_directory.rb +153 -0
  2242. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/file_manipulation.rb +308 -0
  2243. data/vendor/bundle/gems/thor-0.16.0/lib/thor/actions/inject_into_file.rb +109 -0
  2244. data/vendor/bundle/gems/thor-0.16.0/lib/thor/base.rb +641 -0
  2245. data/vendor/bundle/gems/thor-0.16.0/lib/thor/core_ext/dir_escape.rb +0 -0
  2246. data/vendor/bundle/gems/thor-0.16.0/lib/thor/core_ext/file_binary_read.rb +9 -0
  2247. data/vendor/bundle/gems/thor-0.16.0/lib/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  2248. data/vendor/bundle/gems/thor-0.16.0/lib/thor/core_ext/ordered_hash.rb +100 -0
  2249. data/vendor/bundle/gems/thor-0.16.0/lib/thor/error.rb +35 -0
  2250. data/vendor/bundle/gems/thor-0.16.0/lib/thor/group.rb +285 -0
  2251. data/vendor/bundle/gems/thor-0.16.0/lib/thor/invocation.rb +170 -0
  2252. data/vendor/bundle/gems/thor-0.16.0/lib/thor/parser.rb +4 -0
  2253. data/vendor/bundle/gems/thor-0.16.0/lib/thor/parser/argument.rb +74 -0
  2254. data/vendor/bundle/gems/thor-0.16.0/lib/thor/parser/arguments.rb +171 -0
  2255. data/vendor/bundle/gems/thor-0.16.0/lib/thor/parser/option.rb +121 -0
  2256. data/vendor/bundle/gems/thor-0.16.0/lib/thor/parser/options.rb +178 -0
  2257. data/vendor/bundle/gems/thor-0.16.0/lib/thor/rake_compat.rb +71 -0
  2258. data/vendor/bundle/gems/thor-0.16.0/lib/thor/runner.rb +321 -0
  2259. data/vendor/bundle/gems/thor-0.16.0/lib/thor/shell.rb +88 -0
  2260. data/vendor/bundle/gems/thor-0.16.0/lib/thor/shell/basic.rb +389 -0
  2261. data/vendor/bundle/gems/thor-0.16.0/lib/thor/shell/color.rb +144 -0
  2262. data/vendor/bundle/gems/thor-0.16.0/lib/thor/shell/html.rb +123 -0
  2263. data/vendor/bundle/gems/thor-0.16.0/lib/thor/task.rb +132 -0
  2264. data/vendor/bundle/gems/thor-0.16.0/lib/thor/util.rb +266 -0
  2265. data/vendor/bundle/gems/thor-0.16.0/lib/thor/version.rb +3 -0
  2266. data/vendor/bundle/gems/thor-0.16.0/spec/actions/create_file_spec.rb +170 -0
  2267. data/vendor/bundle/gems/thor-0.16.0/spec/actions/create_link_spec.rb +81 -0
  2268. data/vendor/bundle/gems/thor-0.16.0/spec/actions/directory_spec.rb +149 -0
  2269. data/vendor/bundle/gems/thor-0.16.0/spec/actions/empty_directory_spec.rb +130 -0
  2270. data/vendor/bundle/gems/thor-0.16.0/spec/actions/file_manipulation_spec.rb +370 -0
  2271. data/vendor/bundle/gems/thor-0.16.0/spec/actions/inject_into_file_spec.rb +135 -0
  2272. data/vendor/bundle/gems/thor-0.16.0/spec/actions_spec.rb +331 -0
  2273. data/vendor/bundle/gems/thor-0.16.0/spec/base_spec.rb +279 -0
  2274. data/vendor/bundle/gems/thor-0.16.0/spec/core_ext/hash_with_indifferent_access_spec.rb +43 -0
  2275. data/vendor/bundle/gems/thor-0.16.0/spec/core_ext/ordered_hash_spec.rb +115 -0
  2276. data/vendor/bundle/gems/thor-0.16.0/spec/exit_condition_spec.rb +19 -0
  2277. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/application.rb +2 -0
  2278. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/app{1}/README +3 -0
  2279. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/bundle/execute.rb +6 -0
  2280. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/bundle/main.thor +1 -0
  2281. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/%file_name%.rb.tt +1 -0
  2282. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/COMMENTER +10 -0
  2283. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/README +3 -0
  2284. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/block_helper.rb +3 -0
  2285. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/config.rb +1 -0
  2286. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/doc/config.yaml.tt +1 -0
  2287. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/enum.thor +10 -0
  2288. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/group.thor +114 -0
  2289. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/invoke.thor +112 -0
  2290. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/path with spaces b/data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/path with → spaces +0 -0
  2291. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/script.thor +190 -0
  2292. data/vendor/bundle/gems/thor-0.16.0/spec/fixtures/task.thor +10 -0
  2293. data/vendor/bundle/gems/thor-0.16.0/spec/group_spec.rb +216 -0
  2294. data/vendor/bundle/gems/thor-0.16.0/spec/invocation_spec.rb +100 -0
  2295. data/vendor/bundle/gems/thor-0.16.0/spec/parser/argument_spec.rb +53 -0
  2296. data/vendor/bundle/gems/thor-0.16.0/spec/parser/arguments_spec.rb +66 -0
  2297. data/vendor/bundle/gems/thor-0.16.0/spec/parser/option_spec.rb +202 -0
  2298. data/vendor/bundle/gems/thor-0.16.0/spec/parser/options_spec.rb +330 -0
  2299. data/vendor/bundle/gems/thor-0.16.0/spec/rake_compat_spec.rb +72 -0
  2300. data/vendor/bundle/gems/thor-0.16.0/spec/register_spec.rb +135 -0
  2301. data/vendor/bundle/gems/thor-0.16.0/spec/runner_spec.rb +241 -0
  2302. data/vendor/bundle/gems/thor-0.16.0/spec/shell/basic_spec.rb +300 -0
  2303. data/vendor/bundle/gems/thor-0.16.0/spec/shell/color_spec.rb +81 -0
  2304. data/vendor/bundle/gems/thor-0.16.0/spec/shell/html_spec.rb +32 -0
  2305. data/vendor/bundle/gems/thor-0.16.0/spec/shell_spec.rb +47 -0
  2306. data/vendor/bundle/gems/thor-0.16.0/spec/spec_helper.rb +59 -0
  2307. data/vendor/bundle/gems/thor-0.16.0/spec/task_spec.rb +80 -0
  2308. data/vendor/bundle/gems/thor-0.16.0/spec/thor_spec.rb +418 -0
  2309. data/vendor/bundle/gems/thor-0.16.0/spec/util_spec.rb +196 -0
  2310. data/vendor/bundle/gems/thor-0.16.0/thor.gemspec +26 -0
  2311. data/vendor/bundle/gems/tilt-1.3.3/COPYING +18 -0
  2312. data/vendor/bundle/gems/tilt-1.3.3/Gemfile +2 -0
  2313. data/vendor/bundle/gems/tilt-1.3.3/README.md +208 -0
  2314. data/vendor/bundle/gems/tilt-1.3.3/Rakefile +80 -0
  2315. data/vendor/bundle/gems/tilt-1.3.3/TEMPLATES.md +516 -0
  2316. data/vendor/bundle/gems/tilt-1.3.3/bin/tilt +110 -0
  2317. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt.rb +190 -0
  2318. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/builder.rb +40 -0
  2319. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/coffee.rb +50 -0
  2320. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/css.rb +72 -0
  2321. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/erb.rb +110 -0
  2322. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/haml.rb +64 -0
  2323. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/liquid.rb +41 -0
  2324. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/markaby.rb +52 -0
  2325. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/markdown.rb +190 -0
  2326. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/nokogiri.rb +43 -0
  2327. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/radius.rb +51 -0
  2328. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/rdoc.rb +32 -0
  2329. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/string.rb +21 -0
  2330. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/template.rb +285 -0
  2331. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/textile.rb +25 -0
  2332. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/wiki.rb +50 -0
  2333. data/vendor/bundle/gems/tilt-1.3.3/lib/tilt/yajl.rb +94 -0
  2334. data/vendor/bundle/gems/tilt-1.3.3/test/contest.rb +68 -0
  2335. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/locals.mab +1 -0
  2336. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/markaby.mab +1 -0
  2337. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/markaby_other_static.mab +1 -0
  2338. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/render_twice.mab +1 -0
  2339. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/scope.mab +1 -0
  2340. data/vendor/bundle/gems/tilt-1.3.3/test/markaby/yielding.mab +2 -0
  2341. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_blueclothtemplate_test.rb +45 -0
  2342. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_buildertemplate_test.rb +59 -0
  2343. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_cache_test.rb +32 -0
  2344. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_coffeescripttemplate_test.rb +61 -0
  2345. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_compilesite_test.rb +51 -0
  2346. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_creoletemplate_test.rb +28 -0
  2347. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_erbtemplate_test.rb +234 -0
  2348. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_erubistemplate_test.rb +151 -0
  2349. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_fallback_test.rb +122 -0
  2350. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_hamltemplate_test.rb +144 -0
  2351. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_kramdown_test.rb +42 -0
  2352. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_lesstemplate_test.rb +26 -0
  2353. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_liquidtemplate_test.rb +78 -0
  2354. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_markaby_test.rb +88 -0
  2355. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_markdown_test.rb +161 -0
  2356. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_marukutemplate_test.rb +48 -0
  2357. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_nokogiritemplate_test.rb +87 -0
  2358. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_radiustemplate_test.rb +75 -0
  2359. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_rdiscounttemplate_test.rb +55 -0
  2360. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_rdoctemplate_test.rb +24 -0
  2361. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_redcarpettemplate_test.rb +59 -0
  2362. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_redclothtemplate_test.rb +24 -0
  2363. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_sasstemplate_test.rb +41 -0
  2364. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_stringtemplate_test.rb +170 -0
  2365. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_template_test.rb +154 -0
  2366. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_test.rb +65 -0
  2367. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_wikiclothtemplate_test.rb +32 -0
  2368. data/vendor/bundle/gems/tilt-1.3.3/test/tilt_yajltemplate_test.rb +92 -0
  2369. data/vendor/bundle/gems/tilt-1.3.3/tilt.gemspec +109 -0
  2370. data/vendor/bundle/specifications/actionpack-3.2.11.gemspec +57 -0
  2371. data/vendor/bundle/specifications/activemodel-3.2.11.gemspec +32 -0
  2372. data/vendor/bundle/specifications/activesupport-3.2.11.gemspec +33 -0
  2373. data/vendor/bundle/specifications/builder-3.0.4.gemspec +29 -0
  2374. data/vendor/bundle/specifications/erubis-2.7.0.gemspec +28 -0
  2375. data/vendor/bundle/specifications/hike-1.2.1.gemspec +25 -0
  2376. data/vendor/bundle/specifications/i18n-0.6.1.gemspec +38 -0
  2377. data/vendor/bundle/specifications/journey-1.0.4.gemspec +47 -0
  2378. data/vendor/bundle/specifications/json-1.7.6.gemspec +36 -0
  2379. data/vendor/bundle/specifications/multi_json-1.5.0.gemspec +41 -0
  2380. data/vendor/bundle/specifications/rack-1.4.4.gemspec +47 -0
  2381. data/vendor/bundle/specifications/rack-cache-1.2.gemspec +40 -0
  2382. data/vendor/bundle/specifications/rack-ssl-1.3.2.gemspec +29 -0
  2383. data/vendor/bundle/specifications/rack-test-0.6.2.gemspec +31 -0
  2384. data/vendor/bundle/specifications/railties-3.2.11.gemspec +47 -0
  2385. data/vendor/bundle/specifications/rake-10.0.3.gemspec +34 -0
  2386. data/vendor/bundle/specifications/rdoc-3.12.gemspec +51 -0
  2387. data/vendor/bundle/specifications/sprockets-2.2.2.gemspec +64 -0
  2388. data/vendor/bundle/specifications/thor-0.16.0.gemspec +50 -0
  2389. data/vendor/bundle/specifications/tilt-1.3.3.gemspec +97 -0
  2390. metadata +2472 -0
@@ -0,0 +1,209 @@
1
+ body {
2
+ background-color:#FFFFFF;
3
+ }
4
+
5
+ .mainbody {
6
+ color:#333333;
7
+ line-height:150%;
8
+ margin: 5px 30px 5px 30px;
9
+ }
10
+
11
+ a:link, a:active, a:hover {
12
+ color:#CC6600;
13
+ }
14
+
15
+ a:visited {
16
+ color:#DD9900;
17
+ }
18
+
19
+ p {
20
+ color:#333333;
21
+ line-height:150%;
22
+ }
23
+
24
+ pre {
25
+ width: 100%;
26
+ line-height:130%;
27
+ white-space:pre;
28
+ }
29
+
30
+ pre.program {
31
+ border-style:solid;
32
+ border-width:1px;
33
+ border-color:#6699FF;
34
+ color:#333333;
35
+ background-color:#DDEEFF;
36
+ padding:8px 9px 8px 9px;
37
+ margin:0px;
38
+ word-break:break-all;
39
+ }
40
+
41
+ pre.terminal {
42
+ border-style:solid;
43
+ border-width:1;
44
+ border-color:#999999;
45
+ color:#333333;
46
+ background-color:#E0E0E0;
47
+ padding:9px 10px 9px 10px;
48
+ margin:0px;
49
+ word-break:break-all;
50
+ }
51
+
52
+ pre.output {
53
+ border-style:solid;
54
+ border-width:1px;
55
+ border-color:#CCCCCC;
56
+ color:#333333;
57
+ background-color:#FFFFFF;
58
+ padding:8px 9px 8px 9px;
59
+ margin:0px;
60
+ word-break:break-all;
61
+ }
62
+
63
+
64
+ pre strong {
65
+ color: #990000;
66
+ font-weight: bold;
67
+ }
68
+
69
+
70
+ .program_caption {
71
+ margin-top: 20px;
72
+ }
73
+
74
+ .terminal_caption {
75
+ margin-top: 20px;
76
+ }
77
+
78
+ .output_caption {
79
+ margin-top: 20px;
80
+ }
81
+
82
+
83
+ ul,ol,dl {
84
+ /* margin:0px; */
85
+ /* padding:0px; */
86
+ color:#333333;
87
+ line-height:140%;
88
+ }
89
+
90
+ .dt2, .dt3 {
91
+ font-weight:bold;
92
+ }
93
+
94
+ .table1 {
95
+ padding:2px;
96
+ color:#333333;
97
+ background-color:#DDDDCC;
98
+ line-height:130%;
99
+ /*
100
+ border-width:1px;
101
+ border-style:solid;
102
+ border-color:#FFFFFF;
103
+ */
104
+ margin:5;
105
+ }
106
+
107
+ .th1, .th2 {
108
+ padding:1px;
109
+ color:#333333;
110
+ /* background-color:#DDDDCC; */
111
+ background-color:#CCCCBB;
112
+ line-height:130%;
113
+ }
114
+
115
+ .td1, .th2 {
116
+ padding:1px;
117
+ color:#333333;
118
+ background-color:#EEEEDD;
119
+ line-height:130%;
120
+ }
121
+
122
+ .caption1, .caption2 {
123
+ /* font-size:x-small; */
124
+ color:#333333;
125
+ }
126
+
127
+ .table2 {
128
+ padding:1px;
129
+ color:#333333;
130
+ background-color:#DDDDCC;
131
+ line-height:130%;
132
+ /*
133
+ border-width:1px;
134
+ border-style:solid;
135
+ border-color:#FFFFFF;
136
+ */
137
+ margin:5;
138
+ }
139
+
140
+ h1, .chapter, .doctitle {
141
+ color:#333333;
142
+ font-weight:bold;
143
+ padding:30px 0px 10px 0px;
144
+ }
145
+
146
+ h2, .section {
147
+ color:#333333;
148
+ font-weight:bold;
149
+ border-style:solid;
150
+ border-color:#6699FF;
151
+ border-width:0px 0px 2px 30px;
152
+ padding:10px 20px 0px 5px;
153
+ }
154
+
155
+ h3, .subsection {
156
+ color:#333333;
157
+ font-weight:bold;
158
+ border-style:solid;
159
+ border-color:#6699FF;
160
+ border-width: 0px 0px 0px 15px;
161
+ padding: 10px 20px 0px 5px;
162
+ }
163
+
164
+ .em {
165
+ font-weight:bold;
166
+ }
167
+
168
+ .toc {
169
+ /* font-size:small; */
170
+ /* line-height:100%; */
171
+ }
172
+
173
+ .footnote {
174
+ font-size:small;
175
+ }
176
+
177
+ div.note, div.tips {
178
+ background-color:#FFFFDD;
179
+ border-style:solid;
180
+ border-width:0px 1px 0px 1px;
181
+ border-color:#DDDD66;
182
+ color:#333300;
183
+ /* font-size:small; */
184
+ line-height:120%;
185
+ margin-top: 10px;
186
+ padding: 5px 20px 5px 20px;
187
+ }
188
+
189
+ div.note span.caption, div.tips span.caption {
190
+ color: #C60;
191
+ }
192
+
193
+ .figure {
194
+ /*
195
+ border-width:1px;
196
+ border-color:#DDDD66;
197
+ white-space:pre;
198
+ */
199
+ }
200
+
201
+ strong {
202
+ color: #630;
203
+ font-weight; bold;
204
+ }
205
+
206
+
207
+ em {
208
+ font-style: italic;
209
+ }
@@ -0,0 +1,3551 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html">
5
+ <title>Erubis Users' Guide</title>
6
+ <meta name="generator" content="kwaser">
7
+ <meta http-equiv="Content-Style-Type" content="text/css">
8
+ <link rel="stylesheet" href="docstyle.css" type="text/css">
9
+ </head>
10
+ <body>
11
+
12
+ <blockquote>
13
+ <div class="mainbody">
14
+
15
+ <div align="left"><h1>Erubis Users' Guide</h1></div>
16
+ <p>release: 2.7.0
17
+ </p>
18
+ <a name="preface"></a>
19
+ <h2 class="section1">Preface</h2>
20
+ <p>Erubis is an implementation of eRuby.
21
+ It has the following features.
22
+ </p>
23
+ <ul type="disc">
24
+ <li>Very fast, almost three times faster than ERB and about ten percent faster than eruby (implemented in C)
25
+ </li>
26
+ <li>File caching of converted Ruby script support
27
+ </li>
28
+ <li>Auto escaping support
29
+ </li>
30
+ <li>Auto trimming spaces around '&lt;% %&gt;'
31
+ </li>
32
+ <li>Embedded pattern changeable (default '&lt;% %&gt;')
33
+ </li>
34
+ <li>Enable to handle Processing Instructions (PI) as embedded pattern (ex. '&lt;?rb ... ?&gt;')
35
+ </li>
36
+ <li>Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)
37
+ </li>
38
+ <li>Context object available and easy to combine eRuby template with YAML datafile
39
+ </li>
40
+ <li>Print statement available
41
+ </li>
42
+ <li>Easy to expand and customize in subclass
43
+ </li>
44
+ <li><a href="#rails">Ruby on Rails support</a>
45
+ </li>
46
+ <li>mod_ruby support|#topcs-modruby
47
+ </li>
48
+ </ul>
49
+ <p>Erubis is implemented in pure Ruby. It requires Ruby 1.8 or higher.
50
+ Erubis now supports Ruby 1.9.
51
+ </p>
52
+ <a name="toc"></a>
53
+ <h3 class="section2">Table of Contents</h3>
54
+ <ul>
55
+ <li><a href="#preface">Preface</a>
56
+ <ul>
57
+ <li><a href="#toc">Table of Contents</a>
58
+ </li>
59
+ </ul>
60
+ </li>
61
+ <li><a href="#install">Installation</a>
62
+ </li>
63
+ <li><a href="#tutorial">Tutorial</a>
64
+ <ul>
65
+ <li><a href="#tut-basic">Basic Example</a>
66
+ </li>
67
+ <li><a href="#tut-trim">Trimming Spaces</a>
68
+ </li>
69
+ <li><a href="#tut-escape">Escape</a>
70
+ </li>
71
+ <li><a href="#tut-pattern">Embedded Pattern</a>
72
+ </li>
73
+ <li><a href="#tut-context">Context Object</a>
74
+ </li>
75
+ <li><a href="#tut-datafile">Context Data File</a>
76
+ </li>
77
+ <li><a href="#tut-datastr">Context Data String</a>
78
+ </li>
79
+ <li><a href="#tut-preamble">Preamble and Postamble</a>
80
+ </li>
81
+ <li><a href="#tut-pi">Processing Instruction (PI) Converter</a>
82
+ </li>
83
+ <li><a href="#tut-notext">Retrieve Ruby Code</a>
84
+ </li>
85
+ </ul>
86
+ </li>
87
+ <li><a href="#enhancer">Enhancer</a>
88
+ <ul>
89
+ <li><a href="#escape-enhancer">EscapeEnhancer</a>
90
+ </li>
91
+ <li><a href="#stdout-enhancer">StdoutEnhancer</a>
92
+ </li>
93
+ <li><a href="#printout-enhancer">PrintOutEnhancer</a>
94
+ </li>
95
+ <li><a href="#printenabled-enhancer">PrintEnabledEnhancer</a>
96
+ </li>
97
+ <li><a href="#array-enhancer">ArrayEnhancer</a>
98
+ </li>
99
+ <li><a href="#arraybuffer-enhancer">ArrayBufferEnhancer</a>
100
+ </li>
101
+ <li><a href="#stringbuffer-enhancer">StringBufferEnhancer</a>
102
+ </li>
103
+ <li><a href="#erbout-enhancer">ErboutEnhancer</a>
104
+ </li>
105
+ <li><a href="#notext-enhancer">NoTextEnhancer</a>
106
+ </li>
107
+ <li><a href="#nocode-enhancer">NoCodeEnhancer</a>
108
+ </li>
109
+ <li><a href="#simplify-enhancer">SimplifyEnhancer</a>
110
+ </li>
111
+ <li><a href="#bipattern-enhancer">BiPatternEnhancer</a>
112
+ </li>
113
+ <li><a href="#percentline-enhancer">PercentLineEnhancer</a>
114
+ </li>
115
+ <li><a href="#prefixedline-enhancer">PrefixedLineEnhancer</a>
116
+ </li>
117
+ <li><a href="#headerfooter-enhancer">HeaderFooterEnhancer</a>
118
+ </li>
119
+ <li><a href="#interpolation-enhancer">InterpolationEnhancer</a>
120
+ </li>
121
+ <li><a href="#deleteindent-enhancer">DeleteIndentEnhancer</a>
122
+ </li>
123
+ </ul>
124
+ </li>
125
+ <li><a href="#lang">Multi-Language Support</a>
126
+ <ul>
127
+ <li><a href="#lang-php">PHP</a>
128
+ </li>
129
+ <li><a href="#lang-c">C</a>
130
+ </li>
131
+ <li><a href="#lang-cpp">C++</a>
132
+ </li>
133
+ <li><a href="#lang-java">Java</a>
134
+ </li>
135
+ <li><a href="#lang-scheme">Scheme</a>
136
+ </li>
137
+ <li><a href="#lang-perl">Perl</a>
138
+ </li>
139
+ <li><a href="#lang-javascript">JavaScript</a>
140
+ </li>
141
+ </ul>
142
+ </li>
143
+ <li><a href="#rails">Ruby on Rails Support</a>
144
+ <ul>
145
+ <li><a href="#rails-settings">Settings</a>
146
+ </li>
147
+ <li><a href="#rails-preprocessing">Preprosessing</a>
148
+ </li>
149
+ <li><a href="#rails-formhelpers">Form Helpers for Preprocessing</a>
150
+ </li>
151
+ <li><a href="#rails-others">Others</a>
152
+ </li>
153
+ </ul>
154
+ </li>
155
+ <li><a href="#topics">Other Topics</a>
156
+ <ul>
157
+ <li><a href="#topics-fasteruby"><code>Erubis::FastEruby</code> Class</a>
158
+ </li>
159
+ <li><a href="#topics-bufvar"><code>:bufvar</code> Option</a>
160
+ </li>
161
+ <li><a href="#topics-trimspaces">'&lt;%= =%&gt;' and '&lt;%= -%&gt;'</a>
162
+ </li>
163
+ <li><a href="#topics-doublepercent">'&lt;%% %&gt;' and '&lt;%%= %&gt;'</a>
164
+ </li>
165
+ <li><a href="#topics-context-vs-binding">evaluate(context) v.s. result(binding)</a>
166
+ </li>
167
+ <li><a href="#topics-fasteruby">Class Erubis::FastEruby</a>
168
+ </li>
169
+ <li><a href="#topics-syntax">Syntax Checking</a>
170
+ </li>
171
+ <li><a href="#topics-caching">File Caching</a>
172
+ </li>
173
+ <li><a href="#topics-tinyeruby">Erubis::TinyEruby class</a>
174
+ </li>
175
+ <li><a href="#topics-php">NoTextEnhancer and NoCodeEnhancer in PHP</a>
176
+ </li>
177
+ <li><a href="#topcs-modruby">Helper Class for mod_ruby</a>
178
+ </li>
179
+ <li><a href="#topics-index-cgi">Helper CGI Script for Apache</a>
180
+ </li>
181
+ <li><a href="#topics-defmethod">Define method</a>
182
+ </li>
183
+ <li><a href="#topics-benchmark">Benchmark</a>
184
+ </li>
185
+ </ul>
186
+ </li>
187
+ <li><a href="#command">Command Reference</a>
188
+ <ul>
189
+ <li><a href="#command-usage">Usage</a>
190
+ </li>
191
+ <li><a href="#command-options">Options</a>
192
+ </li>
193
+ <li><a href="#command-props">Properties</a>
194
+ </li>
195
+ </ul>
196
+ </li>
197
+ </ul>
198
+ <br>
199
+
200
+
201
+ <br>
202
+
203
+
204
+ <a name="install"></a>
205
+ <h2 class="section1">Installation</h2>
206
+ <ul type="disc">
207
+ <li>If you have installed RubyGems, just type <code>gem install --remote erubis</code>.
208
+ <pre class="terminal">$ sudo gem install --remote erubis
209
+ </pre>
210
+ </li>
211
+ </ul>
212
+ <ul type="disc">
213
+ <li>Else install <a href="http://rubyforge.org/projects/erubis/">abstract</a> at first,
214
+ and download erubis_X.X.X.tar.bz2 and install it by setup.rb.
215
+ <pre class="terminal">$ tar xjf abstract_X.X.X.tar.bz2
216
+ $ cd abstract_X.X.X/
217
+ $ sudo ruby setup.rb
218
+ $ cd ..
219
+ $ tar xjf erubis_X.X.X.tar.bz2
220
+ $ cd erubis_X.X.X/
221
+ $ sudo ruby setup.rb
222
+ </pre>
223
+ </li>
224
+ </ul>
225
+ <ul type="disc">
226
+ <li>(Optional) 'contrib/inline-require' enables you to merge 'lib/**/*.rb' into 'bin/erubis'.
227
+ <pre class="terminal">$ tar xjf erubis_X.X.X.tar.bz2
228
+ $ cd erubis_X.X.X/
229
+ $ unset RUBYLIB
230
+ $ contrib/inline-require -I lib bin/erubis &gt; contrib/erubis
231
+ </pre>
232
+ </li>
233
+ </ul>
234
+ <br>
235
+
236
+
237
+ <a name="tutorial"></a>
238
+ <h2 class="section1">Tutorial</h2>
239
+ <a name="tut-basic"></a>
240
+ <h3 class="section2">Basic Example</h3>
241
+ <p>Here is a basic example of Erubis.
242
+ </p>
243
+ <a name="example1.eruby"></a>
244
+ <div class="program_caption">
245
+ example1.eruby</div>
246
+ <pre class="program">&lt;ul&gt;
247
+ <strong>&lt;% for item in list %&gt;</strong>
248
+ &lt;li&gt;<strong>&lt;%= item %&gt;</strong>&lt;/li&gt;
249
+ <strong>&lt;% end %&gt;</strong>
250
+ <strong>&lt;%# here is ignored because starting with '#' %&gt;</strong>
251
+ &lt;/ul&gt;
252
+ </pre>
253
+ <a name="example1.rb"></a>
254
+ <div class="program_caption">
255
+ example1.rb</div>
256
+ <pre class="program">require 'erubis'
257
+ input = File.read('example1.eruby')
258
+ eruby = <strong>Erubis::Eruby.new(input)</strong> # create Eruby object
259
+
260
+ puts "---------- script source ---"
261
+ puts <strong>eruby.src</strong> # print script source
262
+
263
+ puts "---------- result ----------"
264
+ list = ['aaa', 'bbb', 'ccc']
265
+ puts <strong>eruby.result(binding())</strong> # get result
266
+ ## or puts eruby.result(<strong>:list=&gt;list</strong>) # or pass Hash instead of Binding
267
+
268
+ ## # or
269
+ ## eruby = Erubis::Eruby.new
270
+ ## input = File.read('example1.eruby')
271
+ ## src = eruby.convert(input)
272
+ ## eval src
273
+ </pre>
274
+ <a name="example1.result"></a>
275
+ <div class="terminal_caption">
276
+ output</div>
277
+ <pre class="terminal">$ ruby example1.rb
278
+ ---------- script source ---
279
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
280
+ '; for item in list
281
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/li&gt;
282
+ '; end
283
+
284
+ _buf &lt;&lt; '&lt;/ul&gt;
285
+ ';
286
+ _buf.to_s
287
+ ---------- result ----------
288
+ &lt;ul&gt;
289
+ &lt;li&gt;aaa&lt;/li&gt;
290
+ &lt;li&gt;bbb&lt;/li&gt;
291
+ &lt;li&gt;ccc&lt;/li&gt;
292
+ &lt;/ul&gt;
293
+ </pre>
294
+ <p>Erubis has command 'erubis'. Command-line option '-x' shows the compiled source code of eRuby script.
295
+ </p>
296
+ <a name="example1_x.result"></a>
297
+ <div class="terminal_caption">
298
+ example of command-line option '-x'</div>
299
+ <pre class="terminal">$ erubis <strong>-x</strong> example1.eruby
300
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
301
+ '; for item in list
302
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/li&gt;
303
+ '; end
304
+
305
+ _buf &lt;&lt; '&lt;/ul&gt;
306
+ ';
307
+ _buf.to_s
308
+ </pre>
309
+ <br>
310
+
311
+
312
+ <a name="tut-trim"></a>
313
+ <h3 class="section2">Trimming Spaces</h3>
314
+ <p>Erubis deletes spaces around '&lt;% %&gt;' automatically, while it leaves spaces around '&lt;%= %&gt;'.
315
+ </p>
316
+ <a name="example2.eruby.comment_filter"></a>
317
+ <div class="program_caption">
318
+ example2.eruby</div>
319
+ <pre class="program">&lt;ul&gt;
320
+ &lt;% for item in list %&gt; # trimmed
321
+ &lt;li&gt;
322
+ &lt;%= item %&gt; # not trimmed
323
+ &lt;/li&gt;
324
+ &lt;% end %&gt; # trimmed
325
+ &lt;/ul&gt;
326
+ </pre>
327
+ <a name="example2_x.result"></a>
328
+ <div class="terminal_caption">
329
+ compiled source code</div>
330
+ <pre class="terminal">$ erubis -x example2.eruby
331
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
332
+ '; for item in list
333
+ _buf &lt;&lt; ' &lt;li&gt;
334
+ '; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '
335
+ '; _buf &lt;&lt; ' &lt;/li&gt;
336
+ '; end
337
+ _buf &lt;&lt; '&lt;/ul&gt;
338
+ ';
339
+ _buf.to_s
340
+ </pre>
341
+ <p>If you want leave spaces around '&lt;% %&gt;', add command-line property '--trim=false'.
342
+ </p>
343
+ <a name="example2_trim.result"></a>
344
+ <div class="terminal_caption">
345
+ compiled source code with command-line property '--trim=false'</div>
346
+ <pre class="terminal">$ erubis -x <strong>--trim=false</strong> example2.eruby
347
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
348
+ '; _buf &lt;&lt; ' '; for item in list ; _buf &lt;&lt; '
349
+ '; _buf &lt;&lt; ' &lt;li&gt;
350
+ '; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '
351
+ '; _buf &lt;&lt; ' &lt;/li&gt;
352
+ '; _buf &lt;&lt; ' '; end ; _buf &lt;&lt; '
353
+ '; _buf &lt;&lt; '&lt;/ul&gt;
354
+ ';
355
+ _buf.to_s
356
+ </pre>
357
+ <p>Or add option <code>:trim=&gt;false</code> to Erubis::Eruby.new().
358
+ </p>
359
+ <a name="example2.rb"></a>
360
+ <div class="program_caption">
361
+ example2.rb</div>
362
+ <pre class="program">require 'erubis'
363
+ input = File.read('example2.eruby')
364
+ eruby = Erubis::Eruby.new(input<strong>, :trim=&gt;false</strong>)
365
+
366
+ puts "----- script source ---"
367
+ puts eruby.src # print script source
368
+
369
+ puts "----- result ----------"
370
+ list = ['aaa', 'bbb', 'ccc']
371
+ puts eruby.result(binding()) # get result
372
+ </pre>
373
+ <a name="example2.result"></a>
374
+ <div class="terminal_caption">
375
+ output</div>
376
+ <pre class="terminal">$ ruby example2.rb
377
+ ----- script source ---
378
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
379
+ '; <strong>_buf &lt;&lt; ' ';</strong> for item in list ; _buf &lt;&lt; '
380
+ '; _buf &lt;&lt; ' &lt;li&gt;
381
+ '; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '
382
+ '; _buf &lt;&lt; ' &lt;/li&gt;
383
+ '; <strong>_buf &lt;&lt; ' ';</strong> end ; _buf &lt;&lt; '
384
+ '; _buf &lt;&lt; '&lt;/ul&gt;
385
+ ';
386
+ _buf.to_s
387
+ ----- result ----------
388
+ &lt;ul&gt;
389
+
390
+ &lt;li&gt;
391
+ aaa
392
+ &lt;/li&gt;
393
+
394
+ &lt;li&gt;
395
+ bbb
396
+ &lt;/li&gt;
397
+
398
+ &lt;li&gt;
399
+ ccc
400
+ &lt;/li&gt;
401
+
402
+ &lt;/ul&gt;
403
+ </pre>
404
+ <br>
405
+
406
+
407
+ <a name="tut-escape"></a>
408
+ <h3 class="section2">Escape</h3>
409
+ <p>Erubis has ability to escape (sanitize) expression.
410
+ Erubis::Eruby class act as the following:
411
+ </p>
412
+ <ul type="disc">
413
+ <li><code>&lt;%= <em>expr</em> %&gt;</code> - not escaped.
414
+ </li>
415
+ <li><code>&lt;%== <em>expr</em> %&gt;</code> - escaped.
416
+ </li>
417
+ <li><code>&lt;%=== <em>expr</em> %&gt;</code> - out to $stderr.
418
+ </li>
419
+ <li><code>&lt;%==== <em>expr</em> %&gt;</code> - ignored.
420
+ </li>
421
+ </ul>
422
+ <p>Erubis::EscapedEruby<sup>(<a href="#fnref:1" name="fnlink:1">*1</a>)</sup> class handle '&lt;%= %&gt;' as escaped and '&lt;%== %&gt;' as not escaped.
423
+ It means that using Erubis::EscapedEruby you can escape expression by default.
424
+ Also Erubis::XmlEruby class (which is equivalent to Erubis::EscapedEruby) is provided for compatibility with Erubis 1.1.
425
+ </p>
426
+ <a name="example3.eruby"></a>
427
+ <div class="program_caption">
428
+ example3.eruby</div>
429
+ <pre class="program">&lt;% for item in list %&gt;
430
+ &lt;p&gt;<strong>&lt;%=</strong> item <strong>%&gt;</strong>&lt;/p&gt;
431
+ &lt;p&gt;<strong>&lt;%==</strong> item <strong>%&gt;</strong>&lt;/p&gt;
432
+ &lt;p&gt;<strong>&lt;%===</strong> item <strong>%&gt;</strong>&lt;/p&gt;
433
+
434
+ &lt;% end %&gt;
435
+ </pre>
436
+ <a name="example3.rb"></a>
437
+ <div class="program_caption">
438
+ example3.rb</div>
439
+ <pre class="program">require 'erubis'
440
+ input = File.read('example3.eruby')
441
+ eruby = Erubis::<strong>EscapedEruby</strong>.new(input) # or Erubis::XmlEruby
442
+
443
+ puts "----- script source ---"
444
+ puts eruby.src # print script source
445
+
446
+ puts "----- result ----------"
447
+ <strong>list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"']</strong>
448
+ puts eruby.result(binding()) # get result
449
+ </pre>
450
+ <a name="example3.result.split_filter"></a>
451
+ <div class="terminal_caption">
452
+ output</div>
453
+ <pre class="terminal">$ ruby example3.rb 2&gt; stderr.log
454
+ ----- script source ---
455
+ _buf = ''; for item in list
456
+ _buf &lt;&lt; ' &lt;p&gt;'; <strong>_buf &lt;&lt; Erubis::XmlHelper.escape_xml( item )</strong>; _buf &lt;&lt; '&lt;/p&gt;
457
+ &lt;p&gt;'; <strong>_buf &lt;&lt; ( item ).to_s</strong>; _buf &lt;&lt; '&lt;/p&gt;
458
+ &lt;p&gt;'; <strong>$stderr.puts("*** debug: item=#{(item).inspect}")</strong>; _buf &lt;&lt; '&lt;/p&gt;
459
+
460
+ '; end
461
+ _buf.to_s
462
+ ----- result ----------
463
+ &lt;p&gt;<strong>&amp;lt;aaa&amp;gt;</strong>&lt;/p&gt;
464
+ &lt;p&gt;&lt;aaa&gt;&lt;/p&gt;
465
+ &lt;p&gt;&lt;/p&gt;
466
+
467
+ &lt;p&gt;<strong>b&amp;amp;b</strong>&lt;/p&gt;
468
+ &lt;p&gt;b&amp;b&lt;/p&gt;
469
+ &lt;p&gt;&lt;/p&gt;
470
+
471
+ &lt;p&gt;<strong>&amp;quot;ccc&amp;quot;</strong>&lt;/p&gt;
472
+ &lt;p&gt;"ccc"&lt;/p&gt;
473
+ &lt;p&gt;&lt;/p&gt;
474
+
475
+ $ cat stderr.log
476
+ *** debug: item="&lt;aaa&gt;"
477
+ *** debug: item="b&amp;b"
478
+ *** debug: item="\"ccc\""
479
+ </pre>
480
+ <p>The command-line option '-e' will do the same action as Erubis::EscapedEruby.
481
+ This option is available for any language.
482
+ </p>
483
+ <a name="example3_e.result"></a>
484
+ <pre class="terminal">$ erubis -l ruby <strong>-e</strong> example3.eruby
485
+ _buf = ''; for item in list
486
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
487
+ &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
488
+ &lt;p&gt;'; $stderr.puts("*** debug: item=#{(item).inspect}"); _buf &lt;&lt; '&lt;/p&gt;
489
+
490
+ '; end
491
+ _buf.to_s
492
+ </pre>
493
+ <p>Escaping function (default 'Erubis::XmlHelper.escape_xml()') can be changed by command-line property '--escapefunc=xxx' or by overriding Erubis::Eruby#escaped_expr() in subclass.
494
+ </p>
495
+ <div class="program_caption">
496
+ example to override Erubis::Eruby#escaped_expr()</div>
497
+ <pre class="program">class CGIEruby &lt; Erubis::Eruby
498
+ def <strong>escaped_expr(code)</strong>
499
+ return "CGI.escapeHTML((#{code.strip}).to_s)"
500
+ #return "h(#{code.strip})"
501
+ end
502
+ end
503
+
504
+ class LatexEruby &lt; Erubi::Eruby
505
+ def <strong>escaped_expr(code)</strong>
506
+ return "(#{code}).gsub(/[%\\]/,'\\\\\&amp;')"
507
+ end
508
+ end
509
+ </pre>
510
+ <div class="footnote">
511
+ <dl compact>
512
+ <dt>(<a name="fnref:1" href="#fnlink:1">*1</a>)</dt>
513
+ <dd>Erubis::EscapedEruby class includes Erubis::EscapeEnhancer which swtches the action of '&lt;%= %&gt;' and '&lt;%== %&gt;'.</dd>
514
+ </dl>
515
+ </div>
516
+ <br>
517
+
518
+
519
+ <a name="tut-pattern"></a>
520
+ <h3 class="section2">Embedded Pattern</h3>
521
+ <p>You can change embedded pattern '<code>&lt;% %&gt;</code>' to another by command-line option '-p' or option '<code>:pattern=&gt;...</code>' of Erubis::Eruby.new().
522
+ </p>
523
+ <a name="example4.eruby"></a>
524
+ <div class="program_caption">
525
+ example4.eruby</div>
526
+ <pre class="program"><strong>&lt;!--%</strong> for item in list <strong>%--&gt;</strong>
527
+ &lt;p&gt;<strong>&lt;!--%=</strong> item <strong>%--&gt;</strong>&lt;/p&gt;
528
+ <strong>&lt;!--%</strong> end <strong>%--&gt;</strong>
529
+ </pre>
530
+ <a name="example4_x.result"></a>
531
+ <div class="terminal_caption">
532
+ compiled source code with command-line option '-p'</div>
533
+ <pre class="terminal">$ erubis -x <strong>-p '&lt;!--% %--&gt;'</strong> example4.eruby
534
+ _buf = ''; for item in list
535
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
536
+ '; end
537
+ _buf.to_s
538
+ </pre>
539
+ <a name="example4.rb"></a>
540
+ <div class="program_caption">
541
+ example4.rb</div>
542
+ <pre class="program">require 'erubis'
543
+ input = File.read('example4.eruby')
544
+ eruby = Erubis::Eruby.new(input<strong>, :pattern=&gt;'&lt;!--% %--&gt;'</strong>)
545
+ # or '&lt;(?:!--)?% %(?:--)?&gt;'
546
+
547
+ puts "---------- script source ---"
548
+ puts eruby.src # print script source
549
+
550
+ puts "---------- result ----------"
551
+ list = ['aaa', 'bbb', 'ccc']
552
+ puts eruby.result(binding()) # get result
553
+ </pre>
554
+ <a name="example4.result"></a>
555
+ <div class="terminal_caption">
556
+ output</div>
557
+ <pre class="terminal">$ ruby example4.rb
558
+ ---------- script source ---
559
+ _buf = ''; for item in list
560
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
561
+ '; end
562
+ _buf.to_s
563
+ ---------- result ----------
564
+ &lt;p&gt;aaa&lt;/p&gt;
565
+ &lt;p&gt;bbb&lt;/p&gt;
566
+ &lt;p&gt;ccc&lt;/p&gt;
567
+ </pre>
568
+ <p>It is able to specify regular expression with :pattern option.
569
+ Notice that you must use '<code>(?: )</code>' instead of '<code>( )</code>' for grouping.
570
+ For example, '<code>&lt;(!--)?% %(--)?&gt;</code>' will not work while '<code>&lt;(?:!--)?% %(?:--)?&gt;</code>' will work.
571
+ </p>
572
+ <br>
573
+
574
+
575
+ <a name="tut-context"></a>
576
+ <h3 class="section2">Context Object</h3>
577
+ <p>Context object is a set of data which are used in eRuby script.
578
+ Using context object makes clear which data to be used.
579
+ In Erubis, Hash object and Erubis::Context object are available as context object.
580
+ </p>
581
+ <p>Context data can be accessible via instance variables in eRuby script.
582
+ </p>
583
+ <a name="example5.eruby"></a>
584
+ <div class="program_caption">
585
+ example5.eruby</div>
586
+ <pre class="program">&lt;span&gt;&lt;%= <strong>@val</strong> %&gt;&lt;/span&gt;
587
+ &lt;ul&gt;
588
+ &lt;% for item in <strong>@list</strong> %&gt;
589
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
590
+ &lt;% end %&gt;
591
+ &lt;/ul&gt;
592
+ </pre>
593
+ <a name="example5.rb"></a>
594
+ <div class="program_caption">
595
+ example5.rb</div>
596
+ <pre class="program">require 'erubis'
597
+ input = File.read('example5.eruby')
598
+ eruby = Erubis::Eruby.new(input) # create Eruby object
599
+
600
+ ## create context object
601
+ ## (key means var name, which may be string or symbol.)
602
+ <strong>context = {
603
+ :val =&gt; 'Erubis Example',
604
+ 'list' =&gt; ['aaa', 'bbb', 'ccc'],
605
+ }</strong>
606
+ ## or
607
+ # context = Erubis::Context.new()
608
+ # context['val'] = 'Erubis Example'
609
+ # context[:list] = ['aaa', 'bbb', 'ccc'],
610
+
611
+ puts <strong>eruby.evaluate(context)</strong> # get result
612
+ </pre>
613
+ <a name="example5.result"></a>
614
+ <div class="terminal_caption">
615
+ output</div>
616
+ <pre class="terminal">$ ruby example5.rb
617
+ &lt;span&gt;Erubis Example&lt;/span&gt;
618
+ &lt;ul&gt;
619
+ &lt;li&gt;aaa&lt;/li&gt;
620
+ &lt;li&gt;bbb&lt;/li&gt;
621
+ &lt;li&gt;ccc&lt;/li&gt;
622
+ &lt;/ul&gt;
623
+ </pre>
624
+ <p>The difference between Erubis#result(binding) and Erubis#evaluate(context) is that the former invokes 'eval @src, binding' and the latter invokes 'context.instance_eval @src'.
625
+ This means that data is passed into eRuby script via local variables when Eruby::binding() is called, or passed via instance variables when Eruby::evaluate() is called.
626
+ </p>
627
+ <p>Here is the definition of Erubis#result() and Erubis#evaluate().
628
+ </p>
629
+ <div class="program_caption">
630
+ definition of result(binding) and evaluate(context)</div>
631
+ <pre class="program">def result(_binding=TOPLEVEL_BINDING)
632
+ if _binding.is_a?(Hash)
633
+ # load hash data as local variable
634
+ _h = _binding
635
+ _binding = binding()
636
+ eval _h.collect{|k,v| "#{k} = _h[#{k.inspect}];"}.join, _binding
637
+ end
638
+ return <strong>eval(@src, _binding)</strong>
639
+ end
640
+
641
+ def evaluate(_context=Erubis::Context.new)
642
+ if _context.is_a?(Hash)
643
+ # convert hash object to Context object
644
+ _hash = _context
645
+ _context = Erubis::Context.new
646
+ _hash.each {|k, v| _context[k] = v }
647
+ end
648
+ return <strong>_context.instance_eval(@src)</strong>
649
+ end
650
+ </pre>
651
+ <p>instance_eval() is defined at Object class so it is able to use any object as a context object as well as Hash or Erubis::Context.
652
+ </p>
653
+ <a name="example6.rb"></a>
654
+ <div class="program_caption">
655
+ example6.rb</div>
656
+ <pre class="program">class MyData
657
+ attr_accessor :val, :list
658
+ end
659
+
660
+ ## any object can be a context object
661
+ <strong>mydata = MyData.new</strong>
662
+ <strong>mydata.val = 'Erubis Example'</strong>
663
+ <strong>mydata.list = ['aaa', 'bbb', 'ccc']</strong>
664
+
665
+ require 'erubis'
666
+ eruby = Erubis::Eruby.new(File.read('example5.eruby'))
667
+ puts eruby.evaluate(<strong>mydata</strong>)
668
+ </pre>
669
+ <a name="example6.result"></a>
670
+ <div class="terminal_caption">
671
+ output</div>
672
+ <pre class="terminal">$ ruby example6.rb
673
+ &lt;span&gt;Erubis Example&lt;/span&gt;
674
+ &lt;ul&gt;
675
+ &lt;li&gt;aaa&lt;/li&gt;
676
+ &lt;li&gt;bbb&lt;/li&gt;
677
+ &lt;li&gt;ccc&lt;/li&gt;
678
+ &lt;/ul&gt;
679
+ </pre>
680
+ <p>It is recommended to use 'Erubis::Eruby#evaluate(context)' rather than 'Erubis::Eruby#result(binding())' because the latter has some problems.
681
+ See <a href="#topics-context-vs-binding">evaluate(context) v.s. result(binding)</a> section for details.
682
+ </p>
683
+ <br>
684
+
685
+
686
+ <a name="tut-datafile"></a>
687
+ <h3 class="section2">Context Data File</h3>
688
+ <p>Command-line option '-f' specifies context data file.
689
+ Erubis load context data file and use it as context data.
690
+ Context data file can be YAML file ('*.yaml' or '*.yml') or Ruby script ('*.rb').
691
+ </p>
692
+ <a name="example7.eruby"></a>
693
+ <div class="program_caption">
694
+ example7.eruby</div>
695
+ <pre class="program">&lt;h1&gt;&lt;%= <strong>@title</strong> %&gt;&lt;/h1&gt;
696
+ &lt;ul&gt;
697
+ &lt;% for user in <strong>@users</strong> %&gt;
698
+ &lt;li&gt;
699
+ &lt;a href="mailto:&lt;%= user['mail']%&gt;"&gt;&lt;%= user['name'] %&gt;&lt;/a&gt;
700
+ &lt;/li&gt;
701
+ &lt;% end %&gt;
702
+ &lt;/ul&gt;
703
+ </pre>
704
+ <a name="context.yaml"></a>
705
+ <div class="program_caption">
706
+ context.yaml</div>
707
+ <pre class="program"><strong>title:</strong> Users List
708
+ <strong>users:</strong>
709
+ - name: foo
710
+ mail: foo@mail.com
711
+ - name: bar
712
+ mail: bar@mail.net
713
+ - name: baz
714
+ mail: baz@mail.org
715
+ </pre>
716
+ <a name="context.rb"></a>
717
+ <div class="program_caption">
718
+ context.rb</div>
719
+ <pre class="program">@title = 'Users List'
720
+ @users = [
721
+ { 'name'=&gt;'foo', 'mail'=&gt;'foo@mail.com' },
722
+ { 'name'=&gt;'bar', 'mail'=&gt;'bar@mail.net' },
723
+ { 'name'=&gt;'baz', 'mail'=&gt;'baz@mail.org' },
724
+ ]
725
+ </pre>
726
+ <a name="example7.result.split_filter"></a>
727
+ <div class="terminal_caption">
728
+ example of command-line option '-f'</div>
729
+ <pre class="terminal">$ erubis <strong>-f context.yaml</strong> example7.eruby
730
+ &lt;h1&gt;Users List&lt;/h1&gt;
731
+ &lt;ul&gt;
732
+ &lt;li&gt;
733
+ &lt;a href="mailto:foo@mail.com"&gt;foo&lt;/a&gt;
734
+ &lt;/li&gt;
735
+ &lt;li&gt;
736
+ &lt;a href="mailto:bar@mail.net"&gt;bar&lt;/a&gt;
737
+ &lt;/li&gt;
738
+ &lt;li&gt;
739
+ &lt;a href="mailto:baz@mail.org"&gt;baz&lt;/a&gt;
740
+ &lt;/li&gt;
741
+ &lt;/ul&gt;
742
+ $ erubis <strong>-f context.rb</strong> example7.eruby
743
+ &lt;h1&gt;Users List&lt;/h1&gt;
744
+ &lt;ul&gt;
745
+ &lt;li&gt;
746
+ &lt;a href="mailto:foo@mail.com"&gt;foo&lt;/a&gt;
747
+ &lt;/li&gt;
748
+ &lt;li&gt;
749
+ &lt;a href="mailto:bar@mail.net"&gt;bar&lt;/a&gt;
750
+ &lt;/li&gt;
751
+ &lt;li&gt;
752
+ &lt;a href="mailto:baz@mail.org"&gt;baz&lt;/a&gt;
753
+ &lt;/li&gt;
754
+ &lt;/ul&gt;
755
+ </pre>
756
+ <p>Command-line option '-S' converts keys of mapping in YAML data file from string into symbol.
757
+ Command-line option '-B' invokes 'Erubis::Eruby#result(binding())' instead of 'Erubis::Eruby#evaluate(context)'.
758
+ </p>
759
+ <br>
760
+
761
+
762
+ <a name="tut-datastr"></a>
763
+ <h3 class="section2">Context Data String</h3>
764
+ <p>Command-line option '-c <em>str</em>' enables you to specify context data in command-line.
765
+ <em>str</em> can be YAML flow-style or Ruby code.
766
+ </p>
767
+ <a name="example8.eruby"></a>
768
+ <div class="program_caption">
769
+ example8.eruby</div>
770
+ <pre class="program">&lt;h1&gt;&lt;%= @title %&gt;&lt;/h1&gt;
771
+ &lt;ul&gt;
772
+ &lt;% for item in @list %&gt;
773
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
774
+ &lt;% end %&gt;
775
+ &lt;/ul&gt;
776
+ </pre>
777
+ <a name="example8_yaml.result"></a>
778
+ <div class="terminal_caption">
779
+ example of YAML flow style</div>
780
+ <pre class="terminal">$ erubis <strong>-c '{title: Example, list: [AAA, BBB, CCC]}'</strong> example8.eruby
781
+ &lt;h1&gt;Example&lt;/h1&gt;
782
+ &lt;ul&gt;
783
+ &lt;li&gt;AAA&lt;/li&gt;
784
+ &lt;li&gt;BBB&lt;/li&gt;
785
+ &lt;li&gt;CCC&lt;/li&gt;
786
+ &lt;/ul&gt;
787
+ </pre>
788
+ <a name="example8_ruby.result"></a>
789
+ <div class="terminal_caption">
790
+ example of Ruby code</div>
791
+ <pre class="terminal">$ erubis <strong>-c '@title="Example"; @list=%w[AAA BBB CCC]'</strong> example8.eruby
792
+ &lt;h1&gt;Example&lt;/h1&gt;
793
+ &lt;ul&gt;
794
+ &lt;li&gt;AAA&lt;/li&gt;
795
+ &lt;li&gt;BBB&lt;/li&gt;
796
+ &lt;li&gt;CCC&lt;/li&gt;
797
+ &lt;/ul&gt;
798
+ </pre>
799
+ <br>
800
+
801
+
802
+ <a name="tut-preamble"></a>
803
+ <h3 class="section2">Preamble and Postamble</h3>
804
+ <p>The first line ('_buf = '';') in the compiled source code is called preamble
805
+ and the last line ('_buf.to_s') is called postamble.
806
+ </p>
807
+ <p>Command-line option '-b' skips the output of preamble and postamble.
808
+ </p>
809
+ <a name="example9.eruby"></a>
810
+ <div class="program_caption">
811
+ example9.eruby</div>
812
+ <pre class="program">&lt;% for item in @list %&gt;
813
+ &lt;b&gt;&lt;%= item %&gt;&lt;/b&gt;
814
+ &lt;% end %&gt;
815
+ </pre>
816
+ <a name="example9.result.split_filter"></a>
817
+ <div class="terminal_caption">
818
+ compiled source code with and without command-line option '-b'</div>
819
+ <pre class="terminal">$ erubis -x example9.eruby
820
+ <strong>_buf = '';</strong> for item in @list
821
+ _buf &lt;&lt; ' &lt;b&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/b&gt;
822
+ '; end
823
+ <strong>_buf.to_s</strong>
824
+ $ erubis -x <strong>-b</strong> example9.eruby
825
+ for item in @list
826
+ _buf &lt;&lt; ' &lt;b&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/b&gt;
827
+ '; end
828
+ </pre>
829
+ <p>Erubis::Eruby.new option '<code>:preamble=&gt;false</code>' and '<code>:postamble=&gt;false</code>' also suppress output of preamble or postamle.
830
+ </p>
831
+ <a name="example9.rb"></a>
832
+ <div class="program_caption">
833
+ example9.rb</div>
834
+ <pre class="program">require 'erubis'
835
+ input = File.read('example9.eruby')
836
+ eruby1 = Erubis::Eruby.new(input)
837
+ eruby2 = Erubis::Eruby.new(input, <strong>:preamble=&gt;false, :postamble=&gt;false</strong>)
838
+
839
+ puts eruby1.src # print preamble and postamble
840
+ puts "--------------"
841
+ puts eruby2.src # don't print preamble and postamble
842
+ </pre>
843
+ <a name="example9.result"></a>
844
+ <div class="terminal_caption">
845
+ output</div>
846
+ <pre class="terminal">$ ruby example9.rb
847
+ _buf = ''; for item in @list
848
+ _buf &lt;&lt; ' &lt;b&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/b&gt;
849
+ '; end
850
+ _buf.to_s
851
+ --------------
852
+ for item in @list
853
+ _buf &lt;&lt; ' &lt;b&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/b&gt;
854
+ '; end
855
+ </pre>
856
+ <br>
857
+
858
+
859
+ <a name="tut-pi"></a>
860
+ <h3 class="section2">Processing Instruction (PI) Converter</h3>
861
+ <p>Erubis can parse Processing Instructions (PI) as embedded pattern.
862
+ </p>
863
+ <ul type="disc">
864
+ <li>'<code>&lt;?rb <em>...</em> ?&gt;</code>' represents Ruby statement.
865
+ </li>
866
+ <li>'<code>@{<em>...</em>}@</code>' represents escaped expression value.
867
+ </li>
868
+ <li>'<code>@!{<em>...</em>}@</code>' represents normal expression value.
869
+ </li>
870
+ <li>'<code>@!!{<em>...</em>}@</code>' prints expression value to standard output.
871
+ </li>
872
+ <li>(experimental) '<code>&lt;%= <em>...</em> %&gt;</code>' is also available to print expression value.
873
+ </li>
874
+ </ul>
875
+ <p>This is more useful than basic embedded pattern ('<code>&lt;% ... &gt;</code>') because PI doesn't break XML or HTML at all.
876
+ For example the following XHTML file is well-formed and HTML validator got no errors on this example.
877
+ </p>
878
+ <a name="example10.xhtml"></a>
879
+ <div class="program_caption">
880
+ example10.xhtml</div>
881
+ <pre class="program">&lt;?xml version="1.0" ?&gt;
882
+ <strong>&lt;?rb
883
+ lang = 'en'
884
+ list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"']
885
+ ?&gt;</strong>
886
+ &lt;html lang="<strong>@!{lang}@</strong>"&gt;
887
+ &lt;body&gt;
888
+ &lt;ul&gt;
889
+ <strong>&lt;?rb for item in list ?&gt;</strong>
890
+ &lt;li&gt;<strong>@{item}@</strong>&lt;/li&gt;
891
+ <strong>&lt;?rb end ?&gt;</strong>
892
+ &lt;/ul&gt;
893
+ &lt;/body&gt;
894
+ &lt;/html&gt;
895
+ </pre>
896
+ <p>If the command-line property '--pi=<em>name</em>' is specified, erubis command parses input with PI converter.
897
+ If <em>name</em> is omitted then the following name is used according to '-l <em>lang</em>'.
898
+ </p>
899
+ <div align="center">
900
+ <table class="table1" border="1" cellspacing="0">
901
+ <tr class="tr1">
902
+ <th class="th1">'-l' option</th>
903
+ <th class="th1">PI name</th>
904
+ </tr>
905
+ <tr class="tr1">
906
+ <td class="td1">-l ruby</td>
907
+ <td class="td1">&lt;?rb ... ?&gt;</td>
908
+ </tr>
909
+ <tr class="tr1">
910
+ <td class="td1">-l php</td>
911
+ <td class="td1">&lt;?php ... ?&gt;</td>
912
+ </tr>
913
+ <tr class="tr1">
914
+ <td class="td1">-l perl</td>
915
+ <td class="td1">&lt;?perl ... ?&gt;</td>
916
+ </tr>
917
+ <tr class="tr1">
918
+ <td class="td1">-l java</td>
919
+ <td class="td1">&lt;?java ... ?&gt;</td>
920
+ </tr>
921
+ <tr class="tr1">
922
+ <td class="td1">-l javascript</td>
923
+ <td class="td1">&lt;?js ... ?&gt;</td>
924
+ </tr>
925
+ <tr class="tr1">
926
+ <td class="td1">-l scheme</td>
927
+ <td class="td1">&lt;?scheme ... ?&gt;</td>
928
+ </tr>
929
+ </table>
930
+ </div>
931
+ <a name="example10_x.result"></a>
932
+ <div class="terminal_caption">
933
+ output</div>
934
+ <pre class="terminal">$ erubis -x <strong>--pi</strong> example10.xhtml
935
+ _buf = ''; _buf &lt;&lt; '&lt;?xml version="1.0" ?&gt;
936
+ ';
937
+ lang = 'en'
938
+ list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"']
939
+
940
+ _buf &lt;&lt; '&lt;html lang="'; _buf &lt;&lt; (lang).to_s; _buf &lt;&lt; '"&gt;
941
+ &lt;body&gt;
942
+ &lt;ul&gt;
943
+ '; for item in list
944
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml(item); _buf &lt;&lt; '&lt;/li&gt;
945
+ '; end
946
+ _buf &lt;&lt; ' &lt;/ul&gt;
947
+ &lt;/body&gt;
948
+ &lt;/html&gt;
949
+ ';
950
+ _buf.to_s
951
+ </pre>
952
+ <p>Expression character can be changeable by command-line property '--embchar=<em>char</em>. Default is '<code>@</code>'.
953
+ </p>
954
+ <p>Use Erubis::PI::Eruby instead of Erubis::Eruby if you want to use PI as embedded pattern.
955
+ </p>
956
+ <a name="example10.rb"></a>
957
+ <div class="program_caption">
958
+ example10.rb</div>
959
+ <pre class="program">require 'erubis'
960
+ input = File.read('example10.xhtml')
961
+ eruby = Erubis::PI::Eruby.new(input)
962
+ print eruby.src
963
+ </pre>
964
+ <a name="example10.result"></a>
965
+ <div class="terminal_caption">
966
+ output</div>
967
+ <pre class="terminal">$ ruby example10.rb
968
+ _buf = ''; _buf &lt;&lt; '&lt;?xml version="1.0" ?&gt;
969
+ ';
970
+ lang = 'en'
971
+ list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"']
972
+
973
+ _buf &lt;&lt; '&lt;html lang="'; _buf &lt;&lt; (lang).to_s; _buf &lt;&lt; '"&gt;
974
+ &lt;body&gt;
975
+ &lt;ul&gt;
976
+ '; for item in list
977
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml(item); _buf &lt;&lt; '&lt;/li&gt;
978
+ '; end
979
+ _buf &lt;&lt; ' &lt;/ul&gt;
980
+ &lt;/body&gt;
981
+ &lt;/html&gt;
982
+ ';
983
+ _buf.to_s
984
+ </pre>
985
+ <p><strong>(experimental)</strong> Erubis supports '&lt;%= ... %&gt;' pattern with PI pattern.
986
+ </p>
987
+ <div class="program_caption">
988
+ example of Rails view template</div>
989
+ <pre class="program">&lt;table&gt;
990
+ &lt;tr&gt;
991
+ &lt;?rb for item in @list ?&gt;
992
+ &lt;td&gt;@{item.id}@&lt;/td&gt;
993
+ &lt;td&gt;@{item.name}@&lt;/td&gt;
994
+ &lt;td&gt;
995
+ <strong>&lt;%=</strong> link_to 'Destroy', {:action=&gt;'destroy', :id=&gt;item.id},
996
+ :confirm=&gt;'Are you OK?' <strong>%&gt;</strong>
997
+ &lt;/td&gt;
998
+ &lt;?rb end ?&gt;
999
+ &lt;/tr&gt;
1000
+ &lt;/table&gt;
1001
+ </pre>
1002
+ <br>
1003
+
1004
+
1005
+ <a name="tut-notext"></a>
1006
+ <h3 class="section2">Retrieve Ruby Code</h3>
1007
+ <p>Similar to '-x', ommand-line option '-X' shows converted Ruby source code.
1008
+ The difference between '-x' and 'X' is that the former converts text part but the latter ignores it.
1009
+ It means that you can retrieve Ruby code from eRuby script by '-X' option.
1010
+ </p>
1011
+ <p>For example, see the following eRuby script.
1012
+ This is some complex, so it is difficult to grasp the program code.
1013
+ </p>
1014
+ <a name="example11.rhtml"></a>
1015
+ <div class="program_caption">
1016
+ example11.rhtml</div>
1017
+ <pre class="program">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
1018
+ &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
1019
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
1020
+ &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
1021
+ &lt;body&gt;
1022
+ &lt;h3&gt;List&lt;/h3&gt;
1023
+ &lt;% if @list.nil? || @list.empty? %&gt;
1024
+ &lt;p&gt;not found.&lt;/p&gt;
1025
+ &lt;% else %&gt;
1026
+ &lt;table&gt;
1027
+ &lt;tbody&gt;
1028
+ &lt;% @list.each_with_index do |item, i| %&gt;
1029
+ &lt;tr bgcolor="&lt;%= i % 2 == 0 ? '#FCC' : '#CCF' %&gt;"&gt;
1030
+ &lt;td&gt;&lt;%= item %&gt;&lt;/td&gt;
1031
+ &lt;/tr&gt;
1032
+ &lt;% end %&gt;
1033
+ &lt;/tbody&gt;
1034
+ &lt;/table&gt;
1035
+ &lt;% end %&gt;
1036
+ &lt;/body&gt;
1037
+ &lt;/html&gt;
1038
+ </pre>
1039
+ <p>Command-line option '-X' extracts only the ruby code from eRuby script.
1040
+ </p>
1041
+ <a name="example11.result"></a>
1042
+ <div class="terminal_caption">
1043
+ result</div>
1044
+ <pre class="terminal">$ erubis <strong>-X</strong> example11.rhtml
1045
+ _buf = '';
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+ if @list.nil? || @list.empty?
1052
+
1053
+ else
1054
+
1055
+
1056
+ @list.each_with_index do |item, i|
1057
+ _buf &lt;&lt; ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
1058
+ _buf &lt;&lt; ( item ).to_s;
1059
+
1060
+ end
1061
+
1062
+
1063
+ end
1064
+
1065
+
1066
+ _buf.to_s
1067
+ </pre>
1068
+ <p>Command-line option '-C' (<strong>c</strong>mpact) deletes empty lines.
1069
+ </p>
1070
+ <a name="example11_C.result"></a>
1071
+ <div class="terminal_caption">
1072
+ result</div>
1073
+ <pre class="terminal">$ erubis <strong>-XC</strong> example11.rhtml
1074
+ _buf = '';
1075
+ if @list.nil? || @list.empty?
1076
+ else
1077
+ @list.each_with_index do |item, i|
1078
+ _buf &lt;&lt; ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
1079
+ _buf &lt;&lt; ( item ).to_s;
1080
+ end
1081
+ end
1082
+ _buf.to_s
1083
+ </pre>
1084
+ <p>Option '-U' (<strong>u</strong>nique) converts empty lines into a line.
1085
+ </p>
1086
+ <a name="example11_U.result"></a>
1087
+ <div class="terminal_caption">
1088
+ result</div>
1089
+ <pre class="terminal">$ erubis <strong>-XU</strong> example11.rhtml
1090
+ _buf = '';
1091
+
1092
+ if @list.nil? || @list.empty?
1093
+
1094
+ else
1095
+
1096
+ @list.each_with_index do |item, i|
1097
+ _buf &lt;&lt; ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
1098
+ _buf &lt;&lt; ( item ).to_s;
1099
+
1100
+ end
1101
+
1102
+ end
1103
+
1104
+ _buf.to_s
1105
+ </pre>
1106
+ <p>Option '-N' (<strong>n</strong>umber) adds line number.
1107
+ It is available with '-C' or '-U'.
1108
+ </p>
1109
+ <a name="example11_N.result"></a>
1110
+ <div class="terminal_caption">
1111
+ result</div>
1112
+ <pre class="terminal">$ erubis <strong>-XNU</strong> example11.rhtml
1113
+ 1: _buf = '';
1114
+
1115
+ 7: if @list.nil? || @list.empty?
1116
+
1117
+ 9: else
1118
+
1119
+ 12: @list.each_with_index do |item, i|
1120
+ 13: _buf &lt;&lt; ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
1121
+ 14: _buf &lt;&lt; ( item ).to_s;
1122
+
1123
+ 16: end
1124
+
1125
+ 19: end
1126
+
1127
+ 22: _buf.to_s
1128
+ </pre>
1129
+ <p>Command-line option '-X' is available with PHP script.
1130
+ </p>
1131
+ <a name="example11.php"></a>
1132
+ <div class="program_caption">
1133
+ example11.php</div>
1134
+ <pre class="program">&lt;?xml version="1.0"?&gt;
1135
+ &lt;html&gt;
1136
+ &lt;body&gt;
1137
+ &lt;h3&gt;List&lt;/h3&gt;
1138
+ &lt;?php if (!$list) { ?&gt;
1139
+ &lt;p&gt;not found.&lt;/p&gt;
1140
+ &lt;?php } else { ?&gt;
1141
+ &lt;table&gt;
1142
+ &lt;tbody&gt;
1143
+ &lt;?php $i = 0; ?&gt;
1144
+ &lt;?php foreach ($list as $item) { ?&gt;
1145
+ &lt;tr bgcolor="&lt;?php echo ++$i % 2 == 1 ? '#FCC' : '#CCF'; ?&gt;"&gt;
1146
+ &lt;td&gt;&lt;?php echo $item; ?&gt;&lt;/td&gt;
1147
+ &lt;/tr&gt;
1148
+ &lt;?php } ?&gt;
1149
+ &lt;/tbody&gt;
1150
+ &lt;/table&gt;
1151
+ &lt;?php } ?&gt;
1152
+ &lt;/body&gt;
1153
+ &lt;/html&gt;
1154
+ </pre>
1155
+ <a name="example11_php.result"></a>
1156
+ <div class="terminal_caption">
1157
+ result</div>
1158
+ <pre class="terminal">$ erubis -XNU <strong>-l php</strong> <strong>--pi=php</strong> --trim=false example11.php
1159
+
1160
+ 5: &lt;?php if (!$list) { ?&gt;
1161
+
1162
+ 7: &lt;?php } else { ?&gt;
1163
+
1164
+ 10: &lt;?php $i = 0; ?&gt;
1165
+ 11: &lt;?php foreach ($list as $item) { ?&gt;
1166
+ 12: &lt;?php echo ++$i % 2 == 1 ? '#FCC' : '#CCF'; ?&gt;
1167
+ 13: &lt;?php echo $item; ?&gt;
1168
+
1169
+ 15: &lt;?php } ?&gt;
1170
+
1171
+ 18: &lt;?php } ?&gt;
1172
+
1173
+ </pre>
1174
+ <br>
1175
+
1176
+
1177
+ <br>
1178
+
1179
+
1180
+ <a name="enhancer"></a>
1181
+ <h2 class="section1">Enhancer</h2>
1182
+ <p>Enhancer is a module to add a certain feature into Erubis::Eruby class.
1183
+ Enhancer may be language-independent or only for Erubis::Eruby class.
1184
+ </p>
1185
+ <p>To use enhancers, define subclass and include them.
1186
+ The folloing is an example to use <a href="#escape-enhancer">EscapeEnhancer</a>, <a href="#percentline-enhancer">PercentLineEnhancer</a>, and <a href="#bipattern-enhancer">BiPatternEnhancer</a>.
1187
+ </p>
1188
+ <pre class="program">class MyEruby &lt; Erubis::Eruby
1189
+ include EscapeEnhancer
1190
+ include PercentLineEnhancer
1191
+ include BiPatternEnhancer
1192
+ end
1193
+ </pre>
1194
+ <p>You can specify enhancers in command-line with option '-E'.
1195
+ The following is an example to use some enhancers in command-line.
1196
+ </p>
1197
+ <pre class="terminal">$ erubis -xE Escape,PercentLine,BiPattern example.eruby
1198
+ </pre>
1199
+ <p>The following is the list of enhancers.
1200
+ </p>
1201
+ <dl class="dl1">
1202
+ <dt class="dt1">
1203
+ <a href="#escape-enhancer">EscapeEnhander</a> (language-independent)</dt>
1204
+ <dd class="dd1">
1205
+ Switch '&lt;%= %&gt;' to escaped and '&lt;%== %&gt;' to unescaped.
1206
+ </dd>
1207
+ <dt class="dt1">
1208
+ <a href="#stdout-enhancer">StdoutEnhancer</a> (only for Eruby)</dt>
1209
+ <dd class="dd1">
1210
+ Use $stdout instead of array buffer.
1211
+ </dd>
1212
+ <dt class="dt1">
1213
+ <a href="#printout-enhancer">PrintOutEnhancer</a> (only for Eruby)</dt>
1214
+ <dd class="dd1">
1215
+ Use "print(...)" statement insead of "_buf &lt;&lt; ...".
1216
+ </dd>
1217
+ <dt class="dt1">
1218
+ <a href="#printenabled-enhancer">PrintEnabledEnhancer</a> (only for Eruby)</dt>
1219
+ <dd class="dd1">
1220
+ Enable to use print() in '&lt;% ... %&gt;'.
1221
+ </dd>
1222
+ <dt class="dt1">
1223
+ <a href="#array-enhancer">ArrayEnhancer</a> (only for Eruby)</dt>
1224
+ <dd class="dd1">
1225
+ Return array of string instead of returning string.
1226
+ </dd>
1227
+ <dt class="dt1">
1228
+ <a href="#arraybuffer-enhancer">ArrayBufferEnhancer</a> (only for Eruby)</dt>
1229
+ <dd class="dd1">
1230
+ Use array buffer. It is a little slower than StringBufferEnhancer.
1231
+ </dd>
1232
+ <dt class="dt1">
1233
+ <a href="#stringbuffer-enhancer">StringBufferEnhancer</a> (only for Eruby)</dt>
1234
+ <dd class="dd1">
1235
+ Use string buffer. This is included in Erubis::Eruby by default.
1236
+ </dd>
1237
+ <dt class="dt1">
1238
+ <a href="#erbout-enhancer">ErboutEnhancer</a> (only for Eruby)</dt>
1239
+ <dd class="dd1">
1240
+ Set '_erbout = _buf = "";' to be compatible with ERB.
1241
+ </dd>
1242
+ <dt class="dt1">
1243
+ <a href="#notext-enhancer">NoTextEnhancer</a> (language-independent)</dt>
1244
+ <dd class="dd1">
1245
+ Print embedded code only and ignore normal text.
1246
+ </dd>
1247
+ <dt class="dt1">
1248
+ <a href="#nocode-enhancer">NoCodeEnhancer</a> (language-independent)</dt>
1249
+ <dd class="dd1">
1250
+ Print normal text only and ignore code.
1251
+ </dd>
1252
+ <dt class="dt1">
1253
+ <a href="#simplify-enhancer">SimplifyEnhancer</a> (language-independent)</dt>
1254
+ <dd class="dd1">
1255
+ Make compile faster but don't trim spaces around '&lt;% %&gt;'.
1256
+ </dd>
1257
+ <dt class="dt1">
1258
+ <a href="#bipattern-enhancer">BiPatternEnhancer</a> (language-independent)</dt>
1259
+ <dd class="dd1">
1260
+ [experimental] Enable to use another embedded pattern with '&lt;% %&gt;'.
1261
+ </dd>
1262
+ <dt class="dt1">
1263
+ <a href="#percentline-enhancer">PercentLineEnhancer</a> (language-independent)</dt>
1264
+ <dd class="dd1">
1265
+ Regard lines starting with '%' as Ruby code. This is for compatibility with eruby and ERB.
1266
+ </dd>
1267
+ <dt class="dt1">
1268
+ <a href="#headerfooter-enhancer">HeaderFooterEnhancer</a> (language-independent)</dt>
1269
+ <dd class="dd1">
1270
+ [experimental] Enable you to add header and footer in eRuby script.
1271
+ </dd>
1272
+ <dt class="dt1">
1273
+ <a href="#interpolation-enhancer">InterpolationEnhancer</a> (only for Eruby)</dt>
1274
+ <dd class="dd1">
1275
+ [experimental] convert '&lt;p&gt;&lt;%= text %&gt;&lt;/p&gt;' into '_buf &lt;&lt; %Q`&lt;p&gt;#{text}&lt;/p&gt;`'.
1276
+ </dd>
1277
+ <dt class="dt1">
1278
+ <a href="#deleteindent-enhancer">DeleteIndentEnhancer</a> (language-independent)</dt>
1279
+ <dd class="dd1">
1280
+ [experimental] delete indentation of HTML file and eliminate page size.
1281
+ </dd>
1282
+ </dl>
1283
+ <p>If you required 'erubis/engine/enhanced', Eruby subclasses which include each enhancers are defined.
1284
+ For example, class BiPatternEruby includes BiPatternEnhancer.
1285
+ </p>
1286
+ <a name="escape-enhancer"></a>
1287
+ <h3 class="section2">EscapeEnhancer</h3>
1288
+ <p>EscapeEnhancer switches '&lt;%= ... %&gt;' to escaped and '&lt;%== ... %&gt;' to unescaped.
1289
+ </p>
1290
+ <a name="example.eruby"></a>
1291
+ <div class="program_caption">
1292
+ example.eruby</div>
1293
+ <pre class="program">&lt;div&gt;
1294
+ &lt;% for item in list %&gt;
1295
+ &lt;p&gt;&lt;%= item %&gt;&lt;/p&gt;
1296
+ &lt;p&gt;&lt;%== item %&gt;&lt;/p&gt;
1297
+ &lt;% end %&gt;
1298
+ &lt;/div&gt;
1299
+ </pre>
1300
+ <a name="escape_example.result"></a>
1301
+ <div class="terminal_caption">
1302
+ compiled source code</div>
1303
+ <pre class="terminal">$ erubis -xE Escape example.eruby
1304
+ _buf = ''; _buf &lt;&lt; '&lt;div&gt;
1305
+ '; for item in list
1306
+ _buf &lt;&lt; ' &lt;p&gt;'; <strong>_buf &lt;&lt; Erubis::XmlHelper.escape_xml( item );</strong> _buf &lt;&lt; '&lt;/p&gt;
1307
+ &lt;p&gt;'; <strong>_buf &lt;&lt; ( item ).to_s;</strong> _buf &lt;&lt; '&lt;/p&gt;
1308
+ '; end
1309
+ _buf &lt;&lt; '&lt;/div&gt;
1310
+ ';
1311
+ _buf.to_s
1312
+ </pre>
1313
+ <p>EscapeEnhancer is language-independent.
1314
+ </p>
1315
+ <br>
1316
+
1317
+
1318
+ <a name="stdout-enhancer"></a>
1319
+ <h3 class="section2">StdoutEnhancer</h3>
1320
+ <p>StdoutEnhancer use $sdtdout instead of array buffer.
1321
+ Therefore, you can use 'print' statement in embedded ruby code.
1322
+ </p>
1323
+ <a name="stdout_exmple.result"></a>
1324
+ <div class="terminal_caption">
1325
+ compiled source code</div>
1326
+ <pre class="terminal">$ erubis -xE Stdout example.eruby
1327
+ <strong>_buf = $stdout;</strong> _buf &lt;&lt; '&lt;div&gt;
1328
+ '; for item in list
1329
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1330
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1331
+ '; end
1332
+ _buf &lt;&lt; '&lt;/div&gt;
1333
+ ';
1334
+ <strong>''</strong>
1335
+ </pre>
1336
+ <p>StdoutEnhancer is only for Eruby.
1337
+ </p>
1338
+ <br>
1339
+
1340
+
1341
+ <a name="printout-enhancer"></a>
1342
+ <h3 class="section2">PrintOutEnhancer</h3>
1343
+ <p>PrintOutEnhancer makes compiled source code to use 'print(...)' instead of '_buf &lt;&lt; ...'.
1344
+ </p>
1345
+ <a name="printstatement_example.result"></a>
1346
+ <div class="terminal_caption">
1347
+ compiled source code</div>
1348
+ <pre class="terminal">$ erubis -xE PrintOut example.eruby
1349
+ <strong>print</strong> '&lt;div&gt;
1350
+ '; for item in list
1351
+ <strong>print</strong> ' &lt;p&gt;'; <strong>print</strong>(( item ).to_s); <strong>print</strong> '&lt;/p&gt;
1352
+ &lt;p&gt;'; <strong>print</strong> Erubis::XmlHelper.escape_xml( item ); <strong>print</strong> '&lt;/p&gt;
1353
+ '; end
1354
+ <strong>print</strong> '&lt;/div&gt;
1355
+ ';
1356
+ </pre>
1357
+ <p>PrintOutEnhancer is only for Eruby.
1358
+ </p>
1359
+ <br>
1360
+
1361
+
1362
+ <a name="printenabled-enhancer"></a>
1363
+ <h3 class="section2">PrintEnabledEnhancer</h3>
1364
+ <p>PrintEnabledEnhancer enables you to use print() method in '&lt;% ... %&gt;'.
1365
+ </p>
1366
+ <a name="printenabled-example.eruby"></a>
1367
+ <div class="program_caption">
1368
+ printenabled-example.eruby</div>
1369
+ <pre class="program">&lt;% for item in @list %&gt;
1370
+ &lt;b&gt;<strong>&lt;% print item %&gt;</strong>&lt;/b&gt;
1371
+ &lt;% end %&gt;
1372
+ </pre>
1373
+ <a name="printenabled-example.rb"></a>
1374
+ <div class="program_caption">
1375
+ printenabled-example.rb</div>
1376
+ <pre class="program">require 'erubis'
1377
+ class PrintEnabledEruby &lt; Erubis::Eruby
1378
+ include Erubis::PrintEnabledEnhancer
1379
+ end
1380
+ input = File.read('printenabled-example.eruby')
1381
+ eruby = PrintEnabledEruby.new(input)
1382
+ list = ['aaa', 'bbb', 'ccc']
1383
+ print eruby.evaluate(:list=&gt;list)
1384
+ </pre>
1385
+ <a name="printenable_example.result"></a>
1386
+ <div class="terminal_caption">
1387
+ output result</div>
1388
+ <pre class="terminal">$ ruby printenabled-example.rb
1389
+ &lt;b&gt;aaa&lt;/b&gt;
1390
+ &lt;b&gt;bbb&lt;/b&gt;
1391
+ &lt;b&gt;ccc&lt;/b&gt;
1392
+ </pre>
1393
+ <p>Notice to use Eruby#evaluate() and not to use Eruby#result(),
1394
+ because print() method in '&lt;% ... %&gt;' invokes not Kernel#print() but PrintEnabledEnhancer#print().
1395
+ </p>
1396
+ <p>PrintEnabledEnhancer is only for Eruby.
1397
+ </p>
1398
+ <br>
1399
+
1400
+
1401
+ <a name="array-enhancer"></a>
1402
+ <h3 class="section2">ArrayEnhancer</h3>
1403
+ <p>ArrayEnhancer makes Eruby to return an array of strings.
1404
+ </p>
1405
+ <a name="array_example.result"></a>
1406
+ <div class="terminal_caption">
1407
+ compiled source code</div>
1408
+ <pre class="terminal">$ erubis -xE Array example.eruby
1409
+ <strong>_buf = [];</strong> _buf &lt;&lt; '&lt;div&gt;
1410
+ '; for item in list
1411
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1412
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1413
+ '; end
1414
+ _buf &lt;&lt; '&lt;/div&gt;
1415
+ ';
1416
+ <strong>_buf</strong>
1417
+ </pre>
1418
+ <p>ArrayEnhancer is only for Eruby.
1419
+ </p>
1420
+ <br>
1421
+
1422
+
1423
+ <a name="arraybuffer-enhancer"></a>
1424
+ <h3 class="section2">ArrayBufferEnhancer</h3>
1425
+ <p>ArrayBufferEnhancer makes Eruby to use array buffer.
1426
+ Array buffer is a litte slower than String buffer.
1427
+ </p>
1428
+ <p>ArrayBufferEnhancer is only for Eruby.
1429
+ </p>
1430
+ <a name="arraybuffer_example.result"></a>
1431
+ <div class="terminal_caption">
1432
+ compiled source code</div>
1433
+ <pre class="terminal">$ erubis -xE ArrayBuffer example.eruby
1434
+ <strong>_buf = [];</strong> _buf &lt;&lt; '&lt;div&gt;
1435
+ '; for item in list
1436
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1437
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1438
+ '; end
1439
+ _buf &lt;&lt; '&lt;/div&gt;
1440
+ ';
1441
+ <strong>_buf.join</strong>
1442
+ </pre>
1443
+ <br>
1444
+
1445
+
1446
+ <a name="stringbuffer-enhancer"></a>
1447
+ <h3 class="section2">StringBufferEnhancer</h3>
1448
+ <p>StringBufferEnhancer makes Eruby to use string buffer.
1449
+ String buffer is a little faster than array buffer.
1450
+ Erubis::Eruby includes this enhancer by default.
1451
+ </p>
1452
+ <a name="stringbuffer_example.result"></a>
1453
+ <div class="terminal_caption">
1454
+ compiled source code</div>
1455
+ <pre class="terminal">$ erubis -xE StringBuffer example.eruby
1456
+ <strong>_buf = '';</strong> _buf &lt;&lt; '&lt;div&gt;
1457
+ '; for item in list
1458
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1459
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1460
+ '; end
1461
+ _buf &lt;&lt; '&lt;/div&gt;
1462
+ ';
1463
+ <strong>_buf.to_s</strong>
1464
+ </pre>
1465
+ <p>StringBufferEnhancer is only for Eruby.
1466
+ </p>
1467
+ <br>
1468
+
1469
+
1470
+ <a name="erbout-enhancer"></a>
1471
+ <h3 class="section2">ErboutEnhancer</h3>
1472
+ <p>ErboutEnhancer makes Eruby to be compatible with ERB.
1473
+ This is useful especially for Ruby on Rails.
1474
+ </p>
1475
+ <div class="terminal_caption">
1476
+ compiled source code</div>
1477
+ <pre class="terminal">$ erubis -xE Erbout example.eruby
1478
+ <strong>_erbout = _buf = '';</strong> _buf &lt;&lt; '&lt;div&gt;
1479
+ '; for item in list
1480
+ _buf &lt;&lt; ' &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1481
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1482
+ '; end
1483
+ _buf &lt;&lt; '&lt;/div&gt;
1484
+ ';
1485
+ _buf.to_s
1486
+ </pre>
1487
+ <p>ErboutEnhancer is only for Eruby.
1488
+ </p>
1489
+ <br>
1490
+
1491
+
1492
+ <a name="notext-enhancer"></a>
1493
+ <h3 class="section2">NoTextEnhancer</h3>
1494
+ <p>NoTextEnhancer suppress output of text and prints only embedded code.
1495
+ This is useful especially when debugging a complex eRuby script.
1496
+ </p>
1497
+ <a name="notext-example.eruby"></a>
1498
+ <div class="program_caption">
1499
+ notext-example.eruby</div>
1500
+ <pre class="program">&lt;h3&gt;List&lt;/h3&gt;
1501
+ &lt;% if !@list || @list.empty? %&gt;
1502
+ &lt;p&gt;not found.&lt;/p&gt;
1503
+ &lt;% else %&gt;
1504
+ &lt;table&gt;
1505
+ &lt;tbody&gt;
1506
+ &lt;% @list.each_with_index do |item, i| %&gt;
1507
+ &lt;tr bgcolor="&lt;%= i%2 == 0 ? '#FFCCCC' : '#CCCCFF' %&gt;"&gt;
1508
+ &lt;td&gt;&lt;%= item %&gt;&lt;/td&gt;
1509
+ &lt;/tr&gt;
1510
+ &lt;% end %&gt;
1511
+ &lt;/tbody&gt;
1512
+ &lt;/table&gt;
1513
+ &lt;% end %&gt;
1514
+ </pre>
1515
+ <a name="notext_example.result"></a>
1516
+ <div class="terminal_caption">
1517
+ output example of NoTextEnhancer</div>
1518
+ <pre class="terminal">$ erubis -xE NoText notext-example.eruby
1519
+ _buf = '';
1520
+ if !@list || @list.empty?
1521
+
1522
+ else
1523
+
1524
+
1525
+ @list.each_with_index do |item, i|
1526
+ _buf &lt;&lt; ( i%2 == 0 ? '#FFCCCC' : '#CCCCFF' ).to_s;
1527
+ _buf &lt;&lt; ( item ).to_s;
1528
+
1529
+ end
1530
+
1531
+
1532
+ end
1533
+ _buf.to_s
1534
+ </pre>
1535
+ <p>NoTextEnhancer is language-independent. It is useful even if you are PHP user, see <a href="#topics-php">this section</a>.
1536
+ </p>
1537
+ <br>
1538
+
1539
+
1540
+ <a name="nocode-enhancer"></a>
1541
+ <h3 class="section2">NoCodeEnhancer</h3>
1542
+ <p>NoCodeEnhancer suppress output of embedded code and prints only normal text.
1543
+ This is useful especially when validating HTML tags.
1544
+ </p>
1545
+ <a name="nocode-example.eruby"></a>
1546
+ <div class="program_caption">
1547
+ nocode-example.eruby</div>
1548
+ <pre class="program">&lt;h3&gt;List&lt;/h3&gt;
1549
+ &lt;% if !@list || @list.empty? %&gt;
1550
+ &lt;p&gt;not found.&lt;/p&gt;
1551
+ &lt;% else %&gt;
1552
+ &lt;table&gt;
1553
+ &lt;tbody&gt;
1554
+ &lt;% @list.each_with_index do |item, i| %&gt;
1555
+ &lt;tr bgcolor="&lt;%= i%2 == 0 ? '#FFCCCC' : '#CCCCFF' %&gt;"&gt;
1556
+ &lt;td&gt;&lt;%= item %&gt;&lt;/td&gt;
1557
+ &lt;/tr&gt;
1558
+ &lt;% end %&gt;
1559
+ &lt;/tbody&gt;
1560
+ &lt;/table&gt;
1561
+ &lt;% end %&gt;
1562
+ </pre>
1563
+ <a name="nocode_example.result"></a>
1564
+ <div class="terminal_caption">
1565
+ output example of NoCodeEnhancer</div>
1566
+ <pre class="terminal">$ erubis -xE NoCode notext-example.eruby
1567
+ &lt;h3&gt;List&lt;/h3&gt;
1568
+
1569
+ &lt;p&gt;not found.&lt;/p&gt;
1570
+
1571
+ &lt;table&gt;
1572
+ &lt;tbody&gt;
1573
+
1574
+ &lt;tr bgcolor=""&gt;
1575
+ &lt;td&gt;&lt;/td&gt;
1576
+ &lt;/tr&gt;
1577
+
1578
+ &lt;/tbody&gt;
1579
+ &lt;/table&gt;
1580
+
1581
+ </pre>
1582
+ <p>NoCodeEnhancer is language-independent. It is useful even if you are PHP user, see <a href="#topics-php">this section</a>.
1583
+ </p>
1584
+ <br>
1585
+
1586
+
1587
+ <a name="simplify-enhancer"></a>
1588
+ <h3 class="section2">SimplifyEnhancer</h3>
1589
+ <p>SimplifyEnhancer makes compiling a little faster but don't trim spaces around '&lt;% %&gt;'.
1590
+ </p>
1591
+ <a name="simplify_example.result"></a>
1592
+ <div class="terminal_caption">
1593
+ compiled source code</div>
1594
+ <pre class="terminal">$ erubis -xE Simplify example.eruby
1595
+ _buf = ''; _buf &lt;&lt; '&lt;div&gt;
1596
+ '; for item in list ; _buf &lt;&lt; '
1597
+ &lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1598
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1599
+ '; end ; _buf &lt;&lt; '
1600
+ &lt;/div&gt;
1601
+ ';
1602
+ _buf.to_s
1603
+ </pre>
1604
+ <p>SimplifyEnhancer is language-independent.
1605
+ </p>
1606
+ <br>
1607
+
1608
+
1609
+ <a name="bipattern-enhancer"></a>
1610
+ <h3 class="section2">BiPatternEnhancer</h3>
1611
+ <p>BiPatternEnhancer enables to use another embedded pattern with '&lt;% %&gt;'.
1612
+ By Default, '[= ... =]' is available for expression.
1613
+ You can specify pattern by :bipattern property.
1614
+ </p>
1615
+ <a name="bipattern-example.rhtml"></a>
1616
+ <div class="program_caption">
1617
+ bipattern-example.rhtml</div>
1618
+ <pre class="program">&lt;% for item in list %&gt;
1619
+ &lt;b&gt;<strong>[= item =]</strong>&lt;/b&gt;
1620
+ &lt;b&gt;<strong>[== item =]</strong>&lt;/b&gt;
1621
+ &lt;% end %&gt;
1622
+ </pre>
1623
+ <a name="bipattern_example.result"></a>
1624
+ <div class="terminal_caption">
1625
+ compiled source code</div>
1626
+ <pre class="terminal">$ erubis -xE BiPattern bipattern-example.rhtml
1627
+ _buf = ''; for item in list
1628
+ _buf &lt;&lt; ' &lt;b&gt;'; <strong>_buf &lt;&lt; ( item ).to_s;</strong> _buf &lt;&lt; '&lt;/b&gt;
1629
+ &lt;b&gt;'; <strong>_buf &lt;&lt; Erubis::XmlHelper.escape_xml( item );</strong> _buf &lt;&lt; '&lt;/b&gt;
1630
+ '; end
1631
+ _buf.to_s
1632
+ </pre>
1633
+ <p>BiPatternEnhancer is language-independent.
1634
+ </p>
1635
+ <br>
1636
+
1637
+
1638
+ <a name="percentline-enhancer"></a>
1639
+ <h3 class="section2">PercentLineEnhancer</h3>
1640
+ <p>PercentLineEnhancer regards lines starting with '%' as Ruby code.
1641
+ This is for compatibility with eruby and ERB.
1642
+ </p>
1643
+ <a name="percentline-example.rhtml"></a>
1644
+ <div class="program_caption">
1645
+ percentline-example.rhtml</div>
1646
+ <pre class="program">&lt;ul&gt;
1647
+ <strong>% for item in list</strong>
1648
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
1649
+ <strong>% end</strong>
1650
+ &lt;/ul&gt;
1651
+ <strong>%% lines with '%%'</strong>
1652
+ </pre>
1653
+ <a name="percentline_example.result"></a>
1654
+ <div class="terminal_caption">
1655
+ compiled source code</div>
1656
+ <pre class="terminal">$ erubis -xE PercentLine percentline-example.rhtml
1657
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
1658
+ '; <strong>for item in list</strong>
1659
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/li&gt;
1660
+ '; <strong>end</strong>
1661
+ _buf &lt;&lt; '&lt;/ul&gt;
1662
+ <strong>% lines with \'%%\'</strong>
1663
+ ';
1664
+ _buf.to_s
1665
+ </pre>
1666
+ <p>PercentLineEnhancer is language-independent.
1667
+ </p>
1668
+ <br>
1669
+
1670
+
1671
+ <a name="prefixedline-enhancer"></a>
1672
+ <h3 class="section2">PrefixedLineEnhancer</h3>
1673
+ <p>PrefixedlineEnhancer regards lines starting with '%' as Ruby code.
1674
+ It is similar to <a href="#percentline-enhancer">PercentLineEnhancer</a>, but there are some differences.
1675
+ </p>
1676
+ <ul type="disc">
1677
+ <li>PrefixedlineEnhancer allows to indent lines starting with '%', but PercentLineEnhancer doesn't.
1678
+ </li>
1679
+ <li>PrefixedlineEnhancer allows to change prefixed character (default '%'), but PercentLineEnhancer doesn't.
1680
+ </li>
1681
+ </ul>
1682
+ <a name="prefixedline-example.rhtml"></a>
1683
+ <div class="program_caption">
1684
+ prefixedline-example.rhtml</div>
1685
+ <pre class="program">&lt;ul&gt;
1686
+ <strong>! for item in list</strong>
1687
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
1688
+ <strong>! end</strong>
1689
+ &lt;/ul&gt;
1690
+ <strong>!! lines with '!!'</strong>
1691
+ </pre>
1692
+ <a name="prefixedline-example.rb"></a>
1693
+ <div class="program_caption">
1694
+ prefixedline-example.rb</div>
1695
+ <pre class="program">require 'erubis'
1696
+
1697
+ class PrefixedLineEruby &lt; Erubis::Eruby
1698
+ include Erubis::PrefixedLineEnhancer
1699
+ end
1700
+
1701
+ input = File.read('prefixedline-example.rhtml')
1702
+ eruby = PrefixedLineEruby.new(input, :prefixchar=&gt;'!') # default '%'
1703
+ print eruby.src
1704
+ </pre>
1705
+ <a name="prefixedline_example.result"></a>
1706
+ <div class="terminal_caption">
1707
+ compiled source code</div>
1708
+ <pre class="terminal">$ ruby prefixedline-example.rb
1709
+ _buf = ''; _buf &lt;&lt; '&lt;ul&gt;
1710
+ '; <strong>for item in list</strong>
1711
+ _buf &lt;&lt; ' &lt;li&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/li&gt;
1712
+ '; <strong>end</strong>
1713
+ _buf &lt;&lt; '&lt;/ul&gt;
1714
+ <strong>! lines with \'!!\'</strong>
1715
+ ';
1716
+ _buf.to_s
1717
+ </pre>
1718
+ <p>PrefixedLineEnhancer is language-independent.
1719
+ </p>
1720
+ <br>
1721
+
1722
+
1723
+ <a name="headerfooter-enhancer"></a>
1724
+ <h3 class="section2">HeaderFooterEnhancer</h3>
1725
+ <p>[experimental]
1726
+ </p>
1727
+ <p>HeaderFooterEnhancer enables you to add header and footer in eRuby script.
1728
+ </p>
1729
+ <a name="headerfooter-example.eruby"></a>
1730
+ <div class="program_caption">
1731
+ headerfooter-example.eruby</div>
1732
+ <pre class="program"><strong>&lt;!--#header:</strong>
1733
+ <strong>def list_items(items)</strong>
1734
+ <strong>#--&gt;</strong>
1735
+ &lt;% for item in items %&gt;
1736
+ &lt;b&gt;&lt;%= item %&gt;&lt;/b&gt;
1737
+ &lt;% end %&gt;
1738
+ <strong>&lt;!--#footer:</strong>
1739
+ <strong>end</strong>
1740
+ <strong>#--&gt;</strong>
1741
+ </pre>
1742
+ <a name="headerfooter_example.result"></a>
1743
+ <div class="terminal_caption">
1744
+ compiled source code</div>
1745
+ <pre class="terminal">$ erubis -xE HeaderFooter headerfooter-example.eruby
1746
+
1747
+ <strong>def list_items(items)</strong>
1748
+
1749
+ _buf = ''; for item in items
1750
+ _buf &lt;&lt; ' &lt;b&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/b&gt;
1751
+ '; end
1752
+ _buf.to_s
1753
+
1754
+ <strong>end</strong>
1755
+
1756
+ </pre>
1757
+ <p>Compare to the following:
1758
+ </p>
1759
+ <a name="normal-eruby-test.eruby"></a>
1760
+ <div class="program_caption">
1761
+ normal-eruby-test.eruby</div>
1762
+ <pre class="program"><strong>&lt;%</strong>
1763
+ <strong>def list_items(items)</strong>
1764
+ <strong>%&gt;</strong>
1765
+ &lt;% for item in items %&gt;
1766
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
1767
+ &lt;% end %&gt;
1768
+ <strong>&lt;%</strong>
1769
+ <strong>end</strong>
1770
+ <strong>%&gt;</strong>
1771
+ </pre>
1772
+ <a name="normal_eruby_test.result"></a>
1773
+ <div class="terminal_caption">
1774
+ compiled source code</div>
1775
+ <pre class="terminal">$ erubis -x normal-eruby-test.eruby
1776
+ _buf = '';
1777
+ <strong>def list_items(items)</strong>
1778
+
1779
+ for item in items
1780
+ _buf &lt;&lt; '&lt;li&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/li&gt;
1781
+ '; end
1782
+
1783
+ <strong>end</strong>
1784
+
1785
+ _buf.to_s
1786
+ </pre>
1787
+ <p>Header and footer can be in any position in eRuby script,
1788
+ that is, header is no need to be in the head of eRuby script.
1789
+ </p>
1790
+ <a name="headerfooter-example2.rhtml"></a>
1791
+ <div class="program_caption">
1792
+ headerfooter-example2.rhtml</div>
1793
+ <pre class="program">&lt;?xml version="1.0"?&gt;
1794
+ &lt;html&gt;
1795
+ <strong>&lt;!--#header:</strong>
1796
+ <strong>def page(list)</strong>
1797
+ <strong>#--&gt;</strong>
1798
+ :
1799
+ <strong>&lt;!--#footer:</strong>
1800
+ <strong>end</strong>
1801
+ <strong>#--&gt;</strong>
1802
+ &lt;/html&gt;
1803
+ </pre>
1804
+ <a name="headerfooter_example2.result"></a>
1805
+ <div class="terminal_caption">
1806
+ compiled source code</div>
1807
+ <pre class="terminal">$ erubis -xE HeaderFooter headerfooter-example2.rhtml
1808
+
1809
+ <strong>def page(list)</strong>
1810
+
1811
+ _buf = ''; _buf &lt;&lt; '&lt;?xml version="1.0"?&gt;
1812
+ &lt;html&gt;
1813
+ '; _buf &lt;&lt; ' :
1814
+ '; _buf &lt;&lt; '&lt;/html&gt;
1815
+ ';
1816
+ _buf.to_s
1817
+
1818
+ <strong>end</strong>
1819
+
1820
+ </pre>
1821
+ <p>HeaderFooterEnhancer is experimental and is language-independent.
1822
+ </p>
1823
+ <br>
1824
+
1825
+
1826
+ <a name="interpolation-enhancer"></a>
1827
+ <h3 class="section2">InterpolationEnhancer</h3>
1828
+ <p>[experimental]
1829
+ </p>
1830
+ <p>InterpolationEnhancer converts "&lt;h1&gt;&lt;%= title %&gt;&lt;/h1&gt;" into
1831
+ "_buf &lt;&lt; %Q`&lt;h1&gt;#{ title }&lt;/h1&gt;`".
1832
+ This makes Eruby a litter faster because method call of String#&lt;&lt; are eliminated
1833
+ by expression interpolations.
1834
+ </p>
1835
+ <div class="program_caption">
1836
+ InterpolationEnhancer elmininates method call of String#&lt;&lt;.</div>
1837
+ <pre class="program">## Assume that input is '&lt;a href="&lt;%=url%&gt;"&gt;&lt;%=name%&gt;&lt;/a&gt;'.
1838
+ ## Eruby convert input into the following code. String#&lt;&lt; is called 5 times.
1839
+ _buf &lt;&lt; '&lt;a href="'; _buf &lt;&lt; (url).to_s; _buf &lt;&lt; '"&gt;'; _buf &lt;&lt; (name).to_s; _buf &lt;&lt; '&lt;/a&gt;';
1840
+
1841
+ ## If InterpolationEnhancer is used, String#&lt;&lt; is called only once.
1842
+ _buf &lt;&lt; %Q`&lt;a href="#{url}"&gt;#{name}&lt;/a&gt;`;
1843
+ </pre>
1844
+ <a name="interpolation_example.result"></a>
1845
+ <div class="terminal_caption">
1846
+ compiled source code</div>
1847
+ <pre class="terminal">$ erubis -xE Interpolation example.eruby
1848
+ _buf = ''; _buf &lt;&lt; <strong>%Q`</strong>&lt;div&gt;\n<strong>`</strong>
1849
+ for item in list
1850
+ _buf &lt;&lt; <strong>%Q`</strong> &lt;p&gt;<strong>#{ item }</strong>&lt;/p&gt;
1851
+ &lt;p&gt;<strong>#{Erubis::XmlHelper.escape_xml( item )}</strong>&lt;/p&gt;\n<strong>`</strong>
1852
+ end
1853
+ _buf &lt;&lt; <strong>%Q`</strong>&lt;/div&gt;\n<strong>`</strong>
1854
+ _buf.to_s
1855
+ </pre>
1856
+ <p>Erubis provides Erubis::FastEruby class which includes InterpolationEnhancer.
1857
+ You can use Erubis::FastEruby class instead of Erubis::Eruby class.
1858
+ </p>
1859
+ <p>InterpolationEnhancer is only for Eruby.
1860
+ </p>
1861
+ <br>
1862
+
1863
+
1864
+ <a name="deleteindent-enhancer"></a>
1865
+ <h3 class="section2">DeleteIndentEnhancer</h3>
1866
+ <p>[experimental]
1867
+ DeleteIndentEnhancer deletes indentation of HTML file.
1868
+ </p>
1869
+ <a name="interpolation_example.result"></a>
1870
+ <div class="terminal_caption">
1871
+ compiled source code</div>
1872
+ <pre class="terminal">$ erubis -xE DeleteIndent example.eruby
1873
+ _buf = ''; _buf &lt;&lt; '&lt;div&gt;
1874
+ '; for item in list
1875
+ _buf &lt;&lt; '&lt;p&gt;'; _buf &lt;&lt; ( item ).to_s; _buf &lt;&lt; '&lt;/p&gt;
1876
+ &lt;p&gt;'; _buf &lt;&lt; Erubis::XmlHelper.escape_xml( item ); _buf &lt;&lt; '&lt;/p&gt;
1877
+ '; end
1878
+ _buf &lt;&lt; '&lt;/div&gt;
1879
+ ';
1880
+ _buf.to_s
1881
+ </pre>
1882
+ <p>Notice that DeleteIndentEnhancer isn't intelligent.
1883
+ It deletes indentations even if they are in &lt;PRE&gt;&lt;/PRE&gt;.
1884
+ </p>
1885
+ <p>DeleteIndentEnhancer is language-independent.
1886
+ </p>
1887
+ <br>
1888
+
1889
+
1890
+ <br>
1891
+
1892
+
1893
+ <a name="lang"></a>
1894
+ <h2 class="section1">Multi-Language Support</h2>
1895
+ <p>Erubis supports the following languages<sup>(<a href="#fnref:2" name="fnlink:2">*2</a>)</sup>:
1896
+ </p>
1897
+ <ul type="disc">
1898
+ <li>Ruby
1899
+ </li>
1900
+ <li><a href="#lang-php">PHP</a>
1901
+ </li>
1902
+ <li><a href="#lang-c">C</a>
1903
+ </li>
1904
+ <li><a href="#lang-java">Java</a>
1905
+ </li>
1906
+ <li><a href="#lang-scheme">Scheme</a>
1907
+ </li>
1908
+ <li><a href="#lang-perl">Perl</a>
1909
+ </li>
1910
+ <li><a href="#lang-javascript">JavaScript</a>
1911
+ </li>
1912
+ </ul>
1913
+ <div class="footnote">
1914
+ <dl compact>
1915
+ <dt>(<a name="fnref:2" href="#fnlink:2">*2</a>)</dt>
1916
+ <dd>If you need template engine in pure PHP/Perl/JavaScript, try <a href="http://www.kuwata-lab.com/tenjin/">Tenjin</a> (<a href="http://www.kuwata-lab.com/tenjin/">http://www.kuwata-lab.com/tenjin/</a>). Tenjin is a very fast and full-featured template engine implemented in pure PHP/Perl/JavaScript.</dd>
1917
+ </dl>
1918
+ </div>
1919
+ <a name="lang-php"></a>
1920
+ <h3 class="section2">PHP</h3>
1921
+ <a name="example.ephp"></a>
1922
+ <div class="program_caption">
1923
+ example.ephp</div>
1924
+ <pre class="program">&lt;?xml version="1.0"?&gt;
1925
+ &lt;html&gt;
1926
+ &lt;body&gt;
1927
+ &lt;p&gt;Hello <strong>&lt;%= $user %&gt;</strong>!&lt;/p&gt;
1928
+ &lt;table&gt;
1929
+ &lt;tbody&gt;
1930
+ <strong>&lt;% $i = 0; %&gt;</strong>
1931
+ <strong>&lt;% foreach ($list as $item) { %&gt;</strong>
1932
+ <strong>&lt;% $i++; %&gt;</strong>
1933
+ &lt;tr bgcolor=<strong>"&lt;%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %&gt;"</strong>&gt;
1934
+ &lt;td&gt;<strong>&lt;%= $i %&gt;</strong>&lt;/td&gt;
1935
+ &lt;td&gt;<strong>&lt;%== $item %&gt;</strong>&lt;/td&gt;
1936
+ &lt;/tr&gt;
1937
+ <strong>&lt;% } %&gt;</strong>
1938
+ &lt;/tbody&gt;
1939
+ &lt;/table&gt;
1940
+ &lt;/body&gt;
1941
+ &lt;/html&gt;
1942
+ </pre>
1943
+ <a name="example_php.result"></a>
1944
+ <div class="terminal_caption">
1945
+ compiled source code</div>
1946
+ <pre class="terminal">$ erubis -l php example.ephp
1947
+ &lt;&lt;?php ?&gt;?xml version="1.0"?&gt;
1948
+ &lt;html&gt;
1949
+ &lt;body&gt;
1950
+ &lt;p&gt;Hello &lt;?php echo $user; ?&gt;!&lt;/p&gt;
1951
+ &lt;table&gt;
1952
+ &lt;tbody&gt;
1953
+ &lt;?php $i = 0; ?&gt;
1954
+ &lt;?php foreach ($list as $item) { ?&gt;
1955
+ &lt;?php $i++; ?&gt;
1956
+ &lt;tr bgcolor="&lt;?php echo $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'; ?&gt;"&gt;
1957
+ &lt;td&gt;&lt;?php echo $i; ?&gt;&lt;/td&gt;
1958
+ &lt;td&gt;&lt;?php echo htmlspecialchars($item); ?&gt;&lt;/td&gt;
1959
+ &lt;/tr&gt;
1960
+ &lt;?php } ?&gt;
1961
+ &lt;/tbody&gt;
1962
+ &lt;/table&gt;
1963
+ &lt;/body&gt;
1964
+ &lt;/html&gt;
1965
+ </pre>
1966
+ <br>
1967
+
1968
+
1969
+ <a name="lang-c"></a>
1970
+ <h3 class="section2">C</h3>
1971
+ <a name="example.ec"></a>
1972
+ <div class="program_caption">
1973
+ example.ec</div>
1974
+ <pre class="program"><strong>&lt;%
1975
+ #include &lt;stdio.h&gt;
1976
+
1977
+ int main(int argc, char *argv[])
1978
+ {
1979
+ int i;
1980
+
1981
+ %&gt;</strong>
1982
+ &lt;html&gt;
1983
+ &lt;body&gt;
1984
+ &lt;p&gt;Hello <strong>&lt;%= "%s", argv[0] %&gt;</strong>!&lt;/p&gt;
1985
+ &lt;table&gt;
1986
+ &lt;tbody&gt;
1987
+ <strong>&lt;% for (i = 1; i &lt; argc; i++) { %&gt;</strong>
1988
+ &lt;tr bgcolor="<strong>&lt;%= i % 2 == 0 ? "#FFCCCC" : "#CCCCFF" %&gt;</strong>"&gt;
1989
+ &lt;td&gt;<strong>&lt;%= "%d", i %&gt;</strong>&lt;/td&gt;
1990
+ &lt;td&gt;<strong>&lt;%= "%s", argv[i] %&gt;</strong>&lt;/td&gt;
1991
+ &lt;/tr&gt;
1992
+ <strong>&lt;% } %&gt;</strong>
1993
+ &lt;/tbody&gt;
1994
+ &lt;/table&gt;
1995
+ &lt;/body&gt;
1996
+ &lt;/html&gt;
1997
+ <strong>&lt;%
1998
+ return 0;
1999
+ }
2000
+ %&gt;</strong>
2001
+ </pre>
2002
+ <a name="example_c.result"></a>
2003
+ <div class="terminal_caption">
2004
+ compiled source code</div>
2005
+ <pre class="terminal">$ erubis -l c example.ec
2006
+ #line 1 "example.ec"
2007
+
2008
+ #include &lt;stdio.h&gt;
2009
+
2010
+ int main(int argc, char *argv[])
2011
+ {
2012
+ int i;
2013
+
2014
+
2015
+ fputs("&lt;html&gt;\n"
2016
+ " &lt;body&gt;\n"
2017
+ " &lt;p&gt;Hello ", stdout); fprintf(stdout, "%s", argv[0]); fputs("!&lt;/p&gt;\n"
2018
+ " &lt;table&gt;\n"
2019
+ " &lt;tbody&gt;\n", stdout);
2020
+ for (i = 1; i &lt; argc; i++) {
2021
+ fputs(" &lt;tr bgcolor=\"", stdout); fprintf(stdout, i % 2 == 0 ? "#FFCCCC" : "#CCCCFF"); fputs("\"&gt;\n"
2022
+ " &lt;td&gt;", stdout); fprintf(stdout, "%d", i); fputs("&lt;/td&gt;\n"
2023
+ " &lt;td&gt;", stdout); fprintf(stdout, "%s", argv[i]); fputs("&lt;/td&gt;\n"
2024
+ " &lt;/tr&gt;\n", stdout);
2025
+ }
2026
+ fputs(" &lt;/tbody&gt;\n"
2027
+ " &lt;/table&gt;\n"
2028
+ " &lt;/body&gt;\n"
2029
+ "&lt;/html&gt;\n", stdout);
2030
+
2031
+ return 0;
2032
+ }
2033
+
2034
+ </pre>
2035
+ <br>
2036
+
2037
+
2038
+ <a name="lang-cpp"></a>
2039
+ <h3 class="section2">C++</h3>
2040
+ <a name="example.ecpp"></a>
2041
+ <div class="program_caption">
2042
+ example.ecpp</div>
2043
+ <pre class="program"><strong>&lt;%
2044
+ #include &lt;string&gt;
2045
+ #include &lt;iostream&gt;
2046
+ #include &lt;sstream&gt;
2047
+
2048
+ int main(int argc, char *argv[])
2049
+ {
2050
+ std::stringstream _buf;
2051
+ %&gt;</strong>
2052
+ &lt;html&gt;
2053
+ &lt;body&gt;
2054
+ &lt;p&gt;Hello <strong>&lt;%= argv[0] %&gt;</strong>!&lt;/p&gt;
2055
+ &lt;table&gt;
2056
+ &lt;tbody&gt;
2057
+ <strong>&lt;% for (int i = 1; i &lt; argc; i++) { %&gt;</strong>
2058
+ &lt;tr bgcolor="<strong>&lt;%= i % 2 == 0 ? "#FFCCCC" : "#CCCCFF" %&gt;</strong>"&gt;
2059
+ &lt;td&gt;<strong>&lt;%= i %&gt;</strong>&lt;/td&gt;
2060
+ &lt;td&gt;<strong>&lt;%= argv[i] %&gt;</strong>&lt;/td&gt;
2061
+ &lt;/tr&gt;
2062
+ <strong>&lt;% } %&gt;</strong>
2063
+ &lt;/tbody&gt;
2064
+ &lt;/table&gt;
2065
+ &lt;/body&gt;
2066
+ &lt;/html&gt;
2067
+ <strong>&lt;%
2068
+ std::string output = _buf.str();
2069
+ std::cout &lt;&lt; output;
2070
+ return 0;
2071
+ }
2072
+ %&gt;</strong>
2073
+ </pre>
2074
+ <a name="example_c.result"></a>
2075
+ <div class="terminal_caption">
2076
+ compiled source code</div>
2077
+ <pre class="terminal">$ erubis -l cpp example.ecpp
2078
+ #line 1 "example.ecpp"
2079
+
2080
+ #include &lt;string&gt;
2081
+ #include &lt;iostream&gt;
2082
+ #include &lt;sstream&gt;
2083
+
2084
+ int main(int argc, char *argv[])
2085
+ {
2086
+ std::stringstream _buf;
2087
+
2088
+ _buf &lt;&lt; "&lt;html&gt;\n"
2089
+ " &lt;body&gt;\n"
2090
+ " &lt;p&gt;Hello "; _buf &lt;&lt; (argv[0]); _buf &lt;&lt; "!&lt;/p&gt;\n"
2091
+ " &lt;table&gt;\n"
2092
+ " &lt;tbody&gt;\n";
2093
+ for (int i = 1; i &lt; argc; i++) {
2094
+ _buf &lt;&lt; " &lt;tr bgcolor=\""; _buf &lt;&lt; (i % 2 == 0 ? "#FFCCCC" : "#CCCCFF"); _buf &lt;&lt; "\"&gt;\n"
2095
+ " &lt;td&gt;"; _buf &lt;&lt; (i); _buf &lt;&lt; "&lt;/td&gt;\n"
2096
+ " &lt;td&gt;"; _buf &lt;&lt; (argv[i]); _buf &lt;&lt; "&lt;/td&gt;\n"
2097
+ " &lt;/tr&gt;\n";
2098
+ }
2099
+ _buf &lt;&lt; " &lt;/tbody&gt;\n"
2100
+ " &lt;/table&gt;\n"
2101
+ " &lt;/body&gt;\n"
2102
+ "&lt;/html&gt;\n";
2103
+
2104
+ std::string output = _buf.str();
2105
+ std::cout &lt;&lt; output;
2106
+ return 0;
2107
+ }
2108
+
2109
+ </pre>
2110
+ <br>
2111
+
2112
+
2113
+ <a name="lang-java"></a>
2114
+ <h3 class="section2">Java</h3>
2115
+ <a name="Example.ejava"></a>
2116
+ <div class="program_caption">
2117
+ Example.ejava</div>
2118
+ <pre class="program"><strong>&lt;%
2119
+ import java.util.*;
2120
+
2121
+ public class Example {
2122
+ private String user;
2123
+ private String[] list;
2124
+ public example(String user, String[] list) {
2125
+ this.user = user;
2126
+ this.list = list;
2127
+ }
2128
+
2129
+ public String view() {
2130
+ StringBuffer _buf = new StringBuffer();
2131
+ %&gt;</strong>
2132
+ &lt;html&gt;
2133
+ &lt;body&gt;
2134
+ &lt;p&gt;Hello <strong>&lt;%= user %&gt;</strong>!&lt;/p&gt;
2135
+ &lt;table&gt;
2136
+ &lt;tbody&gt;
2137
+ <strong>&lt;% for (int i = 0; i &lt; list.length; i++) { %&gt;</strong>
2138
+ &lt;tr bgcolor=<strong>"&lt;%= i % 2 == 0 ? "#FFCCCC" : "#CCCCFF" %&gt;"</strong>&gt;
2139
+ &lt;td&gt;<strong>&lt;%= i + 1 %&gt;</strong>&lt;/td&gt;
2140
+ &lt;td&gt;<strong>&lt;%== list[i] %&gt;</strong>&lt;/td&gt;
2141
+ &lt;/tr&gt;
2142
+ <strong>&lt;% } %&gt;</strong>
2143
+ &lt;/tbody&gt;
2144
+ &lt;/table&gt;
2145
+ &lt;body&gt;
2146
+ &lt;/html&gt;
2147
+ <strong>&lt;%
2148
+ return _buf.toString();
2149
+ }
2150
+
2151
+ public static void main(String[] args) {
2152
+ String[] list = { "&lt;aaa&gt;", "b&amp;b", "\"ccc\"" };
2153
+ Example ex = Example.new("Erubis", list);
2154
+ System.out.print(ex.view());
2155
+ }
2156
+
2157
+ public static String escape(String s) {
2158
+ StringBuffer sb = new StringBuffer();
2159
+ for (int i = 0; i &lt; s.length(); i++) {
2160
+ char ch = s.charAt(i);
2161
+ switch (ch) {
2162
+ case '&lt;': sb.append("&amp;lt;"); break;
2163
+ case '&gt;': sb.append("&amp;gt;"); break;
2164
+ case '&amp;': sb.append("&amp;amp;"); break;
2165
+ case '"': sb.append("&amp;quot;"); break;
2166
+ default: sb.append(ch);
2167
+ }
2168
+ }
2169
+ return sb.toString();
2170
+ }
2171
+ }
2172
+ %&gt;</strong>
2173
+ </pre>
2174
+ <a name="example_java.result"></a>
2175
+ <div class="terminal_caption">
2176
+ compiled source code</div>
2177
+ <pre class="terminal">$ erubis -b -l java example.ejava
2178
+
2179
+ import java.util.*;
2180
+
2181
+ public class Example {
2182
+ private String user;
2183
+ private String[] list;
2184
+ public example(String user, String[] list) {
2185
+ this.user = user;
2186
+ this.list = list;
2187
+ }
2188
+
2189
+ public String view() {
2190
+ StringBuffer _buf = new StringBuffer();
2191
+
2192
+ _buf.append("&lt;html&gt;\n"
2193
+ + " &lt;body&gt;\n"
2194
+ + " &lt;p&gt;Hello "); _buf.append(user); _buf.append("!&lt;/p&gt;\n"
2195
+ + " &lt;table&gt;\n"
2196
+ + " &lt;tbody&gt;\n");
2197
+ for (int i = 0; i &lt; list.length; i++) {
2198
+ _buf.append(" &lt;tr bgcolor=\""); _buf.append(i % 2 == 0 ? "#FFCCCC" : "#CCCCFF"); _buf.append("\"&gt;\n"
2199
+ + " &lt;td&gt;"); _buf.append(i + 1); _buf.append("&lt;/td&gt;\n"
2200
+ + " &lt;td&gt;"); _buf.append(escape(list[i])); _buf.append("&lt;/td&gt;\n"
2201
+ + " &lt;/tr&gt;\n");
2202
+ }
2203
+ _buf.append(" &lt;/tbody&gt;\n"
2204
+ + " &lt;/table&gt;\n"
2205
+ + " &lt;body&gt;\n"
2206
+ + "&lt;/html&gt;\n");
2207
+
2208
+ return _buf.toString();
2209
+ }
2210
+
2211
+ public static void main(String[] args) {
2212
+ String[] list = { "&lt;aaa&gt;", "b&amp;b", "\"ccc\"" };
2213
+ Example ex = Example.new("Erubis", list);
2214
+ System.out.print(ex.view());
2215
+ }
2216
+
2217
+ public static String escape(String s) {
2218
+ StringBuffer sb = new StringBuffer();
2219
+ for (int i = 0; i &lt; s.length(); i++) {
2220
+ char ch = s.charAt(i);
2221
+ switch (ch) {
2222
+ case '&lt;': sb.append("&amp;lt;"); break;
2223
+ case '&gt;': sb.append("&amp;gt;"); break;
2224
+ case '&amp;': sb.append("&amp;amp;"); break;
2225
+ case '"': sb.append("&amp;quot;"); break;
2226
+ default: sb.append(ch);
2227
+ }
2228
+ }
2229
+ return sb.toString();
2230
+ }
2231
+ }
2232
+
2233
+ </pre>
2234
+ <br>
2235
+
2236
+
2237
+ <a name="lang-scheme"></a>
2238
+ <h3 class="section2">Scheme</h3>
2239
+ <a name="example.escheme"></a>
2240
+ <div class="program_caption">
2241
+ example.escheme</div>
2242
+ <pre class="program">&lt;html&gt;
2243
+ &lt;body&gt;
2244
+ <strong>&lt;%
2245
+ (let ((user "Erubis")
2246
+ (items '("&lt;aaa&gt;" "b&amp;b" "\"ccc\""))
2247
+ (i 0))
2248
+ %&gt;</strong>
2249
+ &lt;p&gt;Hello <strong>&lt;%= user %&gt;</strong>!&lt;/p&gt;
2250
+ &lt;table&gt;
2251
+ <strong>&lt;%
2252
+ (for-each
2253
+ (lambda (item)
2254
+ (set! i (+ i 1))
2255
+ %&gt;</strong>
2256
+ &lt;tr bgcolor="<strong>&lt;%= (if (= (modulo i 2) 0) "#FFCCCC" "#CCCCFF") %&gt;</strong>"&gt;
2257
+ &lt;td&gt;<strong>&lt;%= i %&gt;</strong>&lt;/td&gt;
2258
+ &lt;td&gt;<strong>&lt;%= item %&gt;</strong>&lt;/td&gt;
2259
+ &lt;/tr&gt;
2260
+ <strong>&lt;%
2261
+ ) ; lambda end
2262
+ items) ; for-each end
2263
+ %&gt;</strong>
2264
+ &lt;/table&gt;
2265
+ <strong>&lt;%
2266
+ ) ; let end
2267
+ %&gt;</strong>
2268
+ &lt;/body&gt;
2269
+ &lt;/html&gt;
2270
+ </pre>
2271
+ <a name="example_scheme.result"></a>
2272
+ <div class="terminal_caption">
2273
+ compiled source code</div>
2274
+ <pre class="terminal">$ erubis -l scheme example.escheme
2275
+ (let ((_buf '())) (define (_add x) (set! _buf (cons x _buf))) (_add "&lt;html&gt;
2276
+ &lt;body&gt;\n")
2277
+
2278
+ (let ((user "Erubis")
2279
+ (items '("&lt;aaa&gt;" "b&amp;b" "\"ccc\""))
2280
+ (i 0))
2281
+
2282
+ (_add " &lt;p&gt;Hello ")(_add user)(_add "!&lt;/p&gt;
2283
+ &lt;table&gt;\n")
2284
+
2285
+ (for-each
2286
+ (lambda (item)
2287
+ (set! i (+ i 1))
2288
+
2289
+ (_add " &lt;tr bgcolor=\"")(_add (if (= (modulo i 2) 0) "#FFCCCC" "#CCCCFF"))(_add "\"&gt;
2290
+ &lt;td&gt;")(_add i)(_add "&lt;/td&gt;
2291
+ &lt;td&gt;")(_add item)(_add "&lt;/td&gt;
2292
+ &lt;/tr&gt;\n")
2293
+
2294
+ ) ; lambda end
2295
+ items) ; for-each end
2296
+
2297
+ (_add " &lt;/table&gt;\n")
2298
+
2299
+ ) ; let end
2300
+
2301
+ (_add " &lt;/body&gt;
2302
+ &lt;/html&gt;\n")
2303
+ (reverse _buf))
2304
+ </pre>
2305
+ <a name="example_scheme_display.result"></a>
2306
+ <div class="terminal_caption">
2307
+ compiled source code (with <code>--func=display</code> property)</div>
2308
+ <pre class="terminal">$ erubis -l scheme --func=display example.escheme
2309
+ (display "&lt;html&gt;
2310
+ &lt;body&gt;\n")
2311
+
2312
+ (let ((user "Erubis")
2313
+ (items '("&lt;aaa&gt;" "b&amp;b" "\"ccc\""))
2314
+ (i 0))
2315
+
2316
+ (display " &lt;p&gt;Hello ")(display user)(display "!&lt;/p&gt;
2317
+ &lt;table&gt;\n")
2318
+
2319
+ (for-each
2320
+ (lambda (item)
2321
+ (set! i (+ i 1))
2322
+
2323
+ (display " &lt;tr bgcolor=\"")(display (if (= (modulo i 2) 0) "#FFCCCC" "#CCCCFF"))(display "\"&gt;
2324
+ &lt;td&gt;")(display i)(display "&lt;/td&gt;
2325
+ &lt;td&gt;")(display item)(display "&lt;/td&gt;
2326
+ &lt;/tr&gt;\n")
2327
+
2328
+ ) ; lambda end
2329
+ items) ; for-each end
2330
+
2331
+ (display " &lt;/table&gt;\n")
2332
+
2333
+ ) ; let end
2334
+
2335
+ (display " &lt;/body&gt;
2336
+ &lt;/html&gt;\n")
2337
+ </pre>
2338
+ <br>
2339
+
2340
+
2341
+ <a name="lang-perl"></a>
2342
+ <h3 class="section2">Perl</h3>
2343
+ <a name="example.eperl"></a>
2344
+ <div class="program_caption">
2345
+ example.eperl</div>
2346
+ <pre class="program"><strong>&lt;%
2347
+ my $user = 'Erubis';
2348
+ my @list = ('&lt;aaa&gt;', 'b&amp;b', '"ccc"');
2349
+ %&gt;</strong>
2350
+ &lt;html&gt;
2351
+ &lt;body&gt;
2352
+ &lt;p&gt;Hello <strong>&lt;%= $user %&gt;</strong>!&lt;/p&gt;
2353
+ &lt;table&gt;
2354
+ <strong>&lt;% $i = 0; %&gt;</strong>
2355
+ <strong>&lt;% for $item (@list) { %&gt;</strong>
2356
+ &lt;tr bgcolor=<strong>&lt;%= ++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %&gt;</strong>"&gt;
2357
+ &lt;td&gt;<strong>&lt;%= $i %&gt;</strong>&lt;/td&gt;
2358
+ &lt;td&gt;<strong>&lt;%= $item %&gt;</strong>&lt;/td&gt;
2359
+ &lt;/tr&gt;
2360
+ <strong>&lt;% } %&gt;</strong>
2361
+ &lt;/table&gt;
2362
+ &lt;/body&gt;
2363
+ &lt;/html&gt;
2364
+ </pre>
2365
+ <a name="example_perl.result"></a>
2366
+ <div class="terminal_caption">
2367
+ compiled source code</div>
2368
+ <pre class="terminal">$ erubis -l perl example.eperl
2369
+ use HTML::Entities;
2370
+ my $user = 'Erubis';
2371
+ my @list = ('&lt;aaa&gt;', 'b&amp;b', '"ccc"');
2372
+
2373
+ print('&lt;html&gt;
2374
+ &lt;body&gt;
2375
+ &lt;p&gt;Hello '); print($user); print('!&lt;/p&gt;
2376
+ &lt;table&gt;
2377
+ '); $i = 0;
2378
+ for $item (@list) {
2379
+ print(' &lt;tr bgcolor='); print(++$i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'); print('"&gt;
2380
+ &lt;td&gt;'); print($i); print('&lt;/td&gt;
2381
+ &lt;td&gt;'); print($item); print('&lt;/td&gt;
2382
+ &lt;/tr&gt;
2383
+ '); }
2384
+ print(' &lt;/table&gt;
2385
+ &lt;/body&gt;
2386
+ &lt;/html&gt;
2387
+ ');
2388
+ </pre>
2389
+ <br>
2390
+
2391
+
2392
+ <a name="lang-javascript"></a>
2393
+ <h3 class="section2">JavaScript</h3>
2394
+ <a name="example.ejs"></a>
2395
+ <div class="program_caption">
2396
+ example.ejs</div>
2397
+ <pre class="program"><strong>&lt;%
2398
+ var user = 'Erubis';
2399
+ var list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"'];
2400
+ %&gt;</strong>
2401
+ &lt;html&gt;
2402
+ &lt;body&gt;
2403
+ &lt;p&gt;Hello <strong>&lt;%= user %&gt;</strong>!&lt;/p&gt;
2404
+ &lt;table&gt;
2405
+ &lt;tbody&gt;
2406
+ <strong>&lt;% var i; %&gt;</strong>
2407
+ <strong>&lt;% for (i = 0; i &lt; list.length; i++) { %&gt;</strong>
2408
+ &lt;tr bgcolor="<strong>&lt;%= i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %&gt;</strong>"&gt;
2409
+ &lt;td&gt;<strong>&lt;%= i + 1 %&gt;</strong>&lt;/td&gt;
2410
+ &lt;td&gt;<strong>&lt;%= list[i] %&gt;</strong>&lt;/td&gt;
2411
+ &lt;/tr&gt;
2412
+ <strong>&lt;% } %&gt;</strong>
2413
+ &lt;/tbody&gt;
2414
+ &lt;/table&gt;
2415
+ &lt;/body&gt;
2416
+ &lt;/html&gt;
2417
+ </pre>
2418
+ <a name="example_js.result"></a>
2419
+ <div class="terminal_caption">
2420
+ compiled source code</div>
2421
+ <pre class="terminal">$ erubis -l js example.ejs
2422
+ var _buf = [];
2423
+ var user = 'Erubis';
2424
+ var list = ['&lt;aaa&gt;', 'b&amp;b', '"ccc"'];
2425
+
2426
+ _buf.push("&lt;html&gt;\n\
2427
+ &lt;body&gt;\n\
2428
+ &lt;p&gt;Hello "); _buf.push(user); _buf.push("!&lt;/p&gt;\n\
2429
+ &lt;table&gt;\n\
2430
+ &lt;tbody&gt;\n");
2431
+ var i;
2432
+ for (i = 0; i &lt; list.length; i++) {
2433
+ _buf.push(" &lt;tr bgcolor=\""); _buf.push(i % 2 == 0 ? '#FFCCCC' : '#CCCCFF'); _buf.push("\"&gt;\n\
2434
+ &lt;td&gt;"); _buf.push(i + 1); _buf.push("&lt;/td&gt;\n\
2435
+ &lt;td&gt;"); _buf.push(list[i]); _buf.push("&lt;/td&gt;\n\
2436
+ &lt;/tr&gt;\n");
2437
+ }
2438
+ _buf.push(" &lt;/tbody&gt;\n\
2439
+ &lt;/table&gt;\n\
2440
+ &lt;/body&gt;\n\
2441
+ &lt;/html&gt;\n");
2442
+ document.write(_buf.join(""));
2443
+ </pre>
2444
+ <p>If command-line option '<code>--docwrite=false</code>' is specified,
2445
+ '<code>_buf.join("");</code>' is used instead of '<code>document.write(_buf.join(""));</code>'.
2446
+ This is useful when passing converted source code to eval() function in JavaScript.
2447
+ </p>
2448
+ <p>You can pass <code>:docwrite=&gt;false</code> to Erubis::Ejavascript.new() in your Ruby script.
2449
+ </p>
2450
+ <pre class="program">s = File.read('example.jshtml')
2451
+ engine = Erubis::Ejavascript.new(s, <code>:docwrite=&gt;false</code>)
2452
+ </pre>
2453
+ <p>If you want to specify any JavaScript code, use '--postamble=...'.
2454
+ </p>
2455
+ <p>Notice that default value of 'docwrite' property will be false in the future release.
2456
+ </p>
2457
+ <br>
2458
+
2459
+
2460
+ <br>
2461
+
2462
+
2463
+ <a name="rails"></a>
2464
+ <h2 class="section1">Ruby on Rails Support</h2>
2465
+ <p><span style="color:#FF0000">NOTICE: Rails 3 adopts Erubis as default default engine. You don't need to do anything at all when using Rails 3. This section is for Rails 2.</span>
2466
+ </p>
2467
+ <p>Erubis supports Ruby on Rails.
2468
+ This section describes how to use Erubis with Ruby on Rails.
2469
+ </p>
2470
+ <a name="rails-settings"></a>
2471
+ <h3 class="section2">Settings</h3>
2472
+ <p>Add the following code to your 'config/environment.rb' and restart web server.
2473
+ This replaces ERB in Rails by Erubis entirely.
2474
+ </p>
2475
+ <div class="program_caption">
2476
+ config/environment.rb</div>
2477
+ <pre class="program">require 'erubis/helpers/rails_helper'
2478
+ #Erubis::Helpers::RailsHelper.engine_class = Erubis::Eruby # or Erubis::FastEruby
2479
+ #Erubis::Helpers::RailsHelper.init_properties = {}
2480
+ #Erubis::Helpers::RailsHelper.show_src = nil
2481
+ #Erubis::Helpers::RailsHelper.preprocessing = false
2482
+ </pre>
2483
+ <p>Options:
2484
+ </p>
2485
+ <dl class="dl2">
2486
+ <dt class="dt2">
2487
+ Erubis::Helpers::RailsHelper.engine_class (=Erubis::Eruby)</dt>
2488
+ <dd class="dd2">
2489
+ <p> Erubis engine class (default Erubis::Eruby).
2490
+ </p>
2491
+ </dd>
2492
+ <dt class="dt2">
2493
+ Erubis::Helpers::RailsHelper.init_properties (={})</dt>
2494
+ <dd class="dd2">
2495
+ <p> Optional arguments for Erubis::Eruby#initialize() method (default {}).
2496
+ </p>
2497
+ </dd>
2498
+ <dt class="dt2">
2499
+ Erubis::Helpers::RailsHelper.show_src (=nil)</dt>
2500
+ <dd class="dd2">
2501
+ <p> Whether to print converted Ruby code into log file.
2502
+ If true, Erubis prints coverted code into log file.
2503
+ If false, Erubis doesn't.
2504
+ If nil, Erubis prints when ENV['RAILS_ENV'] == 'development'.
2505
+ Default is nil.
2506
+ </p>
2507
+ </dd>
2508
+ <dt class="dt2">
2509
+ Erubis::Helpers::RailsHelper.preprocessing (=false)</dt>
2510
+ <dd class="dd2">
2511
+ <p> Enable preprocessing if true (default false).
2512
+ </p>
2513
+ </dd>
2514
+ </dl>
2515
+ <br>
2516
+
2517
+
2518
+ <a name="rails-preprocessing"></a>
2519
+ <h3 class="section2">Preprosessing</h3>
2520
+ <p>Erubis supports preprocessing of template files.
2521
+ Preprocessing make your Ruby on Rails application about 20-40 percent faster.
2522
+ To enable preprocessing, set Erubis::Helpers::RailsHelper.preprocessing to true in your 'environment.rb' file.
2523
+ </p>
2524
+ <p>For example, assume the following template.
2525
+ This is slow because link_to() method is called every time when template is rendered.
2526
+ </p>
2527
+ <pre class="program">&lt;%= link_to 'Create', :action=&gt;'create' %&gt;
2528
+ </pre>
2529
+ <p>The following is faster than the above, but not flexible because url is fixed.
2530
+ </p>
2531
+ <pre class="program">&lt;a href="/users/create"&gt;Create&lt;/a&gt;
2532
+ </pre>
2533
+ <p>Preprocessing solves this problem.
2534
+ If you use '[%= %]' instead of '&lt;%= %&gt;', preprocessor evaluate it only once when template is loaded.
2535
+ </p>
2536
+ <pre class="program"><strong>[%= link_to 'Create', :action=&gt;'create'%]</strong>
2537
+ </pre>
2538
+ <p>The above is evaluated by preprocessor and replaced to the following code automatically.
2539
+ </p>
2540
+ <pre class="program">&lt;a href="/users/create"&gt;Create&lt;/a&gt;
2541
+ </pre>
2542
+ <p>Notice that this is done only once when template file is loaded.
2543
+ It means that link_to() method is not called when template is rendered.
2544
+ </p>
2545
+ <p>If link_to() method have variable arguments, use <code>_?()</code> helper method.
2546
+ </p>
2547
+ <pre class="program">&lt;% for user in @users %&gt;
2548
+ [%= link_to <strong>_?('user.name')</strong>, :action=&gt;'show', :id=&gt;<strong>_?('user.id')</strong> %]
2549
+ &lt;% end %&gt;
2550
+ </pre>
2551
+ <p>The above is evaluated by preprocessor when template is loaded and expanded into the following code.
2552
+ This will be much faster because link_to() method is not called when rendering.
2553
+ </p>
2554
+ <pre class="program">&lt;% for user in @users %&gt;
2555
+ &lt;a href="/users/show/<strong>&lt;%=user.id%&gt;</strong>"&gt;<strong>&lt;%=user.name%&gt;</strong>&lt;/a&gt;
2556
+ &lt;% end %&gt;
2557
+ </pre>
2558
+ <p>Preprocessing statement (<code>[% %]</code>) is also available as well as preprocessing expression (<code>[%= %]</code>).
2559
+ </p>
2560
+ <pre class="program">&lt;select name="state"&gt;
2561
+ &lt;option value=""&gt;-&lt;/option&gt;
2562
+ <strong>[% for code in states.keys.sort %]</strong>
2563
+ &lt;option value="<strong>[%= code %]</strong>"&gt;<strong>[%= states[code] %]</strong>&lt;/option&gt;
2564
+ <strong>[% end %]</strong>
2565
+ &lt;/select&gt;
2566
+ </pre>
2567
+ <p>The above will be evaluated by preprocessor and expanded into the following when template is loaded.
2568
+ In the result, rendering speed will be much faster because for-loop is not executed when rendering.
2569
+ </p>
2570
+ <pre class="program">&lt;select name="state"&gt;
2571
+ &lt;option value=""&gt;-&lt;/option&gt;
2572
+ &lt;option value="AK"&gt;Alaska&lt;/option&gt;
2573
+ &lt;option value="AL"&gt;Alabama&lt;/option&gt;
2574
+ &lt;option value="AR"&gt;Arkansas&lt;/option&gt;
2575
+ &lt;option value="AS"&gt;American Samoa&lt;/option&gt;
2576
+ &lt;option value="AZ"&gt;Arizona&lt;/option&gt;
2577
+ &lt;option value="CA"&gt;California&lt;/option&gt;
2578
+ &lt;option value="CO"&gt;Colorado&lt;/option&gt;
2579
+ ....
2580
+ &lt;/select&gt;
2581
+ </pre>
2582
+ <p>Notice that it is not recommended to use preprocessing with tag helpers,
2583
+ because tag helpers generate different html code when form parameter has errors or not.
2584
+ </p>
2585
+ <p>Helper methods of Ruby on Rails are divided into two groups.
2586
+ </p>
2587
+ <ul type="disc">
2588
+ <li>link_to() or _() (method of gettext package) are not need to call for every time
2589
+ as template is rendered because it returns same value when same arguments are passed.
2590
+ These methods can be got faster by preprocessing.
2591
+ </li>
2592
+ <li>Tag helper methods should be called for every time as template is rendered
2593
+ because it may return differrent value even if the same arguments are passed.
2594
+ Preprocessing is not available with these methods.
2595
+ </li>
2596
+ </ul>
2597
+ <p>In Ruby on Rails 2.0, <code>_?('user_id')</code> is OK but <code>_?('user.id')</code> is NG
2598
+ because the latter contains period ('.') character.
2599
+ </p>
2600
+ <pre class="program">&lt;!-- NG in Rails 2.0, because _?('') contains period --&gt;
2601
+ [%= link_to 'Edit', edit_user_path(<strong>_?('@user.id')</strong>) %]
2602
+ [%= link_to 'Show', <strong>@user</strong> %]
2603
+ [%= link_to 'Delete', <strong>@user</strong>, :confirm=&gt;'OK?', :method=&gt;:delete %]
2604
+
2605
+ &lt;!-- OK in Rails 2.0 --&gt;
2606
+ <strong>&lt;%= user_id = @user.id %&gt;</strong>
2607
+ [%= link_to 'Edit', edit_user_path(<strong>_?('user_id')</strong>) %]
2608
+ [%= link_to 'Show', <strong>:action=&gt;'show', :id=&gt;_?('user_id')</strong> %]
2609
+ [%= link_to 'Delete', <strong>{:action=&gt;'destroy', :id=&gt;_?('user_id')}</strong>,
2610
+ {:confirm=&gt;'OK?', :method=&gt;:delete} %]
2611
+ </pre>
2612
+ <br>
2613
+
2614
+
2615
+ <a name="rails-formhelpers"></a>
2616
+ <h3 class="section2">Form Helpers for Preprocessing</h3>
2617
+ <p><strong>(Experimental)</strong>
2618
+ </p>
2619
+ <p>Erubis provides form helper methods for preprocessing.
2620
+ These are defined in 'erubis/helpers/rails_form_helper.rb'.
2621
+ If you want to use it, require it and include Erubis::Helpers::RailsFormHelper in 'app/helpers/applition_helper.rb'
2622
+ </p>
2623
+ <div class="program_caption">
2624
+ app/helpers/xxx_helper.rb</div>
2625
+ <pre class="program">require 'erubis/helpers/rails_form_helper'
2626
+ module ApplicationHelper
2627
+ include Erubis::Helpers::RailsFormHelper
2628
+ end
2629
+ </pre>
2630
+ <p>Form helper methods defined in Erubis::Helpers::RailsFormHelper are named as 'pp_xxxx'
2631
+ ('pp' represents preprocessing).
2632
+ </p>
2633
+ <p>Assume the following view template:
2634
+ </p>
2635
+ <div class="program_caption">
2636
+ _form.rhtml</div>
2637
+ <pre class="program"> &lt;p&gt;
2638
+ Name: &lt;%= text_field :user, :name %&gt;
2639
+ &lt;/p&gt;
2640
+ &lt;p&gt;
2641
+ Name: <strong>[%= pp_text_field :user, :name %]</strong>
2642
+ &lt;/p&gt;
2643
+ </pre>
2644
+ <p>Erubis preprocessor converts it to the following eRuby string:
2645
+ </p>
2646
+ <div class="program_caption">
2647
+ preprocessed</div>
2648
+ <pre class="program"> &lt;p&gt;
2649
+ Name: &lt;%= text_field :user, :name %&gt;
2650
+ &lt;/p&gt;
2651
+ &lt;p&gt;
2652
+ Name: <strong>&lt;input id="stock_name" name="stock[name]" size="30" type="text" value="&lt;%=h @stock.name%&gt;" /&gt;</strong>
2653
+ &lt;/p&gt;
2654
+ </pre>
2655
+ <p>Erubis converts it to the following Ruby code:
2656
+ </p>
2657
+ <div class="program_caption">
2658
+ Ruby code</div>
2659
+ <pre class="program"> _buf &lt;&lt; ' &lt;p&gt;
2660
+ Name: '; _buf &lt;&lt; ( text_field :stock, :name ).to_s; _buf &lt;&lt; '
2661
+ '; _buf &lt;&lt; ' &lt;/p&gt;
2662
+ &lt;p&gt;
2663
+ Name: &lt;input id="stock_name" name="stock[name]" size="30" type="text" value="'; _buf &lt;&lt; (h @stock.name).to_s; _buf &lt;&lt; '" /&gt;
2664
+ &lt;/p&gt;
2665
+ ';
2666
+ </pre>
2667
+ <p>The above Ruby code shows that text_field() is called everytime when rendering,
2668
+ but pp_text_field() is called only once when template is loaded.
2669
+ This means that pp_text_field() with preprocessing makes view layer very fast.
2670
+ </p>
2671
+ <p>Module Erubis::Helpers::RailsFormHelper defines the following form helper methods.
2672
+ </p>
2673
+ <ul type="disc">
2674
+ <li>pp_render_partial(basename)
2675
+ </li>
2676
+ <li>pp_form_tag(url_for_options={}, options={}, *parameters_for_url, &amp;block)
2677
+ </li>
2678
+ <li>pp_text_field(object_name, method, options={})
2679
+ </li>
2680
+ <li>pp_password_field(object_name, method, options={})
2681
+ </li>
2682
+ <li>pp_hidden_field(object_name, method, options={})
2683
+ </li>
2684
+ <li>pp_file_field(object_name, method, options={})
2685
+ </li>
2686
+ <li>pp_text_area(object_name, method, options={})
2687
+ </li>
2688
+ <li>pp_check_box(object_name, method, options={}, checked_value="1", unchecked_value="0")
2689
+ </li>
2690
+ <li>pp_radio_button(object_name, method, tag_value, options={})
2691
+ </li>
2692
+ <li>pp_select(object, method, collection, options={}, html_options={})
2693
+ </li>
2694
+ <li>pp_collection_select(object, method, collection, value_method, text_method, options={}, html_options={})
2695
+ </li>
2696
+ <li>pp_country_select(object, method, priority_countries=nil, options={}, html_options={})
2697
+ </li>
2698
+ <li>pp_time_zone_select(object, method, priority_zones=nil, options={}, html_options={})
2699
+ </li>
2700
+ <li>pp_submit_tag(value="Save changes", options={})
2701
+ </li>
2702
+ <li>pp_image_submit_tag(source, options={})
2703
+ </li>
2704
+ </ul>
2705
+ <p>Notice that pp_form_for() is not provided.
2706
+ </p>
2707
+ <p><span style="color:#FF0000">CAUTION:</span> These are experimental and may not work in Ruby on Rails 2.0.
2708
+ </p>
2709
+ <br>
2710
+
2711
+
2712
+ <a name="rails-others"></a>
2713
+ <h3 class="section2">Others</h3>
2714
+ <ul type="disc">
2715
+ <li>ActionView::Helpers::CaptureHelper#capture() and ActionView::Helpers::Texthelper#concat() are available.
2716
+ </li>
2717
+ </ul>
2718
+ <ul type="disc">
2719
+ <li>Form helper methods are not tested in Ruby on Rails 2.0.
2720
+ </li>
2721
+ </ul>
2722
+ <ul type="disc">
2723
+ <li>ERB::Util.h() is redefined if you require 'erubis/helpers/rails_helper.rb'.
2724
+ Original definition of ERB::Util.h() is the following and it is slow
2725
+ because it scans string four times.
2726
+ <pre class="program"> def html_escape(s)
2727
+ s.to_s.gsub(/&amp;/, "&amp;amp;").gsub(/\"/, "&amp;quot;").gsub(/&gt;/, "&amp;gt;").gsub(/&lt;/, "&amp;lt;")
2728
+ end
2729
+ alias h html_escape
2730
+ </pre>
2731
+ <p> New definition in 'erubis/helpers/rails_helper.rb' is faster than the above
2732
+ because it scans string only once.
2733
+ </p>
2734
+ <pre class="program"> ESCAPE_TABLE = { '&amp;'=&gt;'&amp;amp;', '&lt;'=&gt;'&amp;lt;', '&gt;'=&gt;'&amp;gt;', '"'=&gt;'&amp;quot;', "'"=&gt;'&amp;#039;', }
2735
+ def h(value)
2736
+ value.to_s.gsub(/[&amp;&lt;&gt;"]/) { |s| ESCAPE_TABLE[s] }
2737
+ end
2738
+ </pre>
2739
+ <p> Notice that the new definition may be slow if string contains
2740
+ many '&lt; &gt; &amp; "' characters because block is call many time.
2741
+ You should use ERB::Util.html_hscape() if string contains a lot of '&lt; &gt; &amp; "'
2742
+ characters.
2743
+ </p>
2744
+ </li>
2745
+ </ul>
2746
+ <br>
2747
+
2748
+
2749
+ <br>
2750
+
2751
+
2752
+ <a name="topics"></a>
2753
+ <h2 class="section1">Other Topics</h2>
2754
+ <a name="topics-fasteruby"></a>
2755
+ <h3 class="section2"><code>Erubis::FastEruby</code> Class</h3>
2756
+ <p><code>Erubis::FastEruby</code> class generates more effective code than <code>Erubis::Eruby</code>.
2757
+ </p>
2758
+ <a name="fasteruby-example.rb"></a>
2759
+ <div class="program_caption">
2760
+ fasteruby-example.rb</div>
2761
+ <pre class="program">require 'erubis'
2762
+ input = File.read('example.eruby')
2763
+
2764
+ puts "----- Erubis::Eruby -----"
2765
+ print Erubis::Eruby.new(input).src
2766
+
2767
+ puts "----- Erubis::FastEruby -----"
2768
+ print <strong>Erubis::FastEruby</strong>.new(input).src
2769
+ </pre>
2770
+ <a name="fasteruby-example.result"></a>
2771
+ <div class="terminal_caption">
2772
+ result</div>
2773
+ <pre class="terminal">$ ruby fasteruby-example.rb
2774
+ ----- Erubis::Eruby -----
2775
+ _buf = ''; _buf &lt;&lt; '&lt;div&gt;
2776
+ '; for item in list
2777
+ _buf &lt;&lt; ' &lt;p&gt;'; <strong>_buf &lt;&lt; ( item ).to_s;</strong> _buf &lt;&lt; '&lt;/p&gt;
2778
+ &lt;p&gt;'; <strong>_buf &lt;&lt; Erubis::XmlHelper.escape_xml( item );</strong> _buf &lt;&lt; '&lt;/p&gt;
2779
+ '; end
2780
+ _buf &lt;&lt; '&lt;/div&gt;
2781
+ ';
2782
+ _buf.to_s
2783
+ ----- Erubis::FastEruby -----
2784
+ _buf = ''; _buf &lt;&lt; %Q`&lt;div&gt;\n`
2785
+ for item in list
2786
+ _buf &lt;&lt; %Q` &lt;p&gt;<strong>#{ item }</strong>&lt;/p&gt;
2787
+ &lt;p&gt;<strong>#{Erubis::XmlHelper.escape_xml( item )}</strong>&lt;/p&gt;\n`
2788
+ end
2789
+ _buf &lt;&lt; %Q`&lt;/div&gt;\n`
2790
+ _buf.to_s
2791
+ </pre>
2792
+ <p>Technically, <code>Erubis::FastEruby</code> is just a subclass of <code>Erubis::Eruby</code> and includes <code><a href="#interpolation-enhancer">InterpolationEnhancer</a></code>. <code>Erubis::FastEruby</code> is faster than <code>Erubis::Eruby</code> but is not extensible compared to <code>Erubis::Eruby</code>. This is the reason why <code>Erubis::FastEruby</code> is not the default class of Erubis.
2793
+ </p>
2794
+ <br>
2795
+
2796
+
2797
+ <a name="topics-bufvar"></a>
2798
+ <h3 class="section2"><code>:bufvar</code> Option</h3>
2799
+ <p>Since 2.7.0, Erubis supports <code>:bufvar</code> option which allows you to change buffer variable name (default '<code>_buf</code>').
2800
+ </p>
2801
+ <a name="bufvar-example.rb"></a>
2802
+ <div class="program_caption">
2803
+ bufvar-example.rb</div>
2804
+ <pre class="program">require 'erubis'
2805
+ input = File.read('example.eruby')
2806
+
2807
+ puts "----- default -----"
2808
+ eruby = Erubis::FastEruby.new(input)
2809
+ puts eruby.src
2810
+
2811
+ puts "----- with :bufvar option -----"
2812
+ eruby = Erubis::FastEruby.new(input, <strong>:bufvar=&gt;'@_out_buf'</strong>)
2813
+ print eruby.src
2814
+ </pre>
2815
+ <a name="bufvar-example.result"></a>
2816
+ <div class="terminal_caption">
2817
+ result</div>
2818
+ <pre class="terminal">$ ruby bufvar-example.rb
2819
+ ----- default -----
2820
+ _buf = ''; _buf &lt;&lt; %Q`&lt;div&gt;\n`
2821
+ for item in list
2822
+ _buf &lt;&lt; %Q` &lt;p&gt;#{ item }&lt;/p&gt;
2823
+ &lt;p&gt;#{Erubis::XmlHelper.escape_xml( item )}&lt;/p&gt;\n`
2824
+ end
2825
+ _buf &lt;&lt; %Q`&lt;/div&gt;\n`
2826
+ _buf.to_s
2827
+ ----- with :bufvar option -----
2828
+ <strong>@_out_buf</strong> = ''; <strong>@_out_buf</strong> &lt;&lt; %Q`&lt;div&gt;\n`
2829
+ for item in list
2830
+ <strong>@_out_buf</strong> &lt;&lt; %Q` &lt;p&gt;#{ item }&lt;/p&gt;
2831
+ &lt;p&gt;#{Erubis::XmlHelper.escape_xml( item )}&lt;/p&gt;\n`
2832
+ end
2833
+ <strong>@_out_buf</strong> &lt;&lt; %Q`&lt;/div&gt;\n`
2834
+ <strong>@_out_buf</strong>.to_s
2835
+ </pre>
2836
+ <br>
2837
+
2838
+
2839
+ <a name="topics-trimspaces"></a>
2840
+ <h3 class="section2">'&lt;%= =%&gt;' and '&lt;%= -%&gt;'</h3>
2841
+ <p>Since 2.6.0, '&lt;%= -%&gt;' remove tail spaces and newline.
2842
+ This is for compatibiliy with ERB when trim mode is '-'.
2843
+ '&lt;%= =%&gt;' also removes tail spaces and newlines, and this is
2844
+ Erubis-original enhancement (cooler than '&lt;%= -%&gt;', isn't it?).
2845
+ </p>
2846
+ <a name="tailnewline.rhtml.comment_filter"></a>
2847
+ <div class="program_caption">
2848
+ tailnewline.rhtml</div>
2849
+ <pre class="program">&lt;div&gt;
2850
+ &lt;%= @var -%&gt; # or &lt;%= @var =%&gt;
2851
+ &lt;/div&gt;
2852
+ </pre>
2853
+ <div class="terminal_caption">
2854
+ result (version 2.5.0):</div>
2855
+ <pre class="terminal">$ erubis -c '{var: "AAA\n"}' tailnewline.rhtml
2856
+ &lt;div&gt;
2857
+ AAA
2858
+
2859
+ &lt;/div&gt;
2860
+ </pre>
2861
+ <a name="tail_260.result"></a>
2862
+ <div class="terminal_caption">
2863
+ result (version 2.6.0):</div>
2864
+ <pre class="terminal">$ erubis -c '{var: "AAA\n"}' tailnewline.rhtml
2865
+ &lt;div&gt;
2866
+ AAA
2867
+ &lt;/div&gt;
2868
+ </pre>
2869
+ <br>
2870
+
2871
+
2872
+ <a name="topics-doublepercent"></a>
2873
+ <h3 class="section2">'&lt;%% %&gt;' and '&lt;%%= %&gt;'</h3>
2874
+ <p>Since 2.6.0, '&lt;%% %&gt;' and '&lt;%%= %&gt;' are converted into '&lt;% %&gt;' and '&lt;%= %&gt;' respectively.
2875
+ This is for compatibility with ERB.
2876
+ </p>
2877
+ <div class="program_caption">
2878
+ doublepercent.rhtml:</div>
2879
+ <pre class="program">&lt;ul&gt;
2880
+ &lt;%% for item in @list %&gt;
2881
+ &lt;li&gt;&lt;%%= item %&gt;&lt;/li&gt;
2882
+ &lt;%% end %&gt;
2883
+ &lt;/ul&gt;
2884
+ </pre>
2885
+ <div class="terminal_caption">
2886
+ result:</div>
2887
+ <pre class="terminal">$ erubis doublepercent.rhtml
2888
+ &lt;ul&gt;
2889
+ &lt;% for item in @list %&gt;
2890
+ &lt;li&gt;&lt;%= item %&gt;&lt;/li&gt;
2891
+ &lt;% end %&gt;
2892
+ &lt;/ul&gt;
2893
+ </pre>
2894
+ <br>
2895
+
2896
+
2897
+ <a name="topics-context-vs-binding"></a>
2898
+ <h3 class="section2">evaluate(context) v.s. result(binding)</h3>
2899
+ <p>It is recommended to use 'Erubis::Eruby#evaluate(context)' instead of 'Erubis::Eruby#result(binding)' because Ruby's Binding object has some problems.
2900
+ </p>
2901
+ <ul type="disc">
2902
+ <li>It is not able to specify variables to use.
2903
+ Using binding() method, all of local variables are passed to templates.
2904
+ </li>
2905
+ <li>Changing local variables in templates may affect to varialbes in main program.
2906
+ If you assign '10' to local variable 'x' in templates, it may change variable 'x' in main program unintendedly.
2907
+ </li>
2908
+ </ul>
2909
+ <p>The following example shows that assignment of some values into variable 'x' in templates affect to local variable 'x' in main program unintendedly.
2910
+ </p>
2911
+ <a name="template1.rhtml"></a>
2912
+ <div class="program_caption">
2913
+ template1.rhtml (intended to be passed 'items' from main program)</div>
2914
+ <pre class="program">&lt;% for <strong>x</strong> in <strong>items</strong> %&gt;
2915
+ item = &lt;%= x %&gt;
2916
+ &lt;% end %&gt;
2917
+ ** debug: local variables=&lt;%= local_variables().inspect() %&gt;
2918
+ </pre>
2919
+ <a name="main_program1.rb"></a>
2920
+ <div class="program_caption">
2921
+ main_program1.rb (intended to pass 'items' to template)</div>
2922
+ <pre class="program">require 'erubis'
2923
+ eruby = Erubis::Eruby.new(File.read('template1.rhtml'))
2924
+ items = ['foo', 'bar', 'baz']
2925
+ x = 1
2926
+ ## local variable 'x' and 'eruby' are passed to template as well as 'items'!
2927
+ print <strong>eruby.result(binding())</strong>
2928
+ ## local variable 'x' is changed unintendedly because it is changed in template!
2929
+ puts "** debug: x=#{x.inspect}" #=&gt; "baz"
2930
+ </pre>
2931
+ <a name="main_program1.result"></a>
2932
+ <div class="terminal_caption">
2933
+ Result:</div>
2934
+ <pre class="terminal">$ ruby main_program1.rb
2935
+ item = foo
2936
+ item = bar
2937
+ item = baz
2938
+ ** debug: local variables=["eruby", "items", "x", "_buf"]
2939
+ ** debug: x="baz"
2940
+ </pre>
2941
+ <p>This problem is caused because Ruby's Binding class is poor to use in template engine.
2942
+ Binding class should support the following features.
2943
+ </p>
2944
+ <pre class="program">b = Binding.new # create empty Binding object
2945
+ b['x'] = 1 # set local variables using binding object
2946
+ </pre>
2947
+ <p>But the above features are not implemented in Ruby.
2948
+ </p>
2949
+ <p>A pragmatic solution is to use 'Erubis::Eruby#evaluate(context)' instead of 'Erubis::Eruby#result(binding)'.
2950
+ 'evaluate(context)' uses Erubis::Context object and instance variables instead of Binding object and local variables.
2951
+ </p>
2952
+ <a name="template2.rhtml"></a>
2953
+ <div class="program_caption">
2954
+ template2.rhtml (intended to be passed '@items' from main program)</div>
2955
+ <pre class="program">&lt;% for <strong>x</strong> in <strong>@items</strong> %&gt;
2956
+ item = &lt;%= x %&gt;
2957
+ &lt;% end %&gt;
2958
+ ** debug: local variables=&lt;%= local_variables().inspect() %&gt;
2959
+ </pre>
2960
+ <a name="main_program2.rb"></a>
2961
+ <div class="program_caption">
2962
+ main_program2.rb (intended to pass '@items' to template)</div>
2963
+ <pre class="program">require 'erubis'
2964
+ eruby = Erubis::Eruby.new(File.read('template2.rhtml'))
2965
+ items = ['foo', 'bar', 'baz']
2966
+ x = 1
2967
+ ## only 'items' are passed to template
2968
+ print <strong>eruby.evaluate(:items=&gt;items)</strong>
2969
+ ## local variable 'x' is not changed!
2970
+ puts "** debug: x=#{x.inspect}" #=&gt; 1
2971
+ </pre>
2972
+ <a name="main_program2.result"></a>
2973
+ <div class="terminal_caption">
2974
+ Result:</div>
2975
+ <pre class="terminal">$ ruby main_program2.rb
2976
+ item = foo
2977
+ item = bar
2978
+ item = baz
2979
+ ** debug: local variables=["_context", "x", "_buf"]
2980
+ ** debug: x=1
2981
+ </pre>
2982
+ <br>
2983
+
2984
+
2985
+ <a name="topics-fasteruby"></a>
2986
+ <h3 class="section2">Class Erubis::FastEruby</h3>
2987
+ <p>[experimental]
2988
+ </p>
2989
+ <p>Erubis provides Erubis::FastEruby class which includes <a href="#interpolation-enhancer">InterpolationEnhancer</a> and <a href="#topics-benchmark">works faster than Erubis::Eruby class</a>.
2990
+ If you desire more speed, try Erubis::FastEruby class.
2991
+ </p>
2992
+ <a name="fasteruby.rhtml"></a>
2993
+ <div class="program_caption">
2994
+ File 'fasteruby.rhtml':</div>
2995
+ <pre class="program">&lt;html&gt;
2996
+ &lt;body&gt;
2997
+ &lt;h1&gt;&lt;%== @title %&gt;&lt;/h1&gt;
2998
+ &lt;table&gt;
2999
+ &lt;% i = 0 %&gt;
3000
+ &lt;% for item in @list %&gt;
3001
+ &lt;% i += 1 %&gt;
3002
+ &lt;tr&gt;
3003
+ &lt;td&gt;&lt;%= i %&gt;&lt;/td&gt;
3004
+ &lt;td&gt;&lt;%== item %&gt;&lt;/td&gt;
3005
+ &lt;/tr&gt;
3006
+ &lt;% end %&gt;
3007
+ &lt;/table&gt;
3008
+ &lt;/body&gt;
3009
+ &lt;/html&gt;
3010
+ </pre>
3011
+ <a name="fasteruby.rb"></a>
3012
+ <div class="program_caption">
3013
+ File 'fasteruby.rb':</div>
3014
+ <pre class="program">require 'erubis'
3015
+ input = File.read('fasteruby.rhtml')
3016
+ eruby = <strong>Erubis::FastEruby.new(input)</strong> # create Eruby object
3017
+
3018
+ puts "---------- script source ---"
3019
+ puts eruby.src
3020
+
3021
+ puts "---------- result ----------"
3022
+ context = { :title=&gt;'Example', :list=&gt;['aaa', 'bbb', 'ccc'] }
3023
+ output = eruby.evaluate(context)
3024
+ print output
3025
+ </pre>
3026
+ <a name="fasteruby.result"></a>
3027
+ <div class="terminal_caption">
3028
+ output</div>
3029
+ <pre class="terminal">$ ruby fasteruby.rb
3030
+ ---------- script source ---
3031
+ _buf = ''; _buf &lt;&lt; <strong>%Q`</strong>&lt;html&gt;
3032
+ &lt;body&gt;
3033
+ &lt;h1&gt;<strong>#{Erubis::XmlHelper.escape_xml( @title )}</strong>&lt;/h1&gt;
3034
+ &lt;table&gt;\n<strong>`</strong>
3035
+ i = 0
3036
+ for item in @list
3037
+ i += 1
3038
+ _buf &lt;&lt; <strong>%Q`</strong> &lt;tr&gt;
3039
+ &lt;td&gt;<strong>#{ i }</strong>&lt;/td&gt;
3040
+ &lt;td&gt;<strong>#{Erubis::XmlHelper.escape_xml( item )}</strong>&lt;/td&gt;
3041
+ &lt;/tr&gt;\n<strong>`</strong>
3042
+ end
3043
+ _buf &lt;&lt; <strong>%Q`</strong> &lt;/table&gt;
3044
+ &lt;/body&gt;
3045
+ &lt;/html&gt;\n<strong>`</strong>
3046
+ _buf.to_s
3047
+ ---------- result ----------
3048
+ &lt;html&gt;
3049
+ &lt;body&gt;
3050
+ &lt;h1&gt;Example&lt;/h1&gt;
3051
+ &lt;table&gt;
3052
+ &lt;tr&gt;
3053
+ &lt;td&gt;1&lt;/td&gt;
3054
+ &lt;td&gt;aaa&lt;/td&gt;
3055
+ &lt;/tr&gt;
3056
+ &lt;tr&gt;
3057
+ &lt;td&gt;2&lt;/td&gt;
3058
+ &lt;td&gt;bbb&lt;/td&gt;
3059
+ &lt;/tr&gt;
3060
+ &lt;tr&gt;
3061
+ &lt;td&gt;3&lt;/td&gt;
3062
+ &lt;td&gt;ccc&lt;/td&gt;
3063
+ &lt;/tr&gt;
3064
+ &lt;/table&gt;
3065
+ &lt;/body&gt;
3066
+ &lt;/html&gt;
3067
+ </pre>
3068
+ <br>
3069
+
3070
+
3071
+ <a name="topics-syntax"></a>
3072
+ <h3 class="section2">Syntax Checking</h3>
3073
+ <p>Command-line option '-z' checks syntax. It is similar to 'erubis -x file.rhtml | ruby -wc', but it can take several file names.
3074
+ </p>
3075
+ <div class="terminal_caption">
3076
+ example of command-line option '-z'</div>
3077
+ <pre class="terminal">$ erubis <strong>-z</strong> app/views/*/*.rhtml
3078
+ Syntax OK
3079
+ </pre>
3080
+ <br>
3081
+
3082
+
3083
+ <a name="topics-caching"></a>
3084
+ <h3 class="section2">File Caching</h3>
3085
+ <p>Erubis::Eruby.load_file(filename) convert file into Ruby script and return Eruby object.
3086
+ In addition, it caches converted Ruby script into cache file (filename + '.cache') if cache file is old or not exist.
3087
+ If cache file exists and is newer than eruby file, Erubis::Eruby.load_file() loads cache file.
3088
+ </p>
3089
+ <div class="program_caption">
3090
+ example of Erubis::Eruby.load_file()</div>
3091
+ <pre class="program">require 'erubis'
3092
+ filename = 'example.rhtml'
3093
+ eruby = <strong>Erubis::Eruby.load_file(filename)</strong>
3094
+ cachename = filename + '.cache'
3095
+ if test(?f, cachename)
3096
+ puts "*** cache file '#{cachename}' created."
3097
+ end
3098
+ </pre>
3099
+ <p>Since 2.6.0, it is able to specify cache filename.
3100
+ </p>
3101
+ <div class="program_caption">
3102
+ specify cache filename.</div>
3103
+ <pre class="program">filename = 'example.rhtml'
3104
+ eruby = Erubis::Eruby.load_file(filename, :cachename=&gt;filename+'.cache')
3105
+ </pre>
3106
+ <p>Caching makes Erubis about 40-50 percent faster than no-caching.
3107
+ See <a href="#topics-benchmark">benchmark</a> for details.
3108
+ </p>
3109
+ <br>
3110
+
3111
+
3112
+ <a name="topics-tinyeruby"></a>
3113
+ <h3 class="section2">Erubis::TinyEruby class</h3>
3114
+ <p>Erubis::TinyEruby class in 'erubis/tiny.rb' is the smallest implementation of eRuby.
3115
+ If you don't need any enhancements of Erubis and only require simple eRuby implementation,
3116
+ try Erubis::TinyEruby class.
3117
+ </p>
3118
+ <br>
3119
+
3120
+
3121
+ <a name="topics-php"></a>
3122
+ <h3 class="section2">NoTextEnhancer and NoCodeEnhancer in PHP</h3>
3123
+ <p>NoTextEnhancer and NoCodEnahncer are quite useful not only for eRuby but also for PHP.
3124
+ The former "drops" HTML text and show up embedded Ruby/PHP code
3125
+ and the latter drops embedded Ruby/PHP code and leave HTML text.
3126
+ </p>
3127
+ <p>For example, see the following PHP script.
3128
+ </p>
3129
+ <a name="notext-example.php"></a>
3130
+ <div class="program_caption">
3131
+ notext-example.php</div>
3132
+ <pre class="program">&lt;html&gt;
3133
+ &lt;body&gt;
3134
+ &lt;h3&gt;List&lt;/h3&gt;
3135
+ &lt;?php if (!$list || count($list) == 0) { ?&gt;
3136
+ &lt;p&gt;not found.&lt;/p&gt;
3137
+ &lt;?php } else { ?&gt;
3138
+ &lt;table&gt;
3139
+ &lt;tbody&gt;
3140
+ &lt;?php $i = 0; ?&gt;
3141
+ &lt;?php foreach ($list as $item) { ?&gt;
3142
+ &lt;tr bgcolor="&lt;?php echo ++$i % 2 == 1 ? '#FFCCCC' : '#CCCCFF'; ?&gt;"&gt;
3143
+ &lt;td&gt;&lt;?php echo $item; ?&gt;&lt;/td&gt;
3144
+ &lt;/tr&gt;
3145
+ &lt;?php } ?&gt;
3146
+ &lt;/tbody&gt;
3147
+ &lt;/table&gt;
3148
+ &lt;?php } ?&gt;
3149
+ &lt;/body&gt;
3150
+ &lt;/html&gt;
3151
+ </pre>
3152
+ <p>This is complex because PHP code and HTML document are mixed.
3153
+ NoTextEnhancer can separate PHP code from HTML document.
3154
+ </p>
3155
+ <a name="notext-php.result"></a>
3156
+ <div class="terminal_caption">
3157
+ example of using NoTextEnhancer with PHP file</div>
3158
+ <pre class="terminal">$ erubis -l php --pi=php -N -E NoText --trim=false notext-example.php
3159
+ 1:
3160
+ 2:
3161
+ 3:
3162
+ 4: &lt;?php if (!$list || count($list) == 0) { ?&gt;
3163
+ 5:
3164
+ 6: &lt;?php } else { ?&gt;
3165
+ 7:
3166
+ 8:
3167
+ 9: &lt;?php $i = 0; ?&gt;
3168
+ 10: &lt;?php foreach ($list as $item) { ?&gt;
3169
+ 11: &lt;?php echo ++$i % 2 == 1 ? '#FFCCCC' : '#CCCCFF'; ?&gt;
3170
+ 12: &lt;?php echo $item; ?&gt;
3171
+ 13:
3172
+ 14: &lt;?php } ?&gt;
3173
+ 15:
3174
+ 16:
3175
+ 17: &lt;?php } ?&gt;
3176
+ 18:
3177
+ 19:
3178
+ </pre>
3179
+ <p>In the same way, NoCodeEnhancer can extract HTML tags.
3180
+ </p>
3181
+ <a name="nocode-php.result"></a>
3182
+ <div class="terminal_caption">
3183
+ example of using NoCodeEnhancer with PHP file</div>
3184
+ <pre class="terminal">$ erubis -l php --pi=php -N -E NoCode --trim=false notext-example.php
3185
+ 1: &lt;html&gt;
3186
+ 2: &lt;body&gt;
3187
+ 3: &lt;h3&gt;List&lt;/h3&gt;
3188
+ 4:
3189
+ 5: &lt;p&gt;not found.&lt;/p&gt;
3190
+ 6:
3191
+ 7: &lt;table&gt;
3192
+ 8: &lt;tbody&gt;
3193
+ 9:
3194
+ 10:
3195
+ 11: &lt;tr bgcolor=""&gt;
3196
+ 12: &lt;td&gt;&lt;/td&gt;
3197
+ 13: &lt;/tr&gt;
3198
+ 14:
3199
+ 15: &lt;/tbody&gt;
3200
+ 16: &lt;/table&gt;
3201
+ 17:
3202
+ 18: &lt;/body&gt;
3203
+ 19: &lt;/html&gt;
3204
+ </pre>
3205
+ <br>
3206
+
3207
+
3208
+ <a name="topcs-modruby"></a>
3209
+ <h3 class="section2">Helper Class for mod_ruby</h3>
3210
+ <p>Thanks Andrew R Jackson, he developed 'erubis-run.rb' which enables you to use Erubis with mod_ruby.
3211
+ </p>
3212
+ <ol type="1">
3213
+ <li>Copy 'erubis-2.7.0/contrib/erubis-run.rb' to the 'RUBYLIBDIR/apache' directory (for example '/usr/local/lib/ruby/1.8/apache') which contains 'ruby-run.rb', 'eruby-run.rb', and so on.
3214
+ <pre class="terminal">$ cd erubis-2.7.0/
3215
+ $ sudo copy contrib/erubis-run.rb /usr/local/lib/ruby/1.8/apache/
3216
+ </pre>
3217
+ </li>
3218
+ <li>Add the following example to your 'httpd.conf' (for example '/usr/local/apache2/conf/httpd.conf')
3219
+ <pre class="program">LoadModule ruby_module modules/mod_ruby.so
3220
+ &lt;IfModule mod_ruby.c&gt;
3221
+ RubyRequire apache/ruby-run
3222
+ RubyRequire apache/eruby-run
3223
+ RubyRequire apache/erubis-run
3224
+ &lt;Location /erubis&gt;
3225
+ SetHandler ruby-object
3226
+ RubyHandler Apache::ErubisRun.instance
3227
+ &lt;/Location&gt;
3228
+ &lt;Files *.rhtml&gt;
3229
+ SetHandler ruby-object
3230
+ RubyHandler Apache::ErubisRun.instance
3231
+ &lt;/Files&gt;
3232
+ &lt;/IfModule&gt;
3233
+ </pre>
3234
+ </li>
3235
+ <li>Restart Apache web server.
3236
+ <pre class="terminal">$ sudo /usr/local/apache2/bin/apachectl stop
3237
+ $ sudo /usr/local/apache2/bin/apachectl start
3238
+ </pre>
3239
+ </li>
3240
+ <li>Create *.rhtml file, for example:
3241
+ <pre class="program">&lt;html&gt;
3242
+ &lt;body&gt;
3243
+ Now is &lt;%= Time.now %&gt;
3244
+ Erubis version is &lt;%= Erubis::VERSION %&gt;
3245
+ &lt;/body&gt;
3246
+ &lt;/html&gt;
3247
+ </pre>
3248
+ </li>
3249
+ <li>Change mode of your directory to be writable by web server process.
3250
+ <pre class="terminal">$ cd /usr/local/apache2/htdocs/erubis
3251
+ $ sudo chgrp daemon .
3252
+ $ sudo chmod 775 .
3253
+ </pre>
3254
+ </li>
3255
+ <li>Access the *.rhtml file and you'll get the web page.
3256
+ </li>
3257
+ </ol>
3258
+ <p>You must set your directories to be writable by web server process, because
3259
+ Apache::ErubisRun calls Erubis::Eruby.load_file() internally which creates cache files
3260
+ in the same directory in which '*.rhtml' file exists.
3261
+ </p>
3262
+ <br>
3263
+
3264
+
3265
+ <a name="topics-index-cgi"></a>
3266
+ <h3 class="section2">Helper CGI Script for Apache</h3>
3267
+ <p>Erubis provides helper CGI script for Apache.
3268
+ Using this script, it is very easy to publish *.rhtml files as *.html.
3269
+ </p>
3270
+ <pre class="terminal">### install Erubis
3271
+ $ tar xzf erubis-X.X.X.tar.gz
3272
+ $ cd erubis-X.X.X/
3273
+ $ ruby setup.py install
3274
+ ### copy files to ~/public_html
3275
+ $ mkdir -p ~/public_html
3276
+ $ cp public_html/_htaccess ~/public_html/.htaccess
3277
+ $ cp public_html/index.cgi ~/public_html/
3278
+ $ cp public_html/index.rhtml ~/public_html/
3279
+ ### add executable permission to index.cgi
3280
+ $ chmod a+x ~/public_html/index.cgi
3281
+ ### edit .htaccess
3282
+ $ vi ~/public_html/.htaccess
3283
+ ### (optional) edit index.cgi to configure
3284
+ $ vi ~/public_html/index.cgi
3285
+ </pre>
3286
+ <p>Edit ~/public_html/.htaccess and modify user name.
3287
+ </p>
3288
+ <div class="program_caption">
3289
+ ~/public_html/.htaccess</div>
3290
+ <pre class="program">## enable mod_rewrie
3291
+ RewriteEngine on
3292
+ ## deny access to *.rhtml and *.cache
3293
+ #RewriteRule \.(rhtml|cache)$ - [R=404,L]
3294
+ RewriteRule \.(rhtml|cache)$ - [F,L]
3295
+ ## rewrite only if requested file is not found
3296
+ RewriteCond %{SCRIPT_FILENAME} !-f
3297
+ ## handle request to *.html and directories by index.cgi
3298
+ RewriteRule (\.html|/|^)$ /~<strong>username</strong>/index.cgi
3299
+ #RewriteRule (\.html|/|^)$ index.cgi
3300
+ </pre>
3301
+ <p>After these steps, *.rhtml will be published as *.html.
3302
+ For example, if you access to <code>http://<em>host</em>.<em>domain</em>/~<em>username</em>/index.html</code> (or <code>http://<em>host</em>.<em>domain</em>/~<em>username</em>/</code>), file <code>~/public_html/index.rhtml</code> will be displayed.
3303
+ </p>
3304
+ <br>
3305
+
3306
+
3307
+ <a name="topics-defmethod"></a>
3308
+ <h3 class="section2">Define method</h3>
3309
+ <p>Erubis::Eruby#def_method() defines instance method or singleton method.
3310
+ </p>
3311
+ <a name="def_method.rb"></a>
3312
+ <pre class="program">require 'erubis'
3313
+ s = "hello &lt;%= name %&gt;"
3314
+ eruby = Erubis::Eruby.new(s)
3315
+ filename = 'hello.rhtml'
3316
+
3317
+ ## define instance method to Dummy class (or module)
3318
+ class Dummy; end
3319
+ <strong>eruby.def_method(Dummy, 'render(name)', filename)</strong> # filename is optional
3320
+ p Dummy.new.render('world') #=&gt; "hello world"
3321
+
3322
+ ## define singleton method to dummy object
3323
+ obj = Object.new
3324
+ <strong>eruby.def_method(obj, 'render(name)', filename)</strong> # filename is optional
3325
+ p obj.render('world') #=&gt; "hello world"
3326
+ </pre>
3327
+ <br>
3328
+
3329
+
3330
+ <a name="topics-benchmark"></a>
3331
+ <h3 class="section2">Benchmark</h3>
3332
+ <p>A benchmark script is included in Erubis package at 'erubis-2.7.0/benchark/' directory.
3333
+ Here is an example result of benchmark.
3334
+ </p>
3335
+ <div class="terminal_caption">
3336
+ MacOS X 10.4 Tiger, Intel CoreDuo 1.83GHz, Ruby1.8.6, eruby1.0.5, gcc4.0.1</div>
3337
+ <pre class="terminal">$ cd erubis-2.7.0/benchmark/
3338
+ $ ruby bench.rb -n 10000 -m execute
3339
+ *** ntimes=10000, testmode=execute
3340
+ user system total real
3341
+ eruby 12.720000 0.240000 <strong>12.960000</strong> ( 12.971888)
3342
+ ERB 36.760000 0.350000 <strong>37.110000</strong> ( 37.112019)
3343
+ ERB(cached) 11.990000 0.440000 <strong>12.430000</strong> ( 12.430375)
3344
+ Erubis::Eruby 10.840000 0.300000 <strong>11.140000</strong> ( 11.144426)
3345
+ Erubis::Eruby(cached) 7.540000 0.410000 <strong>7.950000</strong> ( 7.969305)
3346
+ Erubis::FastEruby 10.440000 0.300000 <strong>10.740000</strong> ( 10.737808)
3347
+ Erubis::FastEruby(cached) 6.940000 0.410000 <strong>7.350000</strong> ( 7.353666)
3348
+ Erubis::TinyEruby 9.550000 0.290000 9.840000 ( 9.851729)
3349
+ Erubis::ArrayBufferEruby 11.010000 0.300000 11.310000 ( 11.314339)
3350
+ Erubis::PrintOutEruby 11.640000 0.290000 11.930000 ( 11.942141)
3351
+ Erubis::StdoutEruby 11.590000 0.300000 11.890000 ( 11.886512)
3352
+ </pre>
3353
+ <p>This shows that...
3354
+ </p>
3355
+ <ul type="disc">
3356
+ <li>Erubis::Eruby runs more than 10 percent faster than eruby.
3357
+ </li>
3358
+ <li>Erubis::Eruby runs about 3 times faster than ERB.
3359
+ </li>
3360
+ <li>Caching (by Erubis::Eruby.load_file()) makes Erubis about 40-50 percent faster.
3361
+ </li>
3362
+ <li>Erubis::FastEruby is a litte faster than Erubis::Eruby.
3363
+ </li>
3364
+ <li>Array buffer (ArrayBufferEnhancer) is a little slower than string buffer (StringBufferEnhancer which Erubis::Eruby includes)
3365
+ </li>
3366
+ <li>$stdout and print() make Erubis a little slower.
3367
+ </li>
3368
+ <li>Erubis::TinyEruby (at 'erubis/tiny.rb') is the fastest in all eRuby implementations when no caching.
3369
+ </li>
3370
+ </ul>
3371
+ <p>Escaping HTML characters (such as '&lt; &gt; &amp; "') makes Erubis more faster than eruby and ERB,
3372
+ because Erubis::XmlHelper#escape_xml() works faster than CGI.escapeHTML() and ERB::Util#h().
3373
+ The following shows that Erubis runs more than 40 percent (when no-cached) or 90 percent (when cached) faster than eruby if HTML characters are escaped.
3374
+ </p>
3375
+ <div class="terminal_caption">
3376
+ When escaping HTML characters with option '-e'</div>
3377
+ <pre class="terminal">$ ruby bench.rb -n 10000 -m execute -ep
3378
+ *** ntimes=10000, testmode=execute
3379
+ user system total real
3380
+ eruby 21.700000 0.290000 <strong>21.990000</strong> ( 22.050687)
3381
+ ERB 45.140000 0.390000 <strong>45.530000</strong> ( 45.536976)
3382
+ ERB(cached) 20.340000 0.470000 <strong>20.810000</strong> ( 20.822653)
3383
+ Erubis::Eruby 14.830000 0.310000 <strong>15.140000</strong> ( 15.147930)
3384
+ Erubis::Eruby(cached) 11.090000 0.420000 <strong>11.510000</strong> ( 11.514954)
3385
+ Erubis::FastEruby 14.850000 0.310000 <strong>15.160000</strong> ( 15.172499)
3386
+ Erubis::FastEruby(cached) 10.970000 0.430000 <strong>11.400000</strong> ( 11.399605)
3387
+ Erubis::ArrayBufferEruby 14.970000 0.300000 15.270000 ( 15.281061)
3388
+ Erubis::PrintOutEruby 15.780000 0.300000 16.080000 ( 16.088289)
3389
+ Erubis::StdoutEruby 15.840000 0.310000 16.150000 ( 16.235338)
3390
+ </pre>
3391
+ <br>
3392
+
3393
+
3394
+ <br>
3395
+
3396
+
3397
+ <a name="command"></a>
3398
+ <h2 class="section1">Command Reference</h2>
3399
+ <a name="command-usage"></a>
3400
+ <h3 class="section2">Usage</h3>
3401
+ <p>erubis [..options..] [<em>file</em> ...]
3402
+ </p>
3403
+ <br>
3404
+
3405
+
3406
+ <a name="command-options"></a>
3407
+ <h3 class="section2">Options</h3>
3408
+ <dl class="dl3" compact>
3409
+ <dt class="dt3"><b>
3410
+ -h, --help </b></dt>
3411
+ <dd class="dd3">
3412
+ Help.
3413
+ </dd>
3414
+ <dt class="dt3"><b>
3415
+ -v </b></dt>
3416
+ <dd class="dd3">
3417
+ Release version.
3418
+ </dd>
3419
+ <dt class="dt3"><b>
3420
+ -x </b></dt>
3421
+ <dd class="dd3">
3422
+ Show compiled source.
3423
+ </dd>
3424
+ <dt class="dt3"><b>
3425
+ -X </b></dt>
3426
+ <dd class="dd3">
3427
+ Show compiled source but only Ruby code.
3428
+ This is equivarent to '-E NoText'.
3429
+ </dd>
3430
+ <dt class="dt3"><b>
3431
+ -N </b></dt>
3432
+ <dd class="dd3">
3433
+ Numbering: add line numbers. (for '-x/-X')
3434
+ </dd>
3435
+ <dt class="dt3"><b>
3436
+ -U </b></dt>
3437
+ <dd class="dd3">
3438
+ Unique mode: zip empty lines into a line. (for '-x/-X')
3439
+ </dd>
3440
+ <dt class="dt3"><b>
3441
+ -C </b></dt>
3442
+ <dd class="dd3">
3443
+ Compact: remove empty lines. (for '-x/-X')
3444
+ </dd>
3445
+ <dt class="dt3"><b>
3446
+ -b </b></dt>
3447
+ <dd class="dd3">
3448
+ Body only: no preamble nor postamble. (for '-x/-X')
3449
+ This is equivarent to '--preamble=false --postamble=false'.
3450
+ </dd>
3451
+ <dt class="dt3"><b>
3452
+ -z </b></dt>
3453
+ <dd class="dd3">
3454
+ Syntax checking.
3455
+ </dd>
3456
+ <dt class="dt3"><b>
3457
+ -e </b></dt>
3458
+ <dd class="dd3">
3459
+ Escape. This is equivarent to '-E Escape'.
3460
+ </dd>
3461
+ <dt class="dt3"><b>
3462
+ -p pattern </b></dt>
3463
+ <dd class="dd3">
3464
+ Embedded pattern (default '&lt;% %&gt;').
3465
+ This is equivarent to '--pattern=<em>pattern</em>'.
3466
+ </dd>
3467
+ <dt class="dt3"><b>
3468
+ -l lang </b></dt>
3469
+ <dd class="dd3">
3470
+ Language name.
3471
+ This option makes erubis command to compile script but no execute.
3472
+ </dd>
3473
+ <dt class="dt3"><b>
3474
+ -E enhacers </b></dt>
3475
+ <dd class="dd3">
3476
+ Enhancer name (Escape, PercentLine, ...).
3477
+ It is able to specify several enhancer name separating with ','
3478
+ (ex. -f Escape,PercentLine,HeaderFooter).
3479
+ </dd>
3480
+ <dt class="dt3"><b>
3481
+ -I path </b></dt>
3482
+ <dd class="dd3">
3483
+ Require library path ($:).
3484
+ It is able to specify several paths separating with ','
3485
+ (ex. -f path1,path2,path3).
3486
+ </dd>
3487
+ <dt class="dt3"><b>
3488
+ -K kanji </b></dt>
3489
+ <dd class="dd3">
3490
+ Kanji code (euc, sjis, utf8, or none) (default none).
3491
+ </dd>
3492
+ <dt class="dt3"><b>
3493
+ -f datafile </b></dt>
3494
+ <dd class="dd3">
3495
+ Context data file in YAML format ('*.yaml', '*.yml') or
3496
+ Ruby script ('*.rb').
3497
+ It is able to specify several filenames separating with ','
3498
+ (ex. -f file1,file2,file3).
3499
+ </dd>
3500
+ <dt class="dt3"><b>
3501
+ -c context </b></dt>
3502
+ <dd class="dd3">
3503
+ Context data string in YAML inline style or Ruby code.
3504
+ </dd>
3505
+ <dt class="dt3"><b>
3506
+ -T </b></dt>
3507
+ <dd class="dd3">
3508
+ Don't expand tab characters in YAML file.
3509
+ </dd>
3510
+ <dt class="dt3"><b>
3511
+ -S </b></dt>
3512
+ <dd class="dd3">
3513
+ Convert mapping key from string to symbol in YAML file.
3514
+ </dd>
3515
+ <dt class="dt3"><b>
3516
+ -B </b></dt>
3517
+ <dd class="dd3">
3518
+ invoke Eruby#result() instead of Eruby#evaluate()
3519
+ </dd>
3520
+ <dt class="dt3"><b>
3521
+ --pi[=name] </b></dt>
3522
+ <dd class="dd3">
3523
+ parse '&lt;?name ... ?&gt;' instead of '&lt;% ... %&gt;'
3524
+ </dd>
3525
+ <dt class="dt3"><b>
3526
+ --trim=false </b></dt>
3527
+ <dd class="dd3">
3528
+ No trimming spaces around '&lt;% %&gt;'.
3529
+ </dd>
3530
+ </dl>
3531
+ <br>
3532
+
3533
+
3534
+ <a name="command-props"></a>
3535
+ <h3 class="section2">Properties</h3>
3536
+ <p>Some Eruby classes can take optional properties to change it's compile option.
3537
+ For example, property '--indent=" "' may change indentation of compiled source code.
3538
+ Try 'erubis -h' for details.
3539
+ </p>
3540
+ <br>
3541
+
3542
+
3543
+ <br>
3544
+
3545
+
3546
+
3547
+ </div>
3548
+ </blockquote>
3549
+
3550
+ </body>
3551
+ </html>