challah 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/challah/railtie.rb +2 -1
- data/lib/challah/version.rb +1 -1
- data/vendor/bundle/cache/actionmailer-3.2.5.gem +0 -0
- data/vendor/bundle/cache/actionpack-3.2.5.gem +0 -0
- data/vendor/bundle/cache/activemodel-3.2.5.gem +0 -0
- data/vendor/bundle/cache/activerecord-3.2.5.gem +0 -0
- data/vendor/bundle/cache/activeresource-3.2.5.gem +0 -0
- data/vendor/bundle/cache/activesupport-3.2.5.gem +0 -0
- data/vendor/bundle/cache/multi_json-1.3.6.gem +0 -0
- data/vendor/bundle/cache/rails-3.2.5.gem +0 -0
- data/vendor/bundle/cache/railties-3.2.5.gem +0 -0
- data/vendor/bundle/cache/thor-0.15.2.gem +0 -0
- data/vendor/bundle/cache/yard-0.8.2.gem +0 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/CHANGELOG.md +476 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/README.rdoc +163 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/base.rb +737 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/collector.rb +30 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/delivery_methods.rb +86 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/log_subscriber.rb +22 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/mail_helper.rb +56 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/railtie.rb +44 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_case.rb +82 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/test_helper.rb +61 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer/version.rb +10 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/action_mailer.rb +49 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/USAGE +18 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/mailer_generator.rb +16 -0
- data/vendor/bundle/gems/actionmailer-3.2.5/lib/rails/generators/mailer/templates/mailer.rb +18 -0
- data/vendor/bundle/gems/actionpack-3.2.5/CHANGELOG.md +5906 -0
- data/vendor/bundle/gems/actionpack-3.2.5/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/actionpack-3.2.5/README.rdoc +341 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/asset_paths.rb +10 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/base.rb +213 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/callbacks.rb +198 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/collector.rb +32 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/helpers.rb +167 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/layouts.rb +423 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/logger.rb +13 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/railties/routes_helpers.rb +18 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/rendering.rb +179 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/translation.rb +13 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/url_for.rb +33 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller/view_paths.rb +96 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/abstract_controller.rb +28 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/base.rb +235 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/actions.rb +185 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/fragments.rb +127 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/pages.rb +187 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching/sweeping.rb +97 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/caching.rb +83 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/integration_test.rb +2 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated/performance_test.rb +1 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/deprecated.rb +3 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/log_subscriber.rb +66 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/compatibility.rb +64 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/conditional_get.rb +131 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/cookies.rb +16 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/data_streaming.rb +157 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/exceptions.rb +46 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/flash.rb +28 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/force_ssl.rb +39 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/head.rb +35 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/helpers.rb +113 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/hide_actions.rb +47 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/http_authentication.rb +466 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/implicit_render.rb +19 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/instrumentation.rb +105 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/mime_responds.rb +317 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/params_wrapper.rb +239 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rack_delegation.rb +26 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/redirecting.rb +109 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/renderers.rb +109 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rendering.rb +65 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/request_forgery_protection.rb +113 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/rescue.rb +35 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/responder.rb +286 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/session_management.rb +14 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/streaming.rb +229 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/testing.rb +37 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal/url_for.rb +47 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/metal.rb +250 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/middleware.rb +39 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railtie.rb +51 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/railties/paths.rb +25 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/record_identifier.rb +85 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/test_case.rb +553 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/document.rb +68 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/node.rb +532 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/sanitizer.rb +177 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/selector.rb +830 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/tokenizer.rb +107 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner/html/version.rb +11 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller/vendor/html-scanner.rb +20 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_controller.rb +65 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/cache.rb +123 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/filter_parameters.rb +70 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/headers.rb +31 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_negotiation.rb +110 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_type.rb +276 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/mime_types.rb +35 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameter_filter.rb +74 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/parameters.rb +83 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/rack_cache.rb +62 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/request.rb +279 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/response.rb +206 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/upload.rb +47 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/http/url.rb +174 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/best_standards_support.rb +22 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/body_proxy.rb +30 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb +32 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/cookies.rb +350 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/debug_exceptions.rb +82 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/exception_wrapper.rb +78 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/flash.rb +260 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/head.rb +18 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/params_parser.rb +75 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/public_exceptions.rb +30 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/reloader.rb +89 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/remote_ip.rb +81 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/request_id.rb +39 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/rescue.rb +26 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/abstract_store.rb +79 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cache_store.rb +49 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cookie_store.rb +71 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/mem_cache_store.rb +17 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb +87 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/stack.rb +124 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/static.rb +65 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +31 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb +26 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb +10 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/layout.erb +32 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/missing_template.erb +2 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/routing_error.erb +15 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/template_error.erb +17 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb +2 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/railtie.rb +34 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/mapper.rb +1509 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/polymorphic_routes.rb +203 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/redirection.rb +131 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/route_set.rb +658 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/routes_proxy.rb +39 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing/url_for.rb +167 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/routing.rb +293 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/dom.rb +37 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/response.rb +96 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/routing.rb +217 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/selector.rb +435 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions/tag.rb +138 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/assertions.rb +18 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/integration.rb +496 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/performance_test.rb +10 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_process.rb +41 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_request.rb +74 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch/testing/test_response.rb +29 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_dispatch.rb +102 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack/version.rb +10 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_pack.rb +24 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/asset_paths.rb +136 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/base.rb +220 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/buffers.rb +43 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/context.rb +36 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/flows.rb +79 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/active_model_helper.rb +50 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_paths.rb +7 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helper.rb +459 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb +146 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/asset_paths.rb +93 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +192 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb +148 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/atom_feed_helper.rb +200 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/cache_helper.rb +64 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/capture_helper.rb +203 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/controller_helper.rb +23 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/csrf_helper.rb +32 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/date_helper.rb +1054 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/debug_helper.rb +40 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_helper.rb +1487 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_options_helper.rb +658 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/form_tag_helper.rb +688 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/javascript_helper.rb +114 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/number_helper.rb +539 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/output_safety_helper.rb +38 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/record_tag_helper.rb +109 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/rendering_helper.rb +90 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/sanitize_helper.rb +259 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/tag_helper.rb +160 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/text_helper.rb +426 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/translation_helper.rb +88 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers/url_helper.rb +696 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/helpers.rb +60 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/locale/en.yml +160 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/log_subscriber.rb +28 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/lookup_context.rb +241 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/path_set.rb +89 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/railtie.rb +55 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/abstract_renderer.rb +41 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/partial_renderer.rb +415 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/renderer.rb +54 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/streaming_template_renderer.rb +106 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/renderer/template_renderer.rb +94 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/error.rb +128 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/builder.rb +26 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers/erb.rb +109 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/handlers.rb +50 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/resolver.rb +258 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template/text.rb +30 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/template.rb +337 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/test_case.rb +244 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view/testing/resolvers.rb +50 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/action_view.rb +84 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/assets.rake +99 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/bootstrap.rb +37 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/compressors.rb +83 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/isolated_helper.rb +13 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers/rails_helper.rb +172 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/helpers.rb +6 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/railtie.rb +62 -0
- data/vendor/bundle/gems/actionpack-3.2.5/lib/sprockets/static_compiler.rb +64 -0
- data/vendor/bundle/gems/activemodel-3.2.5/CHANGELOG.md +134 -0
- data/vendor/bundle/gems/activemodel-3.2.5/MIT-LICENSE +21 -0
- data/vendor/bundle/gems/activemodel-3.2.5/README.rdoc +211 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/attribute_methods.rb +452 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/callbacks.rb +134 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/conversion.rb +73 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/dirty.rb +167 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/errors.rb +370 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/lint.rb +123 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/locale/en.yml +27 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/permission_set.rb +40 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security/sanitizer.rb +59 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/mass_assignment_security.rb +237 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/naming.rb +171 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observer_array.rb +147 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/observing.rb +252 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/railtie.rb +2 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/secure_password.rb +74 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serialization.rb +139 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/json.rb +108 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/serializers/xml.rb +195 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/test_case.rb +16 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/translation.rb +70 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/acceptance.rb +67 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/callbacks.rb +57 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/confirmation.rb +67 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/exclusion.rb +75 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/format.rb +105 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/inclusion.rb +75 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/length.rb +127 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/numericality.rb +138 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/presence.rb +49 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/validates.rb +137 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations/with.rb +142 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validations.rb +235 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/validator.rb +184 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model/version.rb +10 -0
- data/vendor/bundle/gems/activemodel-3.2.5/lib/active_model.rb +61 -0
- data/vendor/bundle/gems/activerecord-3.2.5/CHANGELOG.md +6792 -0
- data/vendor/bundle/gems/activerecord-3.2.5/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/activerecord-3.2.5/README.rdoc +222 -0
- data/vendor/bundle/gems/activerecord-3.2.5/examples/associations.png +0 -0
- data/vendor/bundle/gems/activerecord-3.2.5/examples/performance.rb +177 -0
- data/vendor/bundle/gems/activerecord-3.2.5/examples/simple.rb +14 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/aggregations.rb +255 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/alias_tracker.rb +76 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association.rb +240 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/association_scope.rb +134 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_association.rb +79 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/belongs_to_polymorphic_association.rb +34 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/association.rb +55 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/belongs_to.rb +85 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/collection_association.rb +75 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_and_belongs_to_many.rb +57 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_many.rb +71 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/has_one.rb +62 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/builder/singular_association.rb +32 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_association.rb +586 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/collection_proxy.rb +131 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_and_belongs_to_many_association.rb +69 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_association.rb +112 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_many_through_association.rb +186 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_association.rb +73 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/has_one_through_association.rb +36 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_association.rb +154 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_base.rb +24 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency/join_part.rb +78 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_dependency.rb +214 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/join_helper.rb +55 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/association.rb +127 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/belongs_to.rb +17 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/collection_association.rb +24 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_and_belongs_to_many.rb +60 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many.rb +17 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_many_through.rb +15 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one.rb +23 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/has_one_through.rb +9 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/singular_association.rb +21 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader/through_association.rb +67 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/preloader.rb +177 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/singular_association.rb +64 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations/through_association.rb +87 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/associations.rb +1604 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_assignment.rb +221 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/before_type_cast.rb +31 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/deprecated_underscore_read.rb +32 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/dirty.rb +101 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/primary_key.rb +114 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/query.rb +39 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/read.rb +136 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/serialization.rb +102 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/time_zone_conversion.rb +63 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods/write.rb +69 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/attribute_methods.rb +273 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/autosave_association.rb +422 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/base.rb +721 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/callbacks.rb +275 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/coders/yaml_column.rb +41 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb +482 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_specification.rb +188 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_limits.rb +58 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/database_statements.rb +390 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/query_cache.rb +82 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/quoting.rb +115 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_definitions.rb +492 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/schema_statements.rb +606 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_adapter.rb +296 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +674 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/column.rb +270 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql2_adapter.rb +278 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/mysql_adapter.rb +426 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/postgresql_adapter.rb +1306 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/schema_cache.rb +50 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite3_adapter.rb +55 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/sqlite_adapter.rb +579 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/connection_adapters/statement_pool.rb +40 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/counter_cache.rb +119 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_finder_match.rb +68 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_matchers.rb +79 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/dynamic_scope_match.rb +23 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/errors.rb +195 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain.rb +85 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/explain_subscriber.rb +24 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures/file.rb +65 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/fixtures.rb +922 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/identity_map.rb +162 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/inheritance.rb +174 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/integration.rb +49 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locale/en.yml +40 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/optimistic.rb +183 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/locking/pessimistic.rb +77 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/log_subscriber.rb +68 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration/command_recorder.rb +105 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/migration.rb +781 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/model_schema.rb +366 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/nested_attributes.rb +469 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/observer.rb +121 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/persistence.rb +372 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/query_cache.rb +74 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/querying.rb +58 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railtie.rb +125 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/console_sandbox.rb +6 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/controller_runtime.rb +49 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/databases.rake +624 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/railties/jdbcmysql_error.rb +16 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/readonly_attributes.rb +26 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/reflection.rb +534 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/batches.rb +90 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/calculations.rb +354 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/delegation.rb +49 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/finder_methods.rb +397 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/predicate_builder.rb +58 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/query_methods.rb +417 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation/spawn_methods.rb +148 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/relation.rb +537 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/result.rb +34 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/sanitization.rb +194 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema.rb +58 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/schema_dumper.rb +204 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/default.rb +142 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping/named.rb +202 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/scoping.rb +152 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serialization.rb +18 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/serializers/xml_serializer.rb +203 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/session_store.rb +358 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/store.rb +50 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/test_case.rb +73 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/timestamp.rb +113 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/transactions.rb +362 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/translation.rb +22 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/associated.rb +43 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations/uniqueness.rb +180 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/validations.rb +83 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record/version.rb +10 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/active_record.rb +147 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/migration_generator.rb +25 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration/templates/migration.rb +34 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/migration.rb +15 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/model_generator.rb +47 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/migration.rb +15 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/model.rb +12 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/model/templates/module.rb +7 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/observer_generator.rb +15 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/observer/templates/observer.rb +4 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/session_migration_generator.rb +25 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record/session_migration/templates/migration.rb +12 -0
- data/vendor/bundle/gems/activerecord-3.2.5/lib/rails/generators/active_record.rb +25 -0
- data/vendor/bundle/gems/activeresource-3.2.5/CHANGELOG.md +353 -0
- data/vendor/bundle/gems/activeresource-3.2.5/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/activeresource-3.2.5/README.rdoc +187 -0
- data/vendor/bundle/gems/activeresource-3.2.5/examples/performance.rb +70 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/base.rb +1482 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/connection.rb +287 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/custom_methods.rb +119 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/exceptions.rb +82 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/json_format.rb +25 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats/xml_format.rb +25 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/formats.rb +22 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/http_mock.rb +335 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/log_subscriber.rb +15 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/observing.rb +29 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/railtie.rb +14 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/schema.rb +59 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/validations.rb +134 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource/version.rb +10 -0
- data/vendor/bundle/gems/activeresource-3.2.5/lib/active_resource.rb +46 -0
- data/vendor/bundle/gems/activesupport-3.2.5/CHANGELOG.md +1693 -0
- data/vendor/bundle/gems/activesupport-3.2.5/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/activesupport-3.2.5/README.rdoc +33 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/all.rb +3 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/backtrace_cleaner.rb +99 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/base64.rb +54 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/basic_object.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/benchmarkable.rb +55 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/buffered_logger.rb +125 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/builder.rb +6 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/file_store.rb +178 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/mem_cache_store.rb +206 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/memory_store.rb +159 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/null_store.rb +44 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache/strategy/local_cache.rb +169 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/cache.rb +638 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/callbacks.rb +626 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/concern.rb +131 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/configurable.rb +90 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/access.rb +46 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/conversions.rb +164 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/extract_options.rb +29 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/grouping.rb +100 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/prepend_and_append.rb +7 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/random_access.rb +30 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/uniq_by.rb +16 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array/wrap.rb +48 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/array.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/benchmark.rb +7 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal/conversions.rb +45 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/big_decimal.rb +1 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute.rb +115 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/attribute_accessors.rb +168 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/delegating_attributes.rb +44 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class/subclasses.rb +36 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/acts_like.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/calculations.rb +276 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/conversions.rb +106 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/freeze.rb +33 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date/zones.rb +14 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/calculations.rb +143 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/conversions.rb +103 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/date_time/zones.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/enumerable.rb +127 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/exception.rb +3 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/atomic.rb +42 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file/path.rb +5 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/file.rb +2 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float/rounding.rb +19 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/float.rb +1 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/conversions.rb +157 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_dup.rb +18 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/deep_merge.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/diff.rb +13 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/except.rb +23 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/keys.rb +54 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/reverse_merge.rb +23 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash/slice.rb +40 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/hash.rb +9 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/inflections.rb +17 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/multiple.rb +10 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer/time.rb +39 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/integer.rb +3 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/io.rb +15 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/debugger.rb +10 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/reporting.rb +93 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel/singleton_class.rb +13 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/kernel.rb +4 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/load_error.rb +23 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/logger.rb +83 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/aliasing.rb +70 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/anonymous.rb +24 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attr_internal.rb +39 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/attribute_accessors.rb +64 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/delegation.rb +153 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/deprecation.rb +9 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/introspection.rb +88 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/method_names.rb +14 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/qualified_const.rb +64 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/reachable.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/remove_method.rb +16 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module/synchronization.rb +45 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/module.rb +12 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/name_error.rb +18 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/bytes.rb +44 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric/time.rb +79 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/numeric.rb +2 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/acts_like.rb +10 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/blank.rb +121 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/conversions.rb +4 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/duplicable.rb +119 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/inclusion.rb +25 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/instance_variables.rb +33 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_json.rb +19 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_param.rb +55 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/to_query.rb +27 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/try.rb +57 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object/with_options.rb +43 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/object.rb +13 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/proc.rb +14 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process/daemon.rb +23 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/process.rb +1 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/blockless_step.rb +29 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/conversions.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/cover.rb +3 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/include_range.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range/overlaps.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/range.rb +5 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/regexp.rb +5 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/rexml.rb +46 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/access.rb +99 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/behavior.rb +6 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/conversions.rb +66 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/encoding.rb +11 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/exclude.rb +11 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/filters.rb +49 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inflections.rb +202 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/inquiry.rb +13 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/interpolation.rb +2 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/multibyte.rb +72 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/output_safety.rb +187 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/starts_ends_with.rb +4 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/strip.rb +26 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string/xchar.rb +18 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/string.rb +14 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/acts_like.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/calculations.rb +358 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/conversions.rb +85 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/marshal.rb +57 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/time/zones.rb +87 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext/uri.rb +30 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/core_ext.rb +3 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies/autoload.rb +50 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/dependencies.rb +703 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/behaviors.rb +49 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/method_wrappers.rb +29 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/proxy_wrappers.rb +81 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation/reporting.rb +65 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/deprecation.rb +18 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/descendants_tracker.rb +45 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/duration.rb +110 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_update_checker.rb +121 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/file_watcher.rb +36 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/gzip.rb +30 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/hash_with_indifferent_access.rb +168 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n.rb +9 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/i18n_railtie.rb +102 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflections.rb +61 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/inflections.rb +172 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/methods.rb +320 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector/transliterate.rb +98 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/inflector.rb +7 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/decoding.rb +79 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/encoding.rb +284 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json/variable.rb +17 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/json.rb +2 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/lazy_load_hooks.rb +46 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/locale/en.yml +36 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber/test_helper.rb +101 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/log_subscriber.rb +122 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/memoizable.rb +116 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_encryptor.rb +103 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/message_verifier.rb +74 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/chars.rb +476 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/exceptions.rb +8 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/unicode.rb +393 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte/utils.rb +60 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/multibyte.rb +44 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/fanout.rb +61 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications/instrumenter.rb +53 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/notifications.rb +154 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/option_merger.rb +25 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_hash.rb +222 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ordered_options.rb +61 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/railtie.rb +59 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/rescuable.rb +115 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/ruby/shim.rb +22 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/string_inquirer.rb +21 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/tagged_logging.rb +70 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/test_case.rb +34 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/assertions.rb +97 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/declarative.rb +40 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/deprecation.rb +55 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/isolation.rb +157 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/mochaing.rb +7 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/pending.rb +52 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/jruby.rb +115 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/rubinius.rb +113 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/mri.rb +57 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby/yarv.rb +57 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance/ruby.rb +152 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/performance.rb +317 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/testing/setup_and_teardown.rb +116 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time/autoload.rb +5 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time.rb +35 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/time_with_zone.rb +354 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/time_zone.rb +397 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/version.rb +10 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/whiny_nil.rb +24 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/jdom.rb +175 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxml.rb +80 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/libxmlsax.rb +86 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogiri.rb +84 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/nokogirisax.rb +88 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini/rexml.rb +130 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support/xml_mini.rb +168 -0
- data/vendor/bundle/gems/activesupport-3.2.5/lib/active_support.rb +82 -0
- data/vendor/bundle/gems/multi_json-1.3.6/Gemfile +7 -0
- data/vendor/bundle/gems/multi_json-1.3.6/LICENSE.md +20 -0
- data/vendor/bundle/gems/multi_json-1.3.6/README.md +119 -0
- data/vendor/bundle/gems/multi_json-1.3.6/Rakefile +20 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_common.rb +25 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_gem.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/json_pure.rb +12 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/oj.rb +22 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/ok_json.rb +48 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/adapters/yajl.rb +18 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/vendor/okjson.rb +602 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json/version.rb +3 -0
- data/vendor/bundle/gems/multi_json-1.3.6/lib/multi_json.rb +118 -0
- data/vendor/bundle/gems/multi_json-1.3.6/multi_json.gemspec +22 -0
- data/vendor/bundle/gems/multi_json-1.3.6/spec/adapter_shared_example.rb +115 -0
- data/vendor/bundle/gems/multi_json-1.3.6/spec/helper.rb +32 -0
- data/vendor/bundle/gems/multi_json-1.3.6/spec/multi_json_spec.rb +87 -0
- data/vendor/bundle/gems/railties-3.2.5/CHANGELOG.md +2446 -0
- data/vendor/bundle/gems/railties-3.2.5/README.rdoc +35 -0
- data/vendor/bundle/gems/railties-3.2.5/bin/rails +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/belongs_to.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/book_icon.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/bullet.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/challenge.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/chapters_icon.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/check_bullet.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/credits_pic_blank.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/csrf.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/customized_error_messages.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/edge_badge.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/error_messages.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/feature_tile.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/footer_tile.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/fxn.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/grey_bullet.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/habtm.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_many_through.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/has_one_through.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_backdrop.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/header_tile.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_html_safe.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_en.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_translation_missing.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/i18n/demo_untranslated.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/README +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/1.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/10.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/11.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/12.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/13.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/14.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/15.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/2.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/3.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/4.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/5.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/6.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/7.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/8.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/callouts/9.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/caution.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/example.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/home.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/important.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/next.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/note.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/prev.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/tip.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/up.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/icons/warning.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/jaimeiniesta.jpg +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/nav_arrow.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/polymorphic.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/posts_index.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/radar.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_guides_logo.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_logo_remix.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/rails_welcome.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/session_fixation.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_grey.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_info.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_note.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_red.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.gif +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/tab_yellow.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/validation_error_messages.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/images/vijaydev.jpg +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/guides.js +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/fixes.css +16 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/kindle.css +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/main.css +453 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/print.css +52 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/reset.css +43 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/style.css +13 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Gemfile +38 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/README.rdoc +261 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/Rakefile +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/images/rails.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/application.js +15 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/comments.js.coffee +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/home.js.coffee +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/javascripts/posts.js.coffee +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/application.css +13 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/comments.css.scss +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/home.css.scss +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/posts.css.scss +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss +56 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/application_controller.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/comments_controller.rb +16 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/home_controller.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/controllers/posts_controller.rb +84 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/application_helper.rb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/comments_helper.rb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/home_helper.rb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/helpers/posts_helper.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/comment.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/post.rb +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/models/tag.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_comment.html.erb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/comments/_form.html.erb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/home/index.html.erb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/layouts/application.html.erb +14 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/_form.html.erb +32 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/edit.html.erb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/index.html.erb +27 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/new.html.erb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/posts/show.html.erb +31 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/app/views/tags/_form.html.erb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/application.rb +59 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/boot.rb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/database.yml +25 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environment.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/development.rb +37 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/production.rb +67 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/environments/test.rb +37 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/backtrace_silencers.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/inflections.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/mime_types.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/secret_token.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/session_store.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/initializers/wrap_parameters.rb +14 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/locales/en.yml +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config/routes.rb +64 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/config.ru +4 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901012815_create_comments.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/schema.rb +43 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/db/seeds.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/doc/README_FOR_APP +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/404.html +26 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/422.html +26 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/500.html +25 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/favicon.ico +0 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/public/robots.txt +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/script/rails +6 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/comments.yml +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/posts.yml +11 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/fixtures/tags.yml +9 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/comments_controller_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/home_controller_test.rb +9 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/functional/posts_controller_test.rb +49 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/performance/browsing_test.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/test_helper.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/comment_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/comments_helper_test.rb +4 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/home_helper_test.rb +4 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/helpers/posts_helper_test.rb +4 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/post_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/code/getting_started/test/unit/tag_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/generator.rb +310 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/helpers.rb +45 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/indexer.rb +69 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/levenshtein.rb +31 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides/textile_extensions.rb +63 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/rails_guides.rb +50 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/2_2_release_notes.textile +422 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/2_3_release_notes.textile +610 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/3_0_release_notes.textile +595 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/3_1_release_notes.textile +431 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/3_2_release_notes.textile +540 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/_license.html.erb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/_welcome.html.erb +19 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/action_controller_overview.textile +820 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/action_mailer_basics.textile +516 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/action_view_overview.textile +1497 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_model_basics.textile +205 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_basics.textile +218 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_querying.textile +1433 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_record_validations_callbacks.textile +1283 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_resource_basics.textile +120 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/active_support_core_extensions.textile +3713 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/ajax_on_rails.textile +267 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/api_documentation_guidelines.textile +185 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/asset_pipeline.textile +707 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/association_basics.textile +1959 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/caching_with_rails.textile +437 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/command_line.textile +574 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/configuring.textile +641 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/contributing_to_ruby_on_rails.textile +423 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/credits.html.erb +72 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/debugging_rails_applications.textile +714 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/documents.yaml +157 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/engines.textile +618 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/form_helpers.textile +798 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/generators.textile +621 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/getting_started.textile +1929 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/i18n.textile +931 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/index.html.erb +30 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/initialization.textile +1116 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/KINDLE.md +26 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/copyright.html.erb +1 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/layout.html.erb +27 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/rails_guides.opf.erb +52 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.html.erb +24 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/toc.ncx.erb +64 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/kindle/welcome.html.erb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/layout.html.erb +124 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/layouts_and_rendering.textile +1237 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/migrations.textile +900 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/nested_model_forms.textile +222 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/performance_testing.textile +597 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/plugins.textile +464 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_application_templates.textile +240 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/rails_on_rack.textile +236 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/routing.textile +885 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/ruby_on_rails_guides_guidelines.textile +79 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/security.textile +1004 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/source/testing.textile +947 -0
- data/vendor/bundle/gems/railties-3.2.5/guides/w3c_validator.rb +91 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/all.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/bootstrap.rb +73 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/configuration.rb +151 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/finisher.rb +98 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/railties.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/route_inspector.rb +84 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application/routes_reloader.rb +56 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/application.rb +315 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/backtrace_cleaner.rb +42 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/cli.rb +16 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/code_statistics.rb +118 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/application.rb +38 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/benchmarker.rb +34 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/console.rb +55 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/dbconsole.rb +123 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/destroy.rb +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/generate.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin.rb +544 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/plugin_new.rb +11 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/profiler.rb +32 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/runner.rb +54 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/server.rb +100 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands/update.rb +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/commands.rb +104 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/configuration.rb +89 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/app.rb +36 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/console/helpers.rb +11 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/commands.rb +43 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/configuration.rb +84 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine/railties.rb +33 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/engine.rb +657 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/actions.rb +325 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/active_model.rb +78 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/app_base.rb +281 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/base.rb +389 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/assets_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/assets/templates/stylesheet.css +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/css/scaffold/scaffold_generator.rb +16 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/controller_generator.rb +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/controller/templates/view.html.erb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/mailer_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/mailer/templates/view.text.erb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/scaffold_generator.rb +29 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/_form.html.erb +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/edit.html.erb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/index.html.erb +27 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/new.html.erb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb/scaffold/templates/show.html.erb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/erb.rb +21 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/generated_attribute.rb +107 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/assets_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/js/assets/templates/javascript.js +2 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/migration.rb +68 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/named_base.rb +202 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/USAGE +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/app_generator.rb +303 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Gemfile +26 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/README +261 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/Rakefile +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/images/rails.png +0 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +17 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb +2 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +14 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/application.rb +74 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/boot.rb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +31 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +86 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +62 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +33 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +43 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +54 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +39 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +55 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +25 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environment.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +41 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +73 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +39 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/inflections.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt +16 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/locales/en.yml +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config/routes.rb +58 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/config.ru +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/db/seeds.rb.tt +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/doc/README_FOR_APP +2 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/gitignore +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/404.html +26 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/422.html +26 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/500.html +25 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/favicon.ico +0 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/index.html +241 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/public/robots.txt +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/script/rails +5 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/app/templates/test/test_helper.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/USAGE +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/assets_generator.rb +25 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/javascript.js +2 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/assets/templates/stylesheet.css +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/USAGE +18 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/controller_generator.rb +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/controller/templates/controller.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/USAGE +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/generator_generator.rb +25 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/generator/templates/USAGE.tt +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/USAGE +17 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/helper_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/helper/templates/helper.rb +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/USAGE +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/integration_test/integration_test_generator.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/USAGE +29 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/migration/migration_generator.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/USAGE +45 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/model/model_generator.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/USAGE +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/observer/observer_generator.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/USAGE +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/performance_test/performance_test_generator.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/USAGE +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/plugin_new_generator.rb +318 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +27 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Gemfile +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/README.rdoc +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/Rakefile +31 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt +4 -0
- 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
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/config/routes.rb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/gitignore +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/application.rb +18 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/boot.rb +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/rails/routes.rb +4 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/script/rails.tt +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/USAGE +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource/resource_generator.rb +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/resource_route/resource_route_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/USAGE +35 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/scaffold_generator.rb +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold/templates/scaffold.css +56 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/USAGE +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +25 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +89 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/USAGE +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/session_migration/session_migration_generator.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/USAGE +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/task_generator.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/rails/task/templates/task.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/resource_helpers.rb +80 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_case.rb +247 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/controller_generator.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/controller/templates/functional_test.rb +19 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/helper_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/helper/templates/helper_test.rb +6 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/integration_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/integration/templates/integration_test.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/mailer_generator.rb +14 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/mailer/templates/functional_test.rb +21 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/model_generator.rb +24 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/fixtures.yml +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/model/templates/unit_test.rb +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/observer_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/observer/templates/unit_test.rb +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/performance_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/performance/templates/performance_test.rb +12 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/plugin_generator.rb +13 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/plugin/templates/test_helper.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +38 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb +51 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators/test_unit.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/generators.rb +339 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/info.rb +116 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/info_controller.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/initializable.rb +89 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/paths.rb +211 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/performance_test_help.rb +3 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/plugin.rb +92 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/debugger.rb +24 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/log_tailer.rb +34 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack/logger.rb +47 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/rack.rb +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configurable.rb +35 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie/configuration.rb +90 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/railtie.rb +202 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/ruby_version_check.rb +23 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/rubyprof_ext.rb +35 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/script_rails_loader.rb +29 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/source_annotation_extractor.rb +104 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/annotations.rake +20 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/documentation.rake +155 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/engine.rake +72 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/framework.rake +76 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/log.rake +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/middleware.rake +7 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/misc.rake +67 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/routes.rake +9 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/statistics.rake +16 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks/tmp.rake +37 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/tasks.rb +16 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_help.rb +56 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/railtie.rb +15 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/sub_test_task.rb +8 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/test_unit/testing.rake +146 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails/version.rb +10 -0
- data/vendor/bundle/gems/railties-3.2.5/lib/rails.rb +126 -0
- data/vendor/bundle/gems/thor-0.15.2/CHANGELOG.rdoc +103 -0
- data/vendor/bundle/gems/thor-0.15.2/Gemfile +15 -0
- data/vendor/bundle/gems/thor-0.15.2/LICENSE.md +20 -0
- data/vendor/bundle/gems/thor-0.15.2/README.md +28 -0
- data/vendor/bundle/gems/thor-0.15.2/Thorfile +30 -0
- data/vendor/bundle/gems/thor-0.15.2/bin/rake2thor +86 -0
- data/vendor/bundle/gems/thor-0.15.2/bin/thor +6 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_file.rb +105 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/create_link.rb +57 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/directory.rb +97 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/empty_directory.rb +153 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/file_manipulation.rb +308 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions/inject_into_file.rb +109 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/actions.rb +318 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/base.rb +617 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/file_binary_read.rb +9 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/hash_with_indifferent_access.rb +75 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/core_ext/ordered_hash.rb +100 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/error.rb +35 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/group.rb +285 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/invocation.rb +170 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/argument.rb +67 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/arguments.rb +165 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/option.rb +121 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser/options.rb +178 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/parser.rb +4 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/rake_compat.rb +71 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/runner.rb +321 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/basic.rb +389 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/color.rb +144 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell/html.rb +123 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/shell.rb +88 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/task.rb +132 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/util.rb +248 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor/version.rb +3 -0
- data/vendor/bundle/gems/thor-0.15.2/lib/thor.rb +379 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_file_spec.rb +170 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/create_link_spec.rb +81 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/directory_spec.rb +136 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/empty_directory_spec.rb +130 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/file_manipulation_spec.rb +370 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions/inject_into_file_spec.rb +135 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/actions_spec.rb +326 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/base_spec.rb +274 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/hash_with_indifferent_access_spec.rb +43 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/core_ext/ordered_hash_spec.rb +115 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/exit_condition_spec.rb +19 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/application.rb +2 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/execute.rb +6 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/bundle/main.thor +1 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/%file_name%.rb.tt +1 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/COMMENTER +10 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/README +3 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/block_helper.rb +3 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.rb +1 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/doc/config.yaml.tt +1 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/group.thor +114 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/invoke.thor +112 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/path with spaces +0 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/script.thor +190 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/fixtures/task.thor +10 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/group_spec.rb +216 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/invocation_spec.rb +100 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/parser/argument_spec.rb +47 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/parser/arguments_spec.rb +65 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/parser/option_spec.rb +202 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/parser/options_spec.rb +329 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/rake_compat_spec.rb +72 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/register_spec.rb +135 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/runner_spec.rb +241 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/shell/basic_spec.rb +300 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/shell/color_spec.rb +81 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/shell/html_spec.rb +32 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/shell_spec.rb +47 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/spec_helper.rb +58 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/task_spec.rb +79 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/thor_spec.rb +387 -0
- data/vendor/bundle/gems/thor-0.15.2/spec/util_spec.rb +163 -0
- data/vendor/bundle/gems/thor-0.15.2/thor.gemspec +26 -0
- data/vendor/bundle/gems/yard-0.8.2/ChangeLog +12178 -0
- data/vendor/bundle/gems/yard-0.8.2/LEGAL +74 -0
- data/vendor/bundle/gems/yard-0.8.2/LICENSE +22 -0
- data/vendor/bundle/gems/yard-0.8.2/README.md +553 -0
- data/vendor/bundle/gems/yard-0.8.2/Rakefile +93 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/builtins_vs_eval.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/concat_vs_join.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/erb_vs_erubis.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/format_args.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/generation.rb +37 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/marshal_vs_dbm.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/parsing.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/pathname_vs_string.rb +50 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/rdoc_vs_yardoc.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/registry_store_types.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/ri_vs_yri.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/ripper_parser.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/splat_vs_flatten.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_erb.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_format.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/template_profile.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.2/benchmarks/yri_cache.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.2/bin/yard +12 -0
- data/vendor/bundle/gems/yard-0.8.2/bin/yardoc +12 -0
- data/vendor/bundle/gems/yard-0.8.2/bin/yri +12 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/CodeObjects.md +115 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/GettingStarted.md +592 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/Handlers.md +152 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/Overview.md +61 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/Parser.md +191 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/Tags.md +282 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/TagsArch.md +123 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/Templates.md +496 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/WhatsNew.md +1166 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/images/code-objects-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/images/handlers-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/images/overview-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/images/parser-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/images/tags-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/full_list_tag.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/fulldoc/html/setup.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/setup.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/layout/html/tag_list.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/list.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/setup.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.2/docs/templates/plugin.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/rubygems_plugin.rb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/autoload.rb +284 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command.rb +76 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/command_parser.rb +90 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/config.rb +136 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/diff.rb +201 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/gems.rb +83 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/graph.rb +121 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/help.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/i18n.rb +69 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/list.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/server.rb +183 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/stats.rb +213 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yardoc.rb +776 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/cli/yri.rb +214 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/base.rb +551 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_object.rb +143 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/class_variable_object.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/constant_object.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extended_method_object.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/extra_file_object.rb +89 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/macro_object.rb +172 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/method_object.rb +191 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/module_object.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/namespace_object.rb +200 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/proxy.rb +257 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/code_objects/root_object.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/config.rb +269 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/array.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/file.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/hash.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/insertion.rb +60 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/module.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/string.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/core_ext/symbol_hash.rb +73 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring.rb +317 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/docstring_parser.rb +298 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/globals.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/base.rb +581 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/alias_handler.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/attribute_handler.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/base.rb +110 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/class_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/constant_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/handler_methods.rb +166 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/init_handler.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/method_handler.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/mixin_handler.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/module_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/override_comment_handler.rb +30 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/path_handler.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/struct_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/c/symbol_handler.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/processor.rb +198 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/alias_handler.rb +41 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/attribute_handler.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/base.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_condition_handler.rb +86 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_handler.rb +122 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/class_variable_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/comment_handler.rb +9 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/constant_handler.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/dsl_handler_methods.rb +71 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/exception_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/extend_handler.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/alias_handler.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/attribute_handler.rb +60 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/base.rb +250 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_handler.rb +110 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/comment_handler.rb +9 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/constant_handler.rb +28 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/dsl_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/exception_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/extend_handler.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/method_handler.rb +78 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_function_handler.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/module_handler.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/visibility_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/legacy/yield_handler.rb +28 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_condition_handler.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/method_handler.rb +91 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/mixin_handler.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_function_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/module_handler.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/struct_handler_methods.rb +141 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/visibility_handler.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/handlers/ruby/yield_handler.rb +30 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/locale.rb +50 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/message.rb +56 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/messages.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/pot_generator.rb +280 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/i18n/text.rb +173 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/logging.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/options.rb +216 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/base.rb +56 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/c_parser.rb +225 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/comment_parser.rb +131 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/c/statement.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ast_node.rb +489 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_lex.rb +1376 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/ruby_parser.rb +31 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/statement_list.rb +381 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/legacy/token_list.rb +66 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/ruby/ruby_parser.rb +615 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/parser/source_parser.rb +519 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rake/yardoc_task.rb +75 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry.rb +419 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/registry_store.rb +305 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/LICENSE.txt +57 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/MIT.txt +20 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/gem.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports/source_index.rb +353 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/backports.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/doc_manager.rb +79 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/rubygems/specification.rb +41 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/base.rb +80 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/file_system_serializer.rb +90 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/process_serializer.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/stdout_serializer.rb +32 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/serializers/yardoc_serializer.rb +124 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/adapter.rb +100 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/base.rb +193 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_file_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/display_object_command.rb +58 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/frames_command.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_command.rb +147 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/library_index_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/list_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/search_command.rb +78 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/commands/static_file_command.rb +50 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_helper.rb +74 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/doc_server_serializer.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/library_version.rb +227 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/rack_adapter.rb +88 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/router.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/static_caching.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/css/custom.css +78 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/breadcrumb.erb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/script_setup.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/layout/html/setup.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/default/method_details/html/setup.rb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/contents.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/headers.erb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/processing.erb +51 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/processing/html/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/templates/doc_server/search/html/setup.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server/webrick_adapter.rb +43 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/server.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_factory.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/default_tag.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/directives.rb +594 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/library.rb +630 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/option_tag.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/overload_tag.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/ref_tag_list.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag.rb +57 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/tags/tag_format_error.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/engine.rb +185 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/erb_cache.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/base_helper.rb +212 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/filter_helper.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_helper.rb +589 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +59 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup/rdoc_markup.rb +85 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/markup_helper.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/method_helper.rb +72 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/module_helper.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/text_helper.rb +95 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/helpers/uml_helper.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/section.rb +106 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template.rb +395 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/templates/template_options.rb +88 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard/verifier.rb +148 -0
- data/vendor/bundle/gems/yard-0.8.2/lib/yard.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_parser_spec.rb +43 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/command_spec.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/config_spec.rb +92 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/diff_spec.rb +175 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/gems_spec.rb +81 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/graph_spec.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/help_spec.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/i18n_spec.rb +111 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/list_spec.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/server_spec.rb +219 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/stats_spec.rb +90 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/yardoc_spec.rb +741 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/cli/yri_spec.rb +99 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/base_spec.rb +392 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/class_object_spec.rb +225 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/code_object_list_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/constants_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/extra_file_object_spec.rb +132 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/macro_object_spec.rb +148 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/method_object_spec.rb +175 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/module_object_spec.rb +141 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/namespace_object_spec.rb +170 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/proxy_spec.rb +140 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/code_objects/spec_helper.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/config_spec.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/array_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/file_spec.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/hash_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/insertion_spec.rb +37 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/module_spec.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/string_spec.rb +42 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/core_ext/symbol_hash_spec.rb +86 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/docstring_parser_spec.rb +224 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/docstring_spec.rb +287 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/alias_handler_spec.rb +80 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/attribute_handler_spec.rb +94 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/base_spec.rb +197 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/alias_handler_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/attribute_handler_spec.rb +40 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/class_handler_spec.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/constant_handler_spec.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/init_handler_spec.rb +47 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/method_handler_spec.rb +228 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/mixin_handler_spec.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/module_handler_spec.rb +38 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/override_comment_handler_spec.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/path_handler_spec.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/spec_helper.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/c/struct_handler_spec.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_condition_handler_spec.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_handler_spec.rb +246 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/class_variable_handler_spec.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/constant_handler_spec.rb +64 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/dsl_handler_spec.rb +186 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/alias_handler_001.rb.txt +44 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/attribute_handler_001.rb.txt +32 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_condition_handler_001.rb.txt +69 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_handler_001.rb.txt +120 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/class_variable_handler_001.rb.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/constant_handler_001.rb.txt +25 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/dsl_handler_001.rb.txt +110 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/exception_handler_001.rb.txt +59 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/extend_handler_001.rb.txt +16 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_condition_handler_001.rb.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/method_handler_001.rb.txt +126 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/mixin_handler_001.rb.txt +37 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/module_handler_001.rb.txt +29 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/process_handler_001.rb.txt +11 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/visibility_handler_001.rb.txt +27 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/examples/yield_handler_001.rb.txt +54 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/exception_handler_spec.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/extend_handler_spec.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/legacy_base_spec.rb +128 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_condition_handler_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/method_handler_spec.rb +184 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/mixin_handler_spec.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_function_handler_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/module_handler_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/private_constant_handler_spec.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/processor_spec.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/base_spec.rb +94 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/ruby/legacy/base_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/spec_helper.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/visibility_handler_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/handlers/yield_handler_spec.rb +51 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/i18n/locale_spec.rb +62 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/i18n/message_spec.rb +52 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/i18n/messages_spec.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/i18n/pot_generator_spec.rb +262 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/i18n/text_spec.rb +180 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/logging_spec.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/options_spec.rb +160 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/base_spec.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/c_parser_spec.rb +166 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/array.c.txt +3887 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/example1.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/extrafile.c.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/multifile.c.txt +6 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/override.c.txt +424 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_001.rb.txt +2 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/parse_in_order_002.rb.txt +2 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/examples/tag_handler_001.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ast_node_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/statement_list_spec.rb +299 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/legacy/token_list_spec.rb +69 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/ruby/ruby_parser_spec.rb +295 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/source_parser_spec.rb +658 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/parser/tag_parsing_spec.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/rake/yardoc_task_spec.rb +92 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/registry_spec.rb +359 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/registry_store_spec.rb +305 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/rubygems/doc_manager_spec.rb +112 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/checksums +1 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/data/serialized_yardoc/proxy_types +2 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/file_system_serializer_spec.rb +124 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/spec_helper.rb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/serializers/yardoc_serializer_spec.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/adapter_spec.rb +38 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/base_spec.rb +87 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/library_command_spec.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/commands/static_file_command_spec.rb +84 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_helper_spec.rb +51 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/doc_server_serializer_spec.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/rack_adapter_spec.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/router_spec.rb +122 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/spec_helper.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/static_caching_spec.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server/webrick_servlet_spec.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/server_spec.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/spec_helper.rb +105 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_factory_spec.rb +152 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/default_tag_spec.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/directives_spec.rb +429 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/library_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/overload_tag_spec.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/tags/ref_tag_list_spec.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/class_spec.rb +44 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/constant_spec.rb +40 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/engine_spec.rb +121 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.html +280 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class001.txt +36 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/class002.html +35 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant001.txt +25 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant002.txt +7 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/constant003.txt +11 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.html +130 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method001.txt +35 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.html +86 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method002.txt +20 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.html +159 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method003.txt +45 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.html +44 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method004.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.html +99 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/method005.txt +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.dot +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.html +791 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module001.txt +33 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module002.html +318 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module003.html +185 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/module004.html +387 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/examples/tag001.txt +82 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/base_helper_spec.rb +175 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_helper_spec.rb +586 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup/rdoc_markup_spec.rb +84 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/markup_helper_spec.rb +135 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/method_helper_spec.rb +75 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/shared_signature_examples.rb +123 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/helpers/text_helper_spec.rb +44 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/method_spec.rb +102 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/module_spec.rb +181 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/onefile_spec.rb +64 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/section_spec.rb +146 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/spec_helper.rb +72 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/tag_spec.rb +51 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/templates/template_spec.rb +409 -0
- data/vendor/bundle/gems/yard-0.8.2/spec/verifier_spec.rb +106 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/setup.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/dot/superklass.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/constructor_details.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/html/subclasses.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/setup.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/setup.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/class/text/subclasses.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/header.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/constant/text/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/abstract.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/deprecated.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/index.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/note.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/private.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/returns_void.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/text.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/html/todo.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/setup.rb +49 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/abstract.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/deprecated.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/index.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/note.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/private.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/returns_void.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/text.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/docstring/text/todo.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/common.css +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/full_list.css +57 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/css/style.css +328 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/frames.erb +28 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list.erb +39 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_class.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_file.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/full_list_method.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/app.js +214 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/full_list.js +173 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/js/jquery.js +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/fulldoc/html/setup.rb +206 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/header.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/dot/setup.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/breadcrumb.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/files.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/footer.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/headers.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/index.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/layout.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/listing.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/objects.erb +32 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/script_setup.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/search.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/layout/html/setup.rb +71 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method/html/header.erb +16 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method/text/header.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/header.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/method_signature.erb +25 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/html/source.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/setup.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/header.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/method_signature.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/method_details/text/setup.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/child.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/dependencies.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/header.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/info.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/dot/setup.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_details.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/attribute_summary.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/box_info.erb +37 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/children.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/constant_summary.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/defines.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/header.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_attributes.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_constants.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/inherited_methods.erb +19 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/item_summary.erb +40 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_details_list.erb +9 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/method_summary.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/methodmissing.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/html/pre_docstring.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/setup.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/children.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/class_meths_list.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/extends.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/header.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/includes.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/instance_meths_list.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/module/text/setup.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/files.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/layout.erb +22 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/readme.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/onefile/html/setup.rb +43 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/child.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/root/dot/setup.rb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/root/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/example.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/index.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/option.erb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/overload.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/see.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/html/tag.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/setup.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/example.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/index.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/option.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/overload.erb +19 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/see.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/default/tags/text/tag.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/class/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/docstring/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/css/style.css +93 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/js/app.js +33 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/fulldoc/html/setup.rb +54 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/layout.erb +81 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/layout/html/setup.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/header.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/method/html/setup.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/header.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/method_list.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/module/html/setup.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.2/templates/guide/tags/html/setup.rb +8 -0
- data/vendor/bundle/specifications/actionmailer-3.2.5.gemspec +33 -0
- data/vendor/bundle/specifications/actionpack-3.2.5.gemspec +57 -0
- data/vendor/bundle/specifications/activemodel-3.2.5.gemspec +32 -0
- data/vendor/bundle/specifications/activerecord-3.2.5.gemspec +41 -0
- data/vendor/bundle/specifications/activeresource-3.2.5.gemspec +35 -0
- data/vendor/bundle/specifications/activesupport-3.2.5.gemspec +33 -0
- data/vendor/bundle/specifications/multi_json-1.3.6.gemspec +40 -0
- data/vendor/bundle/specifications/rails-3.2.5.gemspec +47 -0
- data/vendor/bundle/specifications/railties-3.2.5.gemspec +47 -0
- data/vendor/bundle/specifications/thor-0.15.2.gemspec +50 -0
- data/vendor/bundle/specifications/yard-0.8.2.gemspec +28 -0
- metadata +1779 -10
@@ -0,0 +1,1054 @@
|
|
1
|
+
require 'date'
|
2
|
+
require 'action_view/helpers/tag_helper'
|
3
|
+
require 'active_support/core_ext/date/conversions'
|
4
|
+
require 'active_support/core_ext/hash/slice'
|
5
|
+
require 'active_support/core_ext/object/with_options'
|
6
|
+
|
7
|
+
module ActionView
|
8
|
+
module Helpers
|
9
|
+
# = Action View Date Helpers
|
10
|
+
#
|
11
|
+
# The Date Helper primarily creates select/option tags for different kinds of dates and times or date and time
|
12
|
+
# elements. All of the select-type methods share a number of common options that are as follows:
|
13
|
+
#
|
14
|
+
# * <tt>:prefix</tt> - overwrites the default prefix of "date" used for the select names. So specifying "birthday"
|
15
|
+
# would give birthday[month] instead of date[month] if passed to the <tt>select_month</tt> method.
|
16
|
+
# * <tt>:include_blank</tt> - set to true if it should be possible to set an empty date.
|
17
|
+
# * <tt>:discard_type</tt> - set to true if you want to discard the type part of the select name. If set to true,
|
18
|
+
# the <tt>select_month</tt> method would use simply "date" (which can be overwritten using <tt>:prefix</tt>) instead
|
19
|
+
# of "date[month]".
|
20
|
+
module DateHelper
|
21
|
+
# Reports the approximate distance in time between two Time, Date or DateTime objects or integers as seconds.
|
22
|
+
# Set <tt>include_seconds</tt> to true if you want more detailed approximations when distance < 1 min, 29 secs.
|
23
|
+
# Distances are reported based on the following table:
|
24
|
+
#
|
25
|
+
# 0 <-> 29 secs # => less than a minute
|
26
|
+
# 30 secs <-> 1 min, 29 secs # => 1 minute
|
27
|
+
# 1 min, 30 secs <-> 44 mins, 29 secs # => [2..44] minutes
|
28
|
+
# 44 mins, 30 secs <-> 89 mins, 29 secs # => about 1 hour
|
29
|
+
# 89 mins, 30 secs <-> 23 hrs, 59 mins, 29 secs # => about [2..24] hours
|
30
|
+
# 23 hrs, 59 mins, 30 secs <-> 41 hrs, 59 mins, 29 secs # => 1 day
|
31
|
+
# 41 hrs, 59 mins, 30 secs <-> 29 days, 23 hrs, 59 mins, 29 secs # => [2..29] days
|
32
|
+
# 29 days, 23 hrs, 59 mins, 30 secs <-> 59 days, 23 hrs, 59 mins, 29 secs # => about 1 month
|
33
|
+
# 59 days, 23 hrs, 59 mins, 30 secs <-> 1 yr minus 1 sec # => [2..12] months
|
34
|
+
# 1 yr <-> 1 yr, 3 months # => about 1 year
|
35
|
+
# 1 yr, 3 months <-> 1 yr, 9 months # => over 1 year
|
36
|
+
# 1 yr, 9 months <-> 2 yr minus 1 sec # => almost 2 years
|
37
|
+
# 2 yrs <-> max time or date # => (same rules as 1 yr)
|
38
|
+
#
|
39
|
+
# With <tt>include_seconds</tt> = true and the difference < 1 minute 29 seconds:
|
40
|
+
# 0-4 secs # => less than 5 seconds
|
41
|
+
# 5-9 secs # => less than 10 seconds
|
42
|
+
# 10-19 secs # => less than 20 seconds
|
43
|
+
# 20-39 secs # => half a minute
|
44
|
+
# 40-59 secs # => less than a minute
|
45
|
+
# 60-89 secs # => 1 minute
|
46
|
+
#
|
47
|
+
# ==== Examples
|
48
|
+
# from_time = Time.now
|
49
|
+
# distance_of_time_in_words(from_time, from_time + 50.minutes) # => about 1 hour
|
50
|
+
# distance_of_time_in_words(from_time, 50.minutes.from_now) # => about 1 hour
|
51
|
+
# distance_of_time_in_words(from_time, from_time + 15.seconds) # => less than a minute
|
52
|
+
# distance_of_time_in_words(from_time, from_time + 15.seconds, true) # => less than 20 seconds
|
53
|
+
# distance_of_time_in_words(from_time, 3.years.from_now) # => about 3 years
|
54
|
+
# distance_of_time_in_words(from_time, from_time + 60.hours) # => 3 days
|
55
|
+
# distance_of_time_in_words(from_time, from_time + 45.seconds, true) # => less than a minute
|
56
|
+
# distance_of_time_in_words(from_time, from_time - 45.seconds, true) # => less than a minute
|
57
|
+
# distance_of_time_in_words(from_time, 76.seconds.from_now) # => 1 minute
|
58
|
+
# distance_of_time_in_words(from_time, from_time + 1.year + 3.days) # => about 1 year
|
59
|
+
# distance_of_time_in_words(from_time, from_time + 3.years + 6.months) # => over 3 years
|
60
|
+
# distance_of_time_in_words(from_time, from_time + 4.years + 9.days + 30.minutes + 5.seconds) # => about 4 years
|
61
|
+
#
|
62
|
+
# to_time = Time.now + 6.years + 19.days
|
63
|
+
# distance_of_time_in_words(from_time, to_time, true) # => about 6 years
|
64
|
+
# distance_of_time_in_words(to_time, from_time, true) # => about 6 years
|
65
|
+
# distance_of_time_in_words(Time.now, Time.now) # => less than a minute
|
66
|
+
#
|
67
|
+
def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false, options = {})
|
68
|
+
from_time = from_time.to_time if from_time.respond_to?(:to_time)
|
69
|
+
to_time = to_time.to_time if to_time.respond_to?(:to_time)
|
70
|
+
distance_in_minutes = (((to_time - from_time).abs)/60).round
|
71
|
+
distance_in_seconds = ((to_time - from_time).abs).round
|
72
|
+
|
73
|
+
I18n.with_options :locale => options[:locale], :scope => :'datetime.distance_in_words' do |locale|
|
74
|
+
case distance_in_minutes
|
75
|
+
when 0..1
|
76
|
+
return distance_in_minutes == 0 ?
|
77
|
+
locale.t(:less_than_x_minutes, :count => 1) :
|
78
|
+
locale.t(:x_minutes, :count => distance_in_minutes) unless include_seconds
|
79
|
+
|
80
|
+
case distance_in_seconds
|
81
|
+
when 0..4 then locale.t :less_than_x_seconds, :count => 5
|
82
|
+
when 5..9 then locale.t :less_than_x_seconds, :count => 10
|
83
|
+
when 10..19 then locale.t :less_than_x_seconds, :count => 20
|
84
|
+
when 20..39 then locale.t :half_a_minute
|
85
|
+
when 40..59 then locale.t :less_than_x_minutes, :count => 1
|
86
|
+
else locale.t :x_minutes, :count => 1
|
87
|
+
end
|
88
|
+
|
89
|
+
when 2..44 then locale.t :x_minutes, :count => distance_in_minutes
|
90
|
+
when 45..89 then locale.t :about_x_hours, :count => 1
|
91
|
+
when 90..1439 then locale.t :about_x_hours, :count => (distance_in_minutes.to_f / 60.0).round
|
92
|
+
when 1440..2519 then locale.t :x_days, :count => 1
|
93
|
+
when 2520..43199 then locale.t :x_days, :count => (distance_in_minutes.to_f / 1440.0).round
|
94
|
+
when 43200..86399 then locale.t :about_x_months, :count => 1
|
95
|
+
when 86400..525599 then locale.t :x_months, :count => (distance_in_minutes.to_f / 43200.0).round
|
96
|
+
else
|
97
|
+
fyear = from_time.year
|
98
|
+
fyear += 1 if from_time.month >= 3
|
99
|
+
tyear = to_time.year
|
100
|
+
tyear -= 1 if to_time.month < 3
|
101
|
+
leap_years = (fyear > tyear) ? 0 : (fyear..tyear).count{|x| Date.leap?(x)}
|
102
|
+
minute_offset_for_leap_year = leap_years * 1440
|
103
|
+
# Discount the leap year days when calculating year distance.
|
104
|
+
# e.g. if there are 20 leap year days between 2 dates having the same day
|
105
|
+
# and month then the based on 365 days calculation
|
106
|
+
# the distance in years will come out to over 80 years when in written
|
107
|
+
# english it would read better as about 80 years.
|
108
|
+
minutes_with_offset = distance_in_minutes - minute_offset_for_leap_year
|
109
|
+
remainder = (minutes_with_offset % 525600)
|
110
|
+
distance_in_years = (minutes_with_offset / 525600)
|
111
|
+
if remainder < 131400
|
112
|
+
locale.t(:about_x_years, :count => distance_in_years)
|
113
|
+
elsif remainder < 394200
|
114
|
+
locale.t(:over_x_years, :count => distance_in_years)
|
115
|
+
else
|
116
|
+
locale.t(:almost_x_years, :count => distance_in_years + 1)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Like <tt>distance_of_time_in_words</tt>, but where <tt>to_time</tt> is fixed to <tt>Time.now</tt>.
|
123
|
+
#
|
124
|
+
# ==== Examples
|
125
|
+
# time_ago_in_words(3.minutes.from_now) # => 3 minutes
|
126
|
+
# time_ago_in_words(Time.now - 15.hours) # => about 15 hours
|
127
|
+
# time_ago_in_words(Time.now) # => less than a minute
|
128
|
+
#
|
129
|
+
# from_time = Time.now - 3.days - 14.minutes - 25.seconds
|
130
|
+
# time_ago_in_words(from_time) # => 3 days
|
131
|
+
#
|
132
|
+
def time_ago_in_words(from_time, include_seconds = false)
|
133
|
+
distance_of_time_in_words(from_time, Time.now, include_seconds)
|
134
|
+
end
|
135
|
+
|
136
|
+
alias_method :distance_of_time_in_words_to_now, :time_ago_in_words
|
137
|
+
|
138
|
+
# Returns a set of select tags (one for year, month, and day) pre-selected for accessing a specified date-based
|
139
|
+
# attribute (identified by +method+) on an object assigned to the template (identified by +object+).
|
140
|
+
#
|
141
|
+
#
|
142
|
+
# ==== Options
|
143
|
+
# * <tt>:use_month_numbers</tt> - Set to true if you want to use month numbers rather than month names (e.g.
|
144
|
+
# "2" instead of "February").
|
145
|
+
# * <tt>:use_short_month</tt> - Set to true if you want to use abbreviated month names instead of full
|
146
|
+
# month names (e.g. "Feb" instead of "February").
|
147
|
+
# * <tt>:add_month_numbers</tt> - Set to true if you want to use both month numbers and month names (e.g.
|
148
|
+
# "2 - February" instead of "February").
|
149
|
+
# * <tt>:use_month_names</tt> - Set to an array with 12 month names if you want to customize month names.
|
150
|
+
# Note: You can also use Rails' i18n functionality for this.
|
151
|
+
# * <tt>:date_separator</tt> - Specifies a string to separate the date fields. Default is "" (i.e. nothing).
|
152
|
+
# * <tt>:start_year</tt> - Set the start year for the year select. Default is <tt>Time.now.year - 5</tt>.
|
153
|
+
# * <tt>:end_year</tt> - Set the end year for the year select. Default is <tt>Time.now.year + 5</tt>.
|
154
|
+
# * <tt>:discard_day</tt> - Set to true if you don't want to show a day select. This includes the day
|
155
|
+
# as a hidden field instead of showing a select field. Also note that this implicitly sets the day to be the
|
156
|
+
# first of the given month in order to not create invalid dates like 31 February.
|
157
|
+
# * <tt>:discard_month</tt> - Set to true if you don't want to show a month select. This includes the month
|
158
|
+
# as a hidden field instead of showing a select field. Also note that this implicitly sets :discard_day to true.
|
159
|
+
# * <tt>:discard_year</tt> - Set to true if you don't want to show a year select. This includes the year
|
160
|
+
# as a hidden field instead of showing a select field.
|
161
|
+
# * <tt>:order</tt> - Set to an array containing <tt>:day</tt>, <tt>:month</tt> and <tt>:year</tt> to
|
162
|
+
# customize the order in which the select fields are shown. If you leave out any of the symbols, the respective
|
163
|
+
# select will not be shown (like when you set <tt>:discard_xxx => true</tt>. Defaults to the order defined in
|
164
|
+
# the respective locale (e.g. [:year, :month, :day] in the en locale that ships with Rails).
|
165
|
+
# * <tt>:include_blank</tt> - Include a blank option in every select field so it's possible to set empty
|
166
|
+
# dates.
|
167
|
+
# * <tt>:default</tt> - Set a default date if the affected date isn't set or is nil.
|
168
|
+
# * <tt>:disabled</tt> - Set to true if you want show the select fields as disabled.
|
169
|
+
# * <tt>:prompt</tt> - Set to true (for a generic prompt), a prompt string or a hash of prompt strings
|
170
|
+
# for <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>, <tt>:hour</tt>, <tt>:minute</tt> and <tt>:second</tt>.
|
171
|
+
# Setting this option prepends a select option with a generic prompt (Day, Month, Year, Hour, Minute, Seconds)
|
172
|
+
# or the given prompt string.
|
173
|
+
#
|
174
|
+
# If anything is passed in the +html_options+ hash it will be applied to every select tag in the set.
|
175
|
+
#
|
176
|
+
# NOTE: Discarded selects will default to 1. So if no month select is available, January will be assumed.
|
177
|
+
#
|
178
|
+
# ==== Examples
|
179
|
+
# # Generates a date select that when POSTed is stored in the article variable, in the written_on attribute.
|
180
|
+
# date_select("article", "written_on")
|
181
|
+
#
|
182
|
+
# # Generates a date select that when POSTed is stored in the article variable, in the written_on attribute,
|
183
|
+
# # with the year in the year drop down box starting at 1995.
|
184
|
+
# date_select("article", "written_on", :start_year => 1995)
|
185
|
+
#
|
186
|
+
# # Generates a date select that when POSTed is stored in the article variable, in the written_on attribute,
|
187
|
+
# # with the year in the year drop down box starting at 1995, numbers used for months instead of words,
|
188
|
+
# # and without a day select box.
|
189
|
+
# date_select("article", "written_on", :start_year => 1995, :use_month_numbers => true,
|
190
|
+
# :discard_day => true, :include_blank => true)
|
191
|
+
#
|
192
|
+
# # Generates a date select that when POSTed is stored in the article variable, in the written_on attribute
|
193
|
+
# # with the fields ordered as day, month, year rather than month, day, year.
|
194
|
+
# date_select("article", "written_on", :order => [:day, :month, :year])
|
195
|
+
#
|
196
|
+
# # Generates a date select that when POSTed is stored in the user variable, in the birthday attribute
|
197
|
+
# # lacking a year field.
|
198
|
+
# date_select("user", "birthday", :order => [:month, :day])
|
199
|
+
#
|
200
|
+
# # Generates a date select that when POSTed is stored in the article variable, in the written_on attribute
|
201
|
+
# # which is initially set to the date 3 days from the current date
|
202
|
+
# date_select("article", "written_on", :default => 3.days.from_now)
|
203
|
+
#
|
204
|
+
# # Generates a date select that when POSTed is stored in the credit_card variable, in the bill_due attribute
|
205
|
+
# # that will have a default day of 20.
|
206
|
+
# date_select("credit_card", "bill_due", :default => { :day => 20 })
|
207
|
+
#
|
208
|
+
# # Generates a date select with custom prompts.
|
209
|
+
# date_select("article", "written_on", :prompt => { :day => 'Select day', :month => 'Select month', :year => 'Select year' })
|
210
|
+
#
|
211
|
+
# The selects are prepared for multi-parameter assignment to an Active Record object.
|
212
|
+
#
|
213
|
+
# Note: If the day is not included as an option but the month is, the day will be set to the 1st to ensure that
|
214
|
+
# all month choices are valid.
|
215
|
+
def date_select(object_name, method, options = {}, html_options = {})
|
216
|
+
InstanceTag.new(object_name, method, self, options.delete(:object)).to_date_select_tag(options, html_options)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns a set of select tags (one for hour, minute and optionally second) pre-selected for accessing a
|
220
|
+
# specified time-based attribute (identified by +method+) on an object assigned to the template (identified by
|
221
|
+
# +object+). You can include the seconds with <tt>:include_seconds</tt>. You can get hours in the AM/PM format
|
222
|
+
# with <tt>:ampm</tt> option.
|
223
|
+
#
|
224
|
+
# This method will also generate 3 input hidden tags, for the actual year, month and day unless the option
|
225
|
+
# <tt>:ignore_date</tt> is set to +true+. If you set the <tt>:ignore_date</tt> to +true+, you must have a
|
226
|
+
# +date_select+ on the same method within the form otherwise an exception will be raised.
|
227
|
+
#
|
228
|
+
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
|
229
|
+
#
|
230
|
+
# ==== Examples
|
231
|
+
# # Creates a time select tag that, when POSTed, will be stored in the article variable in the sunrise attribute.
|
232
|
+
# time_select("article", "sunrise")
|
233
|
+
#
|
234
|
+
# # Creates a time select tag with a seconds field that, when POSTed, will be stored in the article variables in
|
235
|
+
# # the sunrise attribute.
|
236
|
+
# time_select("article", "start_time", :include_seconds => true)
|
237
|
+
#
|
238
|
+
# # You can set the <tt>:minute_step</tt> to 15 which will give you: 00, 15, 30 and 45.
|
239
|
+
# time_select 'game', 'game_time', {:minute_step => 15}
|
240
|
+
#
|
241
|
+
# # Creates a time select tag with a custom prompt. Use <tt>:prompt => true</tt> for generic prompts.
|
242
|
+
# time_select("article", "written_on", :prompt => {:hour => 'Choose hour', :minute => 'Choose minute', :second => 'Choose seconds'})
|
243
|
+
# time_select("article", "written_on", :prompt => {:hour => true}) # generic prompt for hours
|
244
|
+
# time_select("article", "written_on", :prompt => true) # generic prompts for all
|
245
|
+
#
|
246
|
+
# # You can set :ampm option to true which will show the hours as: 12 PM, 01 AM .. 11 PM.
|
247
|
+
# time_select 'game', 'game_time', {:ampm => true}
|
248
|
+
#
|
249
|
+
# The selects are prepared for multi-parameter assignment to an Active Record object.
|
250
|
+
#
|
251
|
+
# Note: If the day is not included as an option but the month is, the day will be set to the 1st to ensure that
|
252
|
+
# all month choices are valid.
|
253
|
+
def time_select(object_name, method, options = {}, html_options = {})
|
254
|
+
InstanceTag.new(object_name, method, self, options.delete(:object)).to_time_select_tag(options, html_options)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns a set of select tags (one for year, month, day, hour, and minute) pre-selected for accessing a
|
258
|
+
# specified datetime-based attribute (identified by +method+) on an object assigned to the template (identified
|
259
|
+
# by +object+).
|
260
|
+
#
|
261
|
+
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
|
262
|
+
#
|
263
|
+
# ==== Examples
|
264
|
+
# # Generates a datetime select that, when POSTed, will be stored in the article variable in the written_on
|
265
|
+
# # attribute.
|
266
|
+
# datetime_select("article", "written_on")
|
267
|
+
#
|
268
|
+
# # Generates a datetime select with a year select that starts at 1995 that, when POSTed, will be stored in the
|
269
|
+
# # article variable in the written_on attribute.
|
270
|
+
# datetime_select("article", "written_on", :start_year => 1995)
|
271
|
+
#
|
272
|
+
# # Generates a datetime select with a default value of 3 days from the current time that, when POSTed, will
|
273
|
+
# # be stored in the trip variable in the departing attribute.
|
274
|
+
# datetime_select("trip", "departing", :default => 3.days.from_now)
|
275
|
+
#
|
276
|
+
# # Generate a datetime select with hours in the AM/PM format
|
277
|
+
# datetime_select("article", "written_on", :ampm => true)
|
278
|
+
#
|
279
|
+
# # Generates a datetime select that discards the type that, when POSTed, will be stored in the article variable
|
280
|
+
# # as the written_on attribute.
|
281
|
+
# datetime_select("article", "written_on", :discard_type => true)
|
282
|
+
#
|
283
|
+
# # Generates a datetime select with a custom prompt. Use <tt>:prompt => true</tt> for generic prompts.
|
284
|
+
# datetime_select("article", "written_on", :prompt => {:day => 'Choose day', :month => 'Choose month', :year => 'Choose year'})
|
285
|
+
# datetime_select("article", "written_on", :prompt => {:hour => true}) # generic prompt for hours
|
286
|
+
# datetime_select("article", "written_on", :prompt => true) # generic prompts for all
|
287
|
+
#
|
288
|
+
# The selects are prepared for multi-parameter assignment to an Active Record object.
|
289
|
+
def datetime_select(object_name, method, options = {}, html_options = {})
|
290
|
+
InstanceTag.new(object_name, method, self, options.delete(:object)).to_datetime_select_tag(options, html_options)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Returns a set of html select-tags (one for year, month, day, hour, minute, and second) pre-selected with the
|
294
|
+
# +datetime+. It's also possible to explicitly set the order of the tags using the <tt>:order</tt> option with
|
295
|
+
# an array of symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order. If you do not
|
296
|
+
# supply a Symbol, it will be appended onto the <tt>:order</tt> passed in. You can also add
|
297
|
+
# <tt>:date_separator</tt>, <tt>:datetime_separator</tt> and <tt>:time_separator</tt> keys to the +options+ to
|
298
|
+
# control visual display of the elements.
|
299
|
+
#
|
300
|
+
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
|
301
|
+
#
|
302
|
+
# ==== Examples
|
303
|
+
# my_date_time = Time.now + 4.days
|
304
|
+
#
|
305
|
+
# # Generates a datetime select that defaults to the datetime in my_date_time (four days after today).
|
306
|
+
# select_datetime(my_date_time)
|
307
|
+
#
|
308
|
+
# # Generates a datetime select that defaults to today (no specified datetime)
|
309
|
+
# select_datetime()
|
310
|
+
#
|
311
|
+
# # Generates a datetime select that defaults to the datetime in my_date_time (four days after today)
|
312
|
+
# # with the fields ordered year, month, day rather than month, day, year.
|
313
|
+
# select_datetime(my_date_time, :order => [:year, :month, :day])
|
314
|
+
#
|
315
|
+
# # Generates a datetime select that defaults to the datetime in my_date_time (four days after today)
|
316
|
+
# # with a '/' between each date field.
|
317
|
+
# select_datetime(my_date_time, :date_separator => '/')
|
318
|
+
#
|
319
|
+
# # Generates a datetime select that defaults to the datetime in my_date_time (four days after today)
|
320
|
+
# # with a date fields separated by '/', time fields separated by '' and the date and time fields
|
321
|
+
# # separated by a comma (',').
|
322
|
+
# select_datetime(my_date_time, :date_separator => '/', :time_separator => '', :datetime_separator => ',')
|
323
|
+
#
|
324
|
+
# # Generates a datetime select that discards the type of the field and defaults to the datetime in
|
325
|
+
# # my_date_time (four days after today)
|
326
|
+
# select_datetime(my_date_time, :discard_type => true)
|
327
|
+
#
|
328
|
+
# # Generate a datetime field with hours in the AM/PM format
|
329
|
+
# select_datetime(my_date_time, :ampm => true)
|
330
|
+
#
|
331
|
+
# # Generates a datetime select that defaults to the datetime in my_date_time (four days after today)
|
332
|
+
# # prefixed with 'payday' rather than 'date'
|
333
|
+
# select_datetime(my_date_time, :prefix => 'payday')
|
334
|
+
#
|
335
|
+
# # Generates a datetime select with a custom prompt. Use <tt>:prompt => true</tt> for generic prompts.
|
336
|
+
# select_datetime(my_date_time, :prompt => {:day => 'Choose day', :month => 'Choose month', :year => 'Choose year'})
|
337
|
+
# select_datetime(my_date_time, :prompt => {:hour => true}) # generic prompt for hours
|
338
|
+
# select_datetime(my_date_time, :prompt => true) # generic prompts for all
|
339
|
+
#
|
340
|
+
def select_datetime(datetime = Time.current, options = {}, html_options = {})
|
341
|
+
DateTimeSelector.new(datetime, options, html_options).select_datetime
|
342
|
+
end
|
343
|
+
|
344
|
+
# Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+.
|
345
|
+
# It's possible to explicitly set the order of the tags using the <tt>:order</tt> option with an array of
|
346
|
+
# symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order.
|
347
|
+
# If the array passed to the <tt>:order</tt> option does not contain all the three symbols, all tags will be hidden.
|
348
|
+
#
|
349
|
+
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
|
350
|
+
#
|
351
|
+
# ==== Examples
|
352
|
+
# my_date = Time.now + 6.days
|
353
|
+
#
|
354
|
+
# # Generates a date select that defaults to the date in my_date (six days after today).
|
355
|
+
# select_date(my_date)
|
356
|
+
#
|
357
|
+
# # Generates a date select that defaults to today (no specified date).
|
358
|
+
# select_date()
|
359
|
+
#
|
360
|
+
# # Generates a date select that defaults to the date in my_date (six days after today)
|
361
|
+
# # with the fields ordered year, month, day rather than month, day, year.
|
362
|
+
# select_date(my_date, :order => [:year, :month, :day])
|
363
|
+
#
|
364
|
+
# # Generates a date select that discards the type of the field and defaults to the date in
|
365
|
+
# # my_date (six days after today).
|
366
|
+
# select_date(my_date, :discard_type => true)
|
367
|
+
#
|
368
|
+
# # Generates a date select that defaults to the date in my_date,
|
369
|
+
# # which has fields separated by '/'.
|
370
|
+
# select_date(my_date, :date_separator => '/')
|
371
|
+
#
|
372
|
+
# # Generates a date select that defaults to the datetime in my_date (six days after today)
|
373
|
+
# # prefixed with 'payday' rather than 'date'.
|
374
|
+
# select_date(my_date, :prefix => 'payday')
|
375
|
+
#
|
376
|
+
# # Generates a date select with a custom prompt. Use <tt>:prompt => true</tt> for generic prompts.
|
377
|
+
# select_date(my_date, :prompt => {:day => 'Choose day', :month => 'Choose month', :year => 'Choose year'})
|
378
|
+
# select_date(my_date, :prompt => {:hour => true}) # generic prompt for hours
|
379
|
+
# select_date(my_date, :prompt => true) # generic prompts for all
|
380
|
+
#
|
381
|
+
def select_date(date = Date.current, options = {}, html_options = {})
|
382
|
+
DateTimeSelector.new(date, options, html_options).select_date
|
383
|
+
end
|
384
|
+
|
385
|
+
# Returns a set of html select-tags (one for hour and minute).
|
386
|
+
# You can set <tt>:time_separator</tt> key to format the output, and
|
387
|
+
# the <tt>:include_seconds</tt> option to include an input for seconds.
|
388
|
+
#
|
389
|
+
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
|
390
|
+
#
|
391
|
+
# ==== Examples
|
392
|
+
# my_time = Time.now + 5.days + 7.hours + 3.minutes + 14.seconds
|
393
|
+
#
|
394
|
+
# # Generates a time select that defaults to the time in my_time.
|
395
|
+
# select_time(my_time)
|
396
|
+
#
|
397
|
+
# # Generates a time select that defaults to the current time (no specified time).
|
398
|
+
# select_time()
|
399
|
+
#
|
400
|
+
# # Generates a time select that defaults to the time in my_time,
|
401
|
+
# # which has fields separated by ':'.
|
402
|
+
# select_time(my_time, :time_separator => ':')
|
403
|
+
#
|
404
|
+
# # Generates a time select that defaults to the time in my_time,
|
405
|
+
# # that also includes an input for seconds.
|
406
|
+
# select_time(my_time, :include_seconds => true)
|
407
|
+
#
|
408
|
+
# # Generates a time select that defaults to the time in my_time, that has fields
|
409
|
+
# # separated by ':' and includes an input for seconds.
|
410
|
+
# select_time(my_time, :time_separator => ':', :include_seconds => true)
|
411
|
+
#
|
412
|
+
# # Generate a time select field with hours in the AM/PM format
|
413
|
+
# select_time(my_time, :ampm => true)
|
414
|
+
#
|
415
|
+
# # Generates a time select with a custom prompt. Use <tt>:prompt</tt> to true for generic prompts.
|
416
|
+
# select_time(my_time, :prompt => {:day => 'Choose day', :month => 'Choose month', :year => 'Choose year'})
|
417
|
+
# select_time(my_time, :prompt => {:hour => true}) # generic prompt for hours
|
418
|
+
# select_time(my_time, :prompt => true) # generic prompts for all
|
419
|
+
#
|
420
|
+
def select_time(datetime = Time.current, options = {}, html_options = {})
|
421
|
+
DateTimeSelector.new(datetime, options, html_options).select_time
|
422
|
+
end
|
423
|
+
|
424
|
+
# Returns a select tag with options for each of the seconds 0 through 59 with the current second selected.
|
425
|
+
# The <tt>datetime</tt> can be either a +Time+ or +DateTime+ object or an integer.
|
426
|
+
# Override the field name using the <tt>:field_name</tt> option, 'second' by default.
|
427
|
+
#
|
428
|
+
# ==== Examples
|
429
|
+
# my_time = Time.now + 16.minutes
|
430
|
+
#
|
431
|
+
# # Generates a select field for seconds that defaults to the seconds for the time in my_time.
|
432
|
+
# select_second(my_time)
|
433
|
+
#
|
434
|
+
# # Generates a select field for seconds that defaults to the number given.
|
435
|
+
# select_second(33)
|
436
|
+
#
|
437
|
+
# # Generates a select field for seconds that defaults to the seconds for the time in my_time
|
438
|
+
# # that is named 'interval' rather than 'second'.
|
439
|
+
# select_second(my_time, :field_name => 'interval')
|
440
|
+
#
|
441
|
+
# # Generates a select field for seconds with a custom prompt. Use <tt>:prompt => true</tt> for a
|
442
|
+
# # generic prompt.
|
443
|
+
# select_second(14, :prompt => 'Choose seconds')
|
444
|
+
#
|
445
|
+
def select_second(datetime, options = {}, html_options = {})
|
446
|
+
DateTimeSelector.new(datetime, options, html_options).select_second
|
447
|
+
end
|
448
|
+
|
449
|
+
# Returns a select tag with options for each of the minutes 0 through 59 with the current minute selected.
|
450
|
+
# Also can return a select tag with options by <tt>minute_step</tt> from 0 through 59 with the 00 minute
|
451
|
+
# selected. The <tt>datetime</tt> can be either a +Time+ or +DateTime+ object or an integer.
|
452
|
+
# Override the field name using the <tt>:field_name</tt> option, 'minute' by default.
|
453
|
+
#
|
454
|
+
# ==== Examples
|
455
|
+
# my_time = Time.now + 6.hours
|
456
|
+
#
|
457
|
+
# # Generates a select field for minutes that defaults to the minutes for the time in my_time.
|
458
|
+
# select_minute(my_time)
|
459
|
+
#
|
460
|
+
# # Generates a select field for minutes that defaults to the number given.
|
461
|
+
# select_minute(14)
|
462
|
+
#
|
463
|
+
# # Generates a select field for minutes that defaults to the minutes for the time in my_time
|
464
|
+
# # that is named 'moment' rather than 'minute'.
|
465
|
+
# select_minute(my_time, :field_name => 'moment')
|
466
|
+
#
|
467
|
+
# # Generates a select field for minutes with a custom prompt. Use <tt>:prompt => true</tt> for a
|
468
|
+
# # generic prompt.
|
469
|
+
# select_minute(14, :prompt => 'Choose minutes')
|
470
|
+
#
|
471
|
+
def select_minute(datetime, options = {}, html_options = {})
|
472
|
+
DateTimeSelector.new(datetime, options, html_options).select_minute
|
473
|
+
end
|
474
|
+
|
475
|
+
# Returns a select tag with options for each of the hours 0 through 23 with the current hour selected.
|
476
|
+
# The <tt>datetime</tt> can be either a +Time+ or +DateTime+ object or an integer.
|
477
|
+
# Override the field name using the <tt>:field_name</tt> option, 'hour' by default.
|
478
|
+
#
|
479
|
+
# ==== Examples
|
480
|
+
# my_time = Time.now + 6.hours
|
481
|
+
#
|
482
|
+
# # Generates a select field for hours that defaults to the hour for the time in my_time.
|
483
|
+
# select_hour(my_time)
|
484
|
+
#
|
485
|
+
# # Generates a select field for hours that defaults to the number given.
|
486
|
+
# select_hour(13)
|
487
|
+
#
|
488
|
+
# # Generates a select field for hours that defaults to the hour for the time in my_time
|
489
|
+
# # that is named 'stride' rather than 'hour'.
|
490
|
+
# select_hour(my_time, :field_name => 'stride')
|
491
|
+
#
|
492
|
+
# # Generates a select field for hours with a custom prompt. Use <tt>:prompt => true</tt> for a
|
493
|
+
# # generic prompt.
|
494
|
+
# select_hour(13, :prompt => 'Choose hour')
|
495
|
+
#
|
496
|
+
# # Generate a select field for hours in the AM/PM format
|
497
|
+
# select_hour(my_time, :ampm => true)
|
498
|
+
#
|
499
|
+
def select_hour(datetime, options = {}, html_options = {})
|
500
|
+
DateTimeSelector.new(datetime, options, html_options).select_hour
|
501
|
+
end
|
502
|
+
|
503
|
+
# Returns a select tag with options for each of the days 1 through 31 with the current day selected.
|
504
|
+
# The <tt>date</tt> can also be substituted for a day number.
|
505
|
+
# Override the field name using the <tt>:field_name</tt> option, 'day' by default.
|
506
|
+
#
|
507
|
+
# ==== Examples
|
508
|
+
# my_date = Time.now + 2.days
|
509
|
+
#
|
510
|
+
# # Generates a select field for days that defaults to the day for the date in my_date.
|
511
|
+
# select_day(my_time)
|
512
|
+
#
|
513
|
+
# # Generates a select field for days that defaults to the number given.
|
514
|
+
# select_day(5)
|
515
|
+
#
|
516
|
+
# # Generates a select field for days that defaults to the day for the date in my_date
|
517
|
+
# # that is named 'due' rather than 'day'.
|
518
|
+
# select_day(my_time, :field_name => 'due')
|
519
|
+
#
|
520
|
+
# # Generates a select field for days with a custom prompt. Use <tt>:prompt => true</tt> for a
|
521
|
+
# # generic prompt.
|
522
|
+
# select_day(5, :prompt => 'Choose day')
|
523
|
+
#
|
524
|
+
def select_day(date, options = {}, html_options = {})
|
525
|
+
DateTimeSelector.new(date, options, html_options).select_day
|
526
|
+
end
|
527
|
+
|
528
|
+
# Returns a select tag with options for each of the months January through December with the current month
|
529
|
+
# selected. The month names are presented as keys (what's shown to the user) and the month numbers (1-12) are
|
530
|
+
# used as values (what's submitted to the server). It's also possible to use month numbers for the presentation
|
531
|
+
# instead of names -- set the <tt>:use_month_numbers</tt> key in +options+ to true for this to happen. If you
|
532
|
+
# want both numbers and names, set the <tt>:add_month_numbers</tt> key in +options+ to true. If you would prefer
|
533
|
+
# to show month names as abbreviations, set the <tt>:use_short_month</tt> key in +options+ to true. If you want
|
534
|
+
# to use your own month names, set the <tt>:use_month_names</tt> key in +options+ to an array of 12 month names.
|
535
|
+
# Override the field name using the <tt>:field_name</tt> option, 'month' by default.
|
536
|
+
#
|
537
|
+
# ==== Examples
|
538
|
+
# # Generates a select field for months that defaults to the current month that
|
539
|
+
# # will use keys like "January", "March".
|
540
|
+
# select_month(Date.today)
|
541
|
+
#
|
542
|
+
# # Generates a select field for months that defaults to the current month that
|
543
|
+
# # is named "start" rather than "month".
|
544
|
+
# select_month(Date.today, :field_name => 'start')
|
545
|
+
#
|
546
|
+
# # Generates a select field for months that defaults to the current month that
|
547
|
+
# # will use keys like "1", "3".
|
548
|
+
# select_month(Date.today, :use_month_numbers => true)
|
549
|
+
#
|
550
|
+
# # Generates a select field for months that defaults to the current month that
|
551
|
+
# # will use keys like "1 - January", "3 - March".
|
552
|
+
# select_month(Date.today, :add_month_numbers => true)
|
553
|
+
#
|
554
|
+
# # Generates a select field for months that defaults to the current month that
|
555
|
+
# # will use keys like "Jan", "Mar".
|
556
|
+
# select_month(Date.today, :use_short_month => true)
|
557
|
+
#
|
558
|
+
# # Generates a select field for months that defaults to the current month that
|
559
|
+
# # will use keys like "Januar", "Marts."
|
560
|
+
# select_month(Date.today, :use_month_names => %w(Januar Februar Marts ...))
|
561
|
+
#
|
562
|
+
# # Generates a select field for months with a custom prompt. Use <tt>:prompt => true</tt> for a
|
563
|
+
# # generic prompt.
|
564
|
+
# select_month(14, :prompt => 'Choose month')
|
565
|
+
#
|
566
|
+
def select_month(date, options = {}, html_options = {})
|
567
|
+
DateTimeSelector.new(date, options, html_options).select_month
|
568
|
+
end
|
569
|
+
|
570
|
+
# Returns a select tag with options for each of the five years on each side of the current, which is selected.
|
571
|
+
# The five year radius can be changed using the <tt>:start_year</tt> and <tt>:end_year</tt> keys in the
|
572
|
+
# +options+. Both ascending and descending year lists are supported by making <tt>:start_year</tt> less than or
|
573
|
+
# greater than <tt>:end_year</tt>. The <tt>date</tt> can also be substituted for a year given as a number.
|
574
|
+
# Override the field name using the <tt>:field_name</tt> option, 'year' by default.
|
575
|
+
#
|
576
|
+
# ==== Examples
|
577
|
+
# # Generates a select field for years that defaults to the current year that
|
578
|
+
# # has ascending year values.
|
579
|
+
# select_year(Date.today, :start_year => 1992, :end_year => 2007)
|
580
|
+
#
|
581
|
+
# # Generates a select field for years that defaults to the current year that
|
582
|
+
# # is named 'birth' rather than 'year'.
|
583
|
+
# select_year(Date.today, :field_name => 'birth')
|
584
|
+
#
|
585
|
+
# # Generates a select field for years that defaults to the current year that
|
586
|
+
# # has descending year values.
|
587
|
+
# select_year(Date.today, :start_year => 2005, :end_year => 1900)
|
588
|
+
#
|
589
|
+
# # Generates a select field for years that defaults to the year 2006 that
|
590
|
+
# # has ascending year values.
|
591
|
+
# select_year(2006, :start_year => 2000, :end_year => 2010)
|
592
|
+
#
|
593
|
+
# # Generates a select field for years with a custom prompt. Use <tt>:prompt => true</tt> for a
|
594
|
+
# # generic prompt.
|
595
|
+
# select_year(14, :prompt => 'Choose year')
|
596
|
+
#
|
597
|
+
def select_year(date, options = {}, html_options = {})
|
598
|
+
DateTimeSelector.new(date, options, html_options).select_year
|
599
|
+
end
|
600
|
+
|
601
|
+
# Returns an html time tag for the given date or time.
|
602
|
+
#
|
603
|
+
# ==== Examples
|
604
|
+
# time_tag Date.today # =>
|
605
|
+
# <time datetime="2010-11-04">November 04, 2010</time>
|
606
|
+
# time_tag Time.now # =>
|
607
|
+
# <time datetime="2010-11-04T17:55:45+01:00">November 04, 2010 17:55</time>
|
608
|
+
# time_tag Date.yesterday, 'Yesterday' # =>
|
609
|
+
# <time datetime="2010-11-03">Yesterday</time>
|
610
|
+
# time_tag Date.today, :pubdate => true # =>
|
611
|
+
# <time datetime="2010-11-04" pubdate="pubdate">November 04, 2010</time>
|
612
|
+
#
|
613
|
+
def time_tag(date_or_time, *args)
|
614
|
+
options = args.extract_options!
|
615
|
+
format = options.delete(:format) || :long
|
616
|
+
content = args.first || I18n.l(date_or_time, :format => format)
|
617
|
+
datetime = date_or_time.acts_like?(:time) ? date_or_time.xmlschema : date_or_time.rfc3339
|
618
|
+
|
619
|
+
content_tag(:time, content, options.reverse_merge(:datetime => datetime))
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
class DateTimeSelector #:nodoc:
|
624
|
+
include ActionView::Helpers::TagHelper
|
625
|
+
|
626
|
+
DEFAULT_PREFIX = 'date'.freeze
|
627
|
+
POSITION = {
|
628
|
+
:year => 1, :month => 2, :day => 3, :hour => 4, :minute => 5, :second => 6
|
629
|
+
}.freeze
|
630
|
+
|
631
|
+
AMPM_TRANSLATION = Hash[
|
632
|
+
[[0, "12 AM"], [1, "01 AM"], [2, "02 AM"], [3, "03 AM"],
|
633
|
+
[4, "04 AM"], [5, "05 AM"], [6, "06 AM"], [7, "07 AM"],
|
634
|
+
[8, "08 AM"], [9, "09 AM"], [10, "10 AM"], [11, "11 AM"],
|
635
|
+
[12, "12 PM"], [13, "01 PM"], [14, "02 PM"], [15, "03 PM"],
|
636
|
+
[16, "04 PM"], [17, "05 PM"], [18, "06 PM"], [19, "07 PM"],
|
637
|
+
[20, "08 PM"], [21, "09 PM"], [22, "10 PM"], [23, "11 PM"]]
|
638
|
+
].freeze
|
639
|
+
|
640
|
+
def initialize(datetime, options = {}, html_options = {})
|
641
|
+
@options = options.dup
|
642
|
+
@html_options = html_options.dup
|
643
|
+
@datetime = datetime
|
644
|
+
@options[:datetime_separator] ||= ' — '
|
645
|
+
@options[:time_separator] ||= ' : '
|
646
|
+
end
|
647
|
+
|
648
|
+
def select_datetime
|
649
|
+
order = date_order.dup
|
650
|
+
order -= [:hour, :minute, :second]
|
651
|
+
@options[:discard_year] ||= true unless order.include?(:year)
|
652
|
+
@options[:discard_month] ||= true unless order.include?(:month)
|
653
|
+
@options[:discard_day] ||= true if @options[:discard_month] || !order.include?(:day)
|
654
|
+
@options[:discard_minute] ||= true if @options[:discard_hour]
|
655
|
+
@options[:discard_second] ||= true unless @options[:include_seconds] && !@options[:discard_minute]
|
656
|
+
|
657
|
+
# If the day is hidden and the month is visible, the day should be set to the 1st so all month choices are
|
658
|
+
# valid (otherwise it could be 31 and February wouldn't be a valid date)
|
659
|
+
if @datetime && @options[:discard_day] && !@options[:discard_month]
|
660
|
+
@datetime = @datetime.change(:day => 1)
|
661
|
+
end
|
662
|
+
|
663
|
+
if @options[:tag] && @options[:ignore_date]
|
664
|
+
select_time
|
665
|
+
else
|
666
|
+
[:day, :month, :year].each { |o| order.unshift(o) unless order.include?(o) }
|
667
|
+
order += [:hour, :minute, :second] unless @options[:discard_hour]
|
668
|
+
|
669
|
+
build_selects_from_types(order)
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
def select_date
|
674
|
+
order = date_order.dup
|
675
|
+
|
676
|
+
@options[:discard_hour] = true
|
677
|
+
@options[:discard_minute] = true
|
678
|
+
@options[:discard_second] = true
|
679
|
+
|
680
|
+
@options[:discard_year] ||= true unless order.include?(:year)
|
681
|
+
@options[:discard_month] ||= true unless order.include?(:month)
|
682
|
+
@options[:discard_day] ||= true if @options[:discard_month] || !order.include?(:day)
|
683
|
+
|
684
|
+
# If the day is hidden and the month is visible, the day should be set to the 1st so all month choices are
|
685
|
+
# valid (otherwise it could be 31 and February wouldn't be a valid date)
|
686
|
+
if @datetime && @options[:discard_day] && !@options[:discard_month]
|
687
|
+
@datetime = @datetime.change(:day => 1)
|
688
|
+
end
|
689
|
+
|
690
|
+
[:day, :month, :year].each { |o| order.unshift(o) unless order.include?(o) }
|
691
|
+
|
692
|
+
build_selects_from_types(order)
|
693
|
+
end
|
694
|
+
|
695
|
+
def select_time
|
696
|
+
order = []
|
697
|
+
|
698
|
+
@options[:discard_month] = true
|
699
|
+
@options[:discard_year] = true
|
700
|
+
@options[:discard_day] = true
|
701
|
+
@options[:discard_second] ||= true unless @options[:include_seconds]
|
702
|
+
|
703
|
+
order += [:year, :month, :day] unless @options[:ignore_date]
|
704
|
+
|
705
|
+
order += [:hour, :minute]
|
706
|
+
order << :second if @options[:include_seconds]
|
707
|
+
|
708
|
+
build_selects_from_types(order)
|
709
|
+
end
|
710
|
+
|
711
|
+
def select_second
|
712
|
+
if @options[:use_hidden] || @options[:discard_second]
|
713
|
+
build_hidden(:second, sec) if @options[:include_seconds]
|
714
|
+
else
|
715
|
+
build_options_and_select(:second, sec)
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
719
|
+
def select_minute
|
720
|
+
if @options[:use_hidden] || @options[:discard_minute]
|
721
|
+
build_hidden(:minute, min)
|
722
|
+
else
|
723
|
+
build_options_and_select(:minute, min, :step => @options[:minute_step])
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
def select_hour
|
728
|
+
if @options[:use_hidden] || @options[:discard_hour]
|
729
|
+
build_hidden(:hour, hour)
|
730
|
+
else
|
731
|
+
build_options_and_select(:hour, hour, :end => 23, :ampm => @options[:ampm])
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
735
|
+
def select_day
|
736
|
+
if @options[:use_hidden] || @options[:discard_day]
|
737
|
+
build_hidden(:day, day || 1)
|
738
|
+
else
|
739
|
+
build_options_and_select(:day, day, :start => 1, :end => 31, :leading_zeros => false, :use_two_digit_numbers => @options[:use_two_digit_numbers])
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
def select_month
|
744
|
+
if @options[:use_hidden] || @options[:discard_month]
|
745
|
+
build_hidden(:month, month || 1)
|
746
|
+
else
|
747
|
+
month_options = []
|
748
|
+
1.upto(12) do |month_number|
|
749
|
+
options = { :value => month_number }
|
750
|
+
options[:selected] = "selected" if month == month_number
|
751
|
+
month_options << content_tag(:option, month_name(month_number), options) + "\n"
|
752
|
+
end
|
753
|
+
build_select(:month, month_options.join)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
def select_year
|
758
|
+
if !@datetime || @datetime == 0
|
759
|
+
val = '1'
|
760
|
+
middle_year = Date.today.year
|
761
|
+
else
|
762
|
+
val = middle_year = year
|
763
|
+
end
|
764
|
+
|
765
|
+
if @options[:use_hidden] || @options[:discard_year]
|
766
|
+
build_hidden(:year, val)
|
767
|
+
else
|
768
|
+
options = {}
|
769
|
+
options[:start] = @options[:start_year] || middle_year - 5
|
770
|
+
options[:end] = @options[:end_year] || middle_year + 5
|
771
|
+
options[:step] = options[:start] < options[:end] ? 1 : -1
|
772
|
+
options[:leading_zeros] = false
|
773
|
+
options[:max_years_allowed] = @options[:max_years_allowed] || 1000
|
774
|
+
|
775
|
+
if (options[:end] - options[:start]).abs > options[:max_years_allowed]
|
776
|
+
raise ArgumentError, "There're too many years options to be built. Are you sure you haven't mistyped something? You can provide the :max_years_allowed parameter"
|
777
|
+
end
|
778
|
+
|
779
|
+
build_options_and_select(:year, val, options)
|
780
|
+
end
|
781
|
+
end
|
782
|
+
|
783
|
+
private
|
784
|
+
%w( sec min hour day month year ).each do |method|
|
785
|
+
define_method(method) do
|
786
|
+
@datetime.kind_of?(Numeric) ? @datetime : @datetime.send(method) if @datetime
|
787
|
+
end
|
788
|
+
end
|
789
|
+
|
790
|
+
# Returns translated month names, but also ensures that a custom month
|
791
|
+
# name array has a leading nil element.
|
792
|
+
def month_names
|
793
|
+
@month_names ||= begin
|
794
|
+
month_names = @options[:use_month_names] || translated_month_names
|
795
|
+
month_names.unshift(nil) if month_names.size < 13
|
796
|
+
month_names
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
800
|
+
# Returns translated month names.
|
801
|
+
# => [nil, "January", "February", "March",
|
802
|
+
# "April", "May", "June", "July",
|
803
|
+
# "August", "September", "October",
|
804
|
+
# "November", "December"]
|
805
|
+
#
|
806
|
+
# If <tt>:use_short_month</tt> option is set
|
807
|
+
# => [nil, "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
808
|
+
# "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
809
|
+
def translated_month_names
|
810
|
+
key = @options[:use_short_month] ? :'date.abbr_month_names' : :'date.month_names'
|
811
|
+
I18n.translate(key, :locale => @options[:locale])
|
812
|
+
end
|
813
|
+
|
814
|
+
# Lookup month name for number.
|
815
|
+
# month_name(1) => "January"
|
816
|
+
#
|
817
|
+
# If <tt>:use_month_numbers</tt> option is passed
|
818
|
+
# month_name(1) => 1
|
819
|
+
#
|
820
|
+
# If <tt>:add_month_numbers</tt> option is passed
|
821
|
+
# month_name(1) => "1 - January"
|
822
|
+
def month_name(number)
|
823
|
+
if @options[:use_month_numbers]
|
824
|
+
number
|
825
|
+
elsif @options[:use_two_digit_numbers]
|
826
|
+
sprintf "%02d", number
|
827
|
+
elsif @options[:add_month_numbers]
|
828
|
+
"#{number} - #{month_names[number]}"
|
829
|
+
else
|
830
|
+
month_names[number]
|
831
|
+
end
|
832
|
+
end
|
833
|
+
|
834
|
+
def date_order
|
835
|
+
@date_order ||= @options[:order] || translated_date_order
|
836
|
+
end
|
837
|
+
|
838
|
+
def translated_date_order
|
839
|
+
I18n.translate(:'date.order', :locale => @options[:locale]) || []
|
840
|
+
end
|
841
|
+
|
842
|
+
# Build full select tag from date type and options.
|
843
|
+
def build_options_and_select(type, selected, options = {})
|
844
|
+
build_select(type, build_options(selected, options))
|
845
|
+
end
|
846
|
+
|
847
|
+
# Build select option html from date value and options.
|
848
|
+
# build_options(15, :start => 1, :end => 31)
|
849
|
+
# => "<option value="1">1</option>
|
850
|
+
# <option value="2">2</option>
|
851
|
+
# <option value="3">3</option>..."
|
852
|
+
#
|
853
|
+
# If <tt>:step</tt> options is passed
|
854
|
+
# build_options(15, :start => 1, :end => 31, :step => 2)
|
855
|
+
# => "<option value="1">1</option>
|
856
|
+
# <option value="3">3</option>
|
857
|
+
# <option value="5">5</option>..."
|
858
|
+
def build_options(selected, options = {})
|
859
|
+
start = options.delete(:start) || 0
|
860
|
+
stop = options.delete(:end) || 59
|
861
|
+
step = options.delete(:step) || 1
|
862
|
+
options.reverse_merge!({:leading_zeros => true, :ampm => false, :use_two_digit_numbers => false})
|
863
|
+
leading_zeros = options.delete(:leading_zeros)
|
864
|
+
|
865
|
+
select_options = []
|
866
|
+
start.step(stop, step) do |i|
|
867
|
+
value = leading_zeros ? sprintf("%02d", i) : i
|
868
|
+
tag_options = { :value => value }
|
869
|
+
tag_options[:selected] = "selected" if selected == i
|
870
|
+
text = options[:use_two_digit_numbers] ? sprintf("%02d", i) : value
|
871
|
+
text = options[:ampm] ? AMPM_TRANSLATION[i] : text
|
872
|
+
select_options << content_tag(:option, text, tag_options)
|
873
|
+
end
|
874
|
+
(select_options.join("\n") + "\n").html_safe
|
875
|
+
end
|
876
|
+
|
877
|
+
# Builds select tag from date type and html select options.
|
878
|
+
# build_select(:month, "<option value="1">January</option>...")
|
879
|
+
# => "<select id="post_written_on_2i" name="post[written_on(2i)]">
|
880
|
+
# <option value="1">January</option>...
|
881
|
+
# </select>"
|
882
|
+
def build_select(type, select_options_as_html)
|
883
|
+
select_options = {
|
884
|
+
:id => input_id_from_type(type),
|
885
|
+
:name => input_name_from_type(type)
|
886
|
+
}.merge(@html_options)
|
887
|
+
select_options.merge!(:disabled => 'disabled') if @options[:disabled]
|
888
|
+
|
889
|
+
select_html = "\n"
|
890
|
+
select_html << content_tag(:option, '', :value => '') + "\n" if @options[:include_blank]
|
891
|
+
select_html << prompt_option_tag(type, @options[:prompt]) + "\n" if @options[:prompt]
|
892
|
+
select_html << select_options_as_html
|
893
|
+
|
894
|
+
(content_tag(:select, select_html.html_safe, select_options) + "\n").html_safe
|
895
|
+
end
|
896
|
+
|
897
|
+
# Builds a prompt option tag with supplied options or from default options.
|
898
|
+
# prompt_option_tag(:month, :prompt => 'Select month')
|
899
|
+
# => "<option value="">Select month</option>"
|
900
|
+
def prompt_option_tag(type, options)
|
901
|
+
prompt = case options
|
902
|
+
when Hash
|
903
|
+
default_options = {:year => false, :month => false, :day => false, :hour => false, :minute => false, :second => false}
|
904
|
+
default_options.merge!(options)[type.to_sym]
|
905
|
+
when String
|
906
|
+
options
|
907
|
+
else
|
908
|
+
I18n.translate(:"datetime.prompts.#{type}", :locale => @options[:locale])
|
909
|
+
end
|
910
|
+
|
911
|
+
prompt ? content_tag(:option, prompt, :value => '') : ''
|
912
|
+
end
|
913
|
+
|
914
|
+
# Builds hidden input tag for date part and value.
|
915
|
+
# build_hidden(:year, 2008)
|
916
|
+
# => "<input id="post_written_on_1i" name="post[written_on(1i)]" type="hidden" value="2008" />"
|
917
|
+
def build_hidden(type, value)
|
918
|
+
(tag(:input, {
|
919
|
+
:type => "hidden",
|
920
|
+
:id => input_id_from_type(type),
|
921
|
+
:name => input_name_from_type(type),
|
922
|
+
:value => value
|
923
|
+
}.merge(@html_options.slice(:disabled))) + "\n").html_safe
|
924
|
+
end
|
925
|
+
|
926
|
+
# Returns the name attribute for the input tag.
|
927
|
+
# => post[written_on(1i)]
|
928
|
+
def input_name_from_type(type)
|
929
|
+
prefix = @options[:prefix] || ActionView::Helpers::DateTimeSelector::DEFAULT_PREFIX
|
930
|
+
prefix += "[#{@options[:index]}]" if @options.has_key?(:index)
|
931
|
+
|
932
|
+
field_name = @options[:field_name] || type
|
933
|
+
if @options[:include_position]
|
934
|
+
field_name += "(#{ActionView::Helpers::DateTimeSelector::POSITION[type]}i)"
|
935
|
+
end
|
936
|
+
|
937
|
+
@options[:discard_type] ? prefix : "#{prefix}[#{field_name}]"
|
938
|
+
end
|
939
|
+
|
940
|
+
# Returns the id attribute for the input tag.
|
941
|
+
# => "post_written_on_1i"
|
942
|
+
def input_id_from_type(type)
|
943
|
+
id = input_name_from_type(type).gsub(/([\[\(])|(\]\[)/, '_').gsub(/[\]\)]/, '')
|
944
|
+
id = @options[:namespace] + '_' + id if @options[:namespace]
|
945
|
+
|
946
|
+
id
|
947
|
+
end
|
948
|
+
|
949
|
+
# Given an ordering of datetime components, create the selection HTML
|
950
|
+
# and join them with their appropriate separators.
|
951
|
+
def build_selects_from_types(order)
|
952
|
+
select = ''
|
953
|
+
first_visible = order.find { |type| !@options[:"discard_#{type}"] }
|
954
|
+
order.reverse.each do |type|
|
955
|
+
separator = separator(type) unless type == first_visible # don't add before first visible field
|
956
|
+
select.insert(0, separator.to_s + send("select_#{type}").to_s)
|
957
|
+
end
|
958
|
+
select.html_safe
|
959
|
+
end
|
960
|
+
|
961
|
+
# Returns the separator for a given datetime component.
|
962
|
+
def separator(type)
|
963
|
+
case type
|
964
|
+
when :year
|
965
|
+
@options[:discard_year] ? "" : @options[:date_separator]
|
966
|
+
when :month
|
967
|
+
@options[:discard_month] ? "" : @options[:date_separator]
|
968
|
+
when :day
|
969
|
+
@options[:discard_day] ? "" : @options[:date_separator]
|
970
|
+
when :hour
|
971
|
+
(@options[:discard_year] && @options[:discard_day]) ? "" : @options[:datetime_separator]
|
972
|
+
when :minute
|
973
|
+
@options[:discard_minute] ? "" : @options[:time_separator]
|
974
|
+
when :second
|
975
|
+
@options[:include_seconds] ? @options[:time_separator] : ""
|
976
|
+
end
|
977
|
+
end
|
978
|
+
end
|
979
|
+
|
980
|
+
module DateHelperInstanceTag
|
981
|
+
def to_date_select_tag(options = {}, html_options = {})
|
982
|
+
datetime_selector(options, html_options).select_date.html_safe
|
983
|
+
end
|
984
|
+
|
985
|
+
def to_time_select_tag(options = {}, html_options = {})
|
986
|
+
datetime_selector(options, html_options).select_time.html_safe
|
987
|
+
end
|
988
|
+
|
989
|
+
def to_datetime_select_tag(options = {}, html_options = {})
|
990
|
+
datetime_selector(options, html_options).select_datetime.html_safe
|
991
|
+
end
|
992
|
+
|
993
|
+
private
|
994
|
+
def datetime_selector(options, html_options)
|
995
|
+
datetime = value(object) || default_datetime(options)
|
996
|
+
@auto_index ||= nil
|
997
|
+
|
998
|
+
options = options.dup
|
999
|
+
options[:field_name] = @method_name
|
1000
|
+
options[:include_position] = true
|
1001
|
+
options[:prefix] ||= @object_name
|
1002
|
+
options[:index] = @auto_index if @auto_index && !options.has_key?(:index)
|
1003
|
+
|
1004
|
+
DateTimeSelector.new(datetime, options, html_options)
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def default_datetime(options)
|
1008
|
+
return if options[:include_blank] || options[:prompt]
|
1009
|
+
|
1010
|
+
case options[:default]
|
1011
|
+
when nil
|
1012
|
+
Time.current
|
1013
|
+
when Date, Time
|
1014
|
+
options[:default]
|
1015
|
+
else
|
1016
|
+
default = options[:default].dup
|
1017
|
+
|
1018
|
+
# Rename :minute and :second to :min and :sec
|
1019
|
+
default[:min] ||= default[:minute]
|
1020
|
+
default[:sec] ||= default[:second]
|
1021
|
+
|
1022
|
+
time = Time.current
|
1023
|
+
|
1024
|
+
[:year, :month, :day, :hour, :min, :sec].each do |key|
|
1025
|
+
default[key] ||= time.send(key)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
Time.utc_time(
|
1029
|
+
default[:year], default[:month], default[:day],
|
1030
|
+
default[:hour], default[:min], default[:sec]
|
1031
|
+
)
|
1032
|
+
end
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
class InstanceTag #:nodoc:
|
1037
|
+
include DateHelperInstanceTag
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
class FormBuilder
|
1041
|
+
def date_select(method, options = {}, html_options = {})
|
1042
|
+
@template.date_select(@object_name, method, objectify_options(options), html_options)
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
def time_select(method, options = {}, html_options = {})
|
1046
|
+
@template.time_select(@object_name, method, objectify_options(options), html_options)
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
def datetime_select(method, options = {}, html_options = {})
|
1050
|
+
@template.datetime_select(@object_name, method, objectify_options(options), html_options)
|
1051
|
+
end
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
end
|