├── .gitignore ├── Capfile ├── README.textile ├── Rakefile ├── app ├── controllers │ ├── accounts_controller.rb │ ├── application.rb │ ├── databs_controller.rb │ ├── environments_controller.rb │ ├── graphs_controller.rb │ ├── relations_controller.rb │ ├── rows_controller.rb │ ├── searches_controller.rb │ ├── settings_controller.rb │ ├── sqls_controller.rb │ └── tables_controller.rb ├── helpers │ ├── application_helper.rb │ ├── databs_helper.rb │ ├── environments_helper.rb │ ├── graphs_helper.rb │ ├── relations_helper.rb │ ├── rows_helper.rb │ ├── searches_helper.rb │ ├── sqls_helper.rb │ └── tables_helper.rb ├── models │ ├── base.rb │ ├── datab.rb │ ├── field.rb │ ├── foreign_key.rb │ ├── graph.rb │ ├── relation.rb │ ├── search.rb │ ├── sql.rb │ └── table.rb └── views │ ├── accounts │ └── login.html.erb │ ├── databs │ ├── index.html.erb │ └── show.html.erb │ ├── environments │ └── index.html.erb │ ├── graphs │ ├── _graph.html.erb │ ├── index.html.erb │ └── show.html.erb │ ├── layouts │ ├── _header.html.erb │ ├── _last.html.erb │ ├── accounts.html.erb │ ├── application.html.erb │ ├── database.html.erb │ └── table.html.erb │ ├── relations │ └── show.html.erb │ ├── rows │ ├── _form.html.erb │ ├── edit.html.erb │ ├── index.html.erb │ ├── new.html.erb │ └── show.html.erb │ ├── searches │ ├── _form.html.erb │ ├── edit.html.erb │ ├── new.html.erb │ └── show.html.erb │ ├── settings │ └── index.html.erb │ ├── sqls │ ├── _form.html.erb │ ├── _last_queries.html.erb │ ├── edit.html.erb │ ├── index.html.erb │ ├── new.html.erb │ └── show.html.erb │ └── tables │ ├── _browse.html.erb │ ├── _field.html.erb │ ├── _form.html.erb │ ├── _lasts.html.erb │ ├── _navigator.html.erb │ ├── _new_field.html.erb │ ├── _submenu.html.erb │ ├── _table.html.erb │ ├── browse.html.erb │ ├── edit.html.erb │ ├── new.html.erb │ └── structure.html.erb ├── config ├── boot.rb ├── database.yml.dist ├── deploy.rb ├── environment.rb ├── environments │ ├── development.rb │ ├── production.rb │ └── test.rb ├── initializers │ ├── inflections.rb │ ├── mime_types.rb │ └── new_rails_defaults.rb └── routes.rb ├── db ├── development.sqlite3 ├── schema.rb └── test.sqlite3 ├── doc └── README_FOR_APP ├── lib ├── collation.rb ├── rails_ar_initializer.rb ├── session_sized_list.rb └── tasks │ └── override.rake ├── load_error_test.rb ├── log └── empty ├── public ├── 404.html ├── 422.html ├── 500.html ├── blank_iframe.html ├── dispatch.cgi ├── dispatch.fcgi ├── dispatch.rb ├── favicon.ico ├── images │ ├── bottom-bg.png │ ├── bullet_arrow_down.png │ ├── bullet_arrow_up.png │ ├── calendar_date_select │ │ └── calendar.gif │ ├── corner-bg.png │ ├── database_lightning.png │ ├── delete.png │ ├── edit.png │ ├── email_go.png │ ├── ie_not_supported.png │ ├── link_go.png │ ├── logo-welcome.png │ ├── logo.png │ ├── rails.png │ ├── right-bg.png │ ├── screen-1.jpg │ ├── screen-1m.jpg │ ├── screen-2.jpg │ ├── screen-2m.jpg │ ├── screen-3.jpg │ ├── screen-3m.jpg │ ├── screen-4.jpg │ ├── screen-4m.jpg │ ├── screen-5.jpg │ ├── screen-5m.jpg │ ├── search.gif │ ├── table.png │ ├── table_go.png │ ├── view.png │ └── zoom │ │ ├── closebox.png │ │ ├── spacer.gif │ │ ├── zoom-caption-fill.png │ │ ├── zoom-caption-l.png │ │ ├── zoom-caption-r.png │ │ ├── zoom-shadow1.png │ │ ├── zoom-shadow2.png │ │ ├── zoom-shadow3.png │ │ ├── zoom-shadow4.png │ │ ├── zoom-shadow5.png │ │ ├── zoom-shadow6.png │ │ ├── zoom-shadow7.png │ │ ├── zoom-shadow8.png │ │ ├── zoom-spin-1.png │ │ ├── zoom-spin-10.png │ │ ├── zoom-spin-11.png │ │ ├── zoom-spin-12.png │ │ ├── zoom-spin-2.png │ │ ├── zoom-spin-3.png │ │ ├── zoom-spin-4.png │ │ ├── zoom-spin-5.png │ │ ├── zoom-spin-6.png │ │ ├── zoom-spin-7.png │ │ ├── zoom-spin-8.png │ │ └── zoom-spin-9.png ├── javascripts │ ├── FancyZoom.js │ ├── FancyZoomHTML.js │ ├── alternate_rows.js │ ├── application.js │ ├── calendar_date_select │ │ ├── calendar_date_select.js │ │ ├── format_american.js │ │ ├── format_db.js │ │ ├── format_euro_24hr.js │ │ ├── format_euro_24hr_ymd.js │ │ ├── format_finnish.js │ │ ├── format_hyphen_ampm.js │ │ ├── format_iso_date.js │ │ ├── format_italian.js │ │ └── locale │ │ │ ├── de.js │ │ │ ├── fi.js │ │ │ ├── fr.js │ │ │ ├── pl.js │ │ │ └── pt.js │ ├── controls.js │ ├── dragdrop.js │ ├── editable.js │ ├── effects.js │ ├── prototype.js │ ├── sorttable.js │ └── table_navigator.js ├── open-flash-chart.swf ├── robots.txt └── stylesheets │ ├── calendar_date_select │ ├── blue.css │ ├── default.css │ ├── plain.css │ ├── red.css │ └── silver.css │ └── sass │ ├── accounts.sass │ ├── application.sass │ ├── scaffold.sass │ ├── sqls.sass │ └── tables.sass ├── script ├── about ├── console ├── dbconsole ├── destroy ├── generate ├── performance │ ├── benchmarker │ ├── profiler │ └── request ├── plugin ├── process │ ├── inspector │ ├── reaper │ └── spawner ├── runner └── server ├── test ├── fixtures │ └── sourceforge_database_short.sql ├── functional │ ├── accounts_controller_test.rb │ ├── databs_controller_test.rb │ ├── environments_controller_test.rb │ ├── graphs_controller_test.rb │ ├── relations_controller_test.rb │ ├── rows_controller_test.rb │ ├── searches_controller_test.rb │ ├── sqls_controller_test.rb │ └── tables_controller_test.rb ├── integration │ └── connections_test.rb ├── test_helper.rb └── unit │ ├── datab_test.rb │ ├── field_test.rb │ ├── graph_test.rb │ ├── helpers │ └── application_helper_test.rb │ ├── relation_test.rb │ ├── search_test.rb │ ├── session_sized_list_test.rb │ ├── sql_test.rb │ └── table_test.rb ├── tmp └── empty └── vendor ├── plugins ├── better-edit-in-place │ ├── LICENSE │ ├── README.textile │ ├── init.rb │ ├── src │ │ └── editable.js │ └── test │ │ ├── lib │ │ ├── public │ │ │ ├── effects.js │ │ │ ├── prototype.js │ │ │ ├── test.css │ │ │ └── unittest.js │ │ └── test_server.rb │ │ └── unit │ │ └── editable_test.html ├── calendar_date_select │ ├── CHANGELOG │ ├── MIT-LICENSE │ ├── README.textile │ ├── Rakefile │ ├── init.rb │ ├── js_test │ │ ├── functional │ │ │ ├── .tmp_cds_test.html │ │ │ └── cds_test.html │ │ ├── prototype.js │ │ ├── test.css │ │ ├── unit │ │ │ └── cds_helper_methods.html │ │ └── unittest.js │ ├── lib │ │ ├── calendar_date_select.rb │ │ ├── gem_init.rb │ │ └── includes_helper.rb │ ├── public │ │ ├── blank_iframe.html │ │ ├── images │ │ │ └── calendar_date_select │ │ │ │ └── calendar.gif │ │ ├── javascripts │ │ │ └── calendar_date_select │ │ │ │ ├── calendar_date_select.js │ │ │ │ ├── format_american.js │ │ │ │ ├── format_db.js │ │ │ │ ├── format_euro_24hr.js │ │ │ │ ├── format_euro_24hr_ymd.js │ │ │ │ ├── format_finnish.js │ │ │ │ ├── format_hyphen_ampm.js │ │ │ │ ├── format_iso_date.js │ │ │ │ ├── format_italian.js │ │ │ │ └── locale │ │ │ │ ├── de.js │ │ │ │ ├── fi.js │ │ │ │ ├── fr.js │ │ │ │ ├── pl.js │ │ │ │ └── pt.js │ │ └── stylesheets │ │ │ └── calendar_date_select │ │ │ ├── blue.css │ │ │ ├── default.css │ │ │ ├── plain.css │ │ │ ├── red.css │ │ │ └── silver.css │ └── test │ │ ├── functional │ │ ├── calendar_date_select_test.rb │ │ └── helper_methods_test.rb │ │ └── test_helper.rb ├── haml │ └── init.rb ├── nested_layouts │ ├── README │ ├── Rakefile │ ├── init.rb │ ├── lib │ │ └── nested_layouts.rb │ └── test │ │ ├── fixtures │ │ ├── layouts │ │ │ ├── content_for_inner.rhtml │ │ │ ├── content_for_outer.rhtml │ │ │ ├── deep.rhtml │ │ │ ├── inline_inner.rhtml │ │ │ ├── inner.rhtml │ │ │ ├── instance_inner.rhtml │ │ │ ├── instance_outer.rhtml │ │ │ ├── outer.rhtml │ │ │ ├── shared_data_inner.rhtml │ │ │ └── shared_data_outer.rhtml │ │ └── test │ │ │ ├── content_for_passing.rhtml │ │ │ ├── deep_layout.rhtml │ │ │ ├── inline_layout.rhtml │ │ │ ├── instance_passing.rhtml │ │ │ ├── shared_data.rhtml │ │ │ └── simple.rhtml │ │ └── nested_layouts_test.rb ├── ofc │ ├── MIT-LICENSE │ ├── README │ ├── README-2.txt │ ├── Rakefile │ ├── init.rb │ ├── install.rb │ ├── lib │ │ └── open_flash_chart.rb │ ├── open-flash-chart.swf │ ├── tasks │ │ └── open_flash_chart_tasks.rake │ ├── test │ │ └── open_flash_chart_test.rb │ └── uninstall.rb ├── override_rake_task │ ├── README │ ├── init.rb │ ├── install.rb │ └── lib │ │ └── override_rake_task.rb ├── shoulda │ ├── .autotest │ ├── .gitignore │ ├── CONTRIBUTION_GUIDELINES.rdoc │ ├── MIT-LICENSE │ ├── README.rdoc │ ├── Rakefile │ ├── bin │ │ └── convert_to_should_syntax │ ├── init.rb │ ├── lib │ │ ├── shoulda.rb │ │ └── shoulda │ │ │ ├── action_mailer.rb │ │ │ ├── action_mailer │ │ │ └── assertions.rb │ │ │ ├── active_record.rb │ │ │ ├── active_record │ │ │ ├── assertions.rb │ │ │ └── macros.rb │ │ │ ├── assertions.rb │ │ │ ├── context.rb │ │ │ ├── controller.rb │ │ │ ├── controller │ │ │ ├── formats │ │ │ │ ├── html.rb │ │ │ │ └── xml.rb │ │ │ ├── helpers.rb │ │ │ ├── macros.rb │ │ │ └── resource_options.rb │ │ │ ├── helpers.rb │ │ │ ├── macros.rb │ │ │ ├── private_helpers.rb │ │ │ ├── proc_extensions.rb │ │ │ ├── rails.rb │ │ │ ├── tasks.rb │ │ │ └── tasks │ │ │ ├── list_tests.rake │ │ │ └── yaml_to_shoulda.rake │ ├── rails │ │ └── init.rb │ ├── shoulda.gemspec │ ├── tasks │ │ └── shoulda.rake │ └── test │ │ ├── README │ │ ├── fail_macros.rb │ │ ├── fixtures │ │ ├── addresses.yml │ │ ├── friendships.yml │ │ ├── posts.yml │ │ ├── products.yml │ │ ├── taggings.yml │ │ ├── tags.yml │ │ └── users.yml │ │ ├── functional │ │ ├── posts_controller_test.rb │ │ └── users_controller_test.rb │ │ ├── other │ │ ├── context_test.rb │ │ ├── convert_to_should_syntax_test.rb │ │ ├── helpers_test.rb │ │ ├── private_helpers_test.rb │ │ └── should_test.rb │ │ ├── rails_root │ │ ├── app │ │ │ ├── controllers │ │ │ │ ├── application.rb │ │ │ │ ├── posts_controller.rb │ │ │ │ └── users_controller.rb │ │ │ ├── helpers │ │ │ │ ├── application_helper.rb │ │ │ │ ├── posts_helper.rb │ │ │ │ └── users_helper.rb │ │ │ ├── models │ │ │ │ ├── address.rb │ │ │ │ ├── dog.rb │ │ │ │ ├── flea.rb │ │ │ │ ├── friendship.rb │ │ │ │ ├── post.rb │ │ │ │ ├── product.rb │ │ │ │ ├── tag.rb │ │ │ │ ├── tagging.rb │ │ │ │ └── user.rb │ │ │ └── views │ │ │ │ ├── layouts │ │ │ │ ├── posts.rhtml │ │ │ │ ├── users.rhtml │ │ │ │ └── wide.html.erb │ │ │ │ ├── posts │ │ │ │ ├── edit.rhtml │ │ │ │ ├── index.rhtml │ │ │ │ ├── new.rhtml │ │ │ │ └── show.rhtml │ │ │ │ └── users │ │ │ │ ├── edit.rhtml │ │ │ │ ├── index.rhtml │ │ │ │ ├── new.rhtml │ │ │ │ └── show.rhtml │ │ ├── config │ │ │ ├── boot.rb │ │ │ ├── database.yml │ │ │ ├── environment.rb │ │ │ ├── environments │ │ │ │ └── sqlite3.rb │ │ │ ├── initializers │ │ │ │ ├── new_rails_defaults.rb │ │ │ │ └── shoulda.rb │ │ │ └── routes.rb │ │ ├── db │ │ │ ├── migrate │ │ │ │ ├── 001_create_users.rb │ │ │ │ ├── 002_create_posts.rb │ │ │ │ ├── 003_create_taggings.rb │ │ │ │ ├── 004_create_tags.rb │ │ │ │ ├── 005_create_dogs.rb │ │ │ │ ├── 006_create_addresses.rb │ │ │ │ ├── 007_create_fleas.rb │ │ │ │ ├── 008_create_dogs_fleas.rb │ │ │ │ ├── 009_create_products.rb │ │ │ │ └── 010_create_friendships.rb │ │ │ └── schema.rb │ │ ├── log │ │ │ └── .keep │ │ ├── public │ │ │ ├── .htaccess │ │ │ ├── 404.html │ │ │ ├── 422.html │ │ │ └── 500.html │ │ ├── script │ │ │ ├── console │ │ │ └── generate │ │ └── vendor │ │ │ └── plugins │ │ │ └── .keep │ │ ├── test_helper.rb │ │ └── unit │ │ ├── address_test.rb │ │ ├── dog_test.rb │ │ ├── flea_test.rb │ │ ├── friendship_test.rb │ │ ├── post_test.rb │ │ ├── product_test.rb │ │ ├── tag_test.rb │ │ ├── tagging_test.rb │ │ └── user_test.rb └── will_paginate │ ├── .gitignore │ ├── .manifest │ ├── CHANGELOG.rdoc │ ├── LICENSE │ ├── README.rdoc │ ├── Rakefile │ ├── examples │ ├── apple-circle.gif │ ├── index.haml │ ├── index.html │ ├── pagination.css │ └── pagination.sass │ ├── init.rb │ ├── lib │ ├── will_paginate.rb │ └── will_paginate │ │ ├── array.rb │ │ ├── collection.rb │ │ ├── core_ext.rb │ │ ├── finder.rb │ │ ├── named_scope.rb │ │ ├── named_scope_patch.rb │ │ ├── version.rb │ │ └── view_helpers.rb │ ├── test │ ├── boot.rb │ ├── collection_test.rb │ ├── console │ ├── database.yml │ ├── finder_test.rb │ ├── fixtures │ │ ├── admin.rb │ │ ├── developer.rb │ │ ├── developers_projects.yml │ │ ├── project.rb │ │ ├── projects.yml │ │ ├── replies.yml │ │ ├── reply.rb │ │ ├── schema.rb │ │ ├── topic.rb │ │ ├── topics.yml │ │ ├── user.rb │ │ └── users.yml │ ├── helper.rb │ ├── lib │ │ ├── activerecord_test_case.rb │ │ ├── activerecord_test_connector.rb │ │ ├── load_fixtures.rb │ │ └── view_test_process.rb │ ├── tasks.rake │ └── view_test.rb │ └── will_paginate.gemspec └── rails ├── actionmailer ├── CHANGELOG ├── MIT-LICENSE ├── README ├── Rakefile ├── install.rb ├── lib │ ├── action_mailer.rb │ ├── action_mailer │ │ ├── adv_attr_accessor.rb │ │ ├── base.rb │ │ ├── helpers.rb │ │ ├── mail_helper.rb │ │ ├── part.rb │ │ ├── part_container.rb │ │ ├── quoting.rb │ │ ├── test_case.rb │ │ ├── test_helper.rb │ │ ├── utils.rb │ │ ├── vendor.rb │ │ ├── vendor │ │ │ ├── text-format-0.6.3 │ │ │ │ └── text │ │ │ │ │ └── format.rb │ │ │ └── tmail-1.2.3 │ │ │ │ ├── tmail.rb │ │ │ │ └── tmail │ │ │ │ ├── address.rb │ │ │ │ ├── attachments.rb │ │ │ │ ├── base64.rb │ │ │ │ ├── compat.rb │ │ │ │ ├── config.rb │ │ │ │ ├── core_extensions.rb │ │ │ │ ├── encode.rb │ │ │ │ ├── header.rb │ │ │ │ ├── index.rb │ │ │ │ ├── interface.rb │ │ │ │ ├── loader.rb │ │ │ │ ├── mail.rb │ │ │ │ ├── mailbox.rb │ │ │ │ ├── main.rb │ │ │ │ ├── mbox.rb │ │ │ │ ├── net.rb │ │ │ │ ├── obsolete.rb │ │ │ │ ├── parser.rb │ │ │ │ ├── port.rb │ │ │ │ ├── quoting.rb │ │ │ │ ├── require_arch.rb │ │ │ │ ├── scanner.rb │ │ │ │ ├── scanner_r.rb │ │ │ │ ├── stringio.rb │ │ │ │ ├── utils.rb │ │ │ │ └── version.rb │ │ └── version.rb │ └── actionmailer.rb └── test │ ├── abstract_unit.rb │ ├── delivery_method_test.rb │ ├── fixtures │ ├── first_mailer │ │ └── share.erb │ ├── helper_mailer │ │ ├── use_example_helper.erb │ │ ├── use_helper.erb │ │ ├── use_helper_method.erb │ │ └── use_mail_helper.erb │ ├── helpers │ │ └── example_helper.rb │ ├── path.with.dots │ │ └── funky_path_mailer │ │ │ └── multipart_with_template_path_with_dots.erb │ ├── raw_email │ ├── raw_email10 │ ├── raw_email12 │ ├── raw_email13 │ ├── raw_email2 │ ├── raw_email3 │ ├── raw_email4 │ ├── raw_email5 │ ├── raw_email6 │ ├── raw_email7 │ ├── raw_email8 │ ├── raw_email9 │ ├── raw_email_quoted_with_0d0a │ ├── raw_email_with_invalid_characters_in_content_type │ ├── raw_email_with_nested_attachment │ ├── raw_email_with_partially_quoted_subject │ ├── second_mailer │ │ └── share.erb │ ├── templates │ │ └── signed_up.erb │ └── test_mailer │ │ ├── _subtemplate.text.plain.erb │ │ ├── custom_templating_extension.text.html.haml │ │ ├── custom_templating_extension.text.plain.haml │ │ ├── implicitly_multipart_example.ignored.erb │ │ ├── implicitly_multipart_example.rhtml.bak │ │ ├── implicitly_multipart_example.text.html.erb │ │ ├── implicitly_multipart_example.text.plain.erb │ │ ├── implicitly_multipart_example.text.yaml.erb │ │ ├── included_subtemplate.text.plain.erb │ │ ├── rxml_template.builder │ │ ├── rxml_template.rxml │ │ ├── signed_up.erb │ │ └── signed_up_with_url.erb │ ├── mail_helper_test.rb │ ├── mail_render_test.rb │ ├── mail_service_test.rb │ ├── quoting_test.rb │ ├── test_helper_test.rb │ ├── tmail_test.rb │ └── url_test.rb ├── actionpack ├── CHANGELOG ├── MIT-LICENSE ├── README ├── RUNNING_UNIT_TESTS ├── Rakefile ├── install.rb ├── lib │ ├── action_controller.rb │ ├── action_controller │ │ ├── assertions.rb │ │ ├── assertions │ │ │ ├── dom_assertions.rb │ │ │ ├── model_assertions.rb │ │ │ ├── response_assertions.rb │ │ │ ├── routing_assertions.rb │ │ │ ├── selector_assertions.rb │ │ │ └── tag_assertions.rb │ │ ├── base.rb │ │ ├── benchmarking.rb │ │ ├── caching.rb │ │ ├── caching │ │ │ ├── actions.rb │ │ │ ├── fragments.rb │ │ │ ├── pages.rb │ │ │ ├── sql_cache.rb │ │ │ └── sweeping.rb │ │ ├── cgi_ext.rb │ │ ├── cgi_ext │ │ │ ├── cookie.rb │ │ │ ├── query_extension.rb │ │ │ ├── session.rb │ │ │ └── stdinput.rb │ │ ├── cgi_process.rb │ │ ├── components.rb │ │ ├── cookies.rb │ │ ├── dispatcher.rb │ │ ├── filters.rb │ │ ├── flash.rb │ │ ├── headers.rb │ │ ├── helpers.rb │ │ ├── http_authentication.rb │ │ ├── integration.rb │ │ ├── layout.rb │ │ ├── mime_responds.rb │ │ ├── mime_type.rb │ │ ├── mime_types.rb │ │ ├── polymorphic_routes.rb │ │ ├── record_identifier.rb │ │ ├── request.rb │ │ ├── request_forgery_protection.rb │ │ ├── request_profiler.rb │ │ ├── rescue.rb │ │ ├── resources.rb │ │ ├── response.rb │ │ ├── routing.rb │ │ ├── routing │ │ │ ├── builder.rb │ │ │ ├── optimisations.rb │ │ │ ├── recognition_optimisation.rb │ │ │ ├── route.rb │ │ │ ├── route_set.rb │ │ │ ├── routing_ext.rb │ │ │ └── segments.rb │ │ ├── session │ │ │ ├── active_record_store.rb │ │ │ ├── cookie_store.rb │ │ │ ├── drb_server.rb │ │ │ ├── drb_store.rb │ │ │ └── mem_cache_store.rb │ │ ├── session_management.rb │ │ ├── status_codes.rb │ │ ├── streaming.rb │ │ ├── templates │ │ │ └── rescues │ │ │ │ ├── _request_and_response.erb │ │ │ │ ├── _trace.erb │ │ │ │ ├── diagnostics.erb │ │ │ │ ├── layout.erb │ │ │ │ ├── missing_template.erb │ │ │ │ ├── routing_error.erb │ │ │ │ ├── template_error.erb │ │ │ │ └── unknown_action.erb │ │ ├── test_case.rb │ │ ├── test_process.rb │ │ ├── url_rewriter.rb │ │ ├── vendor │ │ │ └── html-scanner │ │ │ │ └── html │ │ │ │ ├── document.rb │ │ │ │ ├── node.rb │ │ │ │ ├── sanitizer.rb │ │ │ │ ├── selector.rb │ │ │ │ ├── tokenizer.rb │ │ │ │ └── version.rb │ │ └── verification.rb │ ├── action_pack.rb │ ├── action_pack │ │ └── version.rb │ ├── action_view.rb │ ├── action_view │ │ ├── base.rb │ │ ├── helpers │ │ │ ├── active_record_helper.rb │ │ │ ├── asset_tag_helper.rb │ │ │ ├── atom_feed_helper.rb │ │ │ ├── benchmark_helper.rb │ │ │ ├── cache_helper.rb │ │ │ ├── capture_helper.rb │ │ │ ├── date_helper.rb │ │ │ ├── debug_helper.rb │ │ │ ├── form_helper.rb │ │ │ ├── form_options_helper.rb │ │ │ ├── form_tag_helper.rb │ │ │ ├── javascript_helper.rb │ │ │ ├── javascripts │ │ │ │ ├── controls.js │ │ │ │ ├── dragdrop.js │ │ │ │ ├── effects.js │ │ │ │ └── prototype.js │ │ │ ├── number_helper.rb │ │ │ ├── prototype_helper.rb │ │ │ ├── record_identification_helper.rb │ │ │ ├── record_tag_helper.rb │ │ │ ├── sanitize_helper.rb │ │ │ ├── scriptaculous_helper.rb │ │ │ ├── tag_helper.rb │ │ │ ├── text_helper.rb │ │ │ └── url_helper.rb │ │ ├── inline_template.rb │ │ ├── partial_template.rb │ │ ├── partials.rb │ │ ├── template.rb │ │ ├── template_error.rb │ │ ├── template_finder.rb │ │ ├── template_handler.rb │ │ ├── template_handlers │ │ │ ├── builder.rb │ │ │ ├── compilable.rb │ │ │ ├── erb.rb │ │ │ └── rjs.rb │ │ └── test_case.rb │ └── actionpack.rb └── test │ ├── abstract_unit.rb │ ├── active_record_unit.rb │ ├── activerecord │ ├── active_record_store_test.rb │ └── render_partial_with_record_identification_test.rb │ ├── adv_attr_test.rb │ ├── controller │ ├── action_pack_assertions_test.rb │ ├── addresses_render_test.rb │ ├── assert_select_test.rb │ ├── base_test.rb │ ├── benchmark_test.rb │ ├── caching_test.rb │ ├── capture_test.rb │ ├── cgi_test.rb │ ├── components_test.rb │ ├── content_type_test.rb │ ├── controller_fixtures │ │ ├── app │ │ │ └── controllers │ │ │ │ ├── admin │ │ │ │ └── user_controller.rb │ │ │ │ └── user_controller.rb │ │ └── vendor │ │ │ └── plugins │ │ │ └── bad_plugin │ │ │ └── lib │ │ │ └── plugin_controller.rb │ ├── cookie_test.rb │ ├── custom_handler_test.rb │ ├── deprecation │ │ └── deprecated_base_methods_test.rb │ ├── dispatcher_test.rb │ ├── fake_controllers.rb │ ├── fake_models.rb │ ├── filter_params_test.rb │ ├── filters_test.rb │ ├── flash_test.rb │ ├── header_test.rb │ ├── helper_test.rb │ ├── html-scanner │ │ ├── document_test.rb │ │ ├── node_test.rb │ │ ├── sanitizer_test.rb │ │ ├── tag_node_test.rb │ │ ├── text_node_test.rb │ │ └── tokenizer_test.rb │ ├── http_authentication_test.rb │ ├── integration_test.rb │ ├── integration_upload_test.rb │ ├── layout_test.rb │ ├── mime_responds_test.rb │ ├── mime_type_test.rb │ ├── new_render_test.rb │ ├── polymorphic_routes_test.rb │ ├── record_identifier_test.rb │ ├── redirect_test.rb │ ├── render_test.rb │ ├── request_forgery_protection_test.rb │ ├── request_test.rb │ ├── rescue_test.rb │ ├── resources_test.rb │ ├── routing_test.rb │ ├── selector_test.rb │ ├── send_file_test.rb │ ├── session │ │ ├── cookie_store_test.rb │ │ └── mem_cache_store_test.rb │ ├── session_fixation_test.rb │ ├── session_management_test.rb │ ├── test_test.rb │ ├── url_rewriter_test.rb │ ├── verification_test.rb │ ├── view_paths_test.rb │ └── webservice_test.rb │ ├── fixtures │ ├── addresses │ │ └── list.erb │ ├── bad_customers │ │ └── _bad_customer.html.erb │ ├── companies.yml │ ├── company.rb │ ├── content_type │ │ ├── render_default_content_types_for_respond_to.rhtml │ │ ├── render_default_for_rhtml.rhtml │ │ ├── render_default_for_rjs.rjs │ │ └── render_default_for_rxml.rxml │ ├── customers │ │ └── _customer.html.erb │ ├── db_definitions │ │ └── sqlite.sql │ ├── developer.rb │ ├── developers.yml │ ├── developers_projects.yml │ ├── fun │ │ └── games │ │ │ └── hello_world.erb │ ├── functional_caching │ │ ├── _partial.erb │ │ ├── fragment_cached.html.erb │ │ ├── html_fragment_cached_with_partial.html.erb │ │ └── js_fragment_cached_with_partial.js.rjs │ ├── good_customers │ │ └── _good_customer.html.erb │ ├── helpers │ │ ├── abc_helper.rb │ │ └── fun │ │ │ ├── games_helper.rb │ │ │ └── pdf_helper.rb │ ├── layout_tests │ │ ├── alt │ │ │ └── hello.rhtml │ │ ├── layouts │ │ │ ├── controller_name_space │ │ │ │ └── nested.rhtml │ │ │ ├── item.rhtml │ │ │ ├── layout_test.rhtml │ │ │ ├── multiple_extensions.html.erb │ │ │ └── third_party_template_library.mab │ │ └── views │ │ │ └── hello.rhtml │ ├── layouts │ │ ├── block_with_layout.erb │ │ ├── builder.builder │ │ ├── partial_with_layout.erb │ │ ├── standard.erb │ │ ├── talk_from_action.erb │ │ └── yield.erb │ ├── mascot.rb │ ├── mascots.yml │ ├── mascots │ │ └── _mascot.html.erb │ ├── multipart │ │ ├── binary_file │ │ ├── boundary_problem_file │ │ ├── bracketed_param │ │ ├── large_text_file │ │ ├── mixed_files │ │ ├── mona_lisa.jpg │ │ ├── single_parameter │ │ └── text_file │ ├── override │ │ └── test │ │ │ └── hello_world.erb │ ├── override2 │ │ └── layouts │ │ │ └── test │ │ │ └── sub.erb │ ├── post_test │ │ ├── layouts │ │ │ ├── post.html.erb │ │ │ └── super_post.iphone.erb │ │ ├── post │ │ │ ├── index.html.erb │ │ │ └── index.iphone.erb │ │ └── super_post │ │ │ ├── index.html.erb │ │ │ └── index.iphone.erb │ ├── project.rb │ ├── projects.yml │ ├── public │ │ ├── 404.html │ │ ├── 500.html │ │ ├── images │ │ │ └── rails.png │ │ ├── javascripts │ │ │ ├── application.js │ │ │ ├── bank.js │ │ │ ├── controls.js │ │ │ ├── dragdrop.js │ │ │ ├── effects.js │ │ │ ├── prototype.js │ │ │ ├── robber.js │ │ │ └── version.1.0.js │ │ └── stylesheets │ │ │ ├── bank.css │ │ │ ├── robber.css │ │ │ └── version.1.0.css │ ├── replies.yml │ ├── reply.rb │ ├── respond_to │ │ ├── all_types_with_layout.html.erb │ │ ├── all_types_with_layout.js.rjs │ │ ├── custom_constant_handling_without_block.mobile.erb │ │ ├── iphone_with_html_response_type.html.erb │ │ ├── iphone_with_html_response_type.iphone.erb │ │ ├── layouts │ │ │ ├── missing.html.erb │ │ │ ├── standard.html.erb │ │ │ └── standard.iphone.erb │ │ ├── using_defaults.html.erb │ │ ├── using_defaults.js.rjs │ │ ├── using_defaults.xml.builder │ │ ├── using_defaults_with_type_list.html.erb │ │ ├── using_defaults_with_type_list.js.rjs │ │ └── using_defaults_with_type_list.xml.builder │ ├── scope │ │ └── test │ │ │ └── modgreet.erb │ ├── shared.html.erb │ ├── symlink_parent │ │ └── symlinked_layout.erb │ ├── test │ │ ├── _customer.erb │ │ ├── _customer_counter.erb │ │ ├── _customer_greeting.erb │ │ ├── _form.erb │ │ ├── _hash_greeting.erb │ │ ├── _hash_object.erb │ │ ├── _hello.builder │ │ ├── _labelling_form.erb │ │ ├── _layout_for_partial.html.erb │ │ ├── _partial.erb │ │ ├── _partial.html.erb │ │ ├── _partial.js.erb │ │ ├── _partial_for_use_in_layout.html.erb │ │ ├── _partial_only.erb │ │ ├── _person.erb │ │ ├── _raise.html.erb │ │ ├── action_talk_to_layout.erb │ │ ├── block_content_for.erb │ │ ├── calling_partial_with_layout.html.erb │ │ ├── capturing.erb │ │ ├── content_for.erb │ │ ├── content_for_concatenated.erb │ │ ├── content_for_with_parameter.erb │ │ ├── delete_with_js.rjs │ │ ├── dot.directory │ │ │ └── render_file_with_ivar.erb │ │ ├── enum_rjs_test.rjs │ │ ├── erb_content_for.erb │ │ ├── formatted_html_erb.html.erb │ │ ├── formatted_xml_erb.builder │ │ ├── formatted_xml_erb.html.erb │ │ ├── formatted_xml_erb.xml.erb │ │ ├── greeting.erb │ │ ├── greeting.js.rjs │ │ ├── hello.builder │ │ ├── hello_world.erb │ │ ├── hello_world_container.builder │ │ ├── hello_world_from_rxml.builder │ │ ├── hello_world_with_layout_false.erb │ │ ├── hello_xml_world.builder │ │ ├── list.erb │ │ ├── non_erb_block_content_for.builder │ │ ├── potential_conflicts.erb │ │ ├── render_file_from_template.html.erb │ │ ├── render_file_with_ivar.erb │ │ ├── render_file_with_locals.erb │ │ ├── render_to_string_test.erb │ │ ├── update_element_with_capture.erb │ │ └── using_layout_around_block.html.erb │ ├── topic.rb │ ├── topics.yml │ └── topics │ │ └── _topic.html.erb │ ├── template │ ├── active_record_helper_test.rb │ ├── asset_tag_helper_test.rb │ ├── atom_feed_helper_test.rb │ ├── benchmark_helper_test.rb │ ├── date_helper_test.rb │ ├── deprecated_erb_variable_test.rb │ ├── erb_util_test.rb │ ├── form_helper_test.rb │ ├── form_options_helper_test.rb │ ├── form_tag_helper_test.rb │ ├── javascript_helper_test.rb │ ├── number_helper_test.rb │ ├── prototype_helper_test.rb │ ├── record_tag_helper_test.rb │ ├── sanitize_helper_test.rb │ ├── scriptaculous_helper_test.rb │ ├── tag_helper_test.rb │ ├── template_finder_test.rb │ ├── template_object_test.rb │ ├── test_test.rb │ ├── text_helper_test.rb │ └── url_helper_test.rb │ └── testing_sandbox.rb ├── activerecord ├── CHANGELOG ├── README ├── RUNNING_UNIT_TESTS ├── Rakefile ├── examples │ └── associations.png ├── install.rb ├── lib │ ├── active_record.rb │ ├── active_record │ │ ├── aggregations.rb │ │ ├── association_preload.rb │ │ ├── associations.rb │ │ ├── associations │ │ │ ├── association_collection.rb │ │ │ ├── association_proxy.rb │ │ │ ├── belongs_to_association.rb │ │ │ ├── belongs_to_polymorphic_association.rb │ │ │ ├── has_and_belongs_to_many_association.rb │ │ │ ├── has_many_association.rb │ │ │ ├── has_many_through_association.rb │ │ │ ├── has_one_association.rb │ │ │ └── has_one_through_association.rb │ │ ├── attribute_methods.rb │ │ ├── base.rb │ │ ├── calculations.rb │ │ ├── callbacks.rb │ │ ├── connection_adapters │ │ │ ├── abstract │ │ │ │ ├── connection_specification.rb │ │ │ │ ├── database_statements.rb │ │ │ │ ├── query_cache.rb │ │ │ │ ├── quoting.rb │ │ │ │ ├── schema_definitions.rb │ │ │ │ └── schema_statements.rb │ │ │ ├── abstract_adapter.rb │ │ │ ├── mysql_adapter.rb │ │ │ ├── postgresql_adapter.rb │ │ │ ├── sqlite3_adapter.rb │ │ │ └── sqlite_adapter.rb │ │ ├── dirty.rb │ │ ├── fixtures.rb │ │ ├── locking │ │ │ ├── optimistic.rb │ │ │ └── pessimistic.rb │ │ ├── migration.rb │ │ ├── named_scope.rb │ │ ├── observer.rb │ │ ├── query_cache.rb │ │ ├── reflection.rb │ │ ├── schema.rb │ │ ├── schema_dumper.rb │ │ ├── serialization.rb │ │ ├── serializers │ │ │ ├── json_serializer.rb │ │ │ └── xml_serializer.rb │ │ ├── test_case.rb │ │ ├── timestamp.rb │ │ ├── transactions.rb │ │ ├── validations.rb │ │ ├── vendor │ │ │ └── mysql.rb │ │ └── version.rb │ └── activerecord.rb └── test │ ├── assets │ ├── example.log │ └── flowers.jpg │ ├── cases │ ├── aaa_create_tables_test.rb │ ├── active_schema_test_mysql.rb │ ├── active_schema_test_postgresql.rb │ ├── adapter_test.rb │ ├── adapter_test_sqlserver.rb │ ├── aggregations_test.rb │ ├── ar_schema_test.rb │ ├── associations │ │ ├── belongs_to_associations_test.rb │ │ ├── callbacks_test.rb │ │ ├── cascaded_eager_loading_test.rb │ │ ├── eager_load_includes_full_sti_class_test.rb │ │ ├── eager_load_nested_include_test.rb │ │ ├── eager_singularization_test.rb │ │ ├── eager_test.rb │ │ ├── extension_test.rb │ │ ├── has_and_belongs_to_many_associations_test.rb │ │ ├── has_many_associations_test.rb │ │ ├── has_many_through_associations_test.rb │ │ ├── has_one_associations_test.rb │ │ ├── has_one_through_associations_test.rb │ │ ├── inner_join_association_test.rb │ │ └── join_model_test.rb │ ├── associations_test.rb │ ├── attribute_methods_test.rb │ ├── base_test.rb │ ├── binary_test.rb │ ├── calculations_test.rb │ ├── callbacks_test.rb │ ├── class_inheritable_attributes_test.rb │ ├── column_alias_test.rb │ ├── column_definition_test.rb │ ├── connection_test_firebird.rb │ ├── connection_test_mysql.rb │ ├── copy_table_test_sqlite.rb │ ├── database_statements_test.rb │ ├── datatype_test_postgresql.rb │ ├── date_time_test.rb │ ├── default_test_firebird.rb │ ├── defaults_test.rb │ ├── deprecated_finder_test.rb │ ├── dirty_test.rb │ ├── finder_respond_to_test.rb │ ├── finder_test.rb │ ├── fixtures_test.rb │ ├── helper.rb │ ├── inheritance_test.rb │ ├── invalid_date_test.rb │ ├── json_serialization_test.rb │ ├── lifecycle_test.rb │ ├── locking_test.rb │ ├── method_scoping_test.rb │ ├── migration_test.rb │ ├── migration_test_firebird.rb │ ├── mixin_test.rb │ ├── modules_test.rb │ ├── multiple_db_test.rb │ ├── named_scope_test.rb │ ├── pk_test.rb │ ├── query_cache_test.rb │ ├── readonly_test.rb │ ├── reflection_test.rb │ ├── reserved_word_test_mysql.rb │ ├── schema_authorization_test_postgresql.rb │ ├── schema_dumper_test.rb │ ├── schema_test_postgresql.rb │ ├── serialization_test.rb │ ├── synonym_test_oracle.rb │ ├── table_name_test_sqlserver.rb │ ├── threaded_connections_test.rb │ ├── transactions_test.rb │ ├── unconnected_test.rb │ ├── validations_test.rb │ └── xml_serialization_test.rb │ ├── config.rb │ ├── connections │ ├── native_db2 │ │ └── connection.rb │ ├── native_firebird │ │ └── connection.rb │ ├── native_frontbase │ │ └── connection.rb │ ├── native_mysql │ │ └── connection.rb │ ├── native_openbase │ │ └── connection.rb │ ├── native_oracle │ │ └── connection.rb │ ├── native_postgresql │ │ └── connection.rb │ ├── native_sqlite │ │ └── connection.rb │ ├── native_sqlite3 │ │ ├── connection.rb │ │ └── in_memory_connection.rb │ └── native_sybase │ │ └── connection.rb │ ├── debug.log │ ├── fixtures │ ├── accounts.yml │ ├── all │ │ ├── developers.yml │ │ ├── people.csv │ │ └── tasks.yml │ ├── author_addresses.yml │ ├── author_favorites.yml │ ├── authors.yml │ ├── binaries.yml │ ├── books.yml │ ├── categories.yml │ ├── categories │ │ ├── special_categories.yml │ │ └── subsubdir │ │ │ └── arbitrary_filename.yml │ ├── categories_ordered.yml │ ├── categories_posts.yml │ ├── categorizations.yml │ ├── clubs.yml │ ├── comments.yml │ ├── companies.yml │ ├── computers.yml │ ├── courses.yml │ ├── customers.yml │ ├── developers.yml │ ├── developers_projects.yml │ ├── edges.yml │ ├── entrants.yml │ ├── fixture_database.sqlite3 │ ├── fixture_database_2.sqlite3 │ ├── fk_test_has_fk.yml │ ├── fk_test_has_pk.yml │ ├── funny_jokes.yml │ ├── items.yml │ ├── jobs.yml │ ├── legacy_things.yml │ ├── mateys.yml │ ├── members.yml │ ├── memberships.yml │ ├── minimalistics.yml │ ├── mixed_case_monkeys.yml │ ├── mixins.yml │ ├── movies.yml │ ├── naked │ │ ├── csv │ │ │ └── accounts.csv │ │ └── yml │ │ │ ├── accounts.yml │ │ │ ├── companies.yml │ │ │ └── courses.yml │ ├── owners.yml │ ├── parrots.yml │ ├── parrots_pirates.yml │ ├── people.yml │ ├── pets.yml │ ├── pirates.yml │ ├── posts.yml │ ├── price_estimates.yml │ ├── projects.yml │ ├── readers.yml │ ├── references.yml │ ├── reserved_words │ │ ├── distinct.yml │ │ ├── distincts_selects.yml │ │ ├── group.yml │ │ ├── select.yml │ │ └── values.yml │ ├── ships.yml │ ├── sponsors.yml │ ├── subscribers.yml │ ├── subscriptions.yml │ ├── taggings.yml │ ├── tags.yml │ ├── tasks.yml │ ├── topics.yml │ ├── treasures.yml │ ├── vertices.yml │ └── warehouse-things.yml │ ├── migrations │ ├── decimal │ │ └── 1_give_me_big_numbers.rb │ ├── duplicate │ │ ├── 1_people_have_last_names.rb │ │ ├── 2_we_need_reminders.rb │ │ ├── 3_foo.rb │ │ └── 3_innocent_jointable.rb │ ├── duplicate_names │ │ ├── 20080507052938_chunky.rb │ │ └── 20080507053028_chunky.rb │ ├── interleaved │ │ ├── pass_1 │ │ │ └── 3_innocent_jointable.rb │ │ ├── pass_2 │ │ │ ├── 1_people_have_last_names.rb │ │ │ └── 3_innocent_jointable.rb │ │ └── pass_3 │ │ │ ├── 1_people_have_last_names.rb │ │ │ ├── 2_i_raise_on_down.rb │ │ │ └── 3_innocent_jointable.rb │ ├── missing │ │ ├── 1000_people_have_middle_names.rb │ │ ├── 1_people_have_last_names.rb │ │ ├── 3_we_need_reminders.rb │ │ └── 4_innocent_jointable.rb │ └── valid │ │ ├── 1_people_have_last_names.rb │ │ ├── 2_we_need_reminders.rb │ │ └── 3_innocent_jointable.rb │ ├── models │ ├── author.rb │ ├── auto_id.rb │ ├── binary.rb │ ├── book.rb │ ├── categorization.rb │ ├── category.rb │ ├── citation.rb │ ├── club.rb │ ├── column_name.rb │ ├── comment.rb │ ├── company.rb │ ├── company_in_module.rb │ ├── computer.rb │ ├── contact.rb │ ├── course.rb │ ├── customer.rb │ ├── default.rb │ ├── developer.rb │ ├── edge.rb │ ├── entrant.rb │ ├── guid.rb │ ├── item.rb │ ├── job.rb │ ├── joke.rb │ ├── keyboard.rb │ ├── legacy_thing.rb │ ├── matey.rb │ ├── member.rb │ ├── membership.rb │ ├── minimalistic.rb │ ├── mixed_case_monkey.rb │ ├── movie.rb │ ├── order.rb │ ├── owner.rb │ ├── parrot.rb │ ├── person.rb │ ├── pet.rb │ ├── pirate.rb │ ├── post.rb │ ├── price_estimate.rb │ ├── project.rb │ ├── reader.rb │ ├── reference.rb │ ├── reply.rb │ ├── ship.rb │ ├── sponsor.rb │ ├── subject.rb │ ├── subscriber.rb │ ├── subscription.rb │ ├── tag.rb │ ├── tagging.rb │ ├── task.rb │ ├── topic.rb │ ├── treasure.rb │ ├── vertex.rb │ └── warehouse_thing.rb │ └── schema │ ├── mysql_specific_schema.rb │ ├── postgresql_specific_schema.rb │ ├── schema.rb │ ├── schema2.rb │ ├── sqlite_specific_schema.rb │ └── sqlserver_specific_schema.rb ├── activeresource ├── CHANGELOG ├── README ├── Rakefile ├── lib │ ├── active_resource.rb │ ├── active_resource │ │ ├── base.rb │ │ ├── connection.rb │ │ ├── custom_methods.rb │ │ ├── formats.rb │ │ ├── formats │ │ │ ├── json_format.rb │ │ │ └── xml_format.rb │ │ ├── http_mock.rb │ │ ├── validations.rb │ │ └── version.rb │ └── activeresource.rb └── test │ ├── abstract_unit.rb │ ├── authorization_test.rb │ ├── base │ ├── custom_methods_test.rb │ ├── equality_test.rb │ └── load_test.rb │ ├── base_errors_test.rb │ ├── base_test.rb │ ├── connection_test.rb │ ├── fixtures │ ├── beast.rb │ ├── customer.rb │ ├── person.rb │ └── street_address.rb │ ├── format_test.rb │ └── setter_trap.rb ├── activesupport ├── CHANGELOG ├── README └── lib │ ├── active_support.rb │ ├── active_support │ ├── base64.rb │ ├── basic_object.rb │ ├── buffered_logger.rb │ ├── cache.rb │ ├── cache │ │ ├── compressed_mem_cache_store.rb │ │ ├── drb_store.rb │ │ ├── file_store.rb │ │ ├── mem_cache_store.rb │ │ └── memory_store.rb │ ├── callbacks.rb │ ├── clean_logger.rb │ ├── core_ext.rb │ ├── core_ext │ │ ├── array.rb │ │ ├── array │ │ │ ├── access.rb │ │ │ ├── conversions.rb │ │ │ ├── extract_options.rb │ │ │ ├── grouping.rb │ │ │ └── random_access.rb │ │ ├── base64.rb │ │ ├── base64 │ │ │ └── encoding.rb │ │ ├── benchmark.rb │ │ ├── bigdecimal.rb │ │ ├── bigdecimal │ │ │ └── conversions.rb │ │ ├── blank.rb │ │ ├── cgi.rb │ │ ├── cgi │ │ │ └── escape_skipping_slashes.rb │ │ ├── class.rb │ │ ├── class │ │ │ ├── attribute_accessors.rb │ │ │ ├── delegating_attributes.rb │ │ │ ├── inheritable_attributes.rb │ │ │ └── removal.rb │ │ ├── date.rb │ │ ├── date │ │ │ ├── behavior.rb │ │ │ ├── calculations.rb │ │ │ └── conversions.rb │ │ ├── date_time.rb │ │ ├── date_time │ │ │ ├── calculations.rb │ │ │ └── conversions.rb │ │ ├── duplicable.rb │ │ ├── enumerable.rb │ │ ├── exception.rb │ │ ├── file.rb │ │ ├── float.rb │ │ ├── float │ │ │ └── rounding.rb │ │ ├── hash.rb │ │ ├── hash │ │ │ ├── conversions.rb │ │ │ ├── diff.rb │ │ │ ├── except.rb │ │ │ ├── indifferent_access.rb │ │ │ ├── keys.rb │ │ │ ├── reverse_merge.rb │ │ │ └── slice.rb │ │ ├── integer.rb │ │ ├── integer │ │ │ ├── even_odd.rb │ │ │ └── inflections.rb │ │ ├── kernel.rb │ │ ├── kernel │ │ │ ├── agnostics.rb │ │ │ ├── daemonizing.rb │ │ │ ├── debugger.rb │ │ │ ├── reporting.rb │ │ │ └── requires.rb │ │ ├── load_error.rb │ │ ├── logger.rb │ │ ├── module.rb │ │ ├── module │ │ │ ├── aliasing.rb │ │ │ ├── attr_accessor_with_default.rb │ │ │ ├── attr_internal.rb │ │ │ ├── attribute_accessors.rb │ │ │ ├── delegation.rb │ │ │ ├── inclusion.rb │ │ │ ├── introspection.rb │ │ │ ├── loading.rb │ │ │ └── model_naming.rb │ │ ├── name_error.rb │ │ ├── numeric.rb │ │ ├── numeric │ │ │ ├── bytes.rb │ │ │ ├── conversions.rb │ │ │ └── time.rb │ │ ├── object.rb │ │ ├── object │ │ │ ├── conversions.rb │ │ │ ├── extending.rb │ │ │ ├── instance_variables.rb │ │ │ └── misc.rb │ │ ├── pathname.rb │ │ ├── pathname │ │ │ └── clean_within.rb │ │ ├── proc.rb │ │ ├── process.rb │ │ ├── process │ │ │ └── daemon.rb │ │ ├── range.rb │ │ ├── range │ │ │ ├── blockless_step.rb │ │ │ ├── conversions.rb │ │ │ ├── include_range.rb │ │ │ └── overlaps.rb │ │ ├── rexml.rb │ │ ├── string.rb │ │ ├── string │ │ │ ├── access.rb │ │ │ ├── conversions.rb │ │ │ ├── filters.rb │ │ │ ├── inflections.rb │ │ │ ├── iterators.rb │ │ │ ├── starts_ends_with.rb │ │ │ ├── unicode.rb │ │ │ └── xchar.rb │ │ ├── symbol.rb │ │ ├── test.rb │ │ ├── test │ │ │ └── unit │ │ │ │ └── assertions.rb │ │ ├── time.rb │ │ └── time │ │ │ ├── behavior.rb │ │ │ ├── calculations.rb │ │ │ ├── conversions.rb │ │ │ └── zones.rb │ ├── dependencies.rb │ ├── deprecation.rb │ ├── duration.rb │ ├── gzip.rb │ ├── inflections.rb │ ├── inflector.rb │ ├── json.rb │ ├── json │ │ ├── decoding.rb │ │ ├── encoders │ │ │ ├── date.rb │ │ │ ├── date_time.rb │ │ │ ├── enumerable.rb │ │ │ ├── false_class.rb │ │ │ ├── hash.rb │ │ │ ├── nil_class.rb │ │ │ ├── numeric.rb │ │ │ ├── object.rb │ │ │ ├── regexp.rb │ │ │ ├── string.rb │ │ │ ├── symbol.rb │ │ │ ├── time.rb │ │ │ └── true_class.rb │ │ ├── encoding.rb │ │ └── variable.rb │ ├── multibyte.rb │ ├── multibyte │ │ ├── chars.rb │ │ ├── generators │ │ │ └── generate_tables.rb │ │ └── handlers │ │ │ ├── passthru_handler.rb │ │ │ ├── utf8_handler.rb │ │ │ └── utf8_handler_proc.rb │ ├── option_merger.rb │ ├── ordered_hash.rb │ ├── ordered_options.rb │ ├── string_inquirer.rb │ ├── test_case.rb │ ├── testing │ │ ├── default.rb │ │ └── setup_and_teardown.rb │ ├── time_with_zone.rb │ ├── values │ │ ├── time_zone.rb │ │ └── unicode_tables.dat │ ├── vendor.rb │ ├── vendor │ │ ├── builder-2.1.2 │ │ │ ├── blankslate.rb │ │ │ ├── builder.rb │ │ │ └── builder │ │ │ │ ├── blankslate.rb │ │ │ │ ├── css.rb │ │ │ │ ├── xchar.rb │ │ │ │ ├── xmlbase.rb │ │ │ │ ├── xmlevents.rb │ │ │ │ └── xmlmarkup.rb │ │ ├── memcache-client-1.5.0 │ │ │ └── memcache.rb │ │ ├── tzinfo-0.3.9 │ │ │ ├── tzinfo.rb │ │ │ └── tzinfo │ │ │ │ ├── data_timezone.rb │ │ │ │ ├── data_timezone_info.rb │ │ │ │ ├── definitions │ │ │ │ ├── Africa │ │ │ │ │ ├── Algiers.rb │ │ │ │ │ ├── Cairo.rb │ │ │ │ │ ├── Casablanca.rb │ │ │ │ │ ├── Harare.rb │ │ │ │ │ ├── Johannesburg.rb │ │ │ │ │ ├── Monrovia.rb │ │ │ │ │ └── Nairobi.rb │ │ │ │ ├── America │ │ │ │ │ ├── Argentina │ │ │ │ │ │ ├── Buenos_Aires.rb │ │ │ │ │ │ └── San_Juan.rb │ │ │ │ │ ├── Bogota.rb │ │ │ │ │ ├── Caracas.rb │ │ │ │ │ ├── Chicago.rb │ │ │ │ │ ├── Chihuahua.rb │ │ │ │ │ ├── Denver.rb │ │ │ │ │ ├── Godthab.rb │ │ │ │ │ ├── Guatemala.rb │ │ │ │ │ ├── Halifax.rb │ │ │ │ │ ├── Indiana │ │ │ │ │ │ └── Indianapolis.rb │ │ │ │ │ ├── Juneau.rb │ │ │ │ │ ├── La_Paz.rb │ │ │ │ │ ├── Lima.rb │ │ │ │ │ ├── Los_Angeles.rb │ │ │ │ │ ├── Mazatlan.rb │ │ │ │ │ ├── Mexico_City.rb │ │ │ │ │ ├── Monterrey.rb │ │ │ │ │ ├── New_York.rb │ │ │ │ │ ├── Phoenix.rb │ │ │ │ │ ├── Regina.rb │ │ │ │ │ ├── Santiago.rb │ │ │ │ │ ├── St_Johns.rb │ │ │ │ │ └── Tijuana.rb │ │ │ │ ├── Asia │ │ │ │ │ ├── Almaty.rb │ │ │ │ │ ├── Baghdad.rb │ │ │ │ │ ├── Baku.rb │ │ │ │ │ ├── Bangkok.rb │ │ │ │ │ ├── Chongqing.rb │ │ │ │ │ ├── Dhaka.rb │ │ │ │ │ ├── Hong_Kong.rb │ │ │ │ │ ├── Irkutsk.rb │ │ │ │ │ ├── Jakarta.rb │ │ │ │ │ ├── Jerusalem.rb │ │ │ │ │ ├── Kabul.rb │ │ │ │ │ ├── Kamchatka.rb │ │ │ │ │ ├── Karachi.rb │ │ │ │ │ ├── Katmandu.rb │ │ │ │ │ ├── Kolkata.rb │ │ │ │ │ ├── Krasnoyarsk.rb │ │ │ │ │ ├── Kuala_Lumpur.rb │ │ │ │ │ ├── Kuwait.rb │ │ │ │ │ ├── Magadan.rb │ │ │ │ │ ├── Muscat.rb │ │ │ │ │ ├── Novosibirsk.rb │ │ │ │ │ ├── Rangoon.rb │ │ │ │ │ ├── Riyadh.rb │ │ │ │ │ ├── Seoul.rb │ │ │ │ │ ├── Shanghai.rb │ │ │ │ │ ├── Singapore.rb │ │ │ │ │ ├── Taipei.rb │ │ │ │ │ ├── Tashkent.rb │ │ │ │ │ ├── Tbilisi.rb │ │ │ │ │ ├── Tehran.rb │ │ │ │ │ ├── Tokyo.rb │ │ │ │ │ ├── Ulaanbaatar.rb │ │ │ │ │ ├── Urumqi.rb │ │ │ │ │ ├── Vladivostok.rb │ │ │ │ │ ├── Yakutsk.rb │ │ │ │ │ ├── Yekaterinburg.rb │ │ │ │ │ └── Yerevan.rb │ │ │ │ ├── Atlantic │ │ │ │ │ ├── Azores.rb │ │ │ │ │ ├── Cape_Verde.rb │ │ │ │ │ └── South_Georgia.rb │ │ │ │ ├── Australia │ │ │ │ │ ├── Adelaide.rb │ │ │ │ │ ├── Brisbane.rb │ │ │ │ │ ├── Darwin.rb │ │ │ │ │ ├── Hobart.rb │ │ │ │ │ ├── Melbourne.rb │ │ │ │ │ ├── Perth.rb │ │ │ │ │ └── Sydney.rb │ │ │ │ ├── Etc │ │ │ │ │ └── UTC.rb │ │ │ │ ├── Europe │ │ │ │ │ ├── Amsterdam.rb │ │ │ │ │ ├── Athens.rb │ │ │ │ │ ├── Belgrade.rb │ │ │ │ │ ├── Berlin.rb │ │ │ │ │ ├── Bratislava.rb │ │ │ │ │ ├── Brussels.rb │ │ │ │ │ ├── Bucharest.rb │ │ │ │ │ ├── Budapest.rb │ │ │ │ │ ├── Copenhagen.rb │ │ │ │ │ ├── Dublin.rb │ │ │ │ │ ├── Helsinki.rb │ │ │ │ │ ├── Istanbul.rb │ │ │ │ │ ├── Kiev.rb │ │ │ │ │ ├── Lisbon.rb │ │ │ │ │ ├── Ljubljana.rb │ │ │ │ │ ├── London.rb │ │ │ │ │ ├── Madrid.rb │ │ │ │ │ ├── Minsk.rb │ │ │ │ │ ├── Moscow.rb │ │ │ │ │ ├── Paris.rb │ │ │ │ │ ├── Prague.rb │ │ │ │ │ ├── Riga.rb │ │ │ │ │ ├── Rome.rb │ │ │ │ │ ├── Sarajevo.rb │ │ │ │ │ ├── Skopje.rb │ │ │ │ │ ├── Sofia.rb │ │ │ │ │ ├── Stockholm.rb │ │ │ │ │ ├── Tallinn.rb │ │ │ │ │ ├── Vienna.rb │ │ │ │ │ ├── Vilnius.rb │ │ │ │ │ ├── Warsaw.rb │ │ │ │ │ └── Zagreb.rb │ │ │ │ └── Pacific │ │ │ │ │ ├── Auckland.rb │ │ │ │ │ ├── Fiji.rb │ │ │ │ │ ├── Guam.rb │ │ │ │ │ ├── Honolulu.rb │ │ │ │ │ ├── Majuro.rb │ │ │ │ │ ├── Midway.rb │ │ │ │ │ ├── Noumea.rb │ │ │ │ │ ├── Pago_Pago.rb │ │ │ │ │ ├── Port_Moresby.rb │ │ │ │ │ └── Tongatapu.rb │ │ │ │ ├── info_timezone.rb │ │ │ │ ├── linked_timezone.rb │ │ │ │ ├── linked_timezone_info.rb │ │ │ │ ├── offset_rationals.rb │ │ │ │ ├── time_or_datetime.rb │ │ │ │ ├── timezone.rb │ │ │ │ ├── timezone_definition.rb │ │ │ │ ├── timezone_info.rb │ │ │ │ ├── timezone_offset_info.rb │ │ │ │ ├── timezone_period.rb │ │ │ │ └── timezone_transition_info.rb │ │ └── xml-simple-1.0.11 │ │ │ └── xmlsimple.rb │ ├── version.rb │ └── whiny_nil.rb │ └── activesupport.rb └── railties ├── CHANGELOG ├── MIT-LICENSE ├── README ├── Rakefile ├── bin ├── about ├── console ├── dbconsole ├── destroy ├── generate ├── performance │ ├── benchmarker │ ├── profiler │ └── request ├── plugin ├── process │ ├── inspector │ ├── reaper │ └── spawner ├── rails ├── runner └── server ├── builtin └── rails_info │ ├── rails │ ├── info.rb │ ├── info_controller.rb │ └── info_helper.rb │ └── rails_info_controller.rb ├── configs ├── apache.conf ├── databases │ ├── frontbase.yml │ ├── mysql.yml │ ├── oracle.yml │ ├── postgresql.yml │ ├── sqlite2.yml │ └── sqlite3.yml ├── empty.log ├── initializers │ ├── inflections.rb │ ├── mime_types.rb │ └── new_rails_defaults.rb ├── lighttpd.conf └── routes.rb ├── dispatches ├── dispatch.fcgi ├── dispatch.rb └── gateway.cgi ├── doc └── README_FOR_APP ├── environments ├── boot.rb ├── development.rb ├── environment.rb ├── production.rb └── test.rb ├── fresh_rakefile ├── helpers ├── application.rb ├── application_helper.rb └── test_helper.rb ├── html ├── 404.html ├── 422.html ├── 500.html ├── favicon.ico ├── images │ └── rails.png ├── index.html ├── javascripts │ ├── application.js │ ├── controls.js │ ├── dragdrop.js │ ├── effects.js │ └── prototype.js └── robots.txt └── lib ├── code_statistics.rb ├── commands.rb ├── commands ├── about.rb ├── console.rb ├── dbconsole.rb ├── destroy.rb ├── generate.rb ├── ncgi │ ├── listener │ └── tracker ├── performance │ ├── benchmarker.rb │ ├── profiler.rb │ └── request.rb ├── plugin.rb ├── process │ ├── inspector.rb │ ├── reaper.rb │ ├── spawner.rb │ └── spinner.rb ├── runner.rb ├── server.rb ├── servers │ ├── base.rb │ ├── lighttpd.rb │ ├── mongrel.rb │ ├── new_mongrel.rb │ └── webrick.rb └── update.rb ├── console_app.rb ├── console_sandbox.rb ├── console_with_helpers.rb ├── dispatcher.rb ├── fcgi_handler.rb ├── initializer.rb ├── rails ├── gem_builder.rb ├── gem_dependency.rb ├── mongrel_server │ ├── commands.rb │ └── handler.rb ├── plugin.rb ├── plugin │ ├── loader.rb │ └── locator.rb └── version.rb ├── rails_generator.rb ├── rails_generator ├── base.rb ├── commands.rb ├── generated_attribute.rb ├── generators │ ├── applications │ │ └── app │ │ │ ├── USAGE │ │ │ └── app_generator.rb │ └── components │ │ ├── controller │ │ ├── USAGE │ │ ├── controller_generator.rb │ │ └── templates │ │ │ ├── controller.rb │ │ │ ├── functional_test.rb │ │ │ ├── helper.rb │ │ │ └── view.html.erb │ │ ├── integration_test │ │ ├── USAGE │ │ ├── integration_test_generator.rb │ │ └── templates │ │ │ └── integration_test.rb │ │ ├── mailer │ │ ├── USAGE │ │ ├── mailer_generator.rb │ │ └── templates │ │ │ ├── fixture.erb │ │ │ ├── fixture.rhtml │ │ │ ├── mailer.rb │ │ │ ├── unit_test.rb │ │ │ ├── view.erb │ │ │ └── view.rhtml │ │ ├── migration │ │ ├── USAGE │ │ ├── migration_generator.rb │ │ └── templates │ │ │ └── migration.rb │ │ ├── model │ │ ├── USAGE │ │ ├── model_generator.rb │ │ └── templates │ │ │ ├── fixtures.yml │ │ │ ├── migration.rb │ │ │ ├── model.rb │ │ │ └── unit_test.rb │ │ ├── observer │ │ ├── USAGE │ │ ├── observer_generator.rb │ │ └── templates │ │ │ ├── observer.rb │ │ │ └── unit_test.rb │ │ ├── plugin │ │ ├── USAGE │ │ ├── plugin_generator.rb │ │ └── templates │ │ │ ├── MIT-LICENSE │ │ │ ├── README │ │ │ ├── Rakefile │ │ │ ├── USAGE │ │ │ ├── generator.rb │ │ │ ├── init.rb │ │ │ ├── install.rb │ │ │ ├── plugin.rb │ │ │ ├── tasks.rake │ │ │ ├── uninstall.rb │ │ │ └── unit_test.rb │ │ ├── resource │ │ ├── USAGE │ │ ├── resource_generator.rb │ │ └── templates │ │ │ ├── controller.rb │ │ │ ├── functional_test.rb │ │ │ └── helper.rb │ │ ├── scaffold │ │ ├── USAGE │ │ ├── scaffold_generator.rb │ │ └── templates │ │ │ ├── controller.rb │ │ │ ├── functional_test.rb │ │ │ ├── helper.rb │ │ │ ├── layout.html.erb │ │ │ ├── style.css │ │ │ ├── view_edit.html.erb │ │ │ ├── view_index.html.erb │ │ │ ├── view_new.html.erb │ │ │ └── view_show.html.erb │ │ └── session_migration │ │ ├── USAGE │ │ ├── session_migration_generator.rb │ │ └── templates │ │ └── migration.rb ├── lookup.rb ├── manifest.rb ├── options.rb ├── scripts.rb ├── scripts │ ├── destroy.rb │ ├── generate.rb │ └── update.rb ├── secret_key_generator.rb ├── simple_logger.rb └── spec.rb ├── railties_path.rb ├── ruby_version_check.rb ├── rubyprof_ext.rb ├── source_annotation_extractor.rb ├── tasks ├── annotations.rake ├── databases.rake ├── documentation.rake ├── framework.rake ├── gems.rake ├── log.rake ├── misc.rake ├── rails.rb ├── routes.rake ├── statistics.rake ├── testing.rake └── tmp.rake ├── test_help.rb └── webrick_server.rb /.gitignore: -------------------------------------------------------------------------------- 1 | log/* 2 | tmp/* 3 | config/database.yml 4 | public/stylesheets/*.css 5 | -------------------------------------------------------------------------------- /Capfile: -------------------------------------------------------------------------------- 1 | load 'deploy' if respond_to?(:namespace) # cap2 differentiator 2 | load 'config/deploy' -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require(File.join(File.dirname(__FILE__), 'config', 'boot')) 5 | 6 | require "#{RAILS_ROOT}/vendor/plugins/override_rake_task/lib/override_rake_task.rb" 7 | 8 | require 'rake' 9 | require 'rake/testtask' 10 | require 'rake/rdoctask' 11 | 12 | require 'tasks/rails' 13 | -------------------------------------------------------------------------------- /app/controllers/environments_controller.rb: -------------------------------------------------------------------------------- 1 | class EnvironmentsController < ApplicationController 2 | 3 | def index 4 | @environments = ActiveRecord::Base.connection.execute("SHOW VARIABLES") 5 | end 6 | 7 | end 8 | -------------------------------------------------------------------------------- /app/controllers/settings_controller.rb: -------------------------------------------------------------------------------- 1 | class SettingsController < ApplicationController 2 | 3 | def index 4 | @title = 'Settings' 5 | end 6 | 7 | end 8 | -------------------------------------------------------------------------------- /app/helpers/databs_helper.rb: -------------------------------------------------------------------------------- 1 | module DatabsHelper 2 | 3 | def table_icon table 4 | icon = if table.view? 5 | 'view' 6 | else 7 | 'table' 8 | end 9 | image_tag "#{icon}.png" 10 | end 11 | 12 | end 13 | -------------------------------------------------------------------------------- /app/helpers/environments_helper.rb: -------------------------------------------------------------------------------- 1 | module EnvironmentsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/graphs_helper.rb: -------------------------------------------------------------------------------- 1 | module GraphsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/relations_helper.rb: -------------------------------------------------------------------------------- 1 | module RelationsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/searches_helper.rb: -------------------------------------------------------------------------------- 1 | module SearchesHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/helpers/sqls_helper.rb: -------------------------------------------------------------------------------- 1 | module SqlsHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/models/foreign_key.rb: -------------------------------------------------------------------------------- 1 | class ForeignKey 2 | 3 | attr_reader :source, :dest 4 | 5 | def initialize(source, dest) 6 | @source = source 7 | @dest = dest 8 | end 9 | 10 | def method_missing(method, *args) 11 | source.send(method, *args) 12 | end 13 | 14 | end -------------------------------------------------------------------------------- /app/views/environments/index.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = 'Environment' %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | <% @environments.each do |env| %> 12 | 13 | 14 | 15 | 16 | <% end %> 17 | 18 |
VariableValue
<%= env[0] %><%= env[1] %>
-------------------------------------------------------------------------------- /app/views/graphs/_graph.html.erb: -------------------------------------------------------------------------------- 1 | <%= OpenFlashChart.swf_object width, height, 2 | datab_table_graph_path(table.db, table, graph.name, :type => type) %> 3 | -------------------------------------------------------------------------------- /app/views/layouts/_last.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <%= render(:partial => "/sqls/last_queries", :object => last_queries) if last_queries %> 3 | <%= render(:partial => "/tables/lasts", :object => last_tables) if last_tables %> 4 |

System

5 | 9 |
10 | -------------------------------------------------------------------------------- /app/views/layouts/database.html.erb: -------------------------------------------------------------------------------- 1 | <% inside_layout 'application' do %> 2 | <%= render :partial => '/tables/navigator' %> 3 | <%= yield %> 4 | <% end %> 5 | -------------------------------------------------------------------------------- /app/views/layouts/table.html.erb: -------------------------------------------------------------------------------- 1 | <% inside_layout 'database' do %> 2 | <%= render :partial => "/tables/submenu" %> 3 | <%= yield %> 4 | <% end %> 5 | -------------------------------------------------------------------------------- /app/views/relations/show.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = @table.name %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/views/rows/edit.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Edit #{@row.class.to_s.split('::').last} id = #{params[:id]}" %> 2 | 3 | <%= render :partial => "/rows/form", :locals => {:button_text => "Edit"} %> 4 | 5 | <%= link_to 'Back', datab_table_path(@datab, @table) %> 6 | -------------------------------------------------------------------------------- /app/views/rows/new.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Insert a #{@row.class.to_s.split('::').last}" %> 2 | 3 | <%= render :partial => "/rows/form", :locals => {:button_text => "Create"} %> 4 | 5 | <%= link_to 'Back', datab_table_path(@datab, @table) %> 6 | <%= render :partial => 'tables/navigator' %> 7 | -------------------------------------------------------------------------------- /app/views/rows/show.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = @table.name + " id = " + params[:id] %> 2 | 3 | <%= render :partial => "/tables/browse", :locals => { 4 | :columns => @table.columns, 5 | :rows => @rows 6 | } %> 7 | -------------------------------------------------------------------------------- /app/views/searches/edit.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Modify search" %> 2 | 3 | <%= render :partial => "/tables/submenu" %> 4 | 5 | <%= render :partial => "/searches/form", :locals => {:button_text => "Modify"} %> 6 | 7 | <%= link_to 'Show', [@datab, @table, @search] %> | 8 | <%= link_to 'Back', datab_table_searches_path %> 9 | -------------------------------------------------------------------------------- /app/views/searches/new.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "New search" %> 2 | 3 | <%= render :partial => "/tables/submenu" %> 4 | 5 | <%= render :partial => "/searches/form", :locals => {:button_text => "Search"} %> 6 | 7 | <%= render :partial => "tables/navigator" %> -------------------------------------------------------------------------------- /app/views/searches/show.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = @conditions.inspect %> 2 | 3 | <%= render :partial => "/tables/submenu" %> 4 | 5 | <%= render :partial => "/tables/browse", :locals => { 6 | :columns => @table.columns, 7 | :rows => @rows 8 | } %> 9 | 10 | <%= link_to 'Edit', edit_datab_table_search_path(@datab, @table, params[:id]) %> | 11 | <%= link_to 'Back', datab_table_searches_path(@datab, @table) %> 12 | -------------------------------------------------------------------------------- /app/views/settings/index.html.erb: -------------------------------------------------------------------------------- 1 |

Sorry, The settings are not implemented yet.

2 |

They will allow a user to set some preferences like hiding and ordering fields on tables. These settings will be saved in YAML so there still will be no need for an rbDB database.

-------------------------------------------------------------------------------- /app/views/sqls/edit.html.erb: -------------------------------------------------------------------------------- 1 |

Editing sql

2 | 3 | <%= render :partial => "/sqls/form", :locals => {:button_text => "Update"} %> 4 | 5 | <%= link_to 'Show', @sql %> | 6 | <%= link_to 'Back', datab_sqls_path %> 7 | -------------------------------------------------------------------------------- /app/views/sqls/new.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = 'Custom Requests' %> 2 | <%= render :partial => "/sqls/form", :locals => { 3 | :button_text => "Execute" 4 | } %> 5 | 6 | <%= link_to 'Back', datab_sqls_path %> 7 | -------------------------------------------------------------------------------- /app/views/sqls/show.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = 'Custom SQL query'%> 2 | <% orginal_sql_id = @sql.id 3 | @sql.id= nil %> 4 | <%= render :partial => "/sqls/form", :locals => {:button_text => 'Execute'} %> 5 | <% @sql.id= orginal_sql_id %> 6 | <%= @sql.num_rows %> rows 7 | 8 | <%= render :partial => "/tables/browse", :locals => { 9 | :columns => @sql.columns(@datab), 10 | :rows => @sql.rows(@datab) 11 | } %> 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/views/tables/_lasts.html.erb: -------------------------------------------------------------------------------- 1 | <% if lasts.size > 0 %> 2 |
3 |

Last tables

4 | 12 |
13 | <% end %> 14 | -------------------------------------------------------------------------------- /app/views/tables/_navigator.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 |
3 | 8 | <% end %> 9 | -------------------------------------------------------------------------------- /app/views/tables/_table.html.erb: -------------------------------------------------------------------------------- 1 | ['<%= table.name %>', '<%= datab_table_path(table.db, table) %>'], 2 | -------------------------------------------------------------------------------- /app/views/tables/edit.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Edit table" %> 2 | 3 | <%= render :partial => "/tables/form", :locals => {:text => 'Edit'} %> 4 | -------------------------------------------------------------------------------- /app/views/tables/new.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Create table" %> 2 | 3 | <%= render :partial => "/tables/form", :locals => {:text => 'Create'} %> 4 | -------------------------------------------------------------------------------- /config/database.yml.dist: -------------------------------------------------------------------------------- 1 | # only use to run test 2 | test: 3 | adapter: mysql 4 | host: localhost 5 | user: root 6 | password: 7 | development: 8 | adapter: mysql 9 | production: 10 | adapter: mysql 11 | -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new inflection rules using the following format 4 | # (all these examples are active by default): 5 | # ActiveSupport::Inflector.inflections do |inflect| 6 | # inflect.plural /^(ox)$/i, '\1en' 7 | # inflect.singular /^(ox)en/i, '\1' 8 | # inflect.irregular 'person', 'people' 9 | # inflect.uncountable %w( fish sheep ) 10 | # end 11 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /db/development.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/db/development.sqlite3 -------------------------------------------------------------------------------- /db/schema.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define(:version => 1) do 2 | end 3 | -------------------------------------------------------------------------------- /db/test.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/db/test.sqlite3 -------------------------------------------------------------------------------- /doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /lib/rails_ar_initializer.rb: -------------------------------------------------------------------------------- 1 | # Monkey patch to avoid establishing a connection on application startup 2 | module Rails 3 | class Initializer 4 | alias :initialize_database_original :initialize_database 5 | def initialize_database 6 | end 7 | end 8 | end -------------------------------------------------------------------------------- /lib/tasks/override.rake: -------------------------------------------------------------------------------- 1 | # Monkey patch to avoid pending migrations check on rake tests 2 | namespace :db do 3 | override_task :abort_if_pending_migrations do 4 | # skipping migration 5 | end 6 | end -------------------------------------------------------------------------------- /load_error_test.rb: -------------------------------------------------------------------------------- 1 | def test 2 | raise LoadError 3 | rescue LoadError 4 | puts "rescued" 5 | end 6 | 7 | test -------------------------------------------------------------------------------- /log/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/log/empty -------------------------------------------------------------------------------- /public/blank_iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/favicon.ico -------------------------------------------------------------------------------- /public/images/bottom-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/bottom-bg.png -------------------------------------------------------------------------------- /public/images/bullet_arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/bullet_arrow_down.png -------------------------------------------------------------------------------- /public/images/bullet_arrow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/bullet_arrow_up.png -------------------------------------------------------------------------------- /public/images/calendar_date_select/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/calendar_date_select/calendar.gif -------------------------------------------------------------------------------- /public/images/corner-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/corner-bg.png -------------------------------------------------------------------------------- /public/images/database_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/database_lightning.png -------------------------------------------------------------------------------- /public/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/delete.png -------------------------------------------------------------------------------- /public/images/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/edit.png -------------------------------------------------------------------------------- /public/images/email_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/email_go.png -------------------------------------------------------------------------------- /public/images/ie_not_supported.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/ie_not_supported.png -------------------------------------------------------------------------------- /public/images/link_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/link_go.png -------------------------------------------------------------------------------- /public/images/logo-welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/logo-welcome.png -------------------------------------------------------------------------------- /public/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/logo.png -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/rails.png -------------------------------------------------------------------------------- /public/images/right-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/right-bg.png -------------------------------------------------------------------------------- /public/images/screen-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-1.jpg -------------------------------------------------------------------------------- /public/images/screen-1m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-1m.jpg -------------------------------------------------------------------------------- /public/images/screen-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-2.jpg -------------------------------------------------------------------------------- /public/images/screen-2m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-2m.jpg -------------------------------------------------------------------------------- /public/images/screen-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-3.jpg -------------------------------------------------------------------------------- /public/images/screen-3m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-3m.jpg -------------------------------------------------------------------------------- /public/images/screen-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-4.jpg -------------------------------------------------------------------------------- /public/images/screen-4m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-4m.jpg -------------------------------------------------------------------------------- /public/images/screen-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-5.jpg -------------------------------------------------------------------------------- /public/images/screen-5m.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/screen-5m.jpg -------------------------------------------------------------------------------- /public/images/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/search.gif -------------------------------------------------------------------------------- /public/images/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/table.png -------------------------------------------------------------------------------- /public/images/table_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/table_go.png -------------------------------------------------------------------------------- /public/images/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/view.png -------------------------------------------------------------------------------- /public/images/zoom/closebox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/closebox.png -------------------------------------------------------------------------------- /public/images/zoom/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/spacer.gif -------------------------------------------------------------------------------- /public/images/zoom/zoom-caption-fill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-caption-fill.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-caption-l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-caption-l.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-caption-r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-caption-r.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow1.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow2.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow3.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow4.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow5.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow6.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow7.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-shadow8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-shadow8.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-1.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-10.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-11.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-12.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-2.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-3.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-4.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-5.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-6.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-7.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-8.png -------------------------------------------------------------------------------- /public/images/zoom/zoom-spin-9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/images/zoom/zoom-spin-9.png -------------------------------------------------------------------------------- /public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | function parentRow(elt){ 2 | while (elt.tagName != 'TR') 3 | elt = elt.parentNode 4 | return elt 5 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/format_euro_24hr.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "01 January 2000 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = Date.padded2(this.getDate()) + " " + Date.months[this.getMonth()] + " " + this.getFullYear(); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/format_euro_24hr_ymd.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "2000.01.20 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate()); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/de.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Mo Di Mi Do Fr Sa So'); 2 | Date.months = $w('Januar Februar März April Mai Juni Juli August September Oktober November Dezember'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Jetzt", 9 | "Today": "Heute" 10 | } 11 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/fi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/javascripts/calendar_date_select/locale/fi.js -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/fr.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('L Ma Me J V S D'); 2 | Date.months = $w('Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Maintenant", 9 | "Today": "Aujourd'hui" 10 | } 11 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/pl.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('P W Ś C P S N'); 2 | Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień'); 3 | 4 | Date.first_day_of_week = 1 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Teraz", 9 | "Today": "Dziś" 10 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/pt.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('D S T Q Q S S'); 2 | Date.months = $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro'); 3 | 4 | Date.first_day_of_week = 0 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Agora", 9 | "Today": "Hoje" 10 | } -------------------------------------------------------------------------------- /public/javascripts/sorttable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/javascripts/sorttable.js -------------------------------------------------------------------------------- /public/open-flash-chart.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/public/open-flash-chart.swf -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /public/stylesheets/sass/sqls.sass: -------------------------------------------------------------------------------- 1 | .custom_sql_form 2 | textarea 3 | :width 800px 4 | :border 1px solid #CCC 5 | :height 100px 6 | :font-family Monaco 7 | :padding 5px 8 | 9 | 10 | .sql_error 11 | :-moz-border-radius 8px 12 | :background-color darkred 13 | :-webkit-border-radius 8px 14 | :padding 10px 15 | :width 750px 16 | :margin 0px 25px 25px 25px 17 | :color white -------------------------------------------------------------------------------- /script/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' -------------------------------------------------------------------------------- /script/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /script/dbconsole: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/dbconsole' 4 | -------------------------------------------------------------------------------- /script/destroy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/destroy' 4 | -------------------------------------------------------------------------------- /script/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /script/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /script/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /script/performance/request: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/request' 4 | -------------------------------------------------------------------------------- /script/plugin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/plugin' 4 | -------------------------------------------------------------------------------- /script/process/inspector: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/inspector' 4 | -------------------------------------------------------------------------------- /script/process/reaper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/reaper' 4 | -------------------------------------------------------------------------------- /script/process/spawner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/spawner' 4 | -------------------------------------------------------------------------------- /script/runner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/runner' 4 | -------------------------------------------------------------------------------- /script/server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/server' 4 | -------------------------------------------------------------------------------- /test/functional/accounts_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class AccountsControllerTest < ActionController::TestCase 4 | 5 | should "log in" do 6 | post :login, :username => @@config['user'], :password => @@config['password'] 7 | assert_response :redirect, flash.inspect 8 | assert_redirected_to '/databs' 9 | end 10 | 11 | end 12 | -------------------------------------------------------------------------------- /test/functional/environments_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class EnvironmentsControllerTest < ActionController::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/functional/graphs_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class GraphsControllerTest < ActionController::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/functional/relations_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class RelationsControllerTest < ActionController::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/functional/searches_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class SearchesControllerTest < ActionController::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/functional/sqls_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class SqlsControllerTest < ActionController::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/relation_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class RelationTest < ActiveSupport::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/search_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class SearchTest < ActiveSupport::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/sql_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class SqlTest < ActiveSupport::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /tmp/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/tmp/empty -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/lib/gem_init.rb: -------------------------------------------------------------------------------- 1 | # delegate to original init.rb from the plugin 2 | require File.dirname(__FILE__) + '/../init' 3 | 4 | -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/blank_iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "01 January 2000 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = Date.padded2(this.getDate()) + " " + Date.months[this.getMonth()] + " " + this.getFullYear(); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "2000.01.20 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate()); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/de.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Mo Di Mi Do Fr Sa So'); 2 | Date.months = $w('Januar Februar März April Mai Juni Juli August September Oktober November Dezember'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Jetzt", 9 | "Today": "Heute" 10 | } 11 | -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fr.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('L Ma Me J V S D'); 2 | Date.months = $w('Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Maintenant", 9 | "Today": "Aujourd'hui" 10 | } 11 | -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pl.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('P W Ś C P S N'); 2 | Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień'); 3 | 4 | Date.first_day_of_week = 1 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Teraz", 9 | "Today": "Dziś" 10 | } -------------------------------------------------------------------------------- /vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pt.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('D S T Q Q S S'); 2 | Date.months = $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro'); 3 | 4 | Date.first_day_of_week = 0 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Agora", 9 | "Today": "Hoje" 10 | } -------------------------------------------------------------------------------- /vendor/plugins/haml/init.rb: -------------------------------------------------------------------------------- 1 | begin 2 | require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here 3 | rescue LoadError 4 | require 'haml' # From gem 5 | end 6 | 7 | Haml.init_rails(binding) 8 | -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/init.rb: -------------------------------------------------------------------------------- 1 | require 'nested_layouts' 2 | ActionView::Base.send :include, ActionView::Helpers::NestedLayoutsHelper 3 | -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/content_for_inner.rhtml: -------------------------------------------------------------------------------- 1 | <% content_for 'data_before' do %>123<% end %><% inside_layout 'content_for_outer' do %><% content_for 'data_inside' do %>456<% end %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/content_for_outer.rhtml: -------------------------------------------------------------------------------- 1 | ' data_inside='<%= yield 'data_inside' %>'><%= yield %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/deep.rhtml: -------------------------------------------------------------------------------- 1 | <% inside_layout 'inner' do %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/inline_inner.rhtml: -------------------------------------------------------------------------------- 1 | <% inside_inline_layout @inline_layout do %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/inner.rhtml: -------------------------------------------------------------------------------- 1 | <% inside_layout 'outer' do %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/instance_inner.rhtml: -------------------------------------------------------------------------------- 1 | <% @data_before = '123' %><% inside_layout 'instance_outer' do %><% @data_inside = '456' %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/instance_outer.rhtml: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/outer.rhtml: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/shared_data_inner.rhtml: -------------------------------------------------------------------------------- 1 | <% inside_layout 'shared_data_outer' do %><%= @data2 %><%= yield %><% end %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/layouts/shared_data_outer.rhtml: -------------------------------------------------------------------------------- 1 | <%= @data1 %><%= yield %> -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/content_for_passing.rhtml: -------------------------------------------------------------------------------- 1 | content_for passing -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/deep_layout.rhtml: -------------------------------------------------------------------------------- 1 | deep layout -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/inline_layout.rhtml: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/instance_passing.rhtml: -------------------------------------------------------------------------------- 1 | instance passing -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/shared_data.rhtml: -------------------------------------------------------------------------------- 1 | assigns -------------------------------------------------------------------------------- /vendor/plugins/nested_layouts/test/fixtures/test/simple.rhtml: -------------------------------------------------------------------------------- 1 | simple -------------------------------------------------------------------------------- /vendor/plugins/ofc/init.rb: -------------------------------------------------------------------------------- 1 | # Include hook code here 2 | require 'open_flash_chart' 3 | 4 | -------------------------------------------------------------------------------- /vendor/plugins/ofc/install.rb: -------------------------------------------------------------------------------- 1 | # Install hook code here 2 | -------------------------------------------------------------------------------- /vendor/plugins/ofc/open-flash-chart.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/ofc/open-flash-chart.swf -------------------------------------------------------------------------------- /vendor/plugins/ofc/tasks/open_flash_chart_tasks.rake: -------------------------------------------------------------------------------- 1 | # desc "Explaining what the task does" 2 | # task :open_flash_chart do 3 | # # Task goes here 4 | # end -------------------------------------------------------------------------------- /vendor/plugins/ofc/test/open_flash_chart_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit' 2 | 3 | class OpenFlashChartTest < Test::Unit::TestCase 4 | # Replace this with your real tests. 5 | def test_this_plugin 6 | flunk 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/ofc/uninstall.rb: -------------------------------------------------------------------------------- 1 | # Uninstall hook code here 2 | -------------------------------------------------------------------------------- /vendor/plugins/override_rake_task/init.rb: -------------------------------------------------------------------------------- 1 | # Include hook code here -------------------------------------------------------------------------------- /vendor/plugins/shoulda/.autotest: -------------------------------------------------------------------------------- 1 | Autotest.add_hook :initialize do |at| 2 | at.add_mapping(%r{^lib/\w.*\.rb}) do 3 | at.files_matching(%r{^test/*/\w.*_test\.rb}) 4 | end 5 | 6 | at.add_mapping(%r{^test/rails_root/\w.*}) do 7 | at.files_matching(%r{^test/*/\w.*_test\.rb}) 8 | end 9 | 10 | at.add_exception(%r{.svn}) 11 | at.add_exception(%r{.log$}) 12 | at.add_exception(%r{^.autotest$}) 13 | end 14 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/.gitignore: -------------------------------------------------------------------------------- 1 | test/rails_root/log/*.log 2 | doc 3 | coverage 4 | .svn/ 5 | pkg 6 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/init.rb: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(__FILE__), 'rails', 'init') 2 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/lib/shoulda/action_mailer.rb: -------------------------------------------------------------------------------- 1 | require 'shoulda' 2 | require 'shoulda/action_mailer/assertions' 3 | 4 | module Test # :nodoc: all 5 | module Unit 6 | class TestCase 7 | include ThoughtBot::Shoulda::ActionMailer::Assertions 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/lib/shoulda/active_record.rb: -------------------------------------------------------------------------------- 1 | require 'shoulda' 2 | require 'shoulda/active_record/assertions' 3 | require 'shoulda/active_record/macros' 4 | 5 | module Test # :nodoc: all 6 | module Unit 7 | class TestCase 8 | include ThoughtBot::Shoulda::ActiveRecord::Assertions 9 | extend ThoughtBot::Shoulda::ActiveRecord::Macros 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/lib/shoulda/helpers.rb: -------------------------------------------------------------------------------- 1 | module ThoughtBot # :nodoc: 2 | module Shoulda # :nodoc: 3 | module Helpers 4 | # Prints a message to stdout, tagged with the name of the calling method. 5 | def report!(msg = "") 6 | puts("#{caller.first}: #{msg}") 7 | end 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/lib/shoulda/tasks.rb: -------------------------------------------------------------------------------- 1 | Dir[File.join(File.dirname(__FILE__), 'tasks', '*.rake')].each do |f| 2 | load f 3 | end 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/rails/init.rb: -------------------------------------------------------------------------------- 1 | require 'shoulda/rails' 2 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/tasks/shoulda.rake: -------------------------------------------------------------------------------- 1 | load File.join(File.dirname(__FILE__), "..", "lib", "shoulda", "tasks.rb") 2 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/addresses.yml: -------------------------------------------------------------------------------- 1 | first: 2 | title: Home 3 | addressable: first (User) 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/friendships.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/fixtures/friendships.yml -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/posts.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | title: My Cute Kitten! 4 | body: This is totally a cute kitten 5 | user_id: 1 6 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/products.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/fixtures/products.yml -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/taggings.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/fixtures/taggings.yml -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/tags.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | name: Stuff 4 | second: 5 | id: 2 6 | name: Rails 7 | third: 8 | id: 3 9 | name: Nothing -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/fixtures/users.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | name: Some dude 4 | age: 2 5 | email: none@none.com 6 | ssn: 123456789 7 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # Methods added to this helper will be available to all templates in the application. 2 | module ApplicationHelper 3 | end 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/helpers/posts_helper.rb: -------------------------------------------------------------------------------- 1 | module PostsHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/helpers/users_helper.rb: -------------------------------------------------------------------------------- 1 | module UsersHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/address.rb: -------------------------------------------------------------------------------- 1 | class Address < ActiveRecord::Base 2 | belongs_to :addressable, :polymorphic => true 3 | validates_uniqueness_of :title, :scope => [:addressable_type, :addressable_id] 4 | 5 | validates_length_of :zip, :minimum => 5 6 | validates_numericality_of :zip 7 | end 8 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/dog.rb: -------------------------------------------------------------------------------- 1 | class Dog < ActiveRecord::Base 2 | belongs_to :user, :foreign_key => :owner_id 3 | belongs_to :address 4 | has_and_belongs_to_many :fleas 5 | end 6 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/flea.rb: -------------------------------------------------------------------------------- 1 | class Flea < ActiveRecord::Base 2 | has_and_belongs_to_many :dogs 3 | end 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/friendship.rb: -------------------------------------------------------------------------------- 1 | class Friendship < ActiveRecord::Base 2 | belongs_to :user 3 | belongs_to :friend, :class_name => "User" 4 | end 5 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/tag.rb: -------------------------------------------------------------------------------- 1 | class Tag < ActiveRecord::Base 2 | has_many :taggings, :dependent => :destroy 3 | has_many :posts, :through => :taggings 4 | 5 | validates_length_of :name, :minimum => 2 6 | 7 | attr_accessible :name 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/models/tagging.rb: -------------------------------------------------------------------------------- 1 | class Tagging < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :tag 4 | end 5 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/views/layouts/wide.html.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/views/posts/show.rhtml: -------------------------------------------------------------------------------- 1 |

2 | User: 3 | <%=h @post.user_id %> 4 |

5 | 6 |

7 | Title: 8 | <%=h @post.title %> 9 |

10 | 11 |

12 | Body: 13 | <%=h @post.body %> 14 |

15 | 16 | 17 | <%= link_to 'Edit', edit_user_post_path(@post.user, @post) %> | 18 | <%= link_to 'Back', user_posts_path(@post.user) %> 19 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/views/users/new.rhtml: -------------------------------------------------------------------------------- 1 |

New user

2 | 3 | <%= error_messages_for :user %> 4 | 5 | <% form_for(:user, :url => users_path) do |f| %> 6 |

7 | Email
8 | <%= f.text_field :email %> 9 |

10 | 11 |

12 | Age
13 | <%= f.text_field :age %> 14 |

15 | 16 |

17 | <%= submit_tag "Create" %> 18 |

19 | <% end %> 20 | 21 | <%= link_to 'Back', users_path %> -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/app/views/users/show.rhtml: -------------------------------------------------------------------------------- 1 |

2 | Email: 3 | <%=h @user.email %> 4 |

5 | 6 |

7 | Age: 8 | <%=h @user.age %> 9 |

10 | 11 | 12 | <%= link_to 'Edit', edit_user_path(@user) %> | 13 | <%= link_to 'Back', users_path %> -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/config/database.yml: -------------------------------------------------------------------------------- 1 | sqlite3: 2 | :adapter: sqlite3 3 | # :dbfile: db/sqlite3.db 4 | :dbfile: ":memory:" 5 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/config/environments/sqlite3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/rails_root/config/environments/sqlite3.rb -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/config/initializers/shoulda.rb: -------------------------------------------------------------------------------- 1 | # This simulates loading the shoulda plugin, but without relying on 2 | # vendor/plugins 3 | 4 | shoulda_path = File.join(File.dirname(__FILE__), *%w(.. .. .. ..)) 5 | shoulda_lib_path = File.join(shoulda_path, "lib") 6 | 7 | $LOAD_PATH.unshift(shoulda_lib_path) 8 | load File.join(shoulda_path, "init.rb") 9 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/config/routes.rb: -------------------------------------------------------------------------------- 1 | ActionController::Routing::Routes.draw do |map| 2 | 3 | map.resources :posts 4 | map.resources :users, :has_many => :posts 5 | 6 | end 7 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/002_create_posts.rb: -------------------------------------------------------------------------------- 1 | class CreatePosts < ActiveRecord::Migration 2 | def self.up 3 | create_table :posts do |t| 4 | t.column :user_id, :integer 5 | t.column :title, :string 6 | t.column :body, :text 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :posts 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/003_create_taggings.rb: -------------------------------------------------------------------------------- 1 | class CreateTaggings < ActiveRecord::Migration 2 | def self.up 3 | create_table :taggings do |t| 4 | t.column :post_id, :integer 5 | t.column :tag_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :taggings 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/004_create_tags.rb: -------------------------------------------------------------------------------- 1 | class CreateTags < ActiveRecord::Migration 2 | def self.up 3 | create_table :tags do |t| 4 | t.column :name, :string 5 | end 6 | end 7 | 8 | def self.down 9 | drop_table :tags 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/005_create_dogs.rb: -------------------------------------------------------------------------------- 1 | class CreateDogs < ActiveRecord::Migration 2 | def self.up 3 | create_table :dogs do |t| 4 | t.column :owner_id, :integer 5 | t.column :address_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :dogs 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/006_create_addresses.rb: -------------------------------------------------------------------------------- 1 | class CreateAddresses < ActiveRecord::Migration 2 | def self.up 3 | create_table :addresses do |t| 4 | t.column :title, :string 5 | t.column :addressable_id, :integer 6 | t.column :addressable_type, :string 7 | t.column :zip, :string 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :addresses 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/007_create_fleas.rb: -------------------------------------------------------------------------------- 1 | class CreateFleas < ActiveRecord::Migration 2 | def self.up 3 | create_table :fleas do |t| 4 | t.string :name 5 | end 6 | end 7 | 8 | def self.down 9 | drop_table :fleas 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/008_create_dogs_fleas.rb: -------------------------------------------------------------------------------- 1 | class CreateDogsFleas < ActiveRecord::Migration 2 | def self.up 3 | create_table :dogs_fleas do |t| 4 | t.integer :dog_id 5 | t.integer :flea_id 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :dogs_fleas 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/009_create_products.rb: -------------------------------------------------------------------------------- 1 | class CreateProducts < ActiveRecord::Migration 2 | def self.up 3 | create_table :products do |t| 4 | t.string :title 5 | t.integer :price 6 | t.integer :weight 7 | t.string :size 8 | t.boolean :tangible 9 | 10 | t.timestamps 11 | end 12 | end 13 | 14 | def self.down 15 | drop_table :products 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/migrate/010_create_friendships.rb: -------------------------------------------------------------------------------- 1 | class CreateFriendships < ActiveRecord::Migration 2 | def self.up 3 | create_table :friendships do |t| 4 | t.integer :user_id 5 | t.integer :friend_id 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :friendships 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/rails_root/db/schema.rb -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/log/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/rails_root/log/.keep -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/script/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/script/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/rails_root/vendor/plugins/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/shoulda/test/rails_root/vendor/plugins/.keep -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/address_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class AddressTest < Test::Unit::TestCase 4 | fixtures :all 5 | 6 | should_belong_to :addressable 7 | should_require_unique_attributes :title, :scoped_to => [:addressable_id, :addressable_type] 8 | should_ensure_length_at_least :zip, 5 9 | should_only_allow_numeric_values_for :zip 10 | end 11 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/dog_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class DogTest < Test::Unit::TestCase 4 | should_belong_to :user 5 | should_belong_to :address 6 | should_have_and_belong_to_many :fleas 7 | end 8 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/flea_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class FleaTest < Test::Unit::TestCase 4 | should_have_and_belong_to_many :dogs 5 | end 6 | 7 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/friendship_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class FriendshipTest < ActiveSupport::TestCase 4 | should_belong_to :user 5 | should_belong_to :friend 6 | end 7 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/tag_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class TagTest < Test::Unit::TestCase 4 | should_have_many :taggings, :dependent => :destroy 5 | should_have_many :posts 6 | 7 | should_ensure_length_at_least :name, 2 8 | 9 | should_protect_attributes :secret 10 | 11 | should_fail do 12 | should_protect_attributes :name 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/plugins/shoulda/test/unit/tagging_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class TaggingTest < Test::Unit::TestCase 4 | should_belong_to :post 5 | should_belong_to :tag 6 | end 7 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/.gitignore: -------------------------------------------------------------------------------- 1 | /doc 2 | /rails 3 | *.gem 4 | /coverage 5 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/examples/apple-circle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/plugins/will_paginate/examples/apple-circle.gif -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/init.rb: -------------------------------------------------------------------------------- 1 | require 'will_paginate' 2 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/lib/will_paginate/version.rb: -------------------------------------------------------------------------------- 1 | module WillPaginate 2 | module VERSION 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 5 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb' 3 | libs = [] 4 | 5 | libs << 'irb/completion' 6 | libs << File.join('lib', 'load_fixtures') 7 | 8 | exec "#{irb} -Ilib:test#{libs.map{ |l| " -r #{l}" }.join} --simple-prompt" 9 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/admin.rb: -------------------------------------------------------------------------------- 1 | class Admin < User 2 | has_many :companies, :finder_sql => 'SELECT * FROM companies' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/developers_projects.yml: -------------------------------------------------------------------------------- 1 | david_action_controller: 2 | developer_id: 1 3 | project_id: 2 4 | joined_on: 2004-10-10 5 | 6 | david_active_record: 7 | developer_id: 1 8 | project_id: 1 9 | joined_on: 2004-10-10 10 | 11 | jamis_active_record: 12 | developer_id: 2 13 | project_id: 1 -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | active_record: 2 | id: 1 3 | name: Active Record 4 | action_controller: 5 | id: 2 6 | name: Active Controller 7 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/reply.rb: -------------------------------------------------------------------------------- 1 | class Reply < ActiveRecord::Base 2 | belongs_to :topic, :include => [:replies] 3 | 4 | named_scope :recent, :conditions => ['replies.created_at > ?', 15.minutes.ago] 5 | 6 | validates_presence_of :content 7 | end 8 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/topic.rb: -------------------------------------------------------------------------------- 1 | class Topic < ActiveRecord::Base 2 | has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC' 3 | belongs_to :project 4 | 5 | named_scope :mentions_activerecord, :conditions => ['topics.title LIKE ?', '%ActiveRecord%'] 6 | 7 | named_scope :with_replies_starting_with, lambda { |text| 8 | { :conditions => "replies.content LIKE '#{text}%' ", :include => :replies } 9 | } 10 | end 11 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/fixtures/user.rb: -------------------------------------------------------------------------------- 1 | class User < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/will_paginate/test/lib/load_fixtures.rb: -------------------------------------------------------------------------------- 1 | require 'boot' 2 | require 'lib/activerecord_test_connector' 3 | 4 | # setup the connection 5 | ActiveRecordTestConnector.setup 6 | 7 | # load all fixtures 8 | Fixtures.create_fixtures(ActiveRecordTestConnector::FIXTURES_PATH, ActiveRecord::Base.connection.tables) 9 | 10 | require 'will_paginate' 11 | WillPaginate.enable_activerecord 12 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/utils.rb: -------------------------------------------------------------------------------- 1 | module ActionMailer 2 | module Utils #:nodoc: 3 | def normalize_new_lines(text) 4 | text.to_s.gsub(/\r\n?/, "\n") 5 | end 6 | module_function :normalize_new_lines 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor.rb: -------------------------------------------------------------------------------- 1 | # Prefer gems to the bundled libs. 2 | require 'rubygems' 3 | 4 | begin 5 | gem 'tmail', '~> 1.2.3' 6 | rescue Gem::LoadError 7 | $:.unshift "#{File.dirname(__FILE__)}/vendor/tmail-1.2.3" 8 | end 9 | 10 | begin 11 | gem 'text-format', '>= 0.6.3' 12 | rescue Gem::LoadError 13 | $:.unshift "#{File.dirname(__FILE__)}/vendor/text-format-0.6.3" 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail.rb: -------------------------------------------------------------------------------- 1 | require 'tmail/version' 2 | require 'tmail/mail' 3 | require 'tmail/mailbox' 4 | require 'tmail/core_extensions' 5 | require 'tmail/net' 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/index.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | # This is here for Rolls. 3 | # Rolls uses this instead of lib/tmail.rb. 4 | 5 | require 'tmail/version' 6 | require 'tmail/mail' 7 | require 'tmail/mailbox' 8 | require 'tmail/core_extensions' 9 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/loader.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/mailbox' 3 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/main.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/version' 3 | require 'tmail/mail' 4 | require 'tmail/mailbox' 5 | require 'tmail/core_extensions' 6 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/mbox.rb: -------------------------------------------------------------------------------- 1 | #:stopdoc: 2 | require 'tmail/mailbox' 3 | #:startdoc: -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/version.rb: -------------------------------------------------------------------------------- 1 | module ActionMailer 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/actionmailer.rb: -------------------------------------------------------------------------------- 1 | require 'action_mailer' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb: -------------------------------------------------------------------------------- 1 | first mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_example_helper.erb: -------------------------------------------------------------------------------- 1 | So, <%= example_format(@text) %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper.erb: -------------------------------------------------------------------------------- 1 | Hello, <%= person_name %>. Thanks for registering! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_helper_method.erb: -------------------------------------------------------------------------------- 1 | This message brought to you by <%= name_of_the_mailer_class %>. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helper_mailer/use_mail_helper.erb: -------------------------------------------------------------------------------- 1 | From "Romeo and Juliet": 2 | 3 | <%= block_format @text %> 4 | 5 | Good ol' Shakespeare. 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/helpers/example_helper.rb: -------------------------------------------------------------------------------- 1 | module ExampleHelper 2 | def example_format(text) 3 | "#{text}" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.erb: -------------------------------------------------------------------------------- 1 | Have a lovely picture, from me. Enjoy! -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb: -------------------------------------------------------------------------------- 1 | second mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb: -------------------------------------------------------------------------------- 1 | let's go! -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.html.haml: -------------------------------------------------------------------------------- 1 | %p Hello there, 2 | 3 | %p 4 | Mr. 5 | = @recipient 6 | from haml -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/custom_templating_extension.text.plain.haml: -------------------------------------------------------------------------------- 1 | %p Hello there, 2 | 3 | %p 4 | Mr. 5 | = @recipient 6 | from haml -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.ignored.erb: -------------------------------------------------------------------------------- 1 | Ignored when searching for implicitly multipart parts. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.rhtml.bak: -------------------------------------------------------------------------------- 1 | Ignored when searching for implicitly multipart parts. 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | HTML formatted message to <%= @recipient %>. 4 | 5 | 6 | 7 | 8 | HTML formatted message to <%= @recipient %>. 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.plain.erb: -------------------------------------------------------------------------------- 1 | Plain text to <%= @recipient %>. 2 | Plain text to <%= @recipient %>. 3 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/implicitly_multipart_example.text.yaml.erb: -------------------------------------------------------------------------------- 1 | yaml to: <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/included_subtemplate.text.plain.erb: -------------------------------------------------------------------------------- 1 | Hey Ho, <%= render :partial => "subtemplate" %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/signed_up_with_url.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %>. Please see our greeting at <%= @welcome_url %> <%= welcome_url %> 4 | 5 | <%= image_tag "somelogo.png" %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/lib/action_controller/session/mem_cache_store.rb -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/missing_template.erb: -------------------------------------------------------------------------------- 1 |

Template is missing

2 |

<%=h @exception.message %>

3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/routing_error.erb: -------------------------------------------------------------------------------- 1 |

Routing Error

2 |

<%=h @exception.message %>

3 | <% unless @exception.failures.empty? %>

4 |

Failure reasons:

5 |
    6 | <% @exception.failures.each do |route, reason| %> 7 |
  1. <%=h route.inspect.gsub('\\', '') %> failed because <%=h reason.downcase %>
  2. 8 | <% end %> 9 |
10 |

<% end %> 11 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/templates/rescues/unknown_action.erb: -------------------------------------------------------------------------------- 1 |

Unknown action

2 |

<%=h @exception.message %>

3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/vendor/html-scanner/html/version.rb: -------------------------------------------------------------------------------- 1 | module HTML #:nodoc: 2 | module Version #:nodoc: 3 | 4 | MAJOR = 0 5 | MINOR = 5 6 | TINY = 3 7 | 8 | STRING = [ MAJOR, MINOR, TINY ].join(".") 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_pack/version.rb: -------------------------------------------------------------------------------- 1 | module ActionPack #:nodoc: 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/actionpack.rb: -------------------------------------------------------------------------------- 1 | require 'action_pack' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/fake_models.rb: -------------------------------------------------------------------------------- 1 | class Customer < Struct.new(:name, :id) 2 | def to_param 3 | id.to_s 4 | end 5 | end 6 | 7 | class BadCustomer < Customer 8 | end 9 | 10 | class GoodCustomer < Customer 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/addresses/list.erb: -------------------------------------------------------------------------------- 1 | We only need to get this far! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/bad_customers/_bad_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/companies.yml: -------------------------------------------------------------------------------- 1 | thirty_seven_signals: 2 | id: 1 3 | name: 37Signals 4 | rating: 4 5 | 6 | TextDrive: 7 | id: 2 8 | name: TextDrive 9 | rating: 4 10 | 11 | PlanetArgon: 12 | id: 3 13 | name: Planet Argon 14 | rating: 4 15 | 16 | Google: 17 | id: 4 18 | name: Google 19 | rating: 4 20 | 21 | Ionist: 22 | id: 5 23 | name: Ioni.st 24 | rating: 4 -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/company.rb: -------------------------------------------------------------------------------- 1 | class Company < ActiveRecord::Base 2 | has_one :mascot 3 | attr_protected :rating 4 | set_sequence_name :companies_nonstd_seq 5 | 6 | validates_presence_of :name 7 | def validate 8 | errors.add('rating', 'rating should not be 2') if rating == 2 9 | end 10 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_content_types_for_respond_to.rhtml: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rhtml.rhtml: -------------------------------------------------------------------------------- 1 | <%= 'hello world!' %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rjs.rjs: -------------------------------------------------------------------------------- 1 | page.alert 'hello world!' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/content_type/render_default_for_rxml.rxml: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/customers/_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developer.rb: -------------------------------------------------------------------------------- 1 | class Developer < ActiveRecord::Base 2 | has_and_belongs_to_many :projects 3 | has_many :replies 4 | has_many :topics, :through => :replies 5 | end 6 | 7 | class DeVeLoPeR < ActiveRecord::Base 8 | set_table_name "developers" 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | salary: 80000 5 | 6 | jamis: 7 | id: 2 8 | name: Jamis 9 | salary: 150000 10 | 11 | <% for digit in 3..10 %> 12 | dev_<%= digit %>: 13 | id: <%= digit %> 14 | name: fixture_<%= digit %> 15 | salary: 100000 16 | <% end %> 17 | 18 | poor_jamis: 19 | id: 11 20 | name: Jamis 21 | salary: 9000 -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developers_projects.yml: -------------------------------------------------------------------------------- 1 | david_action_controller: 2 | developer_id: 1 3 | project_id: 2 4 | joined_on: 2004-10-10 5 | 6 | david_active_record: 7 | developer_id: 1 8 | project_id: 1 9 | joined_on: 2004-10-10 10 | 11 | jamis_active_record: 12 | developer_id: 2 13 | project_id: 1 -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/_partial.erb: -------------------------------------------------------------------------------- 1 | <% cache do %> 2 | Fragment caching in a partial 3 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | Hello 2 | <% cache do %>This bit's fragment cached<% end %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => 'partial' %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/js_fragment_cached_with_partial.js.rjs: -------------------------------------------------------------------------------- 1 | page.replace_html 'notices', :partial => 'partial' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/good_customers/_good_customer.html.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %> good customer: <%= good_customer.name %><%= good_customer_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/abc_helper.rb: -------------------------------------------------------------------------------- 1 | module AbcHelper 2 | def bare_a() end 3 | def bare_b() end 4 | def bare_c() end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/fun/games_helper.rb: -------------------------------------------------------------------------------- 1 | module Fun::GamesHelper 2 | def stratego() "Iz guuut!" end 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/helpers/fun/pdf_helper.rb: -------------------------------------------------------------------------------- 1 | module Fun::PdfHelper 2 | def foobar() 'baz' end 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml: -------------------------------------------------------------------------------- 1 | alt/hello.rhtml 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/controller_name_space/nested.rhtml: -------------------------------------------------------------------------------- 1 | controller_name_space/nested.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml: -------------------------------------------------------------------------------- 1 | item.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml: -------------------------------------------------------------------------------- 1 | layout_test.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/multiple_extensions.html.erb: -------------------------------------------------------------------------------- 1 | multiple_extensions.html.erb <%= yield %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab: -------------------------------------------------------------------------------- 1 | Mab -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml: -------------------------------------------------------------------------------- 1 | hello.rhtml -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/block_with_layout.erb: -------------------------------------------------------------------------------- 1 | <% render(:layout => "layout_for_partial", :locals => { :name => "Anthony" }) do %>Inside from first block in layout<% end %> 2 | <%= yield %> 3 | <% render(:layout => "layout_for_partial", :locals => { :name => "Ramm" }) do %>Inside from second block in layout<% end %> 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/builder.builder: -------------------------------------------------------------------------------- 1 | xml.wrapper do 2 | xml << @content_for_layout 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/partial_with_layout.erb: -------------------------------------------------------------------------------- 1 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Anthony' } ) %> 2 | <%= yield %> 3 | <%= render( :layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => {:name => 'Ramm' } ) %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/standard.erb: -------------------------------------------------------------------------------- 1 | <%= @content_for_layout %><%= @variable_for_layout %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/talk_from_action.erb: -------------------------------------------------------------------------------- 1 | <%= @title || @content_for_title %> 2 | <%= @content_for_layout -%> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/yield.erb: -------------------------------------------------------------------------------- 1 | <%= yield :title %> 2 | <%= yield %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascot.rb: -------------------------------------------------------------------------------- 1 | class Mascot < ActiveRecord::Base 2 | belongs_to :company 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascots.yml: -------------------------------------------------------------------------------- 1 | upload_bird: 2 | id: 1 3 | company_id: 1 4 | name: The Upload Bird -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb: -------------------------------------------------------------------------------- 1 | <%= mascot.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/binary_file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/fixtures/multipart/binary_file -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/bracketed_param: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo[baz]" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mixed_files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/fixtures/multipart/mixed_files -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/single_parameter: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/text_file: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x 6 | Content-Disposition: form-data; name="file"; filename="file.txt" 7 | Content-Type: text/plain 8 | 9 | contents 10 | --AaB03x-- 11 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello overridden world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb: -------------------------------------------------------------------------------- 1 | layout: <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/layouts/post.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/layouts/super_post.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/post/index.html.erb: -------------------------------------------------------------------------------- 1 | Hello Firefox -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/super_post/index.html.erb: -------------------------------------------------------------------------------- 1 | Super Firefox -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/post_test/super_post/index.iphone.erb: -------------------------------------------------------------------------------- 1 | Super iPhone -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/project.rb: -------------------------------------------------------------------------------- 1 | class Project < ActiveRecord::Base 2 | has_and_belongs_to_many :developers, :uniq => true 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/404.html: -------------------------------------------------------------------------------- 1 | 404 error fixture 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/500.html: -------------------------------------------------------------------------------- 1 | 500 error fixture 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/actionpack/test/fixtures/public/images/rails.png -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // application js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/bank.js: -------------------------------------------------------------------------------- 1 | // bank js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/controls.js: -------------------------------------------------------------------------------- 1 | // controls js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/dragdrop.js: -------------------------------------------------------------------------------- 1 | // dragdrop js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/effects.js: -------------------------------------------------------------------------------- 1 | // effects js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js: -------------------------------------------------------------------------------- 1 | // prototype js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js: -------------------------------------------------------------------------------- 1 | // robber js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js: -------------------------------------------------------------------------------- 1 | // version.1.0 js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/bank.css: -------------------------------------------------------------------------------- 1 | /* bank.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css: -------------------------------------------------------------------------------- 1 | /* robber.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css: -------------------------------------------------------------------------------- 1 | /* version.1.0.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/replies.yml: -------------------------------------------------------------------------------- 1 | witty_retort: 2 | id: 1 3 | topic_id: 1 4 | developer_id: 1 5 | content: Birdman is better! 6 | created_at: <%= 6.hours.ago.to_s(:db) %> 7 | updated_at: nil 8 | 9 | another: 10 | id: 2 11 | topic_id: 2 12 | developer_id: 1 13 | content: Nuh uh! 14 | created_at: <%= 1.hour.ago.to_s(:db) %> 15 | updated_at: nil -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/reply.rb: -------------------------------------------------------------------------------- 1 | class Reply < ActiveRecord::Base 2 | named_scope :base 3 | belongs_to :topic, :include => [:replies] 4 | belongs_to :developer 5 | 6 | validates_presence_of :content 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.html.erb: -------------------------------------------------------------------------------- 1 | HTML for all_types_with_layout -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/all_types_with_layout.js.rjs: -------------------------------------------------------------------------------- 1 | page << "RJS for all_types_with_layout" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb: -------------------------------------------------------------------------------- 1 | Mobile -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.html.erb: -------------------------------------------------------------------------------- 1 | Hello future from <%= @type -%>! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/iphone_with_html_response_type.iphone.erb: -------------------------------------------------------------------------------- 1 | Hello iPhone future from <%= @type -%>! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/missing.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.html.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/layouts/standard.iphone.erb: -------------------------------------------------------------------------------- 1 |
<%= yield %>
-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults_with_type_list.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb: -------------------------------------------------------------------------------- 1 |

Beautiful modules!

-------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/symlink_parent/symlinked_layout.erb: -------------------------------------------------------------------------------- 1 | This is my layout 2 | 3 | <%= yield %> 4 | 5 | End. 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer_counter.erb: -------------------------------------------------------------------------------- 1 | <%= customer_counter.name %><%= customer_counter_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= customer_greeting.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hash_greeting.erb: -------------------------------------------------------------------------------- 1 | <%= greeting %>: <%= hash_greeting[:first_name] %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hash_object.erb: -------------------------------------------------------------------------------- 1 | <%= hash_object[:first_name] %> 2 | <%= object[:first_name].reverse %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hello.builder: -------------------------------------------------------------------------------- 1 | xm.hello -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb: -------------------------------------------------------------------------------- 1 | <%= labelling_form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_layout_for_partial.html.erb: -------------------------------------------------------------------------------- 1 | Before (<%= name %>) 2 | <%= yield %> 3 | After -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial_for_use_in_layout.html.erb: -------------------------------------------------------------------------------- 1 | Inside from partial (<%= name %>) -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_person.erb: -------------------------------------------------------------------------------- 1 | Second: <%= name %> 2 | Third: <%= @name %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_raise.html.erb: -------------------------------------------------------------------------------- 1 | <%= doesnt_exist %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/action_talk_to_layout.erb: -------------------------------------------------------------------------------- 1 | <% @title = "Talking to the layout" -%> 2 | Action was here! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/block_content_for.erb: -------------------------------------------------------------------------------- 1 | <% block_content_for :title do 'Putting stuff in the title!' end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/calling_partial_with_layout.html.erb: -------------------------------------------------------------------------------- 1 | <%= render(:layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => { :name => "David" }) %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/capturing.erb: -------------------------------------------------------------------------------- 1 | <% days = capture do %> 2 | Dreamy days 3 | <% end %> 4 | <%= days %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title do %>Putting stuff in the title!<% end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for_concatenated.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff " 2 | content_for :title, "in the title!" %> 3 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/content_for_with_parameter.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "Putting stuff in the title!" %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/delete_with_js.rjs: -------------------------------------------------------------------------------- 1 | page.remove 'person' 2 | page.visual_effect :highlight, "project-#{@project_id}" 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/dot.directory/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/enum_rjs_test.rjs: -------------------------------------------------------------------------------- 1 | page.select('.product').each do |value| 2 | page.visual_effect :highlight 3 | page.visual_effect :highlight, value 4 | page.sortable(value, :url => { :action => "order" }) 5 | page.draggable(value) 6 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/erb_content_for.erb: -------------------------------------------------------------------------------- 1 | <% erb_content_for :title do %>Putting stuff in the title!<% end %> 2 | Great stuff! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_html_erb.html.erb: -------------------------------------------------------------------------------- 1 | formatted html erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.builder: -------------------------------------------------------------------------------- 1 | xml.test 'failed' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb: -------------------------------------------------------------------------------- 1 | passed formatted html erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.xml.erb: -------------------------------------------------------------------------------- 1 | passed formatted xml erb -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.erb: -------------------------------------------------------------------------------- 1 |

This is grand!

2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello #{@name}" 3 | xml << render_file("test/greeting") 4 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_container.builder: -------------------------------------------------------------------------------- 1 | xml.test do 2 | render :partial => 'hello', :locals => { :xm => xml } 3 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_from_rxml.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.p "Hello" 3 | end 4 | "String return value" 5 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world_with_layout_false.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_xml_world.builder: -------------------------------------------------------------------------------- 1 | xml.html do 2 | xml.head do 3 | xml.title "Hello World" 4 | end 5 | 6 | xml.body do 7 | xml.p "abes" 8 | xml.p "monks" 9 | xml.p "wiseguys" 10 | end 11 | end -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/list.erb: -------------------------------------------------------------------------------- 1 | <%= @test_unchanged = 'goodbye' %><%= render :partial => 'customer', :collection => @customers %><%= @test_unchanged %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/non_erb_block_content_for.builder: -------------------------------------------------------------------------------- 1 | content_for :title do 2 | 'Putting stuff in the title!' 3 | end 4 | xml << "\nGreat stuff!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/potential_conflicts.erb: -------------------------------------------------------------------------------- 1 | First: <%= @name %> 2 | <%= render :partial => "person", :locals => { :name => "Stephan" } -%> 3 | Fourth: <%= @name %> 4 | Fifth: <%= name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_from_template.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :file => @path %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_with_ivar.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= @secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_file_with_locals.erb: -------------------------------------------------------------------------------- 1 | The secret is <%= secret %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/render_to_string_test.erb: -------------------------------------------------------------------------------- 1 | The value of foo is: ::<%= @foo %>:: 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/update_element_with_capture.erb: -------------------------------------------------------------------------------- 1 | <% replacement_function = update_element_function("products", :action => :update) do %> 2 |

Product 1

3 |

Product 2

4 | <% end %> 5 | <%= javascript_tag(replacement_function) %> 6 | 7 | <% update_element_function("status", :action => :update, :binding => binding) do %> 8 | You bought something! 9 | <% end %> 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/using_layout_around_block.html.erb: -------------------------------------------------------------------------------- 1 | <% render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/topic.rb: -------------------------------------------------------------------------------- 1 | class Topic < ActiveRecord::Base 2 | has_many :replies, :dependent => :destroy 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb: -------------------------------------------------------------------------------- 1 | <%= topic.title %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/template/deprecated_erb_variable_test.rb: -------------------------------------------------------------------------------- 1 | require 'abstract_unit' 2 | 3 | class DeprecatedErbVariableTest < ActionView::TestCase 4 | def test_setting_erb_variable_warns 5 | assert_deprecated 'erb_variable' do 6 | ActionView::Base.erb_variable = '_erbout' 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/testing_sandbox.rb: -------------------------------------------------------------------------------- 1 | module TestingSandbox 2 | # Temporarily replaces KCODE for the block 3 | def with_kcode(kcode) 4 | if RUBY_VERSION < '1.9' 5 | old_kcode, $KCODE = $KCODE, kcode 6 | begin 7 | yield 8 | ensure 9 | $KCODE = old_kcode 10 | end 11 | else 12 | yield 13 | end 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/examples/associations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/examples/associations.png -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/active_record/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveRecord 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/activerecord.rb: -------------------------------------------------------------------------------- 1 | require 'active_record' 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/assets/example.log: -------------------------------------------------------------------------------- 1 | # Logfile created on Wed Oct 31 16:05:13 +0000 2007 by logger.rb/1.5.2.9 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/assets/flowers.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/assets/flowers.jpg -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/connection_test_firebird.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | 3 | class FirebirdConnectionTest < ActiveRecord::TestCase 4 | def test_charset_properly_set 5 | fb_conn = ActiveRecord::Base.connection.instance_variable_get(:@connection) 6 | assert_equal 'UTF8', fb_conn.database.character_set 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/cases/database_statements_test.rb: -------------------------------------------------------------------------------- 1 | require "cases/helper" 2 | 3 | class DatabaseStatementsTest < ActiveRecord::TestCase 4 | def setup 5 | @connection = ActiveRecord::Base.connection 6 | end 7 | 8 | def test_insert_should_return_the_inserted_id 9 | id = @connection.insert("INSERT INTO accounts (firm_id,credit_limit) VALUES (42,5000)") 10 | assert_not_nil id 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/config.rb: -------------------------------------------------------------------------------- 1 | TEST_ROOT = File.expand_path(File.dirname(__FILE__)) 2 | ASSETS_ROOT = TEST_ROOT + "/assets" 3 | FIXTURES_ROOT = TEST_ROOT + "/fixtures" 4 | MIGRATIONS_ROOT = TEST_ROOT + "/migrations" 5 | SCHEMA_ROOT = TEST_ROOT + "/schema" 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/developers.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/fixtures/all/developers.yml -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/people.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/fixtures/all/people.csv -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/tasks.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/fixtures/all/tasks.yml -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/author_addresses.yml: -------------------------------------------------------------------------------- 1 | david_address: 2 | id: 1 3 | 4 | david_address_extra: 5 | id: 2 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/author_favorites.yml: -------------------------------------------------------------------------------- 1 | david_mary: 2 | id: 1 3 | author_id: 1 4 | favorite_author_id: 2 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/authors.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | author_address_id: 1 5 | author_address_extra_id: 2 6 | 7 | mary: 8 | id: 2 9 | name: Mary 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/books.yml: -------------------------------------------------------------------------------- 1 | awdr: 2 | id: 1 3 | name: "Agile Web Development with Rails" 4 | 5 | rfr: 6 | id: 2 7 | name: "Ruby for Rails" 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | type: Category 5 | 6 | technology: 7 | id: 2 8 | name: Technology 9 | type: Category 10 | 11 | sti_test: 12 | id: 3 13 | name: Special category 14 | type: SpecialCategory 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories/special_categories.yml: -------------------------------------------------------------------------------- 1 | sub_special_1: 2 | id: 100 3 | name: A special category in a subdir file 4 | type: SpecialCategory 5 | 6 | sub_special_2: 7 | id: 101 8 | name: Another special category 9 | type: SpecialCategory 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories/subsubdir/arbitrary_filename.yml: -------------------------------------------------------------------------------- 1 | sub_special_3: 2 | id: 102 3 | name: A special category in an arbitrarily named subsubdir file 4 | type: SpecialCategory 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories_ordered.yml: -------------------------------------------------------------------------------- 1 | --- !!omap 2 | <% 100.times do |i| %> 3 | - fixture_no_<%= i %>: 4 | id: <%= i %> 5 | name: <%= "Category #{i}" %> 6 | type: Category 7 | <% end %> 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categories_posts.yml: -------------------------------------------------------------------------------- 1 | general_welcome: 2 | category_id: 1 3 | post_id: 1 4 | 5 | technology_welcome: 6 | category_id: 2 7 | post_id: 1 8 | 9 | general_thinking: 10 | category_id: 1 11 | post_id: 2 12 | 13 | general_sti_habtm: 14 | category_id: 1 15 | post_id: 6 16 | 17 | sti_test_sti_habtm: 18 | category_id: 3 19 | post_id: 6 20 | 21 | general_hello: 22 | category_id: 1 23 | post_id: 4 24 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/categorizations.yml: -------------------------------------------------------------------------------- 1 | david_welcome_general: 2 | id: 1 3 | author_id: 1 4 | post_id: 1 5 | category_id: 1 6 | 7 | mary_thinking_sti: 8 | id: 2 9 | author_id: 2 10 | post_id: 2 11 | category_id: 3 12 | 13 | mary_thinking_general: 14 | id: 3 15 | author_id: 2 16 | post_id: 2 17 | category_id: 1 18 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/clubs.yml: -------------------------------------------------------------------------------- 1 | boring_club: 2 | name: Banana appreciation society 3 | moustache_club: 4 | name: Moustache and Eyebrow Fancier Club 5 | crazy_club: 6 | name: Skull and bones -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/computers.yml: -------------------------------------------------------------------------------- 1 | workstation: 2 | id: 1 3 | developer: 1 4 | extendedWarranty: 1 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/courses.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | id: 1 3 | name: Ruby Development 4 | 5 | java: 6 | id: 2 7 | name: Java Development 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/customers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | balance: 50 5 | address_street: Funny Street 6 | address_city: Scary Town 7 | address_country: Loony Land 8 | gps_location: 35.544623640962634x-105.9309951055148 9 | 10 | zaphod: 11 | id: 2 12 | name: Zaphod 13 | balance: 62 14 | address_street: Avenue Road 15 | address_city: Hamlet Town 16 | address_country: Nation Land 17 | gps_location: NULL -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/developers.yml: -------------------------------------------------------------------------------- 1 | david: 2 | id: 1 3 | name: David 4 | salary: 80000 5 | 6 | jamis: 7 | id: 2 8 | name: Jamis 9 | salary: 150000 10 | 11 | <% for digit in 3..10 %> 12 | dev_<%= digit %>: 13 | id: <%= digit %> 14 | name: fixture_<%= digit %> 15 | salary: 100000 16 | <% end %> 17 | 18 | poor_jamis: 19 | id: 11 20 | name: Jamis 21 | salary: 9000 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/developers_projects.yml: -------------------------------------------------------------------------------- 1 | david_action_controller: 2 | developer_id: 1 3 | project_id: 2 4 | joined_on: 2004-10-10 5 | 6 | david_active_record: 7 | developer_id: 1 8 | project_id: 1 9 | joined_on: 2004-10-10 10 | 11 | jamis_active_record: 12 | developer_id: 2 13 | project_id: 1 14 | 15 | poor_jamis_active_record: 16 | developer_id: 11 17 | project_id: 1 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/edges.yml: -------------------------------------------------------------------------------- 1 | <% (1..4).each do |id| %> 2 | edge_<%= id %>: 3 | id: <%= id %> 4 | source_id: <%= id %> 5 | sink_id: <%= id + 1 %> 6 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/entrants.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | course_id: 1 4 | name: Ruby Developer 5 | 6 | second: 7 | id: 2 8 | course_id: 1 9 | name: Ruby Guru 10 | 11 | third: 12 | id: 3 13 | course_id: 2 14 | name: Java Lover 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fk_test_has_fk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | fk_id: 1 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/funny_jokes.yml: -------------------------------------------------------------------------------- 1 | a_joke: 2 | id: 1 3 | name: Knock knock 4 | 5 | another_joke: 6 | id: 2 7 | name: | 8 | The \n Aristocrats 9 | Ate the candy 10 | 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/items.yml: -------------------------------------------------------------------------------- 1 | dvd: 2 | id: 1 3 | name: Godfather 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/jobs.yml: -------------------------------------------------------------------------------- 1 | unicyclist: 2 | id: 1 3 | ideal_reference_id: 2 4 | clown: 5 | id: 2 6 | magician: 7 | id: 3 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/legacy_things.yml: -------------------------------------------------------------------------------- 1 | obtuse: 2 | id: 1 3 | tps_report_number: 500 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/mateys.yml: -------------------------------------------------------------------------------- 1 | blackbeard_to_redbeard: 2 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 3 | target_id: <%= Fixtures.identify(:redbeard) %> 4 | weight: 10 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/members.yml: -------------------------------------------------------------------------------- 1 | groucho: 2 | name: Groucho Marx 3 | some_other_guy: 4 | name: Englebert Humperdink -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/minimalistics.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/mixed_case_monkeys.yml: -------------------------------------------------------------------------------- 1 | first: 2 | monkeyID: 1 3 | fleaCount: 42 4 | second: 5 | monkeyID: 2 6 | fleaCount: 43 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/movies.yml: -------------------------------------------------------------------------------- 1 | first: 2 | movieid: 1 3 | name: Terminator 4 | 5 | second: 6 | movieid: 2 7 | name: Gladiator 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/companies.yml: -------------------------------------------------------------------------------- 1 | # i wonder what will happen here 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml: -------------------------------------------------------------------------------- 1 | qwerty 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/owners.yml: -------------------------------------------------------------------------------- 1 | blackbeard: 2 | owner_id: 1 3 | name: blackbeard 4 | 5 | ashley: 6 | owner_id: 2 7 | name: ashley 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/parrots_pirates.yml: -------------------------------------------------------------------------------- 1 | george_blackbeard: 2 | parrot_id: <%= Fixtures.identify(:george) %> 3 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 4 | 5 | louis_blackbeard: 6 | parrot_id: <%= Fixtures.identify(:louis) %> 7 | pirate_id: <%= Fixtures.identify(:blackbeard) %> 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/people.yml: -------------------------------------------------------------------------------- 1 | michael: 2 | id: 1 3 | first_name: Michael 4 | david: 5 | id: 2 6 | first_name: David -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/pets.yml: -------------------------------------------------------------------------------- 1 | parrot: 2 | pet_id: 1 3 | name: parrot 4 | owner_id: 1 5 | 6 | chew: 7 | pet_id: 2 8 | name: chew 9 | owner_id: 2 10 | 11 | mochi: 12 | pet_id: 3 13 | name: mochi 14 | owner_id: 2 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/pirates.yml: -------------------------------------------------------------------------------- 1 | blackbeard: 2 | catchphrase: "Yar." 3 | parrot: george 4 | 5 | redbeard: 6 | catchphrase: "Avast!" 7 | parrot: louis 8 | created_on: <%= 2.weeks.ago.to_s(:db) %> 9 | updated_on: <%= 2.weeks.ago.to_s(:db) %> 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/price_estimates.yml: -------------------------------------------------------------------------------- 1 | saphire_1: 2 | price: 10 3 | estimate_of: sapphire (Treasure) 4 | 5 | sapphire_2: 6 | price: 20 7 | estimate_of: sapphire (Treasure) 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/projects.yml: -------------------------------------------------------------------------------- 1 | action_controller: 2 | id: 2 3 | name: Active Controller 4 | 5 | active_record: 6 | id: 1 7 | name: Active Record 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/readers.yml: -------------------------------------------------------------------------------- 1 | michael_welcome: 2 | id: 1 3 | post_id: 1 4 | person_id: 1 5 | 6 | michael_authorless: 7 | id: 2 8 | post_id: 3 9 | person_id: 1 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/references.yml: -------------------------------------------------------------------------------- 1 | michael_magician: 2 | id: 1 3 | person_id: 1 4 | job_id: 3 5 | favourite: false 6 | 7 | michael_unicyclist: 8 | id: 2 9 | person_id: 1 10 | job_id: 1 11 | favourite: true 12 | 13 | david_unicyclist: 14 | id: 3 15 | person_id: 2 16 | job_id: 1 17 | favourite: false 18 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/distinct.yml: -------------------------------------------------------------------------------- 1 | distinct1: 2 | id: 1 3 | 4 | distinct2: 5 | id: 2 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/distincts_selects.yml: -------------------------------------------------------------------------------- 1 | distincts_selects1: 2 | distinct_id: 1 3 | select_id: 1 4 | 5 | distincts_selects2: 6 | distinct_id: 1 7 | select_id: 2 8 | 9 | distincts_selects3: 10 | distinct_id: 2 11 | select_id: 3 12 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/group.yml: -------------------------------------------------------------------------------- 1 | group1: 2 | id: 1 3 | select_id: 1 4 | order: x 5 | 6 | group2: 7 | id: 2 8 | select_id: 2 9 | order: y 10 | 11 | group3: 12 | id: 3 13 | select_id: 2 14 | order: z 15 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/select.yml: -------------------------------------------------------------------------------- 1 | select1: 2 | id: 1 3 | 4 | select2: 5 | id: 2 6 | 7 | select3: 8 | id: 3 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/reserved_words/values.yml: -------------------------------------------------------------------------------- 1 | values1: 2 | id: 1 3 | group_id: 2 4 | 5 | values2: 6 | id: 2 7 | group_id: 1 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/ships.yml: -------------------------------------------------------------------------------- 1 | black_pearl: 2 | name: "Black Pearl" 3 | interceptor: 4 | id: 2 5 | name: "Interceptor" 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/sponsors.yml: -------------------------------------------------------------------------------- 1 | moustache_club_sponsor_for_groucho: 2 | sponsor_club: moustache_club 3 | sponsorable: groucho (Member) 4 | boring_club_sponsor_for_groucho: 5 | sponsor_club: boring_club 6 | sponsorable: some_other_guy (Member) 7 | crazy_club_sponsor_for_groucho: 8 | sponsor_club: crazy_club 9 | sponsorable: some_other_guy (Member) -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/subscribers.yml: -------------------------------------------------------------------------------- 1 | first: 2 | nick: alterself 3 | name: Luke Holden 4 | 5 | second: 6 | nick: webster132 7 | name: David Heinemeier Hansson 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/subscriptions.yml: -------------------------------------------------------------------------------- 1 | webster_awdr: 2 | id: 1 3 | subscriber_id: webster132 4 | book_id: 1 5 | webster_rfr: 6 | id: 2 7 | subscriber_id: webster132 8 | book_id: 2 9 | alterself_awdr: 10 | id: 3 11 | subscriber_id: alterself 12 | book_id: 3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/tags.yml: -------------------------------------------------------------------------------- 1 | general: 2 | id: 1 3 | name: General 4 | 5 | misc: 6 | id: 2 7 | name: Misc -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/tasks.yml: -------------------------------------------------------------------------------- 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html 2 | first_task: 3 | id: 1 4 | starting: 2005-03-30t06:30:00.00+01:00 5 | ending: 2005-03-30t08:30:00.00+01:00 6 | another_task: 7 | id: 2 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/treasures.yml: -------------------------------------------------------------------------------- 1 | diamond: 2 | name: $LABEL 3 | 4 | sapphire: 5 | name: $LABEL 6 | looter: redbeard (Pirate) 7 | 8 | ruby: 9 | name: $LABEL 10 | looter: louis (Parrot) 11 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/vertices.yml: -------------------------------------------------------------------------------- 1 | <% (1..5).each do |id| %> 2 | vertex_<%= id %>: 3 | id: <%= id %> 4 | <% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/warehouse-things.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | value: 1000 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb: -------------------------------------------------------------------------------- 1 | class Foo < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb: -------------------------------------------------------------------------------- 1 | class Chunky < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb: -------------------------------------------------------------------------------- 1 | class Chunky < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb: -------------------------------------------------------------------------------- 1 | class IRaiseOnDown < ActiveRecord::Migration 2 | def self.up 3 | end 4 | 5 | def self.down 6 | raise 7 | end 8 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveMiddleNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "middle_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "middle_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb: -------------------------------------------------------------------------------- 1 | class PeopleHaveLastNames < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | end 5 | 6 | def self.down 7 | remove_column "people", "last_name" 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb: -------------------------------------------------------------------------------- 1 | class WeNeedReminders < ActiveRecord::Migration 2 | def self.up 3 | create_table("reminders") do |t| 4 | t.column :content, :text 5 | t.column :remind_at, :datetime 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb: -------------------------------------------------------------------------------- 1 | class InnocentJointable < ActiveRecord::Migration 2 | def self.up 3 | create_table("people_reminders", :id => false) do |t| 4 | t.column :reminder_id, :integer 5 | t.column :person_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table "people_reminders" 11 | end 12 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/auto_id.rb: -------------------------------------------------------------------------------- 1 | class AutoId < ActiveRecord::Base 2 | def self.table_name () "auto_id_tests" end 3 | def self.primary_key () "auto_id" end 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/binary.rb: -------------------------------------------------------------------------------- 1 | class Binary < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/book.rb: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | has_many :citations, :foreign_key => 'book1_id' 3 | has_many :references, :through => :citations, :source => :reference_of, :uniq => true 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/categorization.rb: -------------------------------------------------------------------------------- 1 | class Categorization < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :category 4 | belongs_to :author 5 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/citation.rb: -------------------------------------------------------------------------------- 1 | class Citation < ActiveRecord::Base 2 | belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id 3 | 4 | belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id 5 | belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/club.rb: -------------------------------------------------------------------------------- 1 | class Club < ActiveRecord::Base 2 | has_many :memberships 3 | has_many :members, :through => :memberships 4 | has_many :current_memberships 5 | has_one :sponsor 6 | has_one :sponsored_member, :through => :sponsor, :source => :sponsorable, :source_type => "Member" 7 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/column_name.rb: -------------------------------------------------------------------------------- 1 | class ColumnName < ActiveRecord::Base 2 | def self.table_name () "colnametests" end 3 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/computer.rb: -------------------------------------------------------------------------------- 1 | class Computer < ActiveRecord::Base 2 | belongs_to :developer, :foreign_key=>'developer' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/course.rb: -------------------------------------------------------------------------------- 1 | class Course < ActiveRecord::Base 2 | has_many :entrants 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/default.rb: -------------------------------------------------------------------------------- 1 | class Default < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/edge.rb: -------------------------------------------------------------------------------- 1 | # This class models an edge in a directed graph. 2 | class Edge < ActiveRecord::Base 3 | belongs_to :source, :class_name => 'Vertex', :foreign_key => 'source_id' 4 | belongs_to :sink, :class_name => 'Vertex', :foreign_key => 'sink_id' 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/entrant.rb: -------------------------------------------------------------------------------- 1 | class Entrant < ActiveRecord::Base 2 | belongs_to :course 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/guid.rb: -------------------------------------------------------------------------------- 1 | class Guid < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/item.rb: -------------------------------------------------------------------------------- 1 | class AbstractItem < ActiveRecord::Base 2 | self.abstract_class = true 3 | has_one :tagging, :as => :taggable 4 | end 5 | 6 | class Item < AbstractItem 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/job.rb: -------------------------------------------------------------------------------- 1 | class Job < ActiveRecord::Base 2 | has_many :references 3 | has_many :people, :through => :references 4 | belongs_to :ideal_reference, :class_name => 'Reference' 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/joke.rb: -------------------------------------------------------------------------------- 1 | class Joke < ActiveRecord::Base 2 | set_table_name 'funny_jokes' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/keyboard.rb: -------------------------------------------------------------------------------- 1 | class Keyboard < ActiveRecord::Base 2 | set_primary_key 'key_number' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/legacy_thing.rb: -------------------------------------------------------------------------------- 1 | class LegacyThing < ActiveRecord::Base 2 | set_locking_column :version 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/matey.rb: -------------------------------------------------------------------------------- 1 | class Matey < ActiveRecord::Base 2 | belongs_to :pirate 3 | belongs_to :target, :class_name => 'Pirate' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/membership.rb: -------------------------------------------------------------------------------- 1 | class Membership < ActiveRecord::Base 2 | belongs_to :member 3 | belongs_to :club 4 | end 5 | 6 | class CurrentMembership < Membership 7 | belongs_to :member 8 | belongs_to :club 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/minimalistic.rb: -------------------------------------------------------------------------------- 1 | class Minimalistic < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/mixed_case_monkey.rb: -------------------------------------------------------------------------------- 1 | class MixedCaseMonkey < ActiveRecord::Base 2 | set_primary_key 'monkeyID' 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/movie.rb: -------------------------------------------------------------------------------- 1 | class Movie < ActiveRecord::Base 2 | def self.primary_key 3 | "movieid" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/order.rb: -------------------------------------------------------------------------------- 1 | class Order < ActiveRecord::Base 2 | belongs_to :billing, :class_name => 'Customer', :foreign_key => 'billing_customer_id' 3 | belongs_to :shipping, :class_name => 'Customer', :foreign_key => 'shipping_customer_id' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/owner.rb: -------------------------------------------------------------------------------- 1 | class Owner < ActiveRecord::Base 2 | set_primary_key :owner_id 3 | has_many :pets 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/parrot.rb: -------------------------------------------------------------------------------- 1 | class Parrot < ActiveRecord::Base 2 | set_inheritance_column :parrot_sti_class 3 | has_and_belongs_to_many :pirates 4 | has_and_belongs_to_many :treasures 5 | has_many :loots, :as => :looter 6 | end 7 | 8 | class LiveParrot < Parrot 9 | end 10 | 11 | class DeadParrot < Parrot 12 | belongs_to :killer, :class_name => 'Pirate' 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/pet.rb: -------------------------------------------------------------------------------- 1 | class Pet < ActiveRecord::Base 2 | set_primary_key :pet_id 3 | belongs_to :owner 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/pirate.rb: -------------------------------------------------------------------------------- 1 | class Pirate < ActiveRecord::Base 2 | belongs_to :parrot 3 | has_and_belongs_to_many :parrots 4 | has_many :treasures, :as => :looter 5 | 6 | has_many :treasure_estimates, :through => :treasures, :source => :price_estimates 7 | 8 | validates_presence_of :catchphrase 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/price_estimate.rb: -------------------------------------------------------------------------------- 1 | class PriceEstimate < ActiveRecord::Base 2 | belongs_to :estimate_of, :polymorphic => true 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/reader.rb: -------------------------------------------------------------------------------- 1 | class Reader < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :person 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/reference.rb: -------------------------------------------------------------------------------- 1 | class Reference < ActiveRecord::Base 2 | belongs_to :person 3 | belongs_to :job 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/ship.rb: -------------------------------------------------------------------------------- 1 | class Ship < ActiveRecord::Base 2 | self.record_timestamps = false 3 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/sponsor.rb: -------------------------------------------------------------------------------- 1 | class Sponsor < ActiveRecord::Base 2 | belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id" 3 | belongs_to :sponsorable, :polymorphic => true 4 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subject.rb: -------------------------------------------------------------------------------- 1 | # used for OracleSynonymTest, see test/synonym_test_oci.rb 2 | # 3 | class Subject < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subscriber.rb: -------------------------------------------------------------------------------- 1 | class Subscriber < ActiveRecord::Base 2 | set_primary_key 'nick' 3 | has_many :subscriptions 4 | has_many :books, :through => :subscriptions 5 | end 6 | 7 | class SpecialSubscriber < Subscriber 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/subscription.rb: -------------------------------------------------------------------------------- 1 | class Subscription < ActiveRecord::Base 2 | belongs_to :subscriber 3 | belongs_to :book 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/tag.rb: -------------------------------------------------------------------------------- 1 | class Tag < ActiveRecord::Base 2 | has_many :taggings 3 | has_many :taggables, :through => :taggings 4 | has_one :tagging 5 | 6 | has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post' 7 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/task.rb: -------------------------------------------------------------------------------- 1 | class Task < ActiveRecord::Base 2 | 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/treasure.rb: -------------------------------------------------------------------------------- 1 | class Treasure < ActiveRecord::Base 2 | has_and_belongs_to_many :parrots 3 | belongs_to :looter, :polymorphic => true 4 | 5 | has_many :price_estimates, :as => :estimate_of 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/vertex.rb: -------------------------------------------------------------------------------- 1 | # This class models a vertex in a directed graph. 2 | class Vertex < ActiveRecord::Base 3 | has_many :sink_edges, :class_name => 'Edge', :foreign_key => 'source_id' 4 | has_many :sinks, :through => :sink_edges 5 | 6 | has_and_belongs_to_many :sources, 7 | :class_name => 'Vertex', :join_table => 'edges', 8 | :foreign_key => 'sink_id', :association_foreign_key => 'source_id' 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/warehouse_thing.rb: -------------------------------------------------------------------------------- 1 | class WarehouseThing < ActiveRecord::Base 2 | set_table_name "warehouse-things" 3 | 4 | validates_uniqueness_of :value 5 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/schema/schema2.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define do 2 | 3 | Course.connection.create_table :courses, :force => true do |t| 4 | t.column :name, :string, :null => false 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/schema/sqlserver_specific_schema.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Schema.define do 2 | create_table :table_with_real_columns, :force => true do |t| 3 | t.column :real_number, :real 4 | end 5 | end -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/active_resource/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveResource 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/activeresource.rb: -------------------------------------------------------------------------------- 1 | require 'active_resource' 2 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/beast.rb: -------------------------------------------------------------------------------- 1 | class BeastResource < ActiveResource::Base 2 | self.site = 'http://beast.caboo.se' 3 | site.user = 'foo' 4 | site.password = 'bar' 5 | end 6 | 7 | class Forum < BeastResource 8 | # taken from BeastResource 9 | # self.site = 'http://beast.caboo.se' 10 | end 11 | 12 | class Topic < BeastResource 13 | self.site += '/forums/:forum_id' 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/customer.rb: -------------------------------------------------------------------------------- 1 | class Customer < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000" 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/person.rb: -------------------------------------------------------------------------------- 1 | class Person < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000" 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/test/fixtures/street_address.rb: -------------------------------------------------------------------------------- 1 | class StreetAddress < ActiveResource::Base 2 | self.site = "http://37s.sunrise.i:3000/people/:person_id/" 3 | self.element_name = 'address' 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/cache/drb_store.rb: -------------------------------------------------------------------------------- 1 | require 'drb' 2 | 3 | module ActiveSupport 4 | module Cache 5 | class DRbStore < MemoryStore #:nodoc: 6 | attr_reader :address 7 | 8 | def initialize(address = 'druby://localhost:9192') 9 | super() 10 | @address = address 11 | @data = DRbObject.new(nil, address) 12 | end 13 | end 14 | end 15 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext.rb: -------------------------------------------------------------------------------- 1 | Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| 2 | filename = File.basename(path) 3 | require "active_support/core_ext/#{filename}" 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/array/random_access.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Array #:nodoc: 4 | module RandomAccess 5 | # Returns a random element from the array. 6 | def rand 7 | self[Kernel.rand(length)] 8 | end 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/base64.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/base64' 2 | require 'active_support/core_ext/base64/encoding' 3 | 4 | ActiveSupport::Base64.extend ActiveSupport::CoreExtensions::Base64::Encoding 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb: -------------------------------------------------------------------------------- 1 | require 'benchmark' 2 | 3 | class << Benchmark 4 | remove_method :realtime 5 | 6 | def realtime 7 | r0 = Time.now 8 | yield 9 | r1 = Time.now 10 | r1.to_f - r0.to_f 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/bigdecimal.rb: -------------------------------------------------------------------------------- 1 | require 'bigdecimal' 2 | require 'active_support/core_ext/bigdecimal/conversions' 3 | 4 | class BigDecimal#:nodoc: 5 | include ActiveSupport::CoreExtensions::BigDecimal::Conversions 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/cgi.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/cgi/escape_skipping_slashes' 2 | 3 | class CGI #:nodoc: 4 | extend ActiveSupport::CoreExtensions::CGI::EscapeSkippingSlashes 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/class.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/class/attribute_accessors' 2 | require 'active_support/core_ext/class/inheritable_attributes' 3 | require 'active_support/core_ext/class/removal' 4 | require 'active_support/core_ext/class/delegating_attributes' 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/date.rb: -------------------------------------------------------------------------------- 1 | require 'date' 2 | require 'active_support/core_ext/date/behavior' 3 | require 'active_support/core_ext/date/calculations' 4 | require 'active_support/core_ext/date/conversions' 5 | 6 | class Date#:nodoc: 7 | include ActiveSupport::CoreExtensions::Date::Behavior 8 | include ActiveSupport::CoreExtensions::Date::Calculations 9 | include ActiveSupport::CoreExtensions::Date::Conversions 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/float.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/float/rounding' 2 | 3 | class Float #:nodoc: 4 | include ActiveSupport::CoreExtensions::Float::Rounding 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/integer.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/integer/even_odd' 2 | require 'active_support/core_ext/integer/inflections' 3 | 4 | class Integer #:nodoc: 5 | include ActiveSupport::CoreExtensions::Integer::EvenOdd 6 | include ActiveSupport::CoreExtensions::Integer::Inflections 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/kernel/daemonizing' 2 | require 'active_support/core_ext/kernel/reporting' 3 | require 'active_support/core_ext/kernel/agnostics' 4 | require 'active_support/core_ext/kernel/requires' 5 | require 'active_support/core_ext/kernel/debugger' 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb: -------------------------------------------------------------------------------- 1 | module Kernel 2 | # Turns the current script into a daemon process that detaches from the console. 3 | # It can be shut down with a TERM signal. 4 | def daemonize 5 | Process.daemon 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/numeric.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/numeric/time' 2 | require 'active_support/core_ext/numeric/bytes' 3 | require 'active_support/core_ext/numeric/conversions' 4 | 5 | class Numeric #:nodoc: 6 | include ActiveSupport::CoreExtensions::Numeric::Time 7 | include ActiveSupport::CoreExtensions::Numeric::Bytes 8 | include ActiveSupport::CoreExtensions::Numeric::Conversions 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/object.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/object/conversions' 2 | require 'active_support/core_ext/object/extending' 3 | require 'active_support/core_ext/object/instance_variables' 4 | require 'active_support/core_ext/object/misc' 5 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/pathname.rb: -------------------------------------------------------------------------------- 1 | require 'pathname' 2 | require 'active_support/core_ext/pathname/clean_within' 3 | 4 | class Pathname#:nodoc: 5 | extend ActiveSupport::CoreExtensions::Pathname::CleanWithin 6 | end 7 | 8 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/proc.rb: -------------------------------------------------------------------------------- 1 | class Proc #:nodoc: 2 | def bind(object) 3 | block, time = self, Time.now 4 | (class << object; self end).class_eval do 5 | method_name = "__bind_#{time.to_i}_#{time.usec}" 6 | define_method(method_name, &block) 7 | method = instance_method(method_name) 8 | remove_method(method_name) 9 | method 10 | end.bind(object) 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/process.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/process/daemon' 2 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/string/xchar.rb: -------------------------------------------------------------------------------- 1 | begin 2 | # See http://bogomips.org/fast_xs/ by Eric Wong 3 | require 'fast_xs' 4 | 5 | class String 6 | alias_method :original_xs, :to_xs if method_defined?(:to_xs) 7 | alias_method :to_xs, :fast_xs 8 | end 9 | rescue LoadError 10 | # fast_xs extension unavailable. 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/test.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/test/unit/assertions' 2 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/time/behavior.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module Time #:nodoc: 4 | module Behavior 5 | # Enable more predictable duck-typing on Time-like classes. See 6 | # Object#acts_like?. 7 | def acts_like_time? 8 | true 9 | end 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/date.rb: -------------------------------------------------------------------------------- 1 | class Date 2 | # Returns a JSON string representing the date. 3 | # 4 | # ==== Example: 5 | # Date.new(2005,2,1).to_json 6 | # # => "2005/02/01" 7 | def to_json(options = nil) 8 | if ActiveSupport.use_standard_json_time_format 9 | %("#{strftime("%Y-%m-%d")}") 10 | else 11 | %("#{strftime("%Y/%m/%d")}") 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/false_class.rb: -------------------------------------------------------------------------------- 1 | class FalseClass 2 | def to_json(options = nil) #:nodoc: 3 | 'false' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/nil_class.rb: -------------------------------------------------------------------------------- 1 | class NilClass 2 | def to_json(options = nil) #:nodoc: 3 | 'null' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/numeric.rb: -------------------------------------------------------------------------------- 1 | class Numeric 2 | def to_json(options = nil) #:nodoc: 3 | to_s 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/object.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info. 3 | def to_json(options = {}) 4 | ActiveSupport::JSON.encode(instance_values, options) 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/regexp.rb: -------------------------------------------------------------------------------- 1 | class Regexp 2 | def to_json(options = nil) #:nodoc: 3 | inspect 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/symbol.rb: -------------------------------------------------------------------------------- 1 | class Symbol 2 | def to_json(options = {}) #:nodoc: 3 | ActiveSupport::JSON.encode(to_s, options) 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb: -------------------------------------------------------------------------------- 1 | class TrueClass 2 | def to_json(options = nil) #:nodoc: 3 | 'true' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/variable.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module JSON 3 | # A string that returns itself as its JSON-encoded form. 4 | class Variable < String 5 | def to_json(options=nil) 6 | self 7 | end 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/multibyte.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module Multibyte #:nodoc: 3 | DEFAULT_NORMALIZATION_FORM = :kc 4 | NORMALIZATIONS_FORMS = [:c, :kc, :d, :kd] 5 | UNICODE_VERSION = '5.0.0' 6 | end 7 | end 8 | 9 | require 'active_support/multibyte/chars' 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb: -------------------------------------------------------------------------------- 1 | # Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call 2 | # will be forwarded to String. 3 | class ActiveSupport::Multibyte::Handlers::PassthruHandler #:nodoc: 4 | 5 | # Return the original byteoffset 6 | def self.translate_offset(string, byte_offset) #:nodoc: 7 | byte_offset 8 | end 9 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/string_inquirer.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | class StringInquirer < String 3 | def method_missing(method_name, *arguments) 4 | if method_name.to_s.ends_with?("?") 5 | self == method_name.to_s[0..-2] 6 | else 7 | super 8 | end 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/test_case.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit/testcase' 2 | require 'active_support/testing/setup_and_teardown' 3 | require 'active_support/testing/default' 4 | 5 | # TODO: move to core_ext 6 | class Test::Unit::TestCase #:nodoc: 7 | include ActiveSupport::Testing::SetupAndTeardown 8 | end 9 | 10 | module ActiveSupport 11 | class TestCase < Test::Unit::TestCase 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/testing/default.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module Testing 3 | module Default #:nodoc: 4 | # Placeholder so test/unit ignores test cases without any tests. 5 | def default_test 6 | end 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | #-- 4 | # Copyright 2004 by Jim Weirich (jim@weirichhouse.org). 5 | # All rights reserved. 6 | 7 | # Permission is granted for use, copying, modification, distribution, 8 | # and distribution of modified versions of this work as long as the 9 | # above copyright notice is included. 10 | #++ 11 | 12 | require 'builder/xmlmarkup' 13 | require 'builder/xmlevents' 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Etc/UTC.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Etc 6 | module UTC 7 | include TimezoneDefinition 8 | 9 | timezone 'Etc/UTC' do |tz| 10 | tz.offset :o0, 0, 0, :UTC 11 | 12 | end 13 | end 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Bratislava.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Bratislava 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Bratislava', 'Europe/Prague' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Ljubljana.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Ljubljana 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Ljubljana', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Sarajevo.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Sarajevo 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Sarajevo', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Skopje.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Skopje 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Skopje', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/tzinfo-0.3.9/tzinfo/definitions/Europe/Zagreb.rb: -------------------------------------------------------------------------------- 1 | require 'tzinfo/timezone_definition' 2 | 3 | module TZInfo 4 | module Definitions 5 | module Europe 6 | module Zagreb 7 | include TimezoneDefinition 8 | 9 | linked_timezone 'Europe/Zagreb', 'Europe/Belgrade' 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/activesupport.rb: -------------------------------------------------------------------------------- 1 | require 'active_support' 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' -------------------------------------------------------------------------------- /vendor/rails/railties/bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/dbconsole: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/dbconsole' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/destroy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/destroy' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/request: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/performance/request' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/plugin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/plugin' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/inspector: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/inspector' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/reaper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/reaper' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/process/spawner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../../config/boot' 3 | require 'commands/process/spawner' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/runner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/runner' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/server' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails/info_controller.rb: -------------------------------------------------------------------------------- 1 | class Rails::InfoController < ActionController::Base 2 | def properties 3 | if consider_all_requests_local || local_request? 4 | render :inline => Rails::Info.to_html 5 | else 6 | render :text => '

For security purposes, this information is only available to local requests.

', :status => 500 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails/info_helper.rb: -------------------------------------------------------------------------------- 1 | module Rails::InfoHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails_info_controller.rb: -------------------------------------------------------------------------------- 1 | # Alias to ensure old public.html still works. 2 | RailsInfoController = Rails::InfoController 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/configs/empty.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/railties/configs/empty.log -------------------------------------------------------------------------------- /vendor/rails/railties/configs/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/fresh_rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require(File.join(File.dirname(__FILE__), 'config', 'boot')) 5 | 6 | require 'rake' 7 | require 'rake/testtask' 8 | require 'rake/rdoctask' 9 | 10 | require 'tasks/rails' 11 | -------------------------------------------------------------------------------- /vendor/rails/railties/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | # Methods added to this helper will be available to all templates in the application. 2 | module ApplicationHelper 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/railties/html/favicon.ico -------------------------------------------------------------------------------- /vendor/rails/railties/html/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/railties/html/images/rails.png -------------------------------------------------------------------------------- /vendor/rails/railties/html/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes here 2 | // This file is automatically included by javascript_include_tag :defaults 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/about.rb: -------------------------------------------------------------------------------- 1 | require 'environment' 2 | require 'rails/info' 3 | puts Rails::Info 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/destroy.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/destroy' 4 | 5 | ARGV.shift if ['--help', '-h'].include?(ARGV[0]) 6 | Rails::Generator::Scripts::Destroy.new.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/generate.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/generate' 4 | 5 | ARGV.shift if ['--help', '-h'].include?(ARGV[0]) 6 | Rails::Generator::Scripts::Generate.new.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/performance/request.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require 'config/environment' 3 | require 'application' 4 | require 'action_controller/request_profiler' 5 | 6 | ActionController::RequestProfiler.run(ARGV) 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/commands/update.rb: -------------------------------------------------------------------------------- 1 | require "#{RAILS_ROOT}/config/environment" 2 | require 'rails_generator' 3 | require 'rails_generator/scripts/update' 4 | Rails::Generator::Scripts::Update.new.run(ARGV) 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/console_sandbox.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Base.send :increment_open_transactions 2 | ActiveRecord::Base.connection.begin_db_transaction 3 | at_exit do 4 | ActiveRecord::Base.connection.rollback_db_transaction 5 | ActiveRecord::Base.send :decrement_open_transactions 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails/version.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 1 5 | TINY = 1 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/applications/app/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | The 'rails' command creates a new Rails application with a default 3 | directory structure and configuration at the path you specify. 4 | 5 | Example: 6 | rails ~/Code/Ruby/weblog 7 | 8 | This generates a skeletal Rails installation in ~/Code/Ruby/weblog. 9 | See the README in the newly created application to get going. 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Controller < ApplicationController 2 | <% for action in actions -%> 3 | def <%= action %> 4 | end 5 | 6 | <% end -%> 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>ControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/view.html.erb: -------------------------------------------------------------------------------- 1 |

<%= class_name %>#<%= action %>

2 |

Find me in <%= path %>

3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/integration_test/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Stubs out a new integration test. Pass the name of the test, either 3 | CamelCased or under_scored, as an argument. The new test class is 4 | generated in test/integration/testname_test.rb 5 | 6 | Example: 7 | `./script/generate integration_test GeneralStories` creates a GeneralStories 8 | integration test in test/integration/general_stories_test.rb 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/integration_test/templates/integration_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>Test < ActionController::IntegrationTest 4 | # fixtures :your, :models 5 | 6 | # Replace this with your real tests. 7 | def test_truth 8 | assert true 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.erb: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= action %> 2 | 3 | Find me in <%= path %> 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActionMailer::Base 2 | 3 | <% for action in actions -%> 4 | 5 | def <%= action %>(sent_at = Time.now) 6 | subject '<%= class_name %>#<%= action %>' 7 | recipients '' 8 | from '' 9 | sent_on sent_at 10 | 11 | body :greeting => 'Hi,' 12 | end 13 | <% end -%> 14 | 15 | end 16 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= action %> 2 | 3 | Find me in <%= path %> 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redox/rbdb/6c5595f8060efbea8b03417e7be62984828e8c3b/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/model.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/model/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>Test < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/observer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Observer < ActiveRecord::Observer 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/observer/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>ObserverTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/README: -------------------------------------------------------------------------------- 1 | <%= class_name %> 2 | <%= "=" * class_name.size %> 3 | 4 | Introduction goes here. 5 | 6 | 7 | Example 8 | ======= 9 | 10 | Example goes here. 11 | 12 | 13 | Copyright (c) <%= Date.today.year %> [name of plugin creator], released under the MIT license 14 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Explain the generator 3 | 4 | Example: 5 | ./script/generate <%= file_name %> Thing 6 | 7 | This will create: 8 | what/will/it/create 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/generator.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Generator < Rails::Generator::NamedBase 2 | def manifest 3 | record do |m| 4 | # m.directory "lib" 5 | # m.template 'README', "README" 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/init.rb: -------------------------------------------------------------------------------- 1 | # Include hook code here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/install.rb: -------------------------------------------------------------------------------- 1 | # Install hook code here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/plugin.rb: -------------------------------------------------------------------------------- 1 | # <%= class_name %> 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/tasks.rake: -------------------------------------------------------------------------------- 1 | # desc "Explaining what the task does" 2 | # task :<%= file_name %> do 3 | # # Task goes here 4 | # end 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/uninstall.rb: -------------------------------------------------------------------------------- 1 | # Uninstall hook code here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/unit' 2 | 3 | class <%= class_name %>Test < Test::Unit::TestCase 4 | # Replace this with your real tests. 5 | def test_this_plugin 6 | flunk 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb: -------------------------------------------------------------------------------- 1 | class <%= controller_class_name %>Controller < ApplicationController 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/functional_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= controller_class_name %>ControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | def test_truth 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper.rb: -------------------------------------------------------------------------------- 1 | module <%= controller_class_name %>Helper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb: -------------------------------------------------------------------------------- 1 | <% for attribute in attributes -%> 2 |

3 | <%= attribute.column.human_name %>: 4 | <%%=h @<%= singular_name %>.<%= attribute.name %> %> 5 |

6 | 7 | <% end -%> 8 | 9 | <%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> | 10 | <%%= link_to 'Back', <%= plural_name %>_path %> 11 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/scripts/generate.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../scripts' 2 | 3 | module Rails::Generator::Scripts 4 | class Generate < Base 5 | mandatory_options :command => :create 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/scripts/update.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../scripts' 2 | 3 | module Rails::Generator::Scripts 4 | class Update < Base 5 | mandatory_options :command => :update 6 | 7 | protected 8 | def banner 9 | "Usage: #{$0} [options] scaffold" 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/railties_path.rb: -------------------------------------------------------------------------------- 1 | RAILTIES_PATH = File.join(File.dirname(__FILE__), '..') 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/tasks/log.rake: -------------------------------------------------------------------------------- 1 | namespace :log do 2 | desc "Truncates all *.log files in log/ to zero bytes" 3 | task :clear do 4 | FileList["log/*.log"].each do |log_file| 5 | f = File.open(log_file, "w") 6 | f.close 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/tasks/rails.rb: -------------------------------------------------------------------------------- 1 | $VERBOSE = nil 2 | 3 | # Load Rails rakefile extensions 4 | Dir["#{File.dirname(__FILE__)}/*.rake"].each { |ext| load ext } 5 | 6 | # Load any custom rakefile extensions 7 | Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext } 8 | Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext } 9 | --------------------------------------------------------------------------------