challah 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1773) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/lib/challah/railtie.rb +2 -1
  3. data/lib/challah/version.rb +1 -1
  4. data/vendor/bundle/cache/actionmailer-3.2.5.gem +0 -0
  5. data/vendor/bundle/cache/actionpack-3.2.5.gem +0 -0
  6. data/vendor/bundle/cache/activemodel-3.2.5.gem +0 -0
  7. data/vendor/bundle/cache/activerecord-3.2.5.gem +0 -0
  8. data/vendor/bundle/cache/activeresource-3.2.5.gem +0 -0
  9. data/vendor/bundle/cache/activesupport-3.2.5.gem +0 -0
  10. data/vendor/bundle/cache/multi_json-1.3.6.gem +0 -0
  11. data/vendor/bundle/cache/rails-3.2.5.gem +0 -0
  12. data/vendor/bundle/cache/railties-3.2.5.gem +0 -0
  13. data/vendor/bundle/cache/thor-0.15.2.gem +0 -0
  14. data/vendor/bundle/cache/yard-0.8.2.gem +0 -0
  15. data/vendor/bundle/gems/actionmailer-3.2.5/CHANGELOG.md +476 -0
  16. data/vendor/bundle/gems/actionmailer-3.2.5/MIT-LICENSE +21 -0
  17. data/vendor/bundle/gems/actionmailer-3.2.5/README.rdoc +163 -0
  18. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/base.rb +737 -0
  19. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/collector.rb +30 -0
  20. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/delivery_methods.rb +86 -0
  21. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/log_subscriber.rb +22 -0
  22. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/mail_helper.rb +56 -0
  23. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/railtie.rb +44 -0
  24. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_case.rb +82 -0
  25. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_helper.rb +61 -0
  26. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/version.rb +10 -0
  27. data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer.rb +49 -0
  28. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/USAGE +18 -0
  29. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/mailer_generator.rb +16 -0
  30. data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/templates/mailer.rb +18 -0
  31. data/vendor/bundle/gems/actionpack-3.2.5/CHANGELOG.md +5906 -0
  32. data/vendor/bundle/gems/actionpack-3.2.5/MIT-LICENSE +21 -0
  33. data/vendor/bundle/gems/actionpack-3.2.5/README.rdoc +341 -0
  34. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/asset_paths.rb +10 -0
  35. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/base.rb +213 -0
  36. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/callbacks.rb +198 -0
  37. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/collector.rb +32 -0
  38. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/helpers.rb +167 -0
  39. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/layouts.rb +423 -0
  40. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/logger.rb +13 -0
  41. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/railties/routes_helpers.rb +18 -0
  42. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/rendering.rb +179 -0
  43. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/translation.rb +13 -0
  44. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/url_for.rb +33 -0
  45. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/view_paths.rb +96 -0
  46. data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller.rb +28 -0
  47. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/base.rb +235 -0
  48. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/actions.rb +185 -0
  49. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/fragments.rb +127 -0
  50. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/pages.rb +187 -0
  51. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/sweeping.rb +97 -0
  52. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching.rb +83 -0
  53. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/integration_test.rb +2 -0
  54. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/performance_test.rb +1 -0
  55. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated.rb +3 -0
  56. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/log_subscriber.rb +66 -0
  57. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/compatibility.rb +64 -0
  58. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/conditional_get.rb +131 -0
  59. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/cookies.rb +16 -0
  60. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/data_streaming.rb +157 -0
  61. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/exceptions.rb +46 -0
  62. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/flash.rb +28 -0
  63. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/force_ssl.rb +39 -0
  64. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/head.rb +35 -0
  65. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/helpers.rb +113 -0
  66. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/hide_actions.rb +47 -0
  67. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/http_authentication.rb +466 -0
  68. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/implicit_render.rb +19 -0
  69. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/instrumentation.rb +105 -0
  70. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/mime_responds.rb +317 -0
  71. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/params_wrapper.rb +239 -0
  72. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rack_delegation.rb +26 -0
  73. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/redirecting.rb +109 -0
  74. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/renderers.rb +109 -0
  75. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rendering.rb +65 -0
  76. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/request_forgery_protection.rb +113 -0
  77. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rescue.rb +35 -0
  78. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/responder.rb +286 -0
  79. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/session_management.rb +14 -0
  80. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/streaming.rb +229 -0
  81. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/testing.rb +37 -0
  82. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/url_for.rb +47 -0
  83. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal.rb +250 -0
  84. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/middleware.rb +39 -0
  85. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railtie.rb +51 -0
  86. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railties/paths.rb +25 -0
  87. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/record_identifier.rb +85 -0
  88. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/test_case.rb +553 -0
  89. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/document.rb +68 -0
  90. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/node.rb +532 -0
  91. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +177 -0
  92. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/selector.rb +830 -0
  93. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +107 -0
  94. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
  95. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner.rb +20 -0
  96. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller.rb +65 -0
  97. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/cache.rb +123 -0
  98. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/filter_parameters.rb +70 -0
  99. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/headers.rb +31 -0
  100. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_negotiation.rb +110 -0
  101. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_type.rb +276 -0
  102. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_types.rb +35 -0
  103. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameter_filter.rb +74 -0
  104. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameters.rb +83 -0
  105. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/rack_cache.rb +62 -0
  106. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/request.rb +279 -0
  107. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/response.rb +206 -0
  108. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/upload.rb +47 -0
  109. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/url.rb +174 -0
  110. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/best_standards_support.rb +22 -0
  111. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/body_proxy.rb +30 -0
  112. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb +32 -0
  113. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/cookies.rb +350 -0
  114. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/debug_exceptions.rb +82 -0
  115. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/exception_wrapper.rb +78 -0
  116. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/flash.rb +260 -0
  117. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/head.rb +18 -0
  118. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/params_parser.rb +75 -0
  119. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/public_exceptions.rb +30 -0
  120. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/reloader.rb +89 -0
  121. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/remote_ip.rb +81 -0
  122. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/request_id.rb +39 -0
  123. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/rescue.rb +26 -0
  124. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/abstract_store.rb +79 -0
  125. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cache_store.rb +49 -0
  126. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cookie_store.rb +71 -0
  127. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/mem_cache_store.rb +17 -0
  128. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb +87 -0
  129. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/stack.rb +124 -0
  130. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/static.rb +65 -0
  131. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +31 -0
  132. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb +26 -0
  133. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +10 -0
  134. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/layout.erb +32 -0
  135. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/missing_template.erb +2 -0
  136. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +15 -0
  137. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/template_error.erb +17 -0
  138. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb +2 -0
  139. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/railtie.rb +34 -0
  140. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/mapper.rb +1509 -0
  141. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/polymorphic_routes.rb +203 -0
  142. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/redirection.rb +131 -0
  143. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/route_set.rb +658 -0
  144. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/routes_proxy.rb +39 -0
  145. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/url_for.rb +167 -0
  146. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing.rb +293 -0
  147. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/dom.rb +37 -0
  148. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/response.rb +96 -0
  149. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/routing.rb +217 -0
  150. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/selector.rb +435 -0
  151. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/tag.rb +138 -0
  152. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions.rb +18 -0
  153. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/integration.rb +496 -0
  154. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/performance_test.rb +10 -0
  155. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_process.rb +41 -0
  156. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_request.rb +74 -0
  157. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_response.rb +29 -0
  158. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch.rb +102 -0
  159. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack/version.rb +10 -0
  160. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack.rb +24 -0
  161. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/asset_paths.rb +136 -0
  162. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/base.rb +220 -0
  163. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/buffers.rb +43 -0
  164. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/context.rb +36 -0
  165. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/flows.rb +79 -0
  166. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/active_model_helper.rb +50 -0
  167. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_paths.rb +7 -0
  168. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helper.rb +459 -0
  169. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +146 -0
  170. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +93 -0
  171. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +192 -0
  172. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +148 -0
  173. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/atom_feed_helper.rb +200 -0
  174. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/cache_helper.rb +64 -0
  175. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/capture_helper.rb +203 -0
  176. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/controller_helper.rb +23 -0
  177. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/csrf_helper.rb +32 -0
  178. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/date_helper.rb +1054 -0
  179. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/debug_helper.rb +40 -0
  180. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_helper.rb +1487 -0
  181. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_options_helper.rb +658 -0
  182. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_tag_helper.rb +688 -0
  183. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/javascript_helper.rb +114 -0
  184. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/number_helper.rb +539 -0
  185. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/output_safety_helper.rb +38 -0
  186. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/record_tag_helper.rb +109 -0
  187. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/rendering_helper.rb +90 -0
  188. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/sanitize_helper.rb +259 -0
  189. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/tag_helper.rb +160 -0
  190. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/text_helper.rb +426 -0
  191. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/translation_helper.rb +88 -0
  192. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/url_helper.rb +696 -0
  193. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers.rb +60 -0
  194. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/locale/en.yml +160 -0
  195. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/log_subscriber.rb +28 -0
  196. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/lookup_context.rb +241 -0
  197. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/path_set.rb +89 -0
  198. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/railtie.rb +55 -0
  199. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/abstract_renderer.rb +41 -0
  200. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/partial_renderer.rb +415 -0
  201. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/renderer.rb +54 -0
  202. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/streaming_template_renderer.rb +106 -0
  203. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/template_renderer.rb +94 -0
  204. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/error.rb +128 -0
  205. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/builder.rb +26 -0
  206. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/erb.rb +109 -0
  207. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers.rb +50 -0
  208. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/resolver.rb +258 -0
  209. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/text.rb +30 -0
  210. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template.rb +337 -0
  211. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/test_case.rb +244 -0
  212. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/testing/resolvers.rb +50 -0
  213. data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view.rb +84 -0
  214. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/assets.rake +99 -0
  215. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/bootstrap.rb +37 -0
  216. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/compressors.rb +83 -0
  217. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/isolated_helper.rb +13 -0
  218. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/rails_helper.rb +172 -0
  219. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers.rb +6 -0
  220. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/railtie.rb +62 -0
  221. data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/static_compiler.rb +64 -0
  222. data/vendor/bundle/gems/activemodel-3.2.5/CHANGELOG.md +134 -0
  223. data/vendor/bundle/gems/activemodel-3.2.5/MIT-LICENSE +21 -0
  224. data/vendor/bundle/gems/activemodel-3.2.5/README.rdoc +211 -0
  225. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/attribute_methods.rb +452 -0
  226. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/callbacks.rb +134 -0
  227. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/conversion.rb +73 -0
  228. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/dirty.rb +167 -0
  229. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/errors.rb +370 -0
  230. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/lint.rb +123 -0
  231. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/locale/en.yml +27 -0
  232. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/permission_set.rb +40 -0
  233. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/sanitizer.rb +59 -0
  234. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security.rb +237 -0
  235. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/naming.rb +171 -0
  236. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observer_array.rb +147 -0
  237. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observing.rb +252 -0
  238. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/railtie.rb +2 -0
  239. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/secure_password.rb +74 -0
  240. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serialization.rb +139 -0
  241. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/json.rb +108 -0
  242. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/xml.rb +195 -0
  243. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/test_case.rb +16 -0
  244. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/translation.rb +70 -0
  245. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/acceptance.rb +67 -0
  246. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/callbacks.rb +57 -0
  247. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/confirmation.rb +67 -0
  248. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/exclusion.rb +75 -0
  249. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/format.rb +105 -0
  250. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/inclusion.rb +75 -0
  251. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/length.rb +127 -0
  252. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/numericality.rb +138 -0
  253. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/presence.rb +49 -0
  254. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/validates.rb +137 -0
  255. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/with.rb +142 -0
  256. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations.rb +235 -0
  257. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validator.rb +184 -0
  258. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/version.rb +10 -0
  259. data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model.rb +61 -0
  260. data/vendor/bundle/gems/activerecord-3.2.5/CHANGELOG.md +6792 -0
  261. data/vendor/bundle/gems/activerecord-3.2.5/MIT-LICENSE +20 -0
  262. data/vendor/bundle/gems/activerecord-3.2.5/README.rdoc +222 -0
  263. data/vendor/bundle/gems/activerecord-3.2.5/examples/associations.png +0 -0
  264. data/vendor/bundle/gems/activerecord-3.2.5/examples/performance.rb +177 -0
  265. data/vendor/bundle/gems/activerecord-3.2.5/examples/simple.rb +14 -0
  266. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/aggregations.rb +255 -0
  267. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/alias_tracker.rb +76 -0
  268. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association.rb +240 -0
  269. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association_scope.rb +134 -0
  270. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_association.rb +79 -0
  271. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_polymorphic_association.rb +34 -0
  272. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/association.rb +55 -0
  273. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/belongs_to.rb +85 -0
  274. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/collection_association.rb +75 -0
  275. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_and_belongs_to_many.rb +57 -0
  276. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_many.rb +71 -0
  277. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_one.rb +62 -0
  278. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/singular_association.rb +32 -0
  279. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_association.rb +586 -0
  280. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_proxy.rb +131 -0
  281. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_and_belongs_to_many_association.rb +69 -0
  282. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_association.rb +112 -0
  283. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_through_association.rb +186 -0
  284. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_association.rb +73 -0
  285. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_through_association.rb +36 -0
  286. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_association.rb +154 -0
  287. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_base.rb +24 -0
  288. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_part.rb +78 -0
  289. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency.rb +214 -0
  290. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_helper.rb +55 -0
  291. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/association.rb +127 -0
  292. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/belongs_to.rb +17 -0
  293. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/collection_association.rb +24 -0
  294. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_and_belongs_to_many.rb +60 -0
  295. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many.rb +17 -0
  296. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many_through.rb +15 -0
  297. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one.rb +23 -0
  298. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one_through.rb +9 -0
  299. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/singular_association.rb +21 -0
  300. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/through_association.rb +67 -0
  301. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader.rb +177 -0
  302. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/singular_association.rb +64 -0
  303. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/through_association.rb +87 -0
  304. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations.rb +1604 -0
  305. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_assignment.rb +221 -0
  306. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/before_type_cast.rb +31 -0
  307. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/deprecated_underscore_read.rb +32 -0
  308. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/dirty.rb +101 -0
  309. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/primary_key.rb +114 -0
  310. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/query.rb +39 -0
  311. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/read.rb +136 -0
  312. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/serialization.rb +102 -0
  313. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/time_zone_conversion.rb +63 -0
  314. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/write.rb +69 -0
  315. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods.rb +273 -0
  316. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/autosave_association.rb +422 -0
  317. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/base.rb +721 -0
  318. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/callbacks.rb +275 -0
  319. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/coders/yaml_column.rb +41 -0
  320. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb +482 -0
  321. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb +188 -0
  322. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_limits.rb +58 -0
  323. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb +390 -0
  324. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/query_cache.rb +82 -0
  325. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/quoting.rb +115 -0
  326. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_definitions.rb +492 -0
  327. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_statements.rb +606 -0
  328. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_adapter.rb +296 -0
  329. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +674 -0
  330. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/column.rb +270 -0
  331. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb +278 -0
  332. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql_adapter.rb +426 -0
  333. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/postgresql_adapter.rb +1306 -0
  334. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/schema_cache.rb +50 -0
  335. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite3_adapter.rb +55 -0
  336. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite_adapter.rb +579 -0
  337. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/statement_pool.rb +40 -0
  338. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/counter_cache.rb +119 -0
  339. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_finder_match.rb +68 -0
  340. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_matchers.rb +79 -0
  341. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_scope_match.rb +23 -0
  342. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/errors.rb +195 -0
  343. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain.rb +85 -0
  344. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain_subscriber.rb +24 -0
  345. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures/file.rb +65 -0
  346. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures.rb +922 -0
  347. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/identity_map.rb +162 -0
  348. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/inheritance.rb +174 -0
  349. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/integration.rb +49 -0
  350. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locale/en.yml +40 -0
  351. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/optimistic.rb +183 -0
  352. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/pessimistic.rb +77 -0
  353. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/log_subscriber.rb +68 -0
  354. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration/command_recorder.rb +105 -0
  355. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration.rb +781 -0
  356. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/model_schema.rb +366 -0
  357. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/nested_attributes.rb +469 -0
  358. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/observer.rb +121 -0
  359. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/persistence.rb +372 -0
  360. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/query_cache.rb +74 -0
  361. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/querying.rb +58 -0
  362. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railtie.rb +125 -0
  363. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/console_sandbox.rb +6 -0
  364. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/controller_runtime.rb +49 -0
  365. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake +624 -0
  366. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/jdbcmysql_error.rb +16 -0
  367. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/readonly_attributes.rb +26 -0
  368. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/reflection.rb +534 -0
  369. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/batches.rb +90 -0
  370. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/calculations.rb +354 -0
  371. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/delegation.rb +49 -0
  372. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/finder_methods.rb +397 -0
  373. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/predicate_builder.rb +58 -0
  374. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/query_methods.rb +417 -0
  375. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/spawn_methods.rb +148 -0
  376. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation.rb +537 -0
  377. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/result.rb +34 -0
  378. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/sanitization.rb +194 -0
  379. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema.rb +58 -0
  380. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema_dumper.rb +204 -0
  381. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/default.rb +142 -0
  382. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/named.rb +202 -0
  383. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping.rb +152 -0
  384. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serialization.rb +18 -0
  385. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serializers/xml_serializer.rb +203 -0
  386. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/session_store.rb +358 -0
  387. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/store.rb +50 -0
  388. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/test_case.rb +73 -0
  389. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/timestamp.rb +113 -0
  390. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/transactions.rb +362 -0
  391. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/translation.rb +22 -0
  392. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/associated.rb +43 -0
  393. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/uniqueness.rb +180 -0
  394. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations.rb +83 -0
  395. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/version.rb +10 -0
  396. data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record.rb +147 -0
  397. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/migration_generator.rb +25 -0
  398. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/templates/migration.rb +34 -0
  399. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration.rb +15 -0
  400. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/model_generator.rb +47 -0
  401. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/migration.rb +15 -0
  402. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/model.rb +12 -0
  403. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/module.rb +7 -0
  404. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/observer_generator.rb +15 -0
  405. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/templates/observer.rb +4 -0
  406. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/session_migration_generator.rb +25 -0
  407. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/templates/migration.rb +12 -0
  408. data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record.rb +25 -0
  409. data/vendor/bundle/gems/activeresource-3.2.5/CHANGELOG.md +353 -0
  410. data/vendor/bundle/gems/activeresource-3.2.5/MIT-LICENSE +20 -0
  411. data/vendor/bundle/gems/activeresource-3.2.5/README.rdoc +187 -0
  412. data/vendor/bundle/gems/activeresource-3.2.5/examples/performance.rb +70 -0
  413. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/base.rb +1482 -0
  414. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/connection.rb +287 -0
  415. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/custom_methods.rb +119 -0
  416. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/exceptions.rb +82 -0
  417. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/json_format.rb +25 -0
  418. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/xml_format.rb +25 -0
  419. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats.rb +22 -0
  420. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/http_mock.rb +335 -0
  421. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/log_subscriber.rb +15 -0
  422. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/observing.rb +29 -0
  423. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/railtie.rb +14 -0
  424. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/schema.rb +59 -0
  425. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/validations.rb +134 -0
  426. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/version.rb +10 -0
  427. data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource.rb +46 -0
  428. data/vendor/bundle/gems/activesupport-3.2.5/CHANGELOG.md +1693 -0
  429. data/vendor/bundle/gems/activesupport-3.2.5/MIT-LICENSE +20 -0
  430. data/vendor/bundle/gems/activesupport-3.2.5/README.rdoc +33 -0
  431. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/all.rb +3 -0
  432. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/backtrace_cleaner.rb +99 -0
  433. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/base64.rb +54 -0
  434. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/basic_object.rb +21 -0
  435. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/benchmarkable.rb +55 -0
  436. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/buffered_logger.rb +125 -0
  437. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/builder.rb +6 -0
  438. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/file_store.rb +178 -0
  439. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/mem_cache_store.rb +206 -0
  440. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/memory_store.rb +159 -0
  441. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/null_store.rb +44 -0
  442. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/strategy/local_cache.rb +169 -0
  443. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache.rb +638 -0
  444. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/callbacks.rb +626 -0
  445. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/concern.rb +131 -0
  446. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/configurable.rb +90 -0
  447. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/access.rb +46 -0
  448. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/conversions.rb +164 -0
  449. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/extract_options.rb +29 -0
  450. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/grouping.rb +100 -0
  451. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/prepend_and_append.rb +7 -0
  452. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/random_access.rb +30 -0
  453. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/uniq_by.rb +16 -0
  454. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/wrap.rb +48 -0
  455. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array.rb +8 -0
  456. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/benchmark.rb +7 -0
  457. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal/conversions.rb +45 -0
  458. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal.rb +1 -0
  459. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute.rb +115 -0
  460. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute_accessors.rb +168 -0
  461. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
  462. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/subclasses.rb +36 -0
  463. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class.rb +4 -0
  464. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/acts_like.rb +8 -0
  465. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/calculations.rb +276 -0
  466. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/conversions.rb +106 -0
  467. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/freeze.rb +33 -0
  468. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/zones.rb +14 -0
  469. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
  470. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/calculations.rb +143 -0
  471. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/conversions.rb +103 -0
  472. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/zones.rb +21 -0
  473. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/enumerable.rb +127 -0
  474. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/exception.rb +3 -0
  475. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/atomic.rb +42 -0
  476. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/path.rb +5 -0
  477. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file.rb +2 -0
  478. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float/rounding.rb +19 -0
  479. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float.rb +1 -0
  480. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/conversions.rb +157 -0
  481. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_dup.rb +18 -0
  482. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_merge.rb +21 -0
  483. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/diff.rb +13 -0
  484. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/except.rb +23 -0
  485. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
  486. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/keys.rb +54 -0
  487. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/reverse_merge.rb +23 -0
  488. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/slice.rb +40 -0
  489. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash.rb +9 -0
  490. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/inflections.rb +17 -0
  491. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/multiple.rb +10 -0
  492. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/time.rb +39 -0
  493. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer.rb +3 -0
  494. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/io.rb +15 -0
  495. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
  496. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/debugger.rb +10 -0
  497. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/reporting.rb +93 -0
  498. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
  499. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel.rb +4 -0
  500. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/load_error.rb +23 -0
  501. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/logger.rb +83 -0
  502. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/aliasing.rb +70 -0
  503. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/anonymous.rb +24 -0
  504. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attr_internal.rb +39 -0
  505. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attribute_accessors.rb +64 -0
  506. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/delegation.rb +153 -0
  507. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/deprecation.rb +9 -0
  508. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/introspection.rb +88 -0
  509. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/method_names.rb +14 -0
  510. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/qualified_const.rb +64 -0
  511. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/reachable.rb +8 -0
  512. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/remove_method.rb +16 -0
  513. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/synchronization.rb +45 -0
  514. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module.rb +12 -0
  515. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/name_error.rb +18 -0
  516. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/bytes.rb +44 -0
  517. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/time.rb +79 -0
  518. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric.rb +2 -0
  519. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/acts_like.rb +10 -0
  520. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/blank.rb +121 -0
  521. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/conversions.rb +4 -0
  522. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/duplicable.rb +119 -0
  523. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/inclusion.rb +25 -0
  524. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/instance_variables.rb +33 -0
  525. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_json.rb +19 -0
  526. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_param.rb +55 -0
  527. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_query.rb +27 -0
  528. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/try.rb +57 -0
  529. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/with_options.rb +43 -0
  530. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object.rb +13 -0
  531. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/proc.rb +14 -0
  532. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process/daemon.rb +23 -0
  533. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process.rb +1 -0
  534. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/blockless_step.rb +29 -0
  535. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/conversions.rb +21 -0
  536. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/cover.rb +3 -0
  537. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/include_range.rb +21 -0
  538. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/overlaps.rb +8 -0
  539. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range.rb +5 -0
  540. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/regexp.rb +5 -0
  541. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/rexml.rb +46 -0
  542. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/access.rb +99 -0
  543. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/behavior.rb +6 -0
  544. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/conversions.rb +66 -0
  545. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/encoding.rb +11 -0
  546. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/exclude.rb +11 -0
  547. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/filters.rb +49 -0
  548. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inflections.rb +202 -0
  549. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inquiry.rb +13 -0
  550. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/interpolation.rb +2 -0
  551. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/multibyte.rb +72 -0
  552. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/output_safety.rb +187 -0
  553. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
  554. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/strip.rb +26 -0
  555. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/xchar.rb +18 -0
  556. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string.rb +14 -0
  557. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/acts_like.rb +8 -0
  558. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/calculations.rb +358 -0
  559. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/conversions.rb +85 -0
  560. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/marshal.rb +57 -0
  561. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
  562. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/zones.rb +87 -0
  563. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/uri.rb +30 -0
  564. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext.rb +3 -0
  565. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies/autoload.rb +50 -0
  566. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies.rb +703 -0
  567. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/behaviors.rb +49 -0
  568. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/method_wrappers.rb +29 -0
  569. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
  570. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/reporting.rb +65 -0
  571. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation.rb +18 -0
  572. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/descendants_tracker.rb +45 -0
  573. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/duration.rb +110 -0
  574. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_update_checker.rb +121 -0
  575. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_watcher.rb +36 -0
  576. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/gzip.rb +30 -0
  577. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/hash_with_indifferent_access.rb +168 -0
  578. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n.rb +9 -0
  579. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n_railtie.rb +102 -0
  580. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflections.rb +61 -0
  581. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/inflections.rb +172 -0
  582. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/methods.rb +320 -0
  583. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/transliterate.rb +98 -0
  584. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector.rb +7 -0
  585. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/decoding.rb +79 -0
  586. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/encoding.rb +284 -0
  587. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/variable.rb +17 -0
  588. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json.rb +2 -0
  589. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/lazy_load_hooks.rb +46 -0
  590. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/locale/en.yml +36 -0
  591. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber/test_helper.rb +101 -0
  592. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber.rb +122 -0
  593. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/memoizable.rb +116 -0
  594. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_encryptor.rb +103 -0
  595. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_verifier.rb +74 -0
  596. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/chars.rb +476 -0
  597. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/exceptions.rb +8 -0
  598. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/unicode.rb +393 -0
  599. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/utils.rb +60 -0
  600. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte.rb +44 -0
  601. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/fanout.rb +61 -0
  602. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/instrumenter.rb +53 -0
  603. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications.rb +154 -0
  604. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/option_merger.rb +25 -0
  605. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_hash.rb +222 -0
  606. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_options.rb +61 -0
  607. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/railtie.rb +59 -0
  608. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/rescuable.rb +115 -0
  609. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ruby/shim.rb +22 -0
  610. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/string_inquirer.rb +21 -0
  611. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/tagged_logging.rb +70 -0
  612. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/test_case.rb +34 -0
  613. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/assertions.rb +97 -0
  614. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/declarative.rb +40 -0
  615. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/deprecation.rb +55 -0
  616. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/isolation.rb +157 -0
  617. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/mochaing.rb +7 -0
  618. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/pending.rb +52 -0
  619. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/jruby.rb +115 -0
  620. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/rubinius.rb +113 -0
  621. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/mri.rb +57 -0
  622. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
  623. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby.rb +152 -0
  624. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance.rb +317 -0
  625. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/setup_and_teardown.rb +116 -0
  626. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time/autoload.rb +5 -0
  627. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time.rb +35 -0
  628. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time_with_zone.rb +354 -0
  629. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/time_zone.rb +397 -0
  630. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/unicode_tables.dat +0 -0
  631. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/version.rb +10 -0
  632. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/whiny_nil.rb +24 -0
  633. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/jdom.rb +175 -0
  634. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxml.rb +80 -0
  635. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxmlsax.rb +86 -0
  636. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogiri.rb +84 -0
  637. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogirisax.rb +88 -0
  638. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/rexml.rb +130 -0
  639. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini.rb +168 -0
  640. data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support.rb +82 -0
  641. data/vendor/bundle/gems/multi_json-1.3.6/Gemfile +7 -0
  642. data/vendor/bundle/gems/multi_json-1.3.6/LICENSE.md +20 -0
  643. data/vendor/bundle/gems/multi_json-1.3.6/README.md +119 -0
  644. data/vendor/bundle/gems/multi_json-1.3.6/Rakefile +20 -0
  645. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_common.rb +25 -0
  646. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_gem.rb +12 -0
  647. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_pure.rb +12 -0
  648. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
  649. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/oj.rb +22 -0
  650. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/ok_json.rb +48 -0
  651. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb +18 -0
  652. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/vendor/okjson.rb +602 -0
  653. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/version.rb +3 -0
  654. data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json.rb +118 -0
  655. data/vendor/bundle/gems/multi_json-1.3.6/multi_json.gemspec +22 -0
  656. data/vendor/bundle/gems/multi_json-1.3.6/spec/adapter_shared_example.rb +115 -0
  657. data/vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb +32 -0
  658. data/vendor/bundle/gems/multi_json-1.3.6/spec/multi_json_spec.rb +87 -0
  659. data/vendor/bundle/gems/railties-3.2.5/CHANGELOG.md +2446 -0
  660. data/vendor/bundle/gems/railties-3.2.5/README.rdoc +35 -0
  661. data/vendor/bundle/gems/railties-3.2.5/bin/rails +7 -0
  662. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/belongs_to.png +0 -0
  663. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/book_icon.gif +0 -0
  664. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/bullet.gif +0 -0
  665. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/challenge.png +0 -0
  666. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/chapters_icon.gif +0 -0
  667. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/check_bullet.gif +0 -0
  668. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/credits_pic_blank.gif +0 -0
  669. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/csrf.png +0 -0
  670. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/customized_error_messages.png +0 -0
  671. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/edge_badge.png +0 -0
  672. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/error_messages.png +0 -0
  673. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/feature_tile.gif +0 -0
  674. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/footer_tile.gif +0 -0
  675. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/fxn.png +0 -0
  676. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/grey_bullet.gif +0 -0
  677. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/habtm.png +0 -0
  678. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many.png +0 -0
  679. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many_through.png +0 -0
  680. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one.png +0 -0
  681. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one_through.png +0 -0
  682. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_backdrop.png +0 -0
  683. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_tile.gif +0 -0
  684. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_html_safe.png +0 -0
  685. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
  686. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_en.png +0 -0
  687. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
  688. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translation_missing.png +0 -0
  689. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_untranslated.png +0 -0
  690. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/README +5 -0
  691. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/1.png +0 -0
  692. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/10.png +0 -0
  693. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/11.png +0 -0
  694. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/12.png +0 -0
  695. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/13.png +0 -0
  696. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/14.png +0 -0
  697. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/15.png +0 -0
  698. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/2.png +0 -0
  699. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/3.png +0 -0
  700. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/4.png +0 -0
  701. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/5.png +0 -0
  702. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/6.png +0 -0
  703. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/7.png +0 -0
  704. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/8.png +0 -0
  705. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/9.png +0 -0
  706. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/caution.png +0 -0
  707. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/example.png +0 -0
  708. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/home.png +0 -0
  709. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/important.png +0 -0
  710. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/next.png +0 -0
  711. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/note.png +0 -0
  712. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/prev.png +0 -0
  713. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/tip.png +0 -0
  714. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/up.png +0 -0
  715. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/warning.png +0 -0
  716. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/jaimeiniesta.jpg +0 -0
  717. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/nav_arrow.gif +0 -0
  718. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/polymorphic.png +0 -0
  719. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/posts_index.png +0 -0
  720. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/radar.png +0 -0
  721. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  722. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_logo.gif +0 -0
  723. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_logo_remix.gif +0 -0
  724. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_welcome.png +0 -0
  725. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/session_fixation.png +0 -0
  726. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_grey.gif +0 -0
  727. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_info.gif +0 -0
  728. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_note.gif +0 -0
  729. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_red.gif +0 -0
  730. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.gif +0 -0
  731. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.png +0 -0
  732. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/validation_error_messages.png +0 -0
  733. data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/vijaydev.jpg +0 -0
  734. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/guides.js +7 -0
  735. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  736. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  737. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  738. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  739. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  740. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  741. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  742. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  743. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  744. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  745. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  746. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  747. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  748. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  749. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  750. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  751. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  752. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  753. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  754. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  755. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  756. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  757. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  758. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  759. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  760. data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  761. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/fixes.css +16 -0
  762. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/kindle.css +11 -0
  763. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/main.css +453 -0
  764. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/print.css +52 -0
  765. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/reset.css +43 -0
  766. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/style.css +13 -0
  767. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  768. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  769. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  770. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  771. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  772. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  773. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  774. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  775. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  776. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  777. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  778. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  779. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  780. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  781. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  782. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  783. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  784. data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  785. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Gemfile +38 -0
  786. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/README.rdoc +261 -0
  787. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Rakefile +7 -0
  788. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/images/rails.png +0 -0
  789. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/application.js +15 -0
  790. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +3 -0
  791. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/home.js.coffee +3 -0
  792. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +3 -0
  793. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/application.css +13 -0
  794. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +3 -0
  795. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/home.css.scss +3 -0
  796. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +3 -0
  797. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +56 -0
  798. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/application_controller.rb +3 -0
  799. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/comments_controller.rb +16 -0
  800. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/home_controller.rb +5 -0
  801. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/posts_controller.rb +84 -0
  802. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/application_helper.rb +2 -0
  803. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/comments_helper.rb +2 -0
  804. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/home_helper.rb +2 -0
  805. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/posts_helper.rb +5 -0
  806. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/comment.rb +3 -0
  807. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/post.rb +11 -0
  808. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/tag.rb +3 -0
  809. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_comment.html.erb +15 -0
  810. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_form.html.erb +13 -0
  811. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/home/index.html.erb +2 -0
  812. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/layouts/application.html.erb +14 -0
  813. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/_form.html.erb +32 -0
  814. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/edit.html.erb +6 -0
  815. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/index.html.erb +27 -0
  816. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/new.html.erb +5 -0
  817. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/show.html.erb +31 -0
  818. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/tags/_form.html.erb +12 -0
  819. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/application.rb +59 -0
  820. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/boot.rb +6 -0
  821. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/database.yml +25 -0
  822. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environment.rb +5 -0
  823. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/development.rb +37 -0
  824. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/production.rb +67 -0
  825. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/test.rb +37 -0
  826. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/backtrace_silencers.rb +7 -0
  827. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/inflections.rb +15 -0
  828. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/mime_types.rb +5 -0
  829. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/secret_token.rb +7 -0
  830. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/session_store.rb +8 -0
  831. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/wrap_parameters.rb +14 -0
  832. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/locales/en.yml +5 -0
  833. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/routes.rb +64 -0
  834. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config.ru +4 -0
  835. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +11 -0
  836. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +12 -0
  837. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +11 -0
  838. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/schema.rb +43 -0
  839. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/seeds.rb +7 -0
  840. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/doc/README_FOR_APP +2 -0
  841. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/404.html +26 -0
  842. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/422.html +26 -0
  843. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/500.html +25 -0
  844. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/favicon.ico +0 -0
  845. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/robots.txt +5 -0
  846. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/script/rails +6 -0
  847. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/comments.yml +11 -0
  848. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/posts.yml +11 -0
  849. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/tags.yml +9 -0
  850. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/comments_controller_test.rb +7 -0
  851. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/home_controller_test.rb +9 -0
  852. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/posts_controller_test.rb +49 -0
  853. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/performance/browsing_test.rb +12 -0
  854. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/test_helper.rb +13 -0
  855. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/comment_test.rb +7 -0
  856. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +4 -0
  857. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +4 -0
  858. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +4 -0
  859. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/post_test.rb +7 -0
  860. data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/tag_test.rb +7 -0
  861. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/generator.rb +310 -0
  862. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/helpers.rb +45 -0
  863. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/indexer.rb +69 -0
  864. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/levenshtein.rb +31 -0
  865. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/textile_extensions.rb +63 -0
  866. data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides.rb +50 -0
  867. data/vendor/bundle/gems/railties-3.2.5/guides/source/2_2_release_notes.textile +422 -0
  868. data/vendor/bundle/gems/railties-3.2.5/guides/source/2_3_release_notes.textile +610 -0
  869. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_0_release_notes.textile +595 -0
  870. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_1_release_notes.textile +431 -0
  871. data/vendor/bundle/gems/railties-3.2.5/guides/source/3_2_release_notes.textile +540 -0
  872. data/vendor/bundle/gems/railties-3.2.5/guides/source/_license.html.erb +2 -0
  873. data/vendor/bundle/gems/railties-3.2.5/guides/source/_welcome.html.erb +19 -0
  874. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_controller_overview.textile +820 -0
  875. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_mailer_basics.textile +516 -0
  876. data/vendor/bundle/gems/railties-3.2.5/guides/source/action_view_overview.textile +1497 -0
  877. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_model_basics.textile +205 -0
  878. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_basics.textile +218 -0
  879. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_querying.textile +1433 -0
  880. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_validations_callbacks.textile +1283 -0
  881. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_resource_basics.textile +120 -0
  882. data/vendor/bundle/gems/railties-3.2.5/guides/source/active_support_core_extensions.textile +3713 -0
  883. data/vendor/bundle/gems/railties-3.2.5/guides/source/ajax_on_rails.textile +267 -0
  884. data/vendor/bundle/gems/railties-3.2.5/guides/source/api_documentation_guidelines.textile +185 -0
  885. data/vendor/bundle/gems/railties-3.2.5/guides/source/asset_pipeline.textile +707 -0
  886. data/vendor/bundle/gems/railties-3.2.5/guides/source/association_basics.textile +1959 -0
  887. data/vendor/bundle/gems/railties-3.2.5/guides/source/caching_with_rails.textile +437 -0
  888. data/vendor/bundle/gems/railties-3.2.5/guides/source/command_line.textile +574 -0
  889. data/vendor/bundle/gems/railties-3.2.5/guides/source/configuring.textile +641 -0
  890. data/vendor/bundle/gems/railties-3.2.5/guides/source/contributing_to_ruby_on_rails.textile +423 -0
  891. data/vendor/bundle/gems/railties-3.2.5/guides/source/credits.html.erb +72 -0
  892. data/vendor/bundle/gems/railties-3.2.5/guides/source/debugging_rails_applications.textile +714 -0
  893. data/vendor/bundle/gems/railties-3.2.5/guides/source/documents.yaml +157 -0
  894. data/vendor/bundle/gems/railties-3.2.5/guides/source/engines.textile +618 -0
  895. data/vendor/bundle/gems/railties-3.2.5/guides/source/form_helpers.textile +798 -0
  896. data/vendor/bundle/gems/railties-3.2.5/guides/source/generators.textile +621 -0
  897. data/vendor/bundle/gems/railties-3.2.5/guides/source/getting_started.textile +1929 -0
  898. data/vendor/bundle/gems/railties-3.2.5/guides/source/i18n.textile +931 -0
  899. data/vendor/bundle/gems/railties-3.2.5/guides/source/index.html.erb +30 -0
  900. data/vendor/bundle/gems/railties-3.2.5/guides/source/initialization.textile +1116 -0
  901. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/KINDLE.md +26 -0
  902. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/copyright.html.erb +1 -0
  903. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/layout.html.erb +27 -0
  904. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/rails_guides.opf.erb +52 -0
  905. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.html.erb +24 -0
  906. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.ncx.erb +64 -0
  907. data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/welcome.html.erb +5 -0
  908. data/vendor/bundle/gems/railties-3.2.5/guides/source/layout.html.erb +124 -0
  909. data/vendor/bundle/gems/railties-3.2.5/guides/source/layouts_and_rendering.textile +1237 -0
  910. data/vendor/bundle/gems/railties-3.2.5/guides/source/migrations.textile +900 -0
  911. data/vendor/bundle/gems/railties-3.2.5/guides/source/nested_model_forms.textile +222 -0
  912. data/vendor/bundle/gems/railties-3.2.5/guides/source/performance_testing.textile +597 -0
  913. data/vendor/bundle/gems/railties-3.2.5/guides/source/plugins.textile +464 -0
  914. data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_application_templates.textile +240 -0
  915. data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_on_rack.textile +236 -0
  916. data/vendor/bundle/gems/railties-3.2.5/guides/source/routing.textile +885 -0
  917. data/vendor/bundle/gems/railties-3.2.5/guides/source/ruby_on_rails_guides_guidelines.textile +79 -0
  918. data/vendor/bundle/gems/railties-3.2.5/guides/source/security.textile +1004 -0
  919. data/vendor/bundle/gems/railties-3.2.5/guides/source/testing.textile +947 -0
  920. data/vendor/bundle/gems/railties-3.2.5/guides/w3c_validator.rb +91 -0
  921. data/vendor/bundle/gems/railties-3.2.5/lib/rails/all.rb +15 -0
  922. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/bootstrap.rb +73 -0
  923. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/configuration.rb +151 -0
  924. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/finisher.rb +98 -0
  925. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/railties.rb +13 -0
  926. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/route_inspector.rb +84 -0
  927. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/routes_reloader.rb +56 -0
  928. data/vendor/bundle/gems/railties-3.2.5/lib/rails/application.rb +315 -0
  929. data/vendor/bundle/gems/railties-3.2.5/lib/rails/backtrace_cleaner.rb +42 -0
  930. data/vendor/bundle/gems/railties-3.2.5/lib/rails/cli.rb +16 -0
  931. data/vendor/bundle/gems/railties-3.2.5/lib/rails/code_statistics.rb +118 -0
  932. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/application.rb +38 -0
  933. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/benchmarker.rb +34 -0
  934. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/console.rb +55 -0
  935. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/dbconsole.rb +123 -0
  936. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/destroy.rb +10 -0
  937. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/generate.rb +12 -0
  938. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin.rb +544 -0
  939. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin_new.rb +11 -0
  940. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/profiler.rb +32 -0
  941. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/runner.rb +54 -0
  942. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/server.rb +100 -0
  943. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/update.rb +9 -0
  944. data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands.rb +104 -0
  945. data/vendor/bundle/gems/railties-3.2.5/lib/rails/configuration.rb +89 -0
  946. data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/app.rb +36 -0
  947. data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/helpers.rb +11 -0
  948. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/commands.rb +43 -0
  949. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/configuration.rb +84 -0
  950. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/railties.rb +33 -0
  951. data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine.rb +657 -0
  952. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/actions.rb +325 -0
  953. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/active_model.rb +78 -0
  954. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/app_base.rb +281 -0
  955. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/base.rb +389 -0
  956. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/assets_generator.rb +13 -0
  957. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/templates/stylesheet.css +4 -0
  958. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/scaffold/scaffold_generator.rb +16 -0
  959. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/controller_generator.rb +20 -0
  960. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/templates/view.html.erb +2 -0
  961. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/mailer_generator.rb +13 -0
  962. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/templates/view.text.erb +3 -0
  963. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/scaffold_generator.rb +29 -0
  964. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/_form.html.erb +23 -0
  965. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/edit.html.erb +6 -0
  966. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/index.html.erb +27 -0
  967. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/new.html.erb +5 -0
  968. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/show.html.erb +12 -0
  969. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb.rb +21 -0
  970. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/generated_attribute.rb +107 -0
  971. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/assets_generator.rb +13 -0
  972. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/templates/javascript.js +2 -0
  973. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/migration.rb +68 -0
  974. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/named_base.rb +202 -0
  975. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/USAGE +15 -0
  976. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/app_generator.rb +303 -0
  977. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Gemfile +26 -0
  978. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/README +261 -0
  979. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Rakefile +7 -0
  980. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
  981. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +17 -0
  982. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +13 -0
  983. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +3 -0
  984. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +2 -0
  985. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +14 -0
  986. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/application.rb +74 -0
  987. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/boot.rb +6 -0
  988. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +31 -0
  989. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +86 -0
  990. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +62 -0
  991. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +33 -0
  992. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +43 -0
  993. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +20 -0
  994. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +54 -0
  995. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +39 -0
  996. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +55 -0
  997. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +25 -0
  998. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environment.rb +5 -0
  999. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +41 -0
  1000. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +73 -0
  1001. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +39 -0
  1002. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +7 -0
  1003. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +15 -0
  1004. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +5 -0
  1005. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +7 -0
  1006. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +8 -0
  1007. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +16 -0
  1008. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/locales/en.yml +5 -0
  1009. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/routes.rb +58 -0
  1010. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config.ru +4 -0
  1011. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +7 -0
  1012. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +2 -0
  1013. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/gitignore +15 -0
  1014. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/404.html +26 -0
  1015. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/422.html +26 -0
  1016. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/500.html +25 -0
  1017. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/favicon.ico +0 -0
  1018. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/index.html +241 -0
  1019. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/robots.txt +5 -0
  1020. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/script/rails +5 -0
  1021. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +12 -0
  1022. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/test_helper.rb +15 -0
  1023. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/USAGE +20 -0
  1024. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/assets_generator.rb +25 -0
  1025. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/javascript.js +2 -0
  1026. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/stylesheet.css +4 -0
  1027. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/USAGE +18 -0
  1028. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/controller_generator.rb +20 -0
  1029. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/templates/controller.rb +13 -0
  1030. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/USAGE +12 -0
  1031. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/generator_generator.rb +25 -0
  1032. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +3 -0
  1033. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/USAGE.tt +8 -0
  1034. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/USAGE +17 -0
  1035. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/helper_generator.rb +13 -0
  1036. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/templates/helper.rb +4 -0
  1037. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/USAGE +10 -0
  1038. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/integration_test_generator.rb +7 -0
  1039. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/USAGE +29 -0
  1040. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/migration_generator.rb +8 -0
  1041. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/USAGE +45 -0
  1042. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/model_generator.rb +8 -0
  1043. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/USAGE +12 -0
  1044. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/observer_generator.rb +7 -0
  1045. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/USAGE +10 -0
  1046. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/performance_test_generator.rb +7 -0
  1047. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/USAGE +10 -0
  1048. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +318 -0
  1049. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +27 -0
  1050. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Gemfile +23 -0
  1051. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +20 -0
  1052. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/README.rdoc +3 -0
  1053. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Rakefile +31 -0
  1054. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +4 -0
  1055. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +4 -0
  1056. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt +14 -0
  1057. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +6 -0
  1058. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/gitignore +7 -0
  1059. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +7 -0
  1060. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +3 -0
  1061. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +6 -0
  1062. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +4 -0
  1063. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +18 -0
  1064. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +10 -0
  1065. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +4 -0
  1066. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +7 -0
  1067. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +7 -0
  1068. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +12 -0
  1069. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +15 -0
  1070. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/USAGE +23 -0
  1071. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/resource_generator.rb +20 -0
  1072. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource_route/resource_route_generator.rb +13 -0
  1073. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/USAGE +35 -0
  1074. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/scaffold_generator.rb +23 -0
  1075. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/templates/scaffold.css +56 -0
  1076. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/USAGE +20 -0
  1077. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +25 -0
  1078. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +89 -0
  1079. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/USAGE +8 -0
  1080. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/session_migration_generator.rb +8 -0
  1081. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/USAGE +9 -0
  1082. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/task_generator.rb +12 -0
  1083. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/templates/task.rb +8 -0
  1084. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/resource_helpers.rb +80 -0
  1085. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_case.rb +247 -0
  1086. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/controller_generator.rb +15 -0
  1087. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/templates/functional_test.rb +19 -0
  1088. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/helper_generator.rb +13 -0
  1089. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/templates/helper_test.rb +6 -0
  1090. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/integration_generator.rb +13 -0
  1091. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/templates/integration_test.rb +7 -0
  1092. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/mailer_generator.rb +14 -0
  1093. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +21 -0
  1094. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/model_generator.rb +24 -0
  1095. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/fixtures.yml +23 -0
  1096. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/unit_test.rb +9 -0
  1097. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/observer_generator.rb +13 -0
  1098. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/templates/unit_test.rb +9 -0
  1099. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/performance_generator.rb +13 -0
  1100. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/templates/performance_test.rb +12 -0
  1101. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/plugin_generator.rb +13 -0
  1102. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +7 -0
  1103. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +3 -0
  1104. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +38 -0
  1105. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +51 -0
  1106. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit.rb +8 -0
  1107. data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators.rb +339 -0
  1108. data/vendor/bundle/gems/railties-3.2.5/lib/rails/info.rb +116 -0
  1109. data/vendor/bundle/gems/railties-3.2.5/lib/rails/info_controller.rb +15 -0
  1110. data/vendor/bundle/gems/railties-3.2.5/lib/rails/initializable.rb +89 -0
  1111. data/vendor/bundle/gems/railties-3.2.5/lib/rails/paths.rb +211 -0
  1112. data/vendor/bundle/gems/railties-3.2.5/lib/rails/performance_test_help.rb +3 -0
  1113. data/vendor/bundle/gems/railties-3.2.5/lib/rails/plugin.rb +92 -0
  1114. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/debugger.rb +24 -0
  1115. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/log_tailer.rb +34 -0
  1116. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/logger.rb +47 -0
  1117. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack.rb +7 -0
  1118. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configurable.rb +35 -0
  1119. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configuration.rb +90 -0
  1120. data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie.rb +202 -0
  1121. data/vendor/bundle/gems/railties-3.2.5/lib/rails/ruby_version_check.rb +23 -0
  1122. data/vendor/bundle/gems/railties-3.2.5/lib/rails/rubyprof_ext.rb +35 -0
  1123. data/vendor/bundle/gems/railties-3.2.5/lib/rails/script_rails_loader.rb +29 -0
  1124. data/vendor/bundle/gems/railties-3.2.5/lib/rails/source_annotation_extractor.rb +104 -0
  1125. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/annotations.rake +20 -0
  1126. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/documentation.rake +155 -0
  1127. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/engine.rake +72 -0
  1128. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/framework.rake +76 -0
  1129. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/log.rake +9 -0
  1130. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/middleware.rake +7 -0
  1131. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/misc.rake +67 -0
  1132. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/routes.rake +9 -0
  1133. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/statistics.rake +16 -0
  1134. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/tmp.rake +37 -0
  1135. data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks.rb +16 -0
  1136. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_help.rb +56 -0
  1137. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/railtie.rb +15 -0
  1138. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/sub_test_task.rb +8 -0
  1139. data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/testing.rake +146 -0
  1140. data/vendor/bundle/gems/railties-3.2.5/lib/rails/version.rb +10 -0
  1141. data/vendor/bundle/gems/railties-3.2.5/lib/rails.rb +126 -0
  1142. data/vendor/bundle/gems/thor-0.15.2/CHANGELOG.rdoc +103 -0
  1143. data/vendor/bundle/gems/thor-0.15.2/Gemfile +15 -0
  1144. data/vendor/bundle/gems/thor-0.15.2/LICENSE.md +20 -0
  1145. data/vendor/bundle/gems/thor-0.15.2/README.md +28 -0
  1146. data/vendor/bundle/gems/thor-0.15.2/Thorfile +30 -0
  1147. data/vendor/bundle/gems/thor-0.15.2/bin/rake2thor +86 -0
  1148. data/vendor/bundle/gems/thor-0.15.2/bin/thor +6 -0
  1149. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_file.rb +105 -0
  1150. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_link.rb +57 -0
  1151. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/directory.rb +97 -0
  1152. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/empty_directory.rb +153 -0
  1153. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/file_manipulation.rb +308 -0
  1154. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/inject_into_file.rb +109 -0
  1155. data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions.rb +318 -0
  1156. data/vendor/bundle/gems/thor-0.15.2/lib/thor/base.rb +617 -0
  1157. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/file_binary_read.rb +9 -0
  1158. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/hash_with_indifferent_access.rb +75 -0
  1159. data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/ordered_hash.rb +100 -0
  1160. data/vendor/bundle/gems/thor-0.15.2/lib/thor/error.rb +35 -0
  1161. data/vendor/bundle/gems/thor-0.15.2/lib/thor/group.rb +285 -0
  1162. data/vendor/bundle/gems/thor-0.15.2/lib/thor/invocation.rb +170 -0
  1163. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/argument.rb +67 -0
  1164. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/arguments.rb +165 -0
  1165. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/option.rb +121 -0
  1166. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/options.rb +178 -0
  1167. data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser.rb +4 -0
  1168. data/vendor/bundle/gems/thor-0.15.2/lib/thor/rake_compat.rb +71 -0
  1169. data/vendor/bundle/gems/thor-0.15.2/lib/thor/runner.rb +321 -0
  1170. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/basic.rb +389 -0
  1171. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/color.rb +144 -0
  1172. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/html.rb +123 -0
  1173. data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell.rb +88 -0
  1174. data/vendor/bundle/gems/thor-0.15.2/lib/thor/task.rb +132 -0
  1175. data/vendor/bundle/gems/thor-0.15.2/lib/thor/util.rb +248 -0
  1176. data/vendor/bundle/gems/thor-0.15.2/lib/thor/version.rb +3 -0
  1177. data/vendor/bundle/gems/thor-0.15.2/lib/thor.rb +379 -0
  1178. data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_file_spec.rb +170 -0
  1179. data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_link_spec.rb +81 -0
  1180. data/vendor/bundle/gems/thor-0.15.2/spec/actions/directory_spec.rb +136 -0
  1181. data/vendor/bundle/gems/thor-0.15.2/spec/actions/empty_directory_spec.rb +130 -0
  1182. data/vendor/bundle/gems/thor-0.15.2/spec/actions/file_manipulation_spec.rb +370 -0
  1183. data/vendor/bundle/gems/thor-0.15.2/spec/actions/inject_into_file_spec.rb +135 -0
  1184. data/vendor/bundle/gems/thor-0.15.2/spec/actions_spec.rb +326 -0
  1185. data/vendor/bundle/gems/thor-0.15.2/spec/base_spec.rb +274 -0
  1186. data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/hash_with_indifferent_access_spec.rb +43 -0
  1187. data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/ordered_hash_spec.rb +115 -0
  1188. data/vendor/bundle/gems/thor-0.15.2/spec/exit_condition_spec.rb +19 -0
  1189. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/application.rb +2 -0
  1190. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/execute.rb +6 -0
  1191. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/main.thor +1 -0
  1192. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/%file_name%.rb.tt +1 -0
  1193. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/COMMENTER +10 -0
  1194. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/README +3 -0
  1195. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/block_helper.rb +3 -0
  1196. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.rb +1 -0
  1197. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.yaml.tt +1 -0
  1198. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/group.thor +114 -0
  1199. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/invoke.thor +112 -0
  1200. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/path with spaces +0 -0
  1201. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/script.thor +190 -0
  1202. data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/task.thor +10 -0
  1203. data/vendor/bundle/gems/thor-0.15.2/spec/group_spec.rb +216 -0
  1204. data/vendor/bundle/gems/thor-0.15.2/spec/invocation_spec.rb +100 -0
  1205. data/vendor/bundle/gems/thor-0.15.2/spec/parser/argument_spec.rb +47 -0
  1206. data/vendor/bundle/gems/thor-0.15.2/spec/parser/arguments_spec.rb +65 -0
  1207. data/vendor/bundle/gems/thor-0.15.2/spec/parser/option_spec.rb +202 -0
  1208. data/vendor/bundle/gems/thor-0.15.2/spec/parser/options_spec.rb +329 -0
  1209. data/vendor/bundle/gems/thor-0.15.2/spec/rake_compat_spec.rb +72 -0
  1210. data/vendor/bundle/gems/thor-0.15.2/spec/register_spec.rb +135 -0
  1211. data/vendor/bundle/gems/thor-0.15.2/spec/runner_spec.rb +241 -0
  1212. data/vendor/bundle/gems/thor-0.15.2/spec/shell/basic_spec.rb +300 -0
  1213. data/vendor/bundle/gems/thor-0.15.2/spec/shell/color_spec.rb +81 -0
  1214. data/vendor/bundle/gems/thor-0.15.2/spec/shell/html_spec.rb +32 -0
  1215. data/vendor/bundle/gems/thor-0.15.2/spec/shell_spec.rb +47 -0
  1216. data/vendor/bundle/gems/thor-0.15.2/spec/spec_helper.rb +58 -0
  1217. data/vendor/bundle/gems/thor-0.15.2/spec/task_spec.rb +79 -0
  1218. data/vendor/bundle/gems/thor-0.15.2/spec/thor_spec.rb +387 -0
  1219. data/vendor/bundle/gems/thor-0.15.2/spec/util_spec.rb +163 -0
  1220. data/vendor/bundle/gems/thor-0.15.2/thor.gemspec +26 -0
  1221. data/vendor/bundle/gems/yard-0.8.2/ChangeLog +12178 -0
  1222. data/vendor/bundle/gems/yard-0.8.2/LEGAL +74 -0
  1223. data/vendor/bundle/gems/yard-0.8.2/LICENSE +22 -0
  1224. data/vendor/bundle/gems/yard-0.8.2/README.md +553 -0
  1225. data/vendor/bundle/gems/yard-0.8.2/Rakefile +93 -0
  1226. data/vendor/bundle/gems/yard-0.8.2/benchmarks/builtins_vs_eval.rb +23 -0
  1227. data/vendor/bundle/gems/yard-0.8.2/benchmarks/concat_vs_join.rb +12 -0
  1228. data/vendor/bundle/gems/yard-0.8.2/benchmarks/erb_vs_erubis.rb +53 -0
  1229. data/vendor/bundle/gems/yard-0.8.2/benchmarks/format_args.rb +46 -0
  1230. data/vendor/bundle/gems/yard-0.8.2/benchmarks/generation.rb +37 -0
  1231. data/vendor/bundle/gems/yard-0.8.2/benchmarks/marshal_vs_dbm.rb +63 -0
  1232. data/vendor/bundle/gems/yard-0.8.2/benchmarks/parsing.rb +46 -0
  1233. data/vendor/bundle/gems/yard-0.8.2/benchmarks/pathname_vs_string.rb +50 -0
  1234. data/vendor/bundle/gems/yard-0.8.2/benchmarks/rdoc_vs_yardoc.rb +10 -0
  1235. data/vendor/bundle/gems/yard-0.8.2/benchmarks/registry_store_types.rb +48 -0
  1236. data/vendor/bundle/gems/yard-0.8.2/benchmarks/ri_vs_yri.rb +18 -0
  1237. data/vendor/bundle/gems/yard-0.8.2/benchmarks/ripper_parser.rb +12 -0
  1238. data/vendor/bundle/gems/yard-0.8.2/benchmarks/splat_vs_flatten.rb +12 -0
  1239. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_erb.rb +22 -0
  1240. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_format.rb +6 -0
  1241. data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_profile.rb +17 -0
  1242. data/vendor/bundle/gems/yard-0.8.2/benchmarks/yri_cache.rb +19 -0
  1243. data/vendor/bundle/gems/yard-0.8.2/bin/yard +12 -0
  1244. data/vendor/bundle/gems/yard-0.8.2/bin/yardoc +12 -0
  1245. data/vendor/bundle/gems/yard-0.8.2/bin/yri +12 -0
  1246. data/vendor/bundle/gems/yard-0.8.2/docs/CodeObjects.md +115 -0
  1247. data/vendor/bundle/gems/yard-0.8.2/docs/GettingStarted.md +592 -0
  1248. data/vendor/bundle/gems/yard-0.8.2/docs/Handlers.md +152 -0
  1249. data/vendor/bundle/gems/yard-0.8.2/docs/Overview.md +61 -0
  1250. data/vendor/bundle/gems/yard-0.8.2/docs/Parser.md +191 -0
  1251. data/vendor/bundle/gems/yard-0.8.2/docs/Tags.md +282 -0
  1252. data/vendor/bundle/gems/yard-0.8.2/docs/TagsArch.md +123 -0
  1253. data/vendor/bundle/gems/yard-0.8.2/docs/Templates.md +496 -0
  1254. data/vendor/bundle/gems/yard-0.8.2/docs/WhatsNew.md +1166 -0
  1255. data/vendor/bundle/gems/yard-0.8.2/docs/images/code-objects-class-diagram.png +0 -0
  1256. data/vendor/bundle/gems/yard-0.8.2/docs/images/handlers-class-diagram.png +0 -0
  1257. data/vendor/bundle/gems/yard-0.8.2/docs/images/overview-class-diagram.png +0 -0
  1258. data/vendor/bundle/gems/yard-0.8.2/docs/images/parser-class-diagram.png +0 -0
  1259. data/vendor/bundle/gems/yard-0.8.2/docs/images/tags-class-diagram.png +0 -0
  1260. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/full_list_tag.erb +7 -0
  1261. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/setup.rb +6 -0
  1262. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/setup.rb +8 -0
  1263. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/tag_list.erb +11 -0
  1264. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/list.erb +18 -0
  1265. data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/setup.rb +27 -0
  1266. data/vendor/bundle/gems/yard-0.8.2/docs/templates/plugin.rb +65 -0
  1267. data/vendor/bundle/gems/yard-0.8.2/lib/rubygems_plugin.rb +4 -0
  1268. data/vendor/bundle/gems/yard-0.8.2/lib/yard/autoload.rb +284 -0
  1269. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command.rb +76 -0
  1270. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command_parser.rb +90 -0
  1271. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/config.rb +136 -0
  1272. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/diff.rb +201 -0
  1273. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/gems.rb +83 -0
  1274. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/graph.rb +121 -0
  1275. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/help.rb +18 -0
  1276. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/i18n.rb +69 -0
  1277. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/list.rb +22 -0
  1278. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/server.rb +183 -0
  1279. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/stats.rb +213 -0
  1280. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yardoc.rb +776 -0
  1281. data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yri.rb +214 -0
  1282. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/base.rb +551 -0
  1283. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_object.rb +143 -0
  1284. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_variable_object.rb +8 -0
  1285. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/constant_object.rb +13 -0
  1286. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extended_method_object.rb +23 -0
  1287. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extra_file_object.rb +89 -0
  1288. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/macro_object.rb +172 -0
  1289. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/method_object.rb +191 -0
  1290. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/module_object.rb +18 -0
  1291. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/namespace_object.rb +200 -0
  1292. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/proxy.rb +257 -0
  1293. data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/root_object.rb +16 -0
  1294. data/vendor/bundle/gems/yard-0.8.2/lib/yard/config.rb +269 -0
  1295. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/array.rb +15 -0
  1296. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/file.rb +65 -0
  1297. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/hash.rb +15 -0
  1298. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/insertion.rb +60 -0
  1299. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/module.rb +19 -0
  1300. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/string.rb +67 -0
  1301. data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/symbol_hash.rb +73 -0
  1302. data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring.rb +317 -0
  1303. data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring_parser.rb +298 -0
  1304. data/vendor/bundle/gems/yard-0.8.2/lib/yard/globals.rb +18 -0
  1305. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/base.rb +581 -0
  1306. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/alias_handler.rb +15 -0
  1307. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/attribute_handler.rb +13 -0
  1308. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/base.rb +110 -0
  1309. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/class_handler.rb +26 -0
  1310. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/constant_handler.rb +12 -0
  1311. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/handler_methods.rb +166 -0
  1312. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/init_handler.rb +18 -0
  1313. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/method_handler.rb +35 -0
  1314. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/mixin_handler.rb +13 -0
  1315. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/module_handler.rb +16 -0
  1316. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/override_comment_handler.rb +30 -0
  1317. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/path_handler.rb +10 -0
  1318. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/struct_handler.rb +12 -0
  1319. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/symbol_handler.rb +7 -0
  1320. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/processor.rb +198 -0
  1321. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/alias_handler.rb +41 -0
  1322. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/attribute_handler.rb +82 -0
  1323. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/base.rb +164 -0
  1324. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_condition_handler.rb +86 -0
  1325. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_handler.rb +122 -0
  1326. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_variable_handler.rb +16 -0
  1327. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/comment_handler.rb +9 -0
  1328. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/constant_handler.rb +45 -0
  1329. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler.rb +14 -0
  1330. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler_methods.rb +71 -0
  1331. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/exception_handler.rb +26 -0
  1332. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/extend_handler.rb +21 -0
  1333. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/alias_handler.rb +34 -0
  1334. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/attribute_handler.rb +60 -0
  1335. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/base.rb +250 -0
  1336. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
  1337. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_handler.rb +110 -0
  1338. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +14 -0
  1339. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/comment_handler.rb +9 -0
  1340. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/constant_handler.rb +28 -0
  1341. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/dsl_handler.rb +16 -0
  1342. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/exception_handler.rb +12 -0
  1343. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/extend_handler.rb +20 -0
  1344. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/method_handler.rb +78 -0
  1345. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
  1346. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_function_handler.rb +18 -0
  1347. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_handler.rb +11 -0
  1348. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
  1349. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/visibility_handler.rb +16 -0
  1350. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/yield_handler.rb +28 -0
  1351. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_condition_handler.rb +8 -0
  1352. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_handler.rb +91 -0
  1353. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/mixin_handler.rb +36 -0
  1354. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_function_handler.rb +26 -0
  1355. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_handler.rb +11 -0
  1356. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
  1357. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/struct_handler_methods.rb +141 -0
  1358. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/visibility_handler.rb +24 -0
  1359. data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/yield_handler.rb +30 -0
  1360. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/locale.rb +50 -0
  1361. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/message.rb +56 -0
  1362. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/messages.rb +55 -0
  1363. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/pot_generator.rb +280 -0
  1364. data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/text.rb +173 -0
  1365. data/vendor/bundle/gems/yard-0.8.2/lib/yard/logging.rb +164 -0
  1366. data/vendor/bundle/gems/yard-0.8.2/lib/yard/options.rb +216 -0
  1367. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/base.rb +56 -0
  1368. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/c_parser.rb +225 -0
  1369. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/comment_parser.rb +131 -0
  1370. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/statement.rb +63 -0
  1371. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ast_node.rb +489 -0
  1372. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_lex.rb +1376 -0
  1373. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_parser.rb +31 -0
  1374. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement.rb +65 -0
  1375. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement_list.rb +381 -0
  1376. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/token_list.rb +66 -0
  1377. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ruby_parser.rb +615 -0
  1378. data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/source_parser.rb +519 -0
  1379. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rake/yardoc_task.rb +75 -0
  1380. data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry.rb +419 -0
  1381. data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry_store.rb +305 -0
  1382. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/LICENSE.txt +57 -0
  1383. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/MIT.txt +20 -0
  1384. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/gem.rb +8 -0
  1385. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/source_index.rb +353 -0
  1386. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports.rb +8 -0
  1387. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/doc_manager.rb +79 -0
  1388. data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/specification.rb +41 -0
  1389. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/base.rb +80 -0
  1390. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/file_system_serializer.rb +90 -0
  1391. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/process_serializer.rb +24 -0
  1392. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/stdout_serializer.rb +32 -0
  1393. data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/yardoc_serializer.rb +124 -0
  1394. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/adapter.rb +100 -0
  1395. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/base.rb +193 -0
  1396. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_file_command.rb +24 -0
  1397. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_object_command.rb +58 -0
  1398. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/frames_command.rb +15 -0
  1399. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_command.rb +147 -0
  1400. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_index_command.rb +24 -0
  1401. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/list_command.rb +24 -0
  1402. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/search_command.rb +78 -0
  1403. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/static_file_command.rb +50 -0
  1404. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_helper.rb +74 -0
  1405. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_serializer.rb +33 -0
  1406. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/library_version.rb +227 -0
  1407. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/rack_adapter.rb +88 -0
  1408. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/router.rb +176 -0
  1409. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/static_caching.rb +45 -0
  1410. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/css/custom.css +78 -0
  1411. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
  1412. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
  1413. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/breadcrumb.erb +46 -0
  1414. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/script_setup.erb +8 -0
  1415. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/setup.rb +7 -0
  1416. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
  1417. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/setup.rb +4 -0
  1418. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/contents.erb +13 -0
  1419. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/headers.erb +26 -0
  1420. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +12 -0
  1421. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/setup.rb +3 -0
  1422. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
  1423. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/processing.erb +51 -0
  1424. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/setup.rb +3 -0
  1425. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
  1426. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/setup.rb +8 -0
  1427. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/webrick_adapter.rb +43 -0
  1428. data/vendor/bundle/gems/yard-0.8.2/lib/yard/server.rb +11 -0
  1429. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_factory.rb +176 -0
  1430. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_tag.rb +12 -0
  1431. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/directives.rb +594 -0
  1432. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/library.rb +630 -0
  1433. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/option_tag.rb +12 -0
  1434. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/overload_tag.rb +65 -0
  1435. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag.rb +7 -0
  1436. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag_list.rb +27 -0
  1437. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag.rb +57 -0
  1438. data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag_format_error.rb +6 -0
  1439. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/engine.rb +185 -0
  1440. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/erb_cache.rb +22 -0
  1441. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/base_helper.rb +212 -0
  1442. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/filter_helper.rb +26 -0
  1443. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_helper.rb +589 -0
  1444. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +59 -0
  1445. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup/rdoc_markup.rb +85 -0
  1446. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup_helper.rb +164 -0
  1447. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/method_helper.rb +72 -0
  1448. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/module_helper.rb +19 -0
  1449. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/text_helper.rb +95 -0
  1450. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/uml_helper.rb +46 -0
  1451. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/section.rb +106 -0
  1452. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template.rb +395 -0
  1453. data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template_options.rb +88 -0
  1454. data/vendor/bundle/gems/yard-0.8.2/lib/yard/verifier.rb +148 -0
  1455. data/vendor/bundle/gems/yard-0.8.2/lib/yard.rb +48 -0
  1456. data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_parser_spec.rb +43 -0
  1457. data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_spec.rb +36 -0
  1458. data/vendor/bundle/gems/yard-0.8.2/spec/cli/config_spec.rb +92 -0
  1459. data/vendor/bundle/gems/yard-0.8.2/spec/cli/diff_spec.rb +175 -0
  1460. data/vendor/bundle/gems/yard-0.8.2/spec/cli/gems_spec.rb +81 -0
  1461. data/vendor/bundle/gems/yard-0.8.2/spec/cli/graph_spec.rb +10 -0
  1462. data/vendor/bundle/gems/yard-0.8.2/spec/cli/help_spec.rb +22 -0
  1463. data/vendor/bundle/gems/yard-0.8.2/spec/cli/i18n_spec.rb +111 -0
  1464. data/vendor/bundle/gems/yard-0.8.2/spec/cli/list_spec.rb +8 -0
  1465. data/vendor/bundle/gems/yard-0.8.2/spec/cli/server_spec.rb +219 -0
  1466. data/vendor/bundle/gems/yard-0.8.2/spec/cli/stats_spec.rb +90 -0
  1467. data/vendor/bundle/gems/yard-0.8.2/spec/cli/yardoc_spec.rb +741 -0
  1468. data/vendor/bundle/gems/yard-0.8.2/spec/cli/yri_spec.rb +99 -0
  1469. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/base_spec.rb +392 -0
  1470. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/class_object_spec.rb +225 -0
  1471. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/code_object_list_spec.rb +33 -0
  1472. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/constants_spec.rb +82 -0
  1473. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/extra_file_object_spec.rb +132 -0
  1474. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/macro_object_spec.rb +148 -0
  1475. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/method_object_spec.rb +175 -0
  1476. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/module_object_spec.rb +141 -0
  1477. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/namespace_object_spec.rb +170 -0
  1478. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/proxy_spec.rb +140 -0
  1479. data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/spec_helper.rb +3 -0
  1480. data/vendor/bundle/gems/yard-0.8.2/spec/config_spec.rb +176 -0
  1481. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/array_spec.rb +14 -0
  1482. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/file_spec.rb +68 -0
  1483. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/hash_spec.rb +14 -0
  1484. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/insertion_spec.rb +37 -0
  1485. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/module_spec.rb +15 -0
  1486. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/string_spec.rb +42 -0
  1487. data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/symbol_hash_spec.rb +86 -0
  1488. data/vendor/bundle/gems/yard-0.8.2/spec/docstring_parser_spec.rb +224 -0
  1489. data/vendor/bundle/gems/yard-0.8.2/spec/docstring_spec.rb +287 -0
  1490. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/alias_handler_spec.rb +80 -0
  1491. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/attribute_handler_spec.rb +94 -0
  1492. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/base_spec.rb +197 -0
  1493. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/alias_handler_spec.rb +33 -0
  1494. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/attribute_handler_spec.rb +40 -0
  1495. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/class_handler_spec.rb +63 -0
  1496. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/constant_handler_spec.rb +68 -0
  1497. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/init_handler_spec.rb +47 -0
  1498. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/method_handler_spec.rb +228 -0
  1499. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/mixin_handler_spec.rb +27 -0
  1500. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/module_handler_spec.rb +38 -0
  1501. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/override_comment_handler_spec.rb +46 -0
  1502. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/path_handler_spec.rb +35 -0
  1503. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/spec_helper.rb +11 -0
  1504. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/struct_handler_spec.rb +15 -0
  1505. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_condition_handler_spec.rb +67 -0
  1506. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_handler_spec.rb +246 -0
  1507. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_variable_handler_spec.rb +11 -0
  1508. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/constant_handler_spec.rb +64 -0
  1509. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/dsl_handler_spec.rb +186 -0
  1510. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/alias_handler_001.rb.txt +44 -0
  1511. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/attribute_handler_001.rb.txt +32 -0
  1512. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_condition_handler_001.rb.txt +69 -0
  1513. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_handler_001.rb.txt +120 -0
  1514. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_variable_handler_001.rb.txt +10 -0
  1515. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/constant_handler_001.rb.txt +25 -0
  1516. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/dsl_handler_001.rb.txt +110 -0
  1517. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/exception_handler_001.rb.txt +59 -0
  1518. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/extend_handler_001.rb.txt +16 -0
  1519. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_condition_handler_001.rb.txt +10 -0
  1520. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_handler_001.rb.txt +126 -0
  1521. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/mixin_handler_001.rb.txt +37 -0
  1522. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/module_handler_001.rb.txt +29 -0
  1523. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
  1524. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/process_handler_001.rb.txt +11 -0
  1525. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/visibility_handler_001.rb.txt +27 -0
  1526. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/yield_handler_001.rb.txt +54 -0
  1527. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/exception_handler_spec.rb +48 -0
  1528. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/extend_handler_spec.rb +23 -0
  1529. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/legacy_base_spec.rb +128 -0
  1530. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_condition_handler_spec.rb +14 -0
  1531. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_handler_spec.rb +184 -0
  1532. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/mixin_handler_spec.rb +55 -0
  1533. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_function_handler_spec.rb +82 -0
  1534. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_handler_spec.rb +34 -0
  1535. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/private_constant_handler_spec.rb +24 -0
  1536. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/processor_spec.rb +23 -0
  1537. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/base_spec.rb +94 -0
  1538. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/legacy/base_spec.rb +82 -0
  1539. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/spec_helper.rb +33 -0
  1540. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/visibility_handler_spec.rb +34 -0
  1541. data/vendor/bundle/gems/yard-0.8.2/spec/handlers/yield_handler_spec.rb +51 -0
  1542. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/locale_spec.rb +62 -0
  1543. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/message_spec.rb +52 -0
  1544. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/messages_spec.rb +67 -0
  1545. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/pot_generator_spec.rb +262 -0
  1546. data/vendor/bundle/gems/yard-0.8.2/spec/i18n/text_spec.rb +180 -0
  1547. data/vendor/bundle/gems/yard-0.8.2/spec/logging_spec.rb +35 -0
  1548. data/vendor/bundle/gems/yard-0.8.2/spec/options_spec.rb +160 -0
  1549. data/vendor/bundle/gems/yard-0.8.2/spec/parser/base_spec.rb +24 -0
  1550. data/vendor/bundle/gems/yard-0.8.2/spec/parser/c_parser_spec.rb +166 -0
  1551. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/array.c.txt +3887 -0
  1552. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/example1.rb.txt +8 -0
  1553. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/extrafile.c.txt +8 -0
  1554. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/multifile.c.txt +6 -0
  1555. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/override.c.txt +424 -0
  1556. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_001.rb.txt +2 -0
  1557. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_002.rb.txt +2 -0
  1558. data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/tag_handler_001.rb.txt +8 -0
  1559. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ast_node_spec.rb +33 -0
  1560. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/statement_list_spec.rb +299 -0
  1561. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/token_list_spec.rb +69 -0
  1562. data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ruby_parser_spec.rb +295 -0
  1563. data/vendor/bundle/gems/yard-0.8.2/spec/parser/source_parser_spec.rb +658 -0
  1564. data/vendor/bundle/gems/yard-0.8.2/spec/parser/tag_parsing_spec.rb +18 -0
  1565. data/vendor/bundle/gems/yard-0.8.2/spec/rake/yardoc_task_spec.rb +92 -0
  1566. data/vendor/bundle/gems/yard-0.8.2/spec/registry_spec.rb +359 -0
  1567. data/vendor/bundle/gems/yard-0.8.2/spec/registry_store_spec.rb +305 -0
  1568. data/vendor/bundle/gems/yard-0.8.2/spec/rubygems/doc_manager_spec.rb +112 -0
  1569. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/checksums +1 -0
  1570. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
  1571. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
  1572. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
  1573. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
  1574. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/proxy_types +2 -0
  1575. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/file_system_serializer_spec.rb +124 -0
  1576. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/spec_helper.rb +2 -0
  1577. data/vendor/bundle/gems/yard-0.8.2/spec/serializers/yardoc_serializer_spec.rb +46 -0
  1578. data/vendor/bundle/gems/yard-0.8.2/spec/server/adapter_spec.rb +38 -0
  1579. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/base_spec.rb +87 -0
  1580. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/library_command_spec.rb +39 -0
  1581. data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/static_file_command_spec.rb +84 -0
  1582. data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_helper_spec.rb +51 -0
  1583. data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_serializer_spec.rb +45 -0
  1584. data/vendor/bundle/gems/yard-0.8.2/spec/server/rack_adapter_spec.rb +20 -0
  1585. data/vendor/bundle/gems/yard-0.8.2/spec/server/router_spec.rb +122 -0
  1586. data/vendor/bundle/gems/yard-0.8.2/spec/server/spec_helper.rb +17 -0
  1587. data/vendor/bundle/gems/yard-0.8.2/spec/server/static_caching_spec.rb +39 -0
  1588. data/vendor/bundle/gems/yard-0.8.2/spec/server/webrick_servlet_spec.rb +20 -0
  1589. data/vendor/bundle/gems/yard-0.8.2/spec/server_spec.rb +10 -0
  1590. data/vendor/bundle/gems/yard-0.8.2/spec/spec_helper.rb +105 -0
  1591. data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_factory_spec.rb +152 -0
  1592. data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_tag_spec.rb +11 -0
  1593. data/vendor/bundle/gems/yard-0.8.2/spec/tags/directives_spec.rb +429 -0
  1594. data/vendor/bundle/gems/yard-0.8.2/spec/tags/library_spec.rb +34 -0
  1595. data/vendor/bundle/gems/yard-0.8.2/spec/tags/overload_tag_spec.rb +53 -0
  1596. data/vendor/bundle/gems/yard-0.8.2/spec/tags/ref_tag_list_spec.rb +53 -0
  1597. data/vendor/bundle/gems/yard-0.8.2/spec/templates/class_spec.rb +44 -0
  1598. data/vendor/bundle/gems/yard-0.8.2/spec/templates/constant_spec.rb +40 -0
  1599. data/vendor/bundle/gems/yard-0.8.2/spec/templates/engine_spec.rb +121 -0
  1600. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.html +280 -0
  1601. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.txt +36 -0
  1602. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class002.html +35 -0
  1603. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant001.txt +25 -0
  1604. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant002.txt +7 -0
  1605. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant003.txt +11 -0
  1606. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.html +130 -0
  1607. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.txt +35 -0
  1608. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.html +86 -0
  1609. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.txt +20 -0
  1610. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.html +159 -0
  1611. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.txt +45 -0
  1612. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.html +44 -0
  1613. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.txt +10 -0
  1614. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.html +99 -0
  1615. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.txt +33 -0
  1616. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.dot +33 -0
  1617. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.html +791 -0
  1618. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.txt +33 -0
  1619. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module002.html +318 -0
  1620. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module003.html +185 -0
  1621. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module004.html +387 -0
  1622. data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/tag001.txt +82 -0
  1623. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/base_helper_spec.rb +175 -0
  1624. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_helper_spec.rb +586 -0
  1625. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +48 -0
  1626. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup/rdoc_markup_spec.rb +84 -0
  1627. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup_helper_spec.rb +135 -0
  1628. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/method_helper_spec.rb +75 -0
  1629. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/shared_signature_examples.rb +123 -0
  1630. data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/text_helper_spec.rb +44 -0
  1631. data/vendor/bundle/gems/yard-0.8.2/spec/templates/method_spec.rb +102 -0
  1632. data/vendor/bundle/gems/yard-0.8.2/spec/templates/module_spec.rb +181 -0
  1633. data/vendor/bundle/gems/yard-0.8.2/spec/templates/onefile_spec.rb +64 -0
  1634. data/vendor/bundle/gems/yard-0.8.2/spec/templates/section_spec.rb +146 -0
  1635. data/vendor/bundle/gems/yard-0.8.2/spec/templates/spec_helper.rb +72 -0
  1636. data/vendor/bundle/gems/yard-0.8.2/spec/templates/tag_spec.rb +51 -0
  1637. data/vendor/bundle/gems/yard-0.8.2/spec/templates/template_spec.rb +409 -0
  1638. data/vendor/bundle/gems/yard-0.8.2/spec/verifier_spec.rb +106 -0
  1639. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/setup.rb +6 -0
  1640. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/superklass.erb +3 -0
  1641. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/constructor_details.erb +8 -0
  1642. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/setup.rb +1 -0
  1643. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/subclasses.erb +4 -0
  1644. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/setup.rb +36 -0
  1645. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/setup.rb +11 -0
  1646. data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/subclasses.erb +5 -0
  1647. data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/header.erb +11 -0
  1648. data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/setup.rb +3 -0
  1649. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/abstract.erb +4 -0
  1650. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/deprecated.erb +1 -0
  1651. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/index.erb +5 -0
  1652. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/note.erb +6 -0
  1653. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/private.erb +4 -0
  1654. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/returns_void.erb +1 -0
  1655. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/text.erb +1 -0
  1656. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/todo.erb +6 -0
  1657. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/setup.rb +49 -0
  1658. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/abstract.erb +2 -0
  1659. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/deprecated.erb +2 -0
  1660. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/index.erb +2 -0
  1661. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/note.erb +4 -0
  1662. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/private.erb +2 -0
  1663. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/returns_void.erb +1 -0
  1664. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/text.erb +1 -0
  1665. data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/todo.erb +4 -0
  1666. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/common.css +1 -0
  1667. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/full_list.css +57 -0
  1668. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/style.css +328 -0
  1669. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/frames.erb +28 -0
  1670. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list.erb +39 -0
  1671. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_class.erb +2 -0
  1672. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_file.erb +5 -0
  1673. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_method.erb +12 -0
  1674. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/app.js +214 -0
  1675. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/full_list.js +173 -0
  1676. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/jquery.js +4 -0
  1677. data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/setup.rb +206 -0
  1678. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/header.erb +6 -0
  1679. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/setup.rb +14 -0
  1680. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/breadcrumb.erb +13 -0
  1681. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/files.erb +11 -0
  1682. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/footer.erb +5 -0
  1683. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/headers.erb +14 -0
  1684. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/index.erb +2 -0
  1685. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/layout.erb +20 -0
  1686. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/listing.erb +4 -0
  1687. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/objects.erb +32 -0
  1688. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/script_setup.erb +5 -0
  1689. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/search.erb +8 -0
  1690. data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/setup.rb +71 -0
  1691. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/html/header.erb +16 -0
  1692. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/setup.rb +3 -0
  1693. data/vendor/bundle/gems/yard-0.8.2/templates/default/method/text/header.erb +1 -0
  1694. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/header.erb +3 -0
  1695. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/method_signature.erb +25 -0
  1696. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/source.erb +10 -0
  1697. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/setup.rb +10 -0
  1698. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/header.erb +10 -0
  1699. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/method_signature.erb +12 -0
  1700. data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/setup.rb +10 -0
  1701. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/child.erb +1 -0
  1702. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/dependencies.erb +3 -0
  1703. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/header.erb +6 -0
  1704. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/info.erb +14 -0
  1705. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/setup.rb +14 -0
  1706. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_details.erb +10 -0
  1707. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_summary.erb +8 -0
  1708. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/box_info.erb +37 -0
  1709. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/children.erb +8 -0
  1710. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/constant_summary.erb +13 -0
  1711. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/defines.erb +3 -0
  1712. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/header.erb +5 -0
  1713. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_attributes.erb +14 -0
  1714. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_constants.erb +8 -0
  1715. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_methods.erb +19 -0
  1716. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/item_summary.erb +40 -0
  1717. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_details_list.erb +9 -0
  1718. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_summary.erb +14 -0
  1719. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/methodmissing.erb +12 -0
  1720. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/pre_docstring.erb +1 -0
  1721. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/setup.rb +164 -0
  1722. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/children.erb +10 -0
  1723. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/class_meths_list.erb +8 -0
  1724. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/extends.erb +8 -0
  1725. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/header.erb +7 -0
  1726. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/includes.erb +8 -0
  1727. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/instance_meths_list.erb +8 -0
  1728. data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/setup.rb +12 -0
  1729. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/files.erb +5 -0
  1730. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/layout.erb +22 -0
  1731. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/readme.erb +3 -0
  1732. data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/setup.rb +43 -0
  1733. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/child.erb +3 -0
  1734. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/setup.rb +5 -0
  1735. data/vendor/bundle/gems/yard-0.8.2/templates/default/root/html/setup.rb +1 -0
  1736. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/example.erb +11 -0
  1737. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/index.erb +3 -0
  1738. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/option.erb +24 -0
  1739. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/overload.erb +14 -0
  1740. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/see.erb +8 -0
  1741. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/tag.erb +20 -0
  1742. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/setup.rb +55 -0
  1743. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/example.erb +12 -0
  1744. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/index.erb +1 -0
  1745. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/option.erb +20 -0
  1746. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/overload.erb +19 -0
  1747. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/see.erb +11 -0
  1748. data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/tag.erb +13 -0
  1749. data/vendor/bundle/gems/yard-0.8.2/templates/guide/class/html/setup.rb +1 -0
  1750. data/vendor/bundle/gems/yard-0.8.2/templates/guide/docstring/html/setup.rb +1 -0
  1751. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/css/style.css +93 -0
  1752. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/js/app.js +33 -0
  1753. data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/setup.rb +54 -0
  1754. data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/layout.erb +81 -0
  1755. data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/setup.rb +24 -0
  1756. data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/header.erb +18 -0
  1757. data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/setup.rb +21 -0
  1758. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/header.erb +7 -0
  1759. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/method_list.erb +5 -0
  1760. data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/setup.rb +26 -0
  1761. data/vendor/bundle/gems/yard-0.8.2/templates/guide/tags/html/setup.rb +8 -0
  1762. data/vendor/bundle/specifications/actionmailer-3.2.5.gemspec +33 -0
  1763. data/vendor/bundle/specifications/actionpack-3.2.5.gemspec +57 -0
  1764. data/vendor/bundle/specifications/activemodel-3.2.5.gemspec +32 -0
  1765. data/vendor/bundle/specifications/activerecord-3.2.5.gemspec +41 -0
  1766. data/vendor/bundle/specifications/activeresource-3.2.5.gemspec +35 -0
  1767. data/vendor/bundle/specifications/activesupport-3.2.5.gemspec +33 -0
  1768. data/vendor/bundle/specifications/multi_json-1.3.6.gemspec +40 -0
  1769. data/vendor/bundle/specifications/rails-3.2.5.gemspec +47 -0
  1770. data/vendor/bundle/specifications/railties-3.2.5.gemspec +47 -0
  1771. data/vendor/bundle/specifications/thor-0.15.2.gemspec +50 -0
  1772. data/vendor/bundle/specifications/yard-0.8.2.gemspec +28 -0
  1773. metadata +1779 -10
@@ -0,0 +1,1509 @@
1
+ require 'active_support/core_ext/hash/except'
2
+ require 'active_support/core_ext/object/blank'
3
+ require 'active_support/core_ext/object/inclusion'
4
+ require 'active_support/inflector'
5
+ require 'action_dispatch/routing/redirection'
6
+
7
+ module ActionDispatch
8
+ module Routing
9
+ class Mapper
10
+ class Constraints #:nodoc:
11
+ def self.new(app, constraints, request = Rack::Request)
12
+ if constraints.any?
13
+ super(app, constraints, request)
14
+ else
15
+ app
16
+ end
17
+ end
18
+
19
+ attr_reader :app, :constraints
20
+
21
+ def initialize(app, constraints, request)
22
+ @app, @constraints, @request = app, constraints, request
23
+ end
24
+
25
+ def matches?(env)
26
+ req = @request.new(env)
27
+
28
+ @constraints.each { |constraint|
29
+ if constraint.respond_to?(:matches?) && !constraint.matches?(req)
30
+ return false
31
+ elsif constraint.respond_to?(:call) && !constraint.call(*constraint_args(constraint, req))
32
+ return false
33
+ end
34
+ }
35
+
36
+ return true
37
+ ensure
38
+ req.reset_parameters
39
+ end
40
+
41
+ def call(env)
42
+ matches?(env) ? @app.call(env) : [ 404, {'X-Cascade' => 'pass'}, [] ]
43
+ end
44
+
45
+ private
46
+ def constraint_args(constraint, request)
47
+ constraint.arity == 1 ? [request] : [request.symbolized_path_parameters, request]
48
+ end
49
+ end
50
+
51
+ class Mapping #:nodoc:
52
+ IGNORE_OPTIONS = [:to, :as, :via, :on, :constraints, :defaults, :only, :except, :anchor, :shallow, :shallow_path, :shallow_prefix]
53
+ ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
54
+ SHORTHAND_REGEX = %r{/[\w/]+$}
55
+ WILDCARD_PATH = %r{\*([^/\)]+)\)?$}
56
+
57
+ def initialize(set, scope, path, options)
58
+ @set, @scope = set, scope
59
+ @options = (@scope[:options] || {}).merge(options)
60
+ @path = normalize_path(path)
61
+ normalize_options!
62
+ end
63
+
64
+ def to_route
65
+ [ app, conditions, requirements, defaults, @options[:as], @options[:anchor] ]
66
+ end
67
+
68
+ private
69
+
70
+ def normalize_options!
71
+ path_without_format = @path.sub(/\(\.:format\)$/, '')
72
+
73
+ if using_match_shorthand?(path_without_format, @options)
74
+ to_shorthand = @options[:to].blank?
75
+ @options[:to] ||= path_without_format.gsub(/\(.*\)/, "")[1..-1].sub(%r{/([^/]*)$}, '#\1')
76
+ end
77
+
78
+ @options.merge!(default_controller_and_action(to_shorthand))
79
+
80
+ requirements.each do |name, requirement|
81
+ # segment_keys.include?(k.to_s) || k == :controller
82
+ next unless Regexp === requirement && !constraints[name]
83
+
84
+ if requirement.source =~ ANCHOR_CHARACTERS_REGEX
85
+ raise ArgumentError, "Regexp anchor characters are not allowed in routing requirements: #{requirement.inspect}"
86
+ end
87
+ if requirement.multiline?
88
+ raise ArgumentError, "Regexp multiline option not allowed in routing requirements: #{requirement.inspect}"
89
+ end
90
+ end
91
+ end
92
+
93
+ # match "account/overview"
94
+ def using_match_shorthand?(path, options)
95
+ path && (options[:to] || options[:action]).nil? && path =~ SHORTHAND_REGEX
96
+ end
97
+
98
+ def normalize_path(path)
99
+ raise ArgumentError, "path is required" if path.blank?
100
+ path = Mapper.normalize_path(path)
101
+
102
+ if path.match(':controller')
103
+ raise ArgumentError, ":controller segment is not allowed within a namespace block" if @scope[:module]
104
+
105
+ # Add a default constraint for :controller path segments that matches namespaced
106
+ # controllers with default routes like :controller/:action/:id(.:format), e.g:
107
+ # GET /admin/products/show/1
108
+ # => { :controller => 'admin/products', :action => 'show', :id => '1' }
109
+ @options[:controller] ||= /.+?/
110
+ end
111
+
112
+ # Add a constraint for wildcard route to make it non-greedy and match the
113
+ # optional format part of the route by default
114
+ if path.match(WILDCARD_PATH) && @options[:format] != false
115
+ @options[$1.to_sym] ||= /.+?/
116
+ end
117
+
118
+ if @options[:format] == false
119
+ @options.delete(:format)
120
+ path
121
+ elsif path.include?(":format") || path.end_with?('/')
122
+ path
123
+ elsif @options[:format] == true
124
+ "#{path}.:format"
125
+ else
126
+ "#{path}(.:format)"
127
+ end
128
+ end
129
+
130
+ def app
131
+ Constraints.new(
132
+ to.respond_to?(:call) ? to : Routing::RouteSet::Dispatcher.new(:defaults => defaults),
133
+ blocks,
134
+ @set.request_class
135
+ )
136
+ end
137
+
138
+ def conditions
139
+ { :path_info => @path }.merge(constraints).merge(request_method_condition)
140
+ end
141
+
142
+ def requirements
143
+ @requirements ||= (@options[:constraints].is_a?(Hash) ? @options[:constraints] : {}).tap do |requirements|
144
+ requirements.reverse_merge!(@scope[:constraints]) if @scope[:constraints]
145
+ @options.each { |k, v| requirements[k] = v if v.is_a?(Regexp) }
146
+ end
147
+ end
148
+
149
+ def defaults
150
+ @defaults ||= (@options[:defaults] || {}).tap do |defaults|
151
+ defaults.reverse_merge!(@scope[:defaults]) if @scope[:defaults]
152
+ @options.each { |k, v| defaults[k] = v unless v.is_a?(Regexp) || IGNORE_OPTIONS.include?(k.to_sym) }
153
+ end
154
+ end
155
+
156
+ def default_controller_and_action(to_shorthand=nil)
157
+ if to.respond_to?(:call)
158
+ { }
159
+ else
160
+ if to.is_a?(String)
161
+ controller, action = to.split('#')
162
+ elsif to.is_a?(Symbol)
163
+ action = to.to_s
164
+ end
165
+
166
+ controller ||= default_controller
167
+ action ||= default_action
168
+
169
+ unless controller.is_a?(Regexp) || to_shorthand
170
+ controller = [@scope[:module], controller].compact.join("/").presence
171
+ end
172
+
173
+ if controller.is_a?(String) && controller =~ %r{\A/}
174
+ raise ArgumentError, "controller name should not start with a slash"
175
+ end
176
+
177
+ controller = controller.to_s unless controller.is_a?(Regexp)
178
+ action = action.to_s unless action.is_a?(Regexp)
179
+
180
+ if controller.blank? && segment_keys.exclude?("controller")
181
+ raise ArgumentError, "missing :controller"
182
+ end
183
+
184
+ if action.blank? && segment_keys.exclude?("action")
185
+ raise ArgumentError, "missing :action"
186
+ end
187
+
188
+ hash = {}
189
+ hash[:controller] = controller unless controller.blank?
190
+ hash[:action] = action unless action.blank?
191
+ hash
192
+ end
193
+ end
194
+
195
+ def blocks
196
+ constraints = @options[:constraints]
197
+ if constraints.present? && !constraints.is_a?(Hash)
198
+ [constraints]
199
+ else
200
+ @scope[:blocks] || []
201
+ end
202
+ end
203
+
204
+ def constraints
205
+ @constraints ||= requirements.reject { |k, v| segment_keys.include?(k.to_s) || k == :controller }
206
+ end
207
+
208
+ def request_method_condition
209
+ if via = @options[:via]
210
+ list = Array(via).map { |m| m.to_s.dasherize.upcase }
211
+ { :request_method => list }
212
+ else
213
+ { }
214
+ end
215
+ end
216
+
217
+ def segment_keys
218
+ @segment_keys ||= Journey::Path::Pattern.new(
219
+ Journey::Router::Strexp.compile(@path, requirements, SEPARATORS)
220
+ ).names
221
+ end
222
+
223
+ def to
224
+ @options[:to]
225
+ end
226
+
227
+ def default_controller
228
+ @options[:controller] || @scope[:controller]
229
+ end
230
+
231
+ def default_action
232
+ @options[:action] || @scope[:action]
233
+ end
234
+ end
235
+
236
+ # Invokes Rack::Mount::Utils.normalize path and ensure that
237
+ # (:locale) becomes (/:locale) instead of /(:locale). Except
238
+ # for root cases, where the latter is the correct one.
239
+ def self.normalize_path(path)
240
+ path = Journey::Router::Utils.normalize_path(path)
241
+ path.gsub!(%r{/(\(+)/?}, '\1/') unless path =~ %r{^/\(+[^/]+\)$}
242
+ path
243
+ end
244
+
245
+ def self.normalize_name(name)
246
+ normalize_path(name)[1..-1].gsub("/", "_")
247
+ end
248
+
249
+ module Base
250
+ # You can specify what Rails should route "/" to with the root method:
251
+ #
252
+ # root :to => 'pages#main'
253
+ #
254
+ # For options, see +match+, as +root+ uses it internally.
255
+ #
256
+ # You should put the root route at the top of <tt>config/routes.rb</tt>,
257
+ # because this means it will be matched first. As this is the most popular route
258
+ # of most Rails applications, this is beneficial.
259
+ def root(options = {})
260
+ match '/', { :as => :root }.merge(options)
261
+ end
262
+
263
+ # Matches a url pattern to one or more routes. Any symbols in a pattern
264
+ # are interpreted as url query parameters and thus available as +params+
265
+ # in an action:
266
+ #
267
+ # # sets :controller, :action and :id in params
268
+ # match ':controller/:action/:id'
269
+ #
270
+ # Two of these symbols are special, +:controller+ maps to the controller
271
+ # and +:action+ to the controller's action. A pattern can also map
272
+ # wildcard segments (globs) to params:
273
+ #
274
+ # match 'songs/*category/:title' => 'songs#show'
275
+ #
276
+ # # 'songs/rock/classic/stairway-to-heaven' sets
277
+ # # params[:category] = 'rock/classic'
278
+ # # params[:title] = 'stairway-to-heaven'
279
+ #
280
+ # When a pattern points to an internal route, the route's +:action+ and
281
+ # +:controller+ should be set in options or hash shorthand. Examples:
282
+ #
283
+ # match 'photos/:id' => 'photos#show'
284
+ # match 'photos/:id', :to => 'photos#show'
285
+ # match 'photos/:id', :controller => 'photos', :action => 'show'
286
+ #
287
+ # A pattern can also point to a +Rack+ endpoint i.e. anything that
288
+ # responds to +call+:
289
+ #
290
+ # match 'photos/:id' => lambda {|hash| [200, {}, "Coming soon"] }
291
+ # match 'photos/:id' => PhotoRackApp
292
+ # # Yes, controller actions are just rack endpoints
293
+ # match 'photos/:id' => PhotosController.action(:show)
294
+ #
295
+ # === Options
296
+ #
297
+ # Any options not seen here are passed on as params with the url.
298
+ #
299
+ # [:controller]
300
+ # The route's controller.
301
+ #
302
+ # [:action]
303
+ # The route's action.
304
+ #
305
+ # [:path]
306
+ # The path prefix for the routes.
307
+ #
308
+ # [:module]
309
+ # The namespace for :controller.
310
+ #
311
+ # match 'path' => 'c#a', :module => 'sekret', :controller => 'posts'
312
+ # #=> Sekret::PostsController
313
+ #
314
+ # See <tt>Scoping#namespace</tt> for its scope equivalent.
315
+ #
316
+ # [:as]
317
+ # The name used to generate routing helpers.
318
+ #
319
+ # [:via]
320
+ # Allowed HTTP verb(s) for route.
321
+ #
322
+ # match 'path' => 'c#a', :via => :get
323
+ # match 'path' => 'c#a', :via => [:get, :post]
324
+ #
325
+ # [:to]
326
+ # Points to a +Rack+ endpoint. Can be an object that responds to
327
+ # +call+ or a string representing a controller's action.
328
+ #
329
+ # match 'path', :to => 'controller#action'
330
+ # match 'path', :to => lambda { |env| [200, {}, "Success!"] }
331
+ # match 'path', :to => RackApp
332
+ #
333
+ # [:on]
334
+ # Shorthand for wrapping routes in a specific RESTful context. Valid
335
+ # values are +:member+, +:collection+, and +:new+. Only use within
336
+ # <tt>resource(s)</tt> block. For example:
337
+ #
338
+ # resource :bar do
339
+ # match 'foo' => 'c#a', :on => :member, :via => [:get, :post]
340
+ # end
341
+ #
342
+ # Is equivalent to:
343
+ #
344
+ # resource :bar do
345
+ # member do
346
+ # match 'foo' => 'c#a', :via => [:get, :post]
347
+ # end
348
+ # end
349
+ #
350
+ # [:constraints]
351
+ # Constrains parameters with a hash of regular expressions or an
352
+ # object that responds to <tt>matches?</tt>
353
+ #
354
+ # match 'path/:id', :constraints => { :id => /[A-Z]\d{5}/ }
355
+ #
356
+ # class Blacklist
357
+ # def matches?(request) request.remote_ip == '1.2.3.4' end
358
+ # end
359
+ # match 'path' => 'c#a', :constraints => Blacklist.new
360
+ #
361
+ # See <tt>Scoping#constraints</tt> for more examples with its scope
362
+ # equivalent.
363
+ #
364
+ # [:defaults]
365
+ # Sets defaults for parameters
366
+ #
367
+ # # Sets params[:format] to 'jpg' by default
368
+ # match 'path' => 'c#a', :defaults => { :format => 'jpg' }
369
+ #
370
+ # See <tt>Scoping#defaults</tt> for its scope equivalent.
371
+ #
372
+ # [:anchor]
373
+ # Boolean to anchor a <tt>match</tt> pattern. Default is true. When set to
374
+ # false, the pattern matches any request prefixed with the given path.
375
+ #
376
+ # # Matches any request starting with 'path'
377
+ # match 'path' => 'c#a', :anchor => false
378
+ def match(path, options=nil)
379
+ end
380
+
381
+ # Mount a Rack-based application to be used within the application.
382
+ #
383
+ # mount SomeRackApp, :at => "some_route"
384
+ #
385
+ # Alternatively:
386
+ #
387
+ # mount(SomeRackApp => "some_route")
388
+ #
389
+ # For options, see +match+, as +mount+ uses it internally.
390
+ #
391
+ # All mounted applications come with routing helpers to access them.
392
+ # These are named after the class specified, so for the above example
393
+ # the helper is either +some_rack_app_path+ or +some_rack_app_url+.
394
+ # To customize this helper's name, use the +:as+ option:
395
+ #
396
+ # mount(SomeRackApp => "some_route", :as => "exciting")
397
+ #
398
+ # This will generate the +exciting_path+ and +exciting_url+ helpers
399
+ # which can be used to navigate to this mounted app.
400
+ def mount(app, options = nil)
401
+ if options
402
+ path = options.delete(:at)
403
+ else
404
+ options = app
405
+ app, path = options.find { |k, v| k.respond_to?(:call) }
406
+ options.delete(app) if app
407
+ end
408
+
409
+ raise "A rack application must be specified" unless path
410
+
411
+ options[:as] ||= app_name(app)
412
+
413
+ match(path, options.merge(:to => app, :anchor => false, :format => false))
414
+
415
+ define_generate_prefix(app, options[:as])
416
+ self
417
+ end
418
+
419
+ def default_url_options=(options)
420
+ @set.default_url_options = options
421
+ end
422
+ alias_method :default_url_options, :default_url_options=
423
+
424
+ def with_default_scope(scope, &block)
425
+ scope(scope) do
426
+ instance_exec(&block)
427
+ end
428
+ end
429
+
430
+ private
431
+ def app_name(app)
432
+ return unless app.respond_to?(:routes)
433
+
434
+ if app.respond_to?(:railtie_name)
435
+ app.railtie_name
436
+ else
437
+ class_name = app.class.is_a?(Class) ? app.name : app.class.name
438
+ ActiveSupport::Inflector.underscore(class_name).gsub("/", "_")
439
+ end
440
+ end
441
+
442
+ def define_generate_prefix(app, name)
443
+ return unless app.respond_to?(:routes) && app.routes.respond_to?(:define_mounted_helper)
444
+
445
+ _route = @set.named_routes.routes[name.to_sym]
446
+ _routes = @set
447
+ app.routes.define_mounted_helper(name)
448
+ app.routes.class_eval do
449
+ define_method :_generate_prefix do |options|
450
+ prefix_options = options.slice(*_route.segment_keys)
451
+ # we must actually delete prefix segment keys to avoid passing them to next url_for
452
+ _route.segment_keys.each { |k| options.delete(k) }
453
+ prefix = _routes.url_helpers.send("#{name}_path", prefix_options)
454
+ prefix = '' if prefix == '/'
455
+ prefix
456
+ end
457
+ end
458
+ end
459
+ end
460
+
461
+ module HttpHelpers
462
+ # Define a route that only recognizes HTTP GET.
463
+ # For supported arguments, see <tt>Base#match</tt>.
464
+ #
465
+ # Example:
466
+ #
467
+ # get 'bacon', :to => 'food#bacon'
468
+ def get(*args, &block)
469
+ map_method(:get, *args, &block)
470
+ end
471
+
472
+ # Define a route that only recognizes HTTP POST.
473
+ # For supported arguments, see <tt>Base#match</tt>.
474
+ #
475
+ # Example:
476
+ #
477
+ # post 'bacon', :to => 'food#bacon'
478
+ def post(*args, &block)
479
+ map_method(:post, *args, &block)
480
+ end
481
+
482
+ # Define a route that only recognizes HTTP PUT.
483
+ # For supported arguments, see <tt>Base#match</tt>.
484
+ #
485
+ # Example:
486
+ #
487
+ # put 'bacon', :to => 'food#bacon'
488
+ def put(*args, &block)
489
+ map_method(:put, *args, &block)
490
+ end
491
+
492
+ # Define a route that only recognizes HTTP PUT.
493
+ # For supported arguments, see <tt>Base#match</tt>.
494
+ #
495
+ # Example:
496
+ #
497
+ # delete 'broccoli', :to => 'food#broccoli'
498
+ def delete(*args, &block)
499
+ map_method(:delete, *args, &block)
500
+ end
501
+
502
+ private
503
+ def map_method(method, *args, &block)
504
+ options = args.extract_options!
505
+ options[:via] = method
506
+ args.push(options)
507
+ match(*args, &block)
508
+ self
509
+ end
510
+ end
511
+
512
+ # You may wish to organize groups of controllers under a namespace.
513
+ # Most commonly, you might group a number of administrative controllers
514
+ # under an +admin+ namespace. You would place these controllers under
515
+ # the <tt>app/controllers/admin</tt> directory, and you can group them
516
+ # together in your router:
517
+ #
518
+ # namespace "admin" do
519
+ # resources :posts, :comments
520
+ # end
521
+ #
522
+ # This will create a number of routes for each of the posts and comments
523
+ # controller. For <tt>Admin::PostsController</tt>, Rails will create:
524
+ #
525
+ # GET /admin/posts
526
+ # GET /admin/posts/new
527
+ # POST /admin/posts
528
+ # GET /admin/posts/1
529
+ # GET /admin/posts/1/edit
530
+ # PUT /admin/posts/1
531
+ # DELETE /admin/posts/1
532
+ #
533
+ # If you want to route /posts (without the prefix /admin) to
534
+ # <tt>Admin::PostsController</tt>, you could use
535
+ #
536
+ # scope :module => "admin" do
537
+ # resources :posts
538
+ # end
539
+ #
540
+ # or, for a single case
541
+ #
542
+ # resources :posts, :module => "admin"
543
+ #
544
+ # If you want to route /admin/posts to +PostsController+
545
+ # (without the Admin:: module prefix), you could use
546
+ #
547
+ # scope "/admin" do
548
+ # resources :posts
549
+ # end
550
+ #
551
+ # or, for a single case
552
+ #
553
+ # resources :posts, :path => "/admin/posts"
554
+ #
555
+ # In each of these cases, the named routes remain the same as if you did
556
+ # not use scope. In the last case, the following paths map to
557
+ # +PostsController+:
558
+ #
559
+ # GET /admin/posts
560
+ # GET /admin/posts/new
561
+ # POST /admin/posts
562
+ # GET /admin/posts/1
563
+ # GET /admin/posts/1/edit
564
+ # PUT /admin/posts/1
565
+ # DELETE /admin/posts/1
566
+ module Scoping
567
+ # Scopes a set of routes to the given default options.
568
+ #
569
+ # Take the following route definition as an example:
570
+ #
571
+ # scope :path => ":account_id", :as => "account" do
572
+ # resources :projects
573
+ # end
574
+ #
575
+ # This generates helpers such as +account_projects_path+, just like +resources+ does.
576
+ # The difference here being that the routes generated are like /:account_id/projects,
577
+ # rather than /accounts/:account_id/projects.
578
+ #
579
+ # === Options
580
+ #
581
+ # Takes same options as <tt>Base#match</tt> and <tt>Resources#resources</tt>.
582
+ #
583
+ # === Examples
584
+ #
585
+ # # route /posts (without the prefix /admin) to <tt>Admin::PostsController</tt>
586
+ # scope :module => "admin" do
587
+ # resources :posts
588
+ # end
589
+ #
590
+ # # prefix the posts resource's requests with '/admin'
591
+ # scope :path => "/admin" do
592
+ # resources :posts
593
+ # end
594
+ #
595
+ # # prefix the routing helper name: +sekret_posts_path+ instead of +posts_path+
596
+ # scope :as => "sekret" do
597
+ # resources :posts
598
+ # end
599
+ def scope(*args)
600
+ options = args.extract_options!
601
+ options = options.dup
602
+
603
+ options[:path] = args.first if args.first.is_a?(String)
604
+ recover = {}
605
+
606
+ options[:constraints] ||= {}
607
+ unless options[:constraints].is_a?(Hash)
608
+ block, options[:constraints] = options[:constraints], {}
609
+ end
610
+
611
+ scope_options.each do |option|
612
+ if value = options.delete(option)
613
+ recover[option] = @scope[option]
614
+ @scope[option] = send("merge_#{option}_scope", @scope[option], value)
615
+ end
616
+ end
617
+
618
+ recover[:block] = @scope[:blocks]
619
+ @scope[:blocks] = merge_blocks_scope(@scope[:blocks], block)
620
+
621
+ recover[:options] = @scope[:options]
622
+ @scope[:options] = merge_options_scope(@scope[:options], options)
623
+
624
+ yield
625
+ self
626
+ ensure
627
+ scope_options.each do |option|
628
+ @scope[option] = recover[option] if recover.has_key?(option)
629
+ end
630
+
631
+ @scope[:options] = recover[:options]
632
+ @scope[:blocks] = recover[:block]
633
+ end
634
+
635
+ # Scopes routes to a specific controller
636
+ #
637
+ # Example:
638
+ # controller "food" do
639
+ # match "bacon", :action => "bacon"
640
+ # end
641
+ def controller(controller, options={})
642
+ options[:controller] = controller
643
+ scope(options) { yield }
644
+ end
645
+
646
+ # Scopes routes to a specific namespace. For example:
647
+ #
648
+ # namespace :admin do
649
+ # resources :posts
650
+ # end
651
+ #
652
+ # This generates the following routes:
653
+ #
654
+ # admin_posts GET /admin/posts(.:format) admin/posts#index
655
+ # admin_posts POST /admin/posts(.:format) admin/posts#create
656
+ # new_admin_post GET /admin/posts/new(.:format) admin/posts#new
657
+ # edit_admin_post GET /admin/posts/:id/edit(.:format) admin/posts#edit
658
+ # admin_post GET /admin/posts/:id(.:format) admin/posts#show
659
+ # admin_post PUT /admin/posts/:id(.:format) admin/posts#update
660
+ # admin_post DELETE /admin/posts/:id(.:format) admin/posts#destroy
661
+ #
662
+ # === Options
663
+ #
664
+ # The +:path+, +:as+, +:module+, +:shallow_path+ and +:shallow_prefix+
665
+ # options all default to the name of the namespace.
666
+ #
667
+ # For options, see <tt>Base#match</tt>. For +:shallow_path+ option, see
668
+ # <tt>Resources#resources</tt>.
669
+ #
670
+ # === Examples
671
+ #
672
+ # # accessible through /sekret/posts rather than /admin/posts
673
+ # namespace :admin, :path => "sekret" do
674
+ # resources :posts
675
+ # end
676
+ #
677
+ # # maps to <tt>Sekret::PostsController</tt> rather than <tt>Admin::PostsController</tt>
678
+ # namespace :admin, :module => "sekret" do
679
+ # resources :posts
680
+ # end
681
+ #
682
+ # # generates +sekret_posts_path+ rather than +admin_posts_path+
683
+ # namespace :admin, :as => "sekret" do
684
+ # resources :posts
685
+ # end
686
+ def namespace(path, options = {})
687
+ path = path.to_s
688
+ options = { :path => path, :as => path, :module => path,
689
+ :shallow_path => path, :shallow_prefix => path }.merge!(options)
690
+ scope(options) { yield }
691
+ end
692
+
693
+ # === Parameter Restriction
694
+ # Allows you to constrain the nested routes based on a set of rules.
695
+ # For instance, in order to change the routes to allow for a dot character in the +id+ parameter:
696
+ #
697
+ # constraints(:id => /\d+\.\d+/) do
698
+ # resources :posts
699
+ # end
700
+ #
701
+ # Now routes such as +/posts/1+ will no longer be valid, but +/posts/1.1+ will be.
702
+ # The +id+ parameter must match the constraint passed in for this example.
703
+ #
704
+ # You may use this to also restrict other parameters:
705
+ #
706
+ # resources :posts do
707
+ # constraints(:post_id => /\d+\.\d+/) do
708
+ # resources :comments
709
+ # end
710
+ # end
711
+ #
712
+ # === Restricting based on IP
713
+ #
714
+ # Routes can also be constrained to an IP or a certain range of IP addresses:
715
+ #
716
+ # constraints(:ip => /192.168.\d+.\d+/) do
717
+ # resources :posts
718
+ # end
719
+ #
720
+ # Any user connecting from the 192.168.* range will be able to see this resource,
721
+ # where as any user connecting outside of this range will be told there is no such route.
722
+ #
723
+ # === Dynamic request matching
724
+ #
725
+ # Requests to routes can be constrained based on specific criteria:
726
+ #
727
+ # constraints(lambda { |req| req.env["HTTP_USER_AGENT"] =~ /iPhone/ }) do
728
+ # resources :iphones
729
+ # end
730
+ #
731
+ # You are able to move this logic out into a class if it is too complex for routes.
732
+ # This class must have a +matches?+ method defined on it which either returns +true+
733
+ # if the user should be given access to that route, or +false+ if the user should not.
734
+ #
735
+ # class Iphone
736
+ # def self.matches?(request)
737
+ # request.env["HTTP_USER_AGENT"] =~ /iPhone/
738
+ # end
739
+ # end
740
+ #
741
+ # An expected place for this code would be +lib/constraints+.
742
+ #
743
+ # This class is then used like this:
744
+ #
745
+ # constraints(Iphone) do
746
+ # resources :iphones
747
+ # end
748
+ def constraints(constraints = {})
749
+ scope(:constraints => constraints) { yield }
750
+ end
751
+
752
+ # Allows you to set default parameters for a route, such as this:
753
+ # defaults :id => 'home' do
754
+ # match 'scoped_pages/(:id)', :to => 'pages#show'
755
+ # end
756
+ # Using this, the +:id+ parameter here will default to 'home'.
757
+ def defaults(defaults = {})
758
+ scope(:defaults => defaults) { yield }
759
+ end
760
+
761
+ private
762
+ def scope_options #:nodoc:
763
+ @scope_options ||= private_methods.grep(/^merge_(.+)_scope$/) { $1.to_sym }
764
+ end
765
+
766
+ def merge_path_scope(parent, child) #:nodoc:
767
+ Mapper.normalize_path("#{parent}/#{child}")
768
+ end
769
+
770
+ def merge_shallow_path_scope(parent, child) #:nodoc:
771
+ Mapper.normalize_path("#{parent}/#{child}")
772
+ end
773
+
774
+ def merge_as_scope(parent, child) #:nodoc:
775
+ parent ? "#{parent}_#{child}" : child
776
+ end
777
+
778
+ def merge_shallow_prefix_scope(parent, child) #:nodoc:
779
+ parent ? "#{parent}_#{child}" : child
780
+ end
781
+
782
+ def merge_module_scope(parent, child) #:nodoc:
783
+ parent ? "#{parent}/#{child}" : child
784
+ end
785
+
786
+ def merge_controller_scope(parent, child) #:nodoc:
787
+ child
788
+ end
789
+
790
+ def merge_path_names_scope(parent, child) #:nodoc:
791
+ merge_options_scope(parent, child)
792
+ end
793
+
794
+ def merge_constraints_scope(parent, child) #:nodoc:
795
+ merge_options_scope(parent, child)
796
+ end
797
+
798
+ def merge_defaults_scope(parent, child) #:nodoc:
799
+ merge_options_scope(parent, child)
800
+ end
801
+
802
+ def merge_blocks_scope(parent, child) #:nodoc:
803
+ merged = parent ? parent.dup : []
804
+ merged << child if child
805
+ merged
806
+ end
807
+
808
+ def merge_options_scope(parent, child) #:nodoc:
809
+ (parent || {}).except(*override_keys(child)).merge(child)
810
+ end
811
+
812
+ def merge_shallow_scope(parent, child) #:nodoc:
813
+ child ? true : false
814
+ end
815
+
816
+ def override_keys(child) #:nodoc:
817
+ child.key?(:only) || child.key?(:except) ? [:only, :except] : []
818
+ end
819
+ end
820
+
821
+ # Resource routing allows you to quickly declare all of the common routes
822
+ # for a given resourceful controller. Instead of declaring separate routes
823
+ # for your +index+, +show+, +new+, +edit+, +create+, +update+ and +destroy+
824
+ # actions, a resourceful route declares them in a single line of code:
825
+ #
826
+ # resources :photos
827
+ #
828
+ # Sometimes, you have a resource that clients always look up without
829
+ # referencing an ID. A common example, /profile always shows the profile of
830
+ # the currently logged in user. In this case, you can use a singular resource
831
+ # to map /profile (rather than /profile/:id) to the show action.
832
+ #
833
+ # resource :profile
834
+ #
835
+ # It's common to have resources that are logically children of other
836
+ # resources:
837
+ #
838
+ # resources :magazines do
839
+ # resources :ads
840
+ # end
841
+ #
842
+ # You may wish to organize groups of controllers under a namespace. Most
843
+ # commonly, you might group a number of administrative controllers under
844
+ # an +admin+ namespace. You would place these controllers under the
845
+ # <tt>app/controllers/admin</tt> directory, and you can group them together
846
+ # in your router:
847
+ #
848
+ # namespace "admin" do
849
+ # resources :posts, :comments
850
+ # end
851
+ #
852
+ # By default the +:id+ parameter doesn't accept dots. If you need to
853
+ # use dots as part of the +:id+ parameter add a constraint which
854
+ # overrides this restriction, e.g:
855
+ #
856
+ # resources :articles, :id => /[^\/]+/
857
+ #
858
+ # This allows any character other than a slash as part of your +:id+.
859
+ #
860
+ module Resources
861
+ # CANONICAL_ACTIONS holds all actions that does not need a prefix or
862
+ # a path appended since they fit properly in their scope level.
863
+ VALID_ON_OPTIONS = [:new, :collection, :member]
864
+ RESOURCE_OPTIONS = [:as, :controller, :path, :only, :except]
865
+ CANONICAL_ACTIONS = %w(index create new show update destroy)
866
+
867
+ class Resource #:nodoc:
868
+ attr_reader :controller, :path, :options
869
+
870
+ def initialize(entities, options = {})
871
+ @name = entities.to_s
872
+ @path = (options[:path] || @name).to_s
873
+ @controller = (options[:controller] || @name).to_s
874
+ @as = options[:as]
875
+ @options = options
876
+ end
877
+
878
+ def default_actions
879
+ [:index, :create, :new, :show, :update, :destroy, :edit]
880
+ end
881
+
882
+ def actions
883
+ if only = @options[:only]
884
+ Array(only).map(&:to_sym)
885
+ elsif except = @options[:except]
886
+ default_actions - Array(except).map(&:to_sym)
887
+ else
888
+ default_actions
889
+ end
890
+ end
891
+
892
+ def name
893
+ @as || @name
894
+ end
895
+
896
+ def plural
897
+ @plural ||= name.to_s
898
+ end
899
+
900
+ def singular
901
+ @singular ||= name.to_s.singularize
902
+ end
903
+
904
+ alias :member_name :singular
905
+
906
+ # Checks for uncountable plurals, and appends "_index" if the plural
907
+ # and singular form are the same.
908
+ def collection_name
909
+ singular == plural ? "#{plural}_index" : plural
910
+ end
911
+
912
+ def resource_scope
913
+ { :controller => controller }
914
+ end
915
+
916
+ alias :collection_scope :path
917
+
918
+ def member_scope
919
+ "#{path}/:id"
920
+ end
921
+
922
+ def new_scope(new_path)
923
+ "#{path}/#{new_path}"
924
+ end
925
+
926
+ def nested_scope
927
+ "#{path}/:#{singular}_id"
928
+ end
929
+
930
+ end
931
+
932
+ class SingletonResource < Resource #:nodoc:
933
+ def initialize(entities, options)
934
+ super
935
+ @as = nil
936
+ @controller = (options[:controller] || plural).to_s
937
+ @as = options[:as]
938
+ end
939
+
940
+ def default_actions
941
+ [:show, :create, :update, :destroy, :new, :edit]
942
+ end
943
+
944
+ def plural
945
+ @plural ||= name.to_s.pluralize
946
+ end
947
+
948
+ def singular
949
+ @singular ||= name.to_s
950
+ end
951
+
952
+ alias :member_name :singular
953
+ alias :collection_name :singular
954
+
955
+ alias :member_scope :path
956
+ alias :nested_scope :path
957
+ end
958
+
959
+ def resources_path_names(options)
960
+ @scope[:path_names].merge!(options)
961
+ end
962
+
963
+ # Sometimes, you have a resource that clients always look up without
964
+ # referencing an ID. A common example, /profile always shows the
965
+ # profile of the currently logged in user. In this case, you can use
966
+ # a singular resource to map /profile (rather than /profile/:id) to
967
+ # the show action:
968
+ #
969
+ # resource :geocoder
970
+ #
971
+ # creates six different routes in your application, all mapping to
972
+ # the +GeoCoders+ controller (note that the controller is named after
973
+ # the plural):
974
+ #
975
+ # GET /geocoder/new
976
+ # POST /geocoder
977
+ # GET /geocoder
978
+ # GET /geocoder/edit
979
+ # PUT /geocoder
980
+ # DELETE /geocoder
981
+ #
982
+ # === Options
983
+ # Takes same options as +resources+.
984
+ def resource(*resources, &block)
985
+ options = resources.extract_options!
986
+
987
+ if apply_common_behavior_for(:resource, resources, options, &block)
988
+ return self
989
+ end
990
+
991
+ resource_scope(:resource, SingletonResource.new(resources.pop, options)) do
992
+ yield if block_given?
993
+
994
+ collection do
995
+ post :create
996
+ end if parent_resource.actions.include?(:create)
997
+
998
+ new do
999
+ get :new
1000
+ end if parent_resource.actions.include?(:new)
1001
+
1002
+ member do
1003
+ get :edit if parent_resource.actions.include?(:edit)
1004
+ get :show if parent_resource.actions.include?(:show)
1005
+ put :update if parent_resource.actions.include?(:update)
1006
+ delete :destroy if parent_resource.actions.include?(:destroy)
1007
+ end
1008
+ end
1009
+
1010
+ self
1011
+ end
1012
+
1013
+ # In Rails, a resourceful route provides a mapping between HTTP verbs
1014
+ # and URLs and controller actions. By convention, each action also maps
1015
+ # to particular CRUD operations in a database. A single entry in the
1016
+ # routing file, such as
1017
+ #
1018
+ # resources :photos
1019
+ #
1020
+ # creates seven different routes in your application, all mapping to
1021
+ # the +Photos+ controller:
1022
+ #
1023
+ # GET /photos
1024
+ # GET /photos/new
1025
+ # POST /photos
1026
+ # GET /photos/:id
1027
+ # GET /photos/:id/edit
1028
+ # PUT /photos/:id
1029
+ # DELETE /photos/:id
1030
+ #
1031
+ # Resources can also be nested infinitely by using this block syntax:
1032
+ #
1033
+ # resources :photos do
1034
+ # resources :comments
1035
+ # end
1036
+ #
1037
+ # This generates the following comments routes:
1038
+ #
1039
+ # GET /photos/:photo_id/comments
1040
+ # GET /photos/:photo_id/comments/new
1041
+ # POST /photos/:photo_id/comments
1042
+ # GET /photos/:photo_id/comments/:id
1043
+ # GET /photos/:photo_id/comments/:id/edit
1044
+ # PUT /photos/:photo_id/comments/:id
1045
+ # DELETE /photos/:photo_id/comments/:id
1046
+ #
1047
+ # === Options
1048
+ # Takes same options as <tt>Base#match</tt> as well as:
1049
+ #
1050
+ # [:path_names]
1051
+ # Allows you to change the segment component of the +edit+ and +new+ actions.
1052
+ # Actions not specified are not changed.
1053
+ #
1054
+ # resources :posts, :path_names => { :new => "brand_new" }
1055
+ #
1056
+ # The above example will now change /posts/new to /posts/brand_new
1057
+ #
1058
+ # [:path]
1059
+ # Allows you to change the path prefix for the resource.
1060
+ #
1061
+ # resources :posts, :path => 'postings'
1062
+ #
1063
+ # The resource and all segments will now route to /postings instead of /posts
1064
+ #
1065
+ # [:only]
1066
+ # Only generate routes for the given actions.
1067
+ #
1068
+ # resources :cows, :only => :show
1069
+ # resources :cows, :only => [:show, :index]
1070
+ #
1071
+ # [:except]
1072
+ # Generate all routes except for the given actions.
1073
+ #
1074
+ # resources :cows, :except => :show
1075
+ # resources :cows, :except => [:show, :index]
1076
+ #
1077
+ # [:shallow]
1078
+ # Generates shallow routes for nested resource(s). When placed on a parent resource,
1079
+ # generates shallow routes for all nested resources.
1080
+ #
1081
+ # resources :posts, :shallow => true do
1082
+ # resources :comments
1083
+ # end
1084
+ #
1085
+ # Is the same as:
1086
+ #
1087
+ # resources :posts do
1088
+ # resources :comments, :except => [:show, :edit, :update, :destroy]
1089
+ # end
1090
+ # resources :comments, :only => [:show, :edit, :update, :destroy]
1091
+ #
1092
+ # This allows URLs for resources that otherwise would be deeply nested such
1093
+ # as a comment on a blog post like <tt>/posts/a-long-permalink/comments/1234</tt>
1094
+ # to be shortened to just <tt>/comments/1234</tt>.
1095
+ #
1096
+ # [:shallow_path]
1097
+ # Prefixes nested shallow routes with the specified path.
1098
+ #
1099
+ # scope :shallow_path => "sekret" do
1100
+ # resources :posts do
1101
+ # resources :comments, :shallow => true
1102
+ # end
1103
+ # end
1104
+ #
1105
+ # The +comments+ resource here will have the following routes generated for it:
1106
+ #
1107
+ # post_comments GET /posts/:post_id/comments(.:format)
1108
+ # post_comments POST /posts/:post_id/comments(.:format)
1109
+ # new_post_comment GET /posts/:post_id/comments/new(.:format)
1110
+ # edit_comment GET /sekret/comments/:id/edit(.:format)
1111
+ # comment GET /sekret/comments/:id(.:format)
1112
+ # comment PUT /sekret/comments/:id(.:format)
1113
+ # comment DELETE /sekret/comments/:id(.:format)
1114
+ #
1115
+ # === Examples
1116
+ #
1117
+ # # routes call <tt>Admin::PostsController</tt>
1118
+ # resources :posts, :module => "admin"
1119
+ #
1120
+ # # resource actions are at /admin/posts.
1121
+ # resources :posts, :path => "admin/posts"
1122
+ def resources(*resources, &block)
1123
+ options = resources.extract_options!
1124
+
1125
+ if apply_common_behavior_for(:resources, resources, options, &block)
1126
+ return self
1127
+ end
1128
+
1129
+ resource_scope(:resources, Resource.new(resources.pop, options)) do
1130
+ yield if block_given?
1131
+
1132
+ collection do
1133
+ get :index if parent_resource.actions.include?(:index)
1134
+ post :create if parent_resource.actions.include?(:create)
1135
+ end
1136
+
1137
+ new do
1138
+ get :new
1139
+ end if parent_resource.actions.include?(:new)
1140
+
1141
+ member do
1142
+ get :edit if parent_resource.actions.include?(:edit)
1143
+ get :show if parent_resource.actions.include?(:show)
1144
+ put :update if parent_resource.actions.include?(:update)
1145
+ delete :destroy if parent_resource.actions.include?(:destroy)
1146
+ end
1147
+ end
1148
+
1149
+ self
1150
+ end
1151
+
1152
+ # To add a route to the collection:
1153
+ #
1154
+ # resources :photos do
1155
+ # collection do
1156
+ # get 'search'
1157
+ # end
1158
+ # end
1159
+ #
1160
+ # This will enable Rails to recognize paths such as <tt>/photos/search</tt>
1161
+ # with GET, and route to the search action of +PhotosController+. It will also
1162
+ # create the <tt>search_photos_url</tt> and <tt>search_photos_path</tt>
1163
+ # route helpers.
1164
+ def collection
1165
+ unless resource_scope?
1166
+ raise ArgumentError, "can't use collection outside resource(s) scope"
1167
+ end
1168
+
1169
+ with_scope_level(:collection) do
1170
+ scope(parent_resource.collection_scope) do
1171
+ yield
1172
+ end
1173
+ end
1174
+ end
1175
+
1176
+ # To add a member route, add a member block into the resource block:
1177
+ #
1178
+ # resources :photos do
1179
+ # member do
1180
+ # get 'preview'
1181
+ # end
1182
+ # end
1183
+ #
1184
+ # This will recognize <tt>/photos/1/preview</tt> with GET, and route to the
1185
+ # preview action of +PhotosController+. It will also create the
1186
+ # <tt>preview_photo_url</tt> and <tt>preview_photo_path</tt> helpers.
1187
+ def member
1188
+ unless resource_scope?
1189
+ raise ArgumentError, "can't use member outside resource(s) scope"
1190
+ end
1191
+
1192
+ with_scope_level(:member) do
1193
+ scope(parent_resource.member_scope) do
1194
+ yield
1195
+ end
1196
+ end
1197
+ end
1198
+
1199
+ def new
1200
+ unless resource_scope?
1201
+ raise ArgumentError, "can't use new outside resource(s) scope"
1202
+ end
1203
+
1204
+ with_scope_level(:new) do
1205
+ scope(parent_resource.new_scope(action_path(:new))) do
1206
+ yield
1207
+ end
1208
+ end
1209
+ end
1210
+
1211
+ def nested
1212
+ unless resource_scope?
1213
+ raise ArgumentError, "can't use nested outside resource(s) scope"
1214
+ end
1215
+
1216
+ with_scope_level(:nested) do
1217
+ if shallow?
1218
+ with_exclusive_scope do
1219
+ if @scope[:shallow_path].blank?
1220
+ scope(parent_resource.nested_scope, nested_options) { yield }
1221
+ else
1222
+ scope(@scope[:shallow_path], :as => @scope[:shallow_prefix]) do
1223
+ scope(parent_resource.nested_scope, nested_options) { yield }
1224
+ end
1225
+ end
1226
+ end
1227
+ else
1228
+ scope(parent_resource.nested_scope, nested_options) { yield }
1229
+ end
1230
+ end
1231
+ end
1232
+
1233
+ # See ActionDispatch::Routing::Mapper::Scoping#namespace
1234
+ def namespace(path, options = {})
1235
+ if resource_scope?
1236
+ nested { super }
1237
+ else
1238
+ super
1239
+ end
1240
+ end
1241
+
1242
+ def shallow
1243
+ scope(:shallow => true, :shallow_path => @scope[:path]) do
1244
+ yield
1245
+ end
1246
+ end
1247
+
1248
+ def shallow?
1249
+ parent_resource.instance_of?(Resource) && @scope[:shallow]
1250
+ end
1251
+
1252
+ def match(path, *rest)
1253
+ if rest.empty? && Hash === path
1254
+ options = path
1255
+ path, to = options.find { |name, value| name.is_a?(String) }
1256
+ options[:to] = to
1257
+ options.delete(path)
1258
+ paths = [path]
1259
+ else
1260
+ options = rest.pop || {}
1261
+ paths = [path] + rest
1262
+ end
1263
+
1264
+ options[:anchor] = true unless options.key?(:anchor)
1265
+
1266
+ if options[:on] && !VALID_ON_OPTIONS.include?(options[:on])
1267
+ raise ArgumentError, "Unknown scope #{on.inspect} given to :on"
1268
+ end
1269
+
1270
+ paths.each { |_path| decomposed_match(_path, options.dup) }
1271
+ self
1272
+ end
1273
+
1274
+ def decomposed_match(path, options) # :nodoc:
1275
+ if on = options.delete(:on)
1276
+ send(on) { decomposed_match(path, options) }
1277
+ else
1278
+ case @scope[:scope_level]
1279
+ when :resources
1280
+ nested { decomposed_match(path, options) }
1281
+ when :resource
1282
+ member { decomposed_match(path, options) }
1283
+ else
1284
+ add_route(path, options)
1285
+ end
1286
+ end
1287
+ end
1288
+
1289
+ def add_route(action, options) # :nodoc:
1290
+ path = path_for_action(action, options.delete(:path))
1291
+
1292
+ if action.to_s =~ /^[\w\/]+$/
1293
+ options[:action] ||= action unless action.to_s.include?("/")
1294
+ else
1295
+ action = nil
1296
+ end
1297
+
1298
+ if !options.fetch(:as, true)
1299
+ options.delete(:as)
1300
+ else
1301
+ options[:as] = name_for_action(options[:as], action)
1302
+ end
1303
+
1304
+ mapping = Mapping.new(@set, @scope, path, options)
1305
+ app, conditions, requirements, defaults, as, anchor = mapping.to_route
1306
+ @set.add_route(app, conditions, requirements, defaults, as, anchor)
1307
+ end
1308
+
1309
+ def root(options={})
1310
+ if @scope[:scope_level] == :resources
1311
+ with_scope_level(:root) do
1312
+ scope(parent_resource.path) do
1313
+ super(options)
1314
+ end
1315
+ end
1316
+ else
1317
+ super(options)
1318
+ end
1319
+ end
1320
+
1321
+ protected
1322
+
1323
+ def parent_resource #:nodoc:
1324
+ @scope[:scope_level_resource]
1325
+ end
1326
+
1327
+ def apply_common_behavior_for(method, resources, options, &block) #:nodoc:
1328
+ if resources.length > 1
1329
+ resources.each { |r| send(method, r, options, &block) }
1330
+ return true
1331
+ end
1332
+
1333
+ if resource_scope?
1334
+ nested { send(method, resources.pop, options, &block) }
1335
+ return true
1336
+ end
1337
+
1338
+ options.keys.each do |k|
1339
+ (options[:constraints] ||= {})[k] = options.delete(k) if options[k].is_a?(Regexp)
1340
+ end
1341
+
1342
+ scope_options = options.slice!(*RESOURCE_OPTIONS)
1343
+ unless scope_options.empty?
1344
+ scope(scope_options) do
1345
+ send(method, resources.pop, options, &block)
1346
+ end
1347
+ return true
1348
+ end
1349
+
1350
+ unless action_options?(options)
1351
+ options.merge!(scope_action_options) if scope_action_options?
1352
+ end
1353
+
1354
+ false
1355
+ end
1356
+
1357
+ def action_options?(options) #:nodoc:
1358
+ options[:only] || options[:except]
1359
+ end
1360
+
1361
+ def scope_action_options? #:nodoc:
1362
+ @scope[:options] && (@scope[:options][:only] || @scope[:options][:except])
1363
+ end
1364
+
1365
+ def scope_action_options #:nodoc:
1366
+ @scope[:options].slice(:only, :except)
1367
+ end
1368
+
1369
+ def resource_scope? #:nodoc:
1370
+ [:resource, :resources].include? @scope[:scope_level]
1371
+ end
1372
+
1373
+ def resource_method_scope? #:nodoc:
1374
+ [:collection, :member, :new].include? @scope[:scope_level]
1375
+ end
1376
+
1377
+ def with_exclusive_scope
1378
+ begin
1379
+ old_name_prefix, old_path = @scope[:as], @scope[:path]
1380
+ @scope[:as], @scope[:path] = nil, nil
1381
+
1382
+ with_scope_level(:exclusive) do
1383
+ yield
1384
+ end
1385
+ ensure
1386
+ @scope[:as], @scope[:path] = old_name_prefix, old_path
1387
+ end
1388
+ end
1389
+
1390
+ def with_scope_level(kind, resource = parent_resource)
1391
+ old, @scope[:scope_level] = @scope[:scope_level], kind
1392
+ old_resource, @scope[:scope_level_resource] = @scope[:scope_level_resource], resource
1393
+ yield
1394
+ ensure
1395
+ @scope[:scope_level] = old
1396
+ @scope[:scope_level_resource] = old_resource
1397
+ end
1398
+
1399
+ def resource_scope(kind, resource) #:nodoc:
1400
+ with_scope_level(kind, resource) do
1401
+ scope(parent_resource.resource_scope) do
1402
+ yield
1403
+ end
1404
+ end
1405
+ end
1406
+
1407
+ def nested_options #:nodoc:
1408
+ options = { :as => parent_resource.member_name }
1409
+ options[:constraints] = {
1410
+ :"#{parent_resource.singular}_id" => id_constraint
1411
+ } if id_constraint?
1412
+
1413
+ options
1414
+ end
1415
+
1416
+ def id_constraint? #:nodoc:
1417
+ @scope[:constraints] && @scope[:constraints][:id].is_a?(Regexp)
1418
+ end
1419
+
1420
+ def id_constraint #:nodoc:
1421
+ @scope[:constraints][:id]
1422
+ end
1423
+
1424
+ def canonical_action?(action, flag) #:nodoc:
1425
+ flag && resource_method_scope? && CANONICAL_ACTIONS.include?(action.to_s)
1426
+ end
1427
+
1428
+ def shallow_scoping? #:nodoc:
1429
+ shallow? && @scope[:scope_level] == :member
1430
+ end
1431
+
1432
+ def path_for_action(action, path) #:nodoc:
1433
+ prefix = shallow_scoping? ?
1434
+ "#{@scope[:shallow_path]}/#{parent_resource.path}/:id" : @scope[:path]
1435
+
1436
+ path = if canonical_action?(action, path.blank?)
1437
+ prefix.to_s
1438
+ else
1439
+ "#{prefix}/#{action_path(action, path)}"
1440
+ end
1441
+ end
1442
+
1443
+ def action_path(name, path = nil) #:nodoc:
1444
+ # Ruby 1.8 can't transform empty strings to symbols
1445
+ name = name.to_sym if name.is_a?(String) && !name.empty?
1446
+ path || @scope[:path_names][name] || name.to_s
1447
+ end
1448
+
1449
+ def prefix_name_for_action(as, action) #:nodoc:
1450
+ if as
1451
+ as.to_s
1452
+ elsif !canonical_action?(action, @scope[:scope_level])
1453
+ action.to_s
1454
+ end
1455
+ end
1456
+
1457
+ def name_for_action(as, action) #:nodoc:
1458
+ prefix = prefix_name_for_action(as, action)
1459
+ prefix = Mapper.normalize_name(prefix) if prefix
1460
+ name_prefix = @scope[:as]
1461
+
1462
+ if parent_resource
1463
+ return nil unless as || action
1464
+
1465
+ collection_name = parent_resource.collection_name
1466
+ member_name = parent_resource.member_name
1467
+ end
1468
+
1469
+ name = case @scope[:scope_level]
1470
+ when :nested
1471
+ [name_prefix, prefix]
1472
+ when :collection
1473
+ [prefix, name_prefix, collection_name]
1474
+ when :new
1475
+ [prefix, :new, name_prefix, member_name]
1476
+ when :member
1477
+ [prefix, shallow_scoping? ? @scope[:shallow_prefix] : name_prefix, member_name]
1478
+ when :root
1479
+ [name_prefix, collection_name, prefix]
1480
+ else
1481
+ [name_prefix, member_name, prefix]
1482
+ end
1483
+
1484
+ if candidate = name.select(&:present?).join("_").presence
1485
+ # If a name was not explicitly given, we check if it is valid
1486
+ # and return nil in case it isn't. Otherwise, we pass the invalid name
1487
+ # forward so the underlying router engine treats it and raises an exception.
1488
+ if as.nil?
1489
+ candidate unless @set.routes.find { |r| r.name == candidate } || candidate !~ /\A[_a-z]/i
1490
+ else
1491
+ candidate
1492
+ end
1493
+ end
1494
+ end
1495
+ end
1496
+
1497
+ def initialize(set) #:nodoc:
1498
+ @set = set
1499
+ @scope = { :path_names => @set.resources_path_names }
1500
+ end
1501
+
1502
+ include Base
1503
+ include HttpHelpers
1504
+ include Redirection
1505
+ include Scoping
1506
+ include Resources
1507
+ end
1508
+ end
1509
+ end