├── gem_make.out ├── public ├── favicon.ico └── robots.txt ├── vendor ├── rails │ ├── railties │ │ ├── html │ │ │ ├── favicon.ico │ │ │ ├── images │ │ │ │ └── rails.png │ │ │ ├── javascripts │ │ │ │ └── application.js │ │ │ └── robots.txt │ │ ├── configs │ │ │ ├── empty.log │ │ │ ├── locales │ │ │ │ └── en.yml │ │ │ ├── initializers │ │ │ │ └── mime_types.rb │ │ │ └── seeds.rb │ │ ├── lib │ │ │ ├── rails_generator │ │ │ │ ├── generators │ │ │ │ │ ├── components │ │ │ │ │ │ ├── mailer │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── view.rhtml │ │ │ │ │ │ │ │ ├── fixture.rhtml │ │ │ │ │ │ │ │ ├── view.erb │ │ │ │ │ │ │ │ └── fixture.erb │ │ │ │ │ │ ├── plugin │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── init.rb │ │ │ │ │ │ │ │ ├── plugin.rb │ │ │ │ │ │ │ │ ├── install.rb │ │ │ │ │ │ │ │ ├── uninstall.rb │ │ │ │ │ │ │ │ ├── test_helper.rb │ │ │ │ │ │ │ │ ├── tasks.rake │ │ │ │ │ │ │ │ ├── USAGE │ │ │ │ │ │ │ │ ├── unit_test.rb │ │ │ │ │ │ │ │ ├── generator.rb │ │ │ │ │ │ │ │ └── README │ │ │ │ │ │ ├── helper │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ └── helper_test.rb │ │ │ │ │ │ ├── controller │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ ├── view.html.erb │ │ │ │ │ │ │ │ ├── helper_test.rb │ │ │ │ │ │ │ │ ├── controller.rb │ │ │ │ │ │ │ │ └── functional_test.rb │ │ │ │ │ │ ├── resource │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ ├── controller.rb │ │ │ │ │ │ │ │ ├── helper_test.rb │ │ │ │ │ │ │ │ └── functional_test.rb │ │ │ │ │ │ ├── scaffold │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── helper.rb │ │ │ │ │ │ │ │ └── helper_test.rb │ │ │ │ │ │ ├── observer │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── observer.rb │ │ │ │ │ │ │ │ └── unit_test.rb │ │ │ │ │ │ ├── metal │ │ │ │ │ │ │ ├── USAGE │ │ │ │ │ │ │ └── metal_generator.rb │ │ │ │ │ │ ├── model │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ ├── model.rb │ │ │ │ │ │ │ │ └── unit_test.rb │ │ │ │ │ │ ├── integration_test │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ └── integration_test.rb │ │ │ │ │ │ └── performance_test │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ └── performance_test.rb │ │ │ │ │ └── applications │ │ │ │ │ │ └── app │ │ │ │ │ │ └── scm │ │ │ │ │ │ ├── svn.rb │ │ │ │ │ │ └── scm.rb │ │ │ │ └── scripts │ │ │ │ │ ├── generate.rb │ │ │ │ │ └── update.rb │ │ │ ├── railties_path.rb │ │ │ ├── commands │ │ │ │ ├── about.rb │ │ │ │ ├── update.rb │ │ │ │ ├── destroy.rb │ │ │ │ └── generate.rb │ │ │ ├── console_with_helpers.rb │ │ │ ├── rails │ │ │ │ ├── version.rb │ │ │ │ └── rack.rb │ │ │ ├── performance_test_help.rb │ │ │ ├── tasks │ │ │ │ ├── log.rake │ │ │ │ ├── middleware.rake │ │ │ │ └── rails.rb │ │ │ └── console_sandbox.rb │ │ ├── builtin │ │ │ └── rails_info │ │ │ │ ├── rails │ │ │ │ └── info_helper.rb │ │ │ │ └── rails_info_controller.rb │ │ ├── guides │ │ │ ├── images │ │ │ │ ├── csrf.png │ │ │ │ ├── fxn.jpg │ │ │ │ ├── habtm.png │ │ │ │ ├── bullet.gif │ │ │ │ ├── has_one.png │ │ │ │ ├── tab_red.gif │ │ │ │ ├── belongs_to.png │ │ │ │ ├── book_icon.gif │ │ │ │ ├── has_many.png │ │ │ │ ├── icons │ │ │ │ │ ├── home.png │ │ │ │ │ ├── next.png │ │ │ │ │ ├── note.png │ │ │ │ │ ├── prev.png │ │ │ │ │ ├── tip.png │ │ │ │ │ ├── up.png │ │ │ │ │ ├── caution.png │ │ │ │ │ ├── example.png │ │ │ │ │ ├── important.png │ │ │ │ │ ├── warning.png │ │ │ │ │ ├── callouts │ │ │ │ │ │ ├── 1.png │ │ │ │ │ │ ├── 10.png │ │ │ │ │ │ ├── 11.png │ │ │ │ │ │ ├── 12.png │ │ │ │ │ │ ├── 13.png │ │ │ │ │ │ ├── 14.png │ │ │ │ │ │ ├── 15.png │ │ │ │ │ │ ├── 2.png │ │ │ │ │ │ ├── 3.png │ │ │ │ │ │ ├── 4.png │ │ │ │ │ │ ├── 5.png │ │ │ │ │ │ ├── 6.png │ │ │ │ │ │ ├── 7.png │ │ │ │ │ │ ├── 8.png │ │ │ │ │ │ └── 9.png │ │ │ │ │ └── README │ │ │ │ ├── nav_arrow.gif │ │ │ │ ├── tab_grey.gif │ │ │ │ ├── tab_info.gif │ │ │ │ ├── tab_note.gif │ │ │ │ ├── tab_yellow.gif │ │ │ │ ├── tab_yellow.png │ │ │ │ ├── check_bullet.gif │ │ │ │ ├── feature_tile.gif │ │ │ │ ├── footer_tile.gif │ │ │ │ ├── grey_bullet.gif │ │ │ │ ├── header_tile.gif │ │ │ │ ├── polymorphic.png │ │ │ │ ├── posts_index.png │ │ │ │ ├── chapters_icon.gif │ │ │ │ ├── error_messages.png │ │ │ │ ├── has_one_through.png │ │ │ │ ├── header_backdrop.png │ │ │ │ ├── rails_welcome.png │ │ │ │ ├── credits_pic_blank.gif │ │ │ │ ├── has_many_through.png │ │ │ │ ├── rails_guides_logo.gif │ │ │ │ ├── rails_logo_remix.gif │ │ │ │ ├── session_fixation.png │ │ │ │ ├── i18n │ │ │ │ │ ├── demo_untranslated.png │ │ │ │ │ ├── demo_translated_en.png │ │ │ │ │ ├── demo_localized_pirate.png │ │ │ │ │ ├── demo_translated_pirate.png │ │ │ │ │ └── demo_translation_missing.png │ │ │ │ ├── customized_error_messages.png │ │ │ │ └── validation_error_messages.png │ │ │ └── files │ │ │ │ ├── javascripts │ │ │ │ └── guides.js │ │ │ │ └── stylesheets │ │ │ │ └── style.css │ │ ├── bin │ │ │ ├── plugin │ │ │ ├── runner │ │ │ ├── server │ │ │ ├── console │ │ │ ├── dbconsole │ │ │ ├── destroy │ │ │ ├── generate │ │ │ ├── performance │ │ │ │ ├── profiler │ │ │ │ └── benchmarker │ │ │ └── about │ │ ├── helpers │ │ │ ├── application_helper.rb │ │ │ └── performance_test.rb │ │ ├── dispatches │ │ │ └── config.ru │ │ ├── doc │ │ │ └── README_FOR_APP │ │ └── fresh_rakefile │ ├── activerecord │ │ ├── test │ │ │ ├── fixtures │ │ │ │ ├── all │ │ │ │ │ ├── tasks.yml │ │ │ │ │ ├── developers.yml │ │ │ │ │ └── people.csv │ │ │ │ ├── naked │ │ │ │ │ ├── csv │ │ │ │ │ │ └── accounts.csv │ │ │ │ │ └── yml │ │ │ │ │ │ ├── accounts.yml │ │ │ │ │ │ ├── courses.yml │ │ │ │ │ │ └── companies.yml │ │ │ │ ├── fk_test_has_pk.yml │ │ │ │ ├── minimalistics.yml │ │ │ │ ├── fk_test_has_fk.yml │ │ │ │ ├── items.yml │ │ │ │ ├── warehouse-things.yml │ │ │ │ ├── toys.yml │ │ │ │ ├── legacy_things.yml │ │ │ │ ├── computers.yml │ │ │ │ ├── reserved_words │ │ │ │ │ ├── distinct.yml │ │ │ │ │ ├── select.yml │ │ │ │ │ ├── values.yml │ │ │ │ │ ├── group.yml │ │ │ │ │ └── distincts_selects.yml │ │ │ │ ├── author_addresses.yml │ │ │ │ ├── author_favorites.yml │ │ │ │ ├── vertices.yml │ │ │ │ ├── tags.yml │ │ │ │ ├── organizations.yml │ │ │ │ ├── ships.yml │ │ │ │ ├── jobs.yml │ │ │ │ ├── courses.yml │ │ │ │ ├── member_types.yml │ │ │ │ ├── movies.yml │ │ │ │ ├── mixed_case_monkeys.yml │ │ │ │ ├── owners.yml │ │ │ │ ├── books.yml │ │ │ │ ├── fixture_database.sqlite │ │ │ │ ├── fixture_database.sqlite3 │ │ │ │ ├── fixture_database_2.sqlite │ │ │ │ ├── projects.yml │ │ │ │ ├── edges.yml │ │ │ │ ├── fixture_database_2.sqlite3 │ │ │ │ ├── members.yml │ │ │ │ ├── readers.yml │ │ │ │ ├── subscribers.yml │ │ │ │ ├── mateys.yml │ │ │ │ ├── authors.yml │ │ │ │ ├── price_estimates.yml │ │ │ │ ├── clubs.yml │ │ │ │ ├── categories │ │ │ │ │ ├── subsubdir │ │ │ │ │ │ └── arbitrary_filename.yml │ │ │ │ │ └── special_categories.yml │ │ │ │ ├── funny_jokes.yml │ │ │ │ ├── categories_ordered.yml │ │ │ │ ├── treasures.yml │ │ │ │ ├── pets.yml │ │ │ │ ├── tasks.yml │ │ │ │ ├── entrants.yml │ │ │ │ ├── pirates.yml │ │ │ │ ├── categories.yml │ │ │ │ ├── subscriptions.yml │ │ │ │ ├── parrots_pirates.yml │ │ │ │ ├── people.yml │ │ │ │ ├── references.yml │ │ │ │ ├── categorizations.yml │ │ │ │ ├── sponsors.yml │ │ │ │ ├── developers.yml │ │ │ │ └── developers_projects.yml │ │ │ ├── models │ │ │ │ ├── binary.rb │ │ │ │ ├── guid.rb │ │ │ │ ├── default.rb │ │ │ │ ├── task.rb │ │ │ │ ├── minimalistic.rb │ │ │ │ ├── bird.rb │ │ │ │ ├── course.rb │ │ │ │ ├── entrant.rb │ │ │ │ ├── event.rb │ │ │ │ ├── joke.rb │ │ │ │ ├── member_type.rb │ │ │ │ ├── keyboard.rb │ │ │ │ ├── legacy_thing.rb │ │ │ │ ├── reader.rb │ │ │ │ ├── column_name.rb │ │ │ │ ├── mixed_case_monkey.rb │ │ │ │ ├── movie.rb │ │ │ │ ├── reference.rb │ │ │ │ ├── computer.rb │ │ │ │ ├── contract.rb │ │ │ │ ├── ship_part.rb │ │ │ │ ├── subscription.rb │ │ │ │ ├── essay.rb │ │ │ │ ├── price_estimate.rb │ │ │ │ ├── matey.rb │ │ │ │ ├── subject.rb │ │ │ │ ├── pet.rb │ │ │ │ ├── categorization.rb │ │ │ │ ├── auto_id.rb │ │ │ │ ├── owner.rb │ │ │ │ ├── warehouse_thing.rb │ │ │ │ ├── member_detail.rb │ │ │ │ ├── item.rb │ │ │ │ ├── sponsor.rb │ │ │ │ ├── job.rb │ │ │ │ ├── toy.rb │ │ │ │ ├── book.rb │ │ │ │ ├── organization.rb │ │ │ │ ├── treasure.rb │ │ │ │ ├── membership.rb │ │ │ │ ├── subscriber.rb │ │ │ │ ├── order.rb │ │ │ │ ├── tag.rb │ │ │ │ ├── edge.rb │ │ │ │ ├── citation.rb │ │ │ │ └── ship.rb │ │ │ ├── assets │ │ │ │ ├── example.log │ │ │ │ └── flowers.jpg │ │ │ ├── migrations │ │ │ │ ├── duplicate │ │ │ │ │ ├── 3_foo.rb │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ ├── 2_we_need_reminders.rb │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ ├── duplicate_names │ │ │ │ │ ├── 20080507052938_chunky.rb │ │ │ │ │ └── 20080507053028_chunky.rb │ │ │ │ ├── interleaved │ │ │ │ │ ├── pass_3 │ │ │ │ │ │ ├── 2_i_raise_on_down.rb │ │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ │ ├── pass_2 │ │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ │ └── pass_1 │ │ │ │ │ │ └── 3_innocent_jointable.rb │ │ │ │ ├── missing │ │ │ │ │ ├── 1_people_have_last_names.rb │ │ │ │ │ ├── 1000_people_have_middle_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 │ │ │ │ └── broken │ │ │ │ │ └── 100_migration_that_raises_exception.rb │ │ │ ├── schema │ │ │ │ └── schema2.rb │ │ │ ├── config.rb │ │ │ └── cases │ │ │ │ └── connection_test_firebird.rb │ │ ├── lib │ │ │ ├── activerecord.rb │ │ │ └── active_record │ │ │ │ └── version.rb │ │ └── examples │ │ │ └── associations.png │ ├── actionpack │ │ ├── test │ │ │ ├── fixtures │ │ │ │ ├── multipart │ │ │ │ │ ├── hello.txt │ │ │ │ │ ├── single_parameter │ │ │ │ │ ├── bracketed_param │ │ │ │ │ ├── binary_file │ │ │ │ │ ├── mixed_files │ │ │ │ │ ├── mona_lisa.jpg │ │ │ │ │ ├── none │ │ │ │ │ ├── empty │ │ │ │ │ └── text_file │ │ │ │ ├── shared.html.erb │ │ │ │ ├── test │ │ │ │ │ ├── _partial.erb │ │ │ │ │ ├── _two.html.erb │ │ │ │ │ ├── _hello.builder │ │ │ │ │ ├── _partial.js.erb │ │ │ │ │ ├── _partial.html.erb │ │ │ │ │ ├── _partial_only.erb │ │ │ │ │ ├── dont_pick_me │ │ │ │ │ ├── hello_world.erb │ │ │ │ │ ├── hello_world.erb~ │ │ │ │ │ ├── _raise.html.erb │ │ │ │ │ ├── hello_world.da.html.erb │ │ │ │ │ ├── hello_world.pt-BR.html.erb │ │ │ │ │ ├── hyphen-ated.erb │ │ │ │ │ ├── template.erb │ │ │ │ │ ├── _counter.html.erb │ │ │ │ │ ├── _form.erb │ │ │ │ │ ├── greeting.erb │ │ │ │ │ ├── malformed │ │ │ │ │ │ ├── malformed.erb~ │ │ │ │ │ │ ├── malformed.html.erb~ │ │ │ │ │ │ └── malformed.en.html.erb~ │ │ │ │ │ ├── utf8.html.erb │ │ │ │ │ ├── formatted_html_erb.html.erb │ │ │ │ │ ├── formatted_xml_erb.builder │ │ │ │ │ ├── hello_world_with_layout_false.erb │ │ │ │ │ ├── _one.html.erb │ │ │ │ │ ├── greeting.js.rjs │ │ │ │ │ ├── _customer.erb │ │ │ │ │ ├── _labelling_form.erb │ │ │ │ │ ├── _person.erb │ │ │ │ │ ├── implicit_content_type.atom.builder │ │ │ │ │ ├── render_file_with_ivar.erb │ │ │ │ │ ├── render_file_with_locals.erb │ │ │ │ │ ├── formatted_xml_erb.html.erb │ │ │ │ │ ├── formatted_xml_erb.xml.erb │ │ │ │ │ ├── render_file_from_template.html.erb │ │ │ │ │ ├── sub_template_raise.html.erb │ │ │ │ │ ├── _customer_greeting.erb │ │ │ │ │ ├── _hash_greeting.erb │ │ │ │ │ ├── _partial_for_use_in_layout.html.erb │ │ │ │ │ ├── _partial_with_only_html_version.html.erb │ │ │ │ │ ├── render_implicit_html_template_from_xhr_request.html.erb │ │ │ │ │ ├── render_implicit_js_template_without_layout.js.erb │ │ │ │ │ ├── render_to_string_test.erb │ │ │ │ │ ├── _layout_for_partial.html.erb │ │ │ │ │ ├── dot.directory │ │ │ │ │ │ └── render_file_with_ivar.erb │ │ │ │ │ ├── render_implicit_html_template_from_xhr_request.da.html.erb │ │ │ │ │ ├── _customer_counter.erb │ │ │ │ │ ├── _local_inspector.html.erb │ │ │ │ │ ├── _layout_for_block_with_args.html.erb │ │ │ │ │ ├── action_talk_to_layout.erb │ │ │ │ │ ├── capturing.erb │ │ │ │ │ ├── _customer_with_var.erb │ │ │ │ │ ├── _hash_object.erb │ │ │ │ │ ├── content_for.erb │ │ │ │ │ ├── render_implicit_html_template.js.rjs │ │ │ │ │ ├── hello_world_from_rxml.builder │ │ │ │ │ ├── content_for_with_parameter.erb │ │ │ │ │ ├── delete_with_js.rjs │ │ │ │ │ ├── render_explicit_html_template.js.rjs │ │ │ │ │ ├── hello.builder │ │ │ │ │ ├── hello_world_container.builder │ │ │ │ │ ├── content_for_concatenated.erb │ │ │ │ │ ├── list.erb │ │ │ │ │ ├── non_erb_block_content_for.builder │ │ │ │ │ ├── using_layout_around_block_with_args.html.erb │ │ │ │ │ ├── using_layout_around_block.html.erb │ │ │ │ │ ├── calling_partial_with_layout.html.erb │ │ │ │ │ ├── potential_conflicts.erb │ │ │ │ │ ├── nested_layout.erb │ │ │ │ │ ├── hello_xml_world.builder │ │ │ │ │ ├── enum_rjs_test.rjs │ │ │ │ │ └── update_element_with_capture.erb │ │ │ │ ├── fun │ │ │ │ │ ├── games │ │ │ │ │ │ ├── _game.erb │ │ │ │ │ │ └── hello_world.erb │ │ │ │ │ └── serious │ │ │ │ │ │ └── games │ │ │ │ │ │ └── _game.erb │ │ │ │ ├── layout_tests │ │ │ │ │ ├── alt │ │ │ │ │ │ ├── layouts │ │ │ │ │ │ │ └── alt.rhtml │ │ │ │ │ │ └── hello.rhtml │ │ │ │ │ ├── views │ │ │ │ │ │ └── hello.rhtml │ │ │ │ │ └── layouts │ │ │ │ │ │ ├── item.rhtml │ │ │ │ │ │ ├── third_party_template_library.mab │ │ │ │ │ │ ├── layout_test.rhtml │ │ │ │ │ │ ├── multiple_extensions.html.erb │ │ │ │ │ │ └── controller_name_space │ │ │ │ │ │ └── nested.rhtml │ │ │ │ ├── failsafe │ │ │ │ │ └── 500.html │ │ │ │ ├── projects │ │ │ │ │ └── _project.erb │ │ │ │ ├── public │ │ │ │ │ ├── 404.html │ │ │ │ │ ├── 500.html │ │ │ │ │ ├── javascripts │ │ │ │ │ │ ├── bank.js │ │ │ │ │ │ ├── robber.js │ │ │ │ │ │ ├── controls.js │ │ │ │ │ │ ├── dragdrop.js │ │ │ │ │ │ ├── effects.js │ │ │ │ │ │ ├── application.js │ │ │ │ │ │ ├── prototype.js │ │ │ │ │ │ ├── version.1.0.js │ │ │ │ │ │ └── subdir │ │ │ │ │ │ │ └── subdir.js │ │ │ │ │ ├── stylesheets │ │ │ │ │ │ ├── bank.css │ │ │ │ │ │ ├── robber.css │ │ │ │ │ │ ├── version.1.0.css │ │ │ │ │ │ └── subdir │ │ │ │ │ │ │ └── subdir.css │ │ │ │ │ ├── 500.da.html │ │ │ │ │ ├── images │ │ │ │ │ │ └── rails.png │ │ │ │ │ └── absolute │ │ │ │ │ │ └── test.css │ │ │ │ ├── replies │ │ │ │ │ └── _reply.erb │ │ │ │ ├── topics │ │ │ │ │ └── _topic.html.erb │ │ │ │ ├── _top_level_partial_only.erb │ │ │ │ ├── layouts │ │ │ │ │ ├── xhr.html.erb │ │ │ │ │ ├── default_html.html.erb │ │ │ │ │ ├── yield.erb │ │ │ │ │ ├── builder.builder │ │ │ │ │ ├── standard.erb │ │ │ │ │ ├── _column.html.erb │ │ │ │ │ ├── talk_from_action.erb │ │ │ │ │ ├── partial_with_layout.erb │ │ │ │ │ └── block_with_layout.erb │ │ │ │ ├── mascots │ │ │ │ │ └── _mascot.html.erb │ │ │ │ ├── post_test │ │ │ │ │ ├── post │ │ │ │ │ │ ├── index.html.erb │ │ │ │ │ │ └── index.iphone.erb │ │ │ │ │ ├── super_post │ │ │ │ │ │ ├── index.html.erb │ │ │ │ │ │ └── index.iphone.erb │ │ │ │ │ └── layouts │ │ │ │ │ │ ├── post.html.erb │ │ │ │ │ │ └── super_post.iphone.erb │ │ │ │ ├── _top_level_partial.html.erb │ │ │ │ ├── developers │ │ │ │ │ └── _developer.erb │ │ │ │ ├── override2 │ │ │ │ │ └── layouts │ │ │ │ │ │ └── test │ │ │ │ │ │ └── sub.erb │ │ │ │ ├── respond_to │ │ │ │ │ ├── using_defaults.html.erb │ │ │ │ │ ├── using_defaults.xml.builder │ │ │ │ │ ├── using_defaults_with_type_list.html.erb │ │ │ │ │ ├── custom_constant_handling_without_block.mobile.erb │ │ │ │ │ ├── using_defaults.js.rjs │ │ │ │ │ ├── all_types_with_layout.html.erb │ │ │ │ │ ├── using_defaults_with_type_list.xml.builder │ │ │ │ │ ├── all_types_with_layout.js.rjs │ │ │ │ │ ├── iphone_with_html_response_type.html.erb │ │ │ │ │ ├── layouts │ │ │ │ │ │ ├── standard.html.erb │ │ │ │ │ │ ├── missing.html.erb │ │ │ │ │ │ └── standard.iphone.erb │ │ │ │ │ ├── using_defaults_with_type_list.js.rjs │ │ │ │ │ └── iphone_with_html_response_type.iphone.erb │ │ │ │ ├── scope │ │ │ │ │ └── test │ │ │ │ │ │ └── modgreet.erb │ │ │ │ ├── addresses │ │ │ │ │ └── list.erb │ │ │ │ ├── override │ │ │ │ │ └── test │ │ │ │ │ │ └── hello_world.erb │ │ │ │ ├── quiz │ │ │ │ │ └── questions │ │ │ │ │ │ └── _question.html.erb │ │ │ │ ├── content_type │ │ │ │ │ ├── render_default_for_rhtml.rhtml │ │ │ │ │ ├── render_default_for_rjs.rjs │ │ │ │ │ ├── render_default_for_rxml.rxml │ │ │ │ │ └── render_default_content_types_for_respond_to.rhtml │ │ │ │ ├── customers │ │ │ │ │ └── _customer.html.erb │ │ │ │ ├── alternate_helpers │ │ │ │ │ └── foo_helper.rb │ │ │ │ ├── mascot.rb │ │ │ │ ├── mascots.yml │ │ │ │ ├── helpers │ │ │ │ │ ├── fun │ │ │ │ │ │ ├── pdf_helper.rb │ │ │ │ │ │ └── games_helper.rb │ │ │ │ │ └── abc_helper.rb │ │ │ │ ├── functional_caching │ │ │ │ │ ├── _partial.erb │ │ │ │ │ ├── html_fragment_cached_with_partial.html.erb │ │ │ │ │ ├── formatted_fragment_cached.html.erb │ │ │ │ │ ├── fragment_cached.html.erb │ │ │ │ │ ├── js_fragment_cached_with_partial.js.rjs │ │ │ │ │ ├── formatted_fragment_cached.xml.builder │ │ │ │ │ ├── inline_fragment_cached.html.erb │ │ │ │ │ └── formatted_fragment_cached.js.rjs │ │ │ │ ├── symlink_parent │ │ │ │ │ └── symlinked_layout.erb │ │ │ │ ├── topic.rb │ │ │ │ ├── project.rb │ │ │ │ ├── bad_customers │ │ │ │ │ └── _bad_customer.html.erb │ │ │ │ ├── good_customers │ │ │ │ │ └── _good_customer.html.erb │ │ │ │ ├── projects.yml │ │ │ │ ├── reply.rb │ │ │ │ ├── developer.rb │ │ │ │ ├── company.rb │ │ │ │ ├── developers_projects.yml │ │ │ │ ├── replies.yml │ │ │ │ ├── developers.yml │ │ │ │ └── companies.yml │ │ │ ├── controller │ │ │ │ ├── controller_fixtures │ │ │ │ │ ├── app │ │ │ │ │ │ └── controllers │ │ │ │ │ │ │ ├── user_controller.rb │ │ │ │ │ │ │ └── admin │ │ │ │ │ │ │ └── user_controller.rb │ │ │ │ │ └── vendor │ │ │ │ │ │ └── plugins │ │ │ │ │ │ └── bad_plugin │ │ │ │ │ │ └── lib │ │ │ │ │ │ └── plugin_controller.rb │ │ │ │ └── fake_models.rb │ │ │ ├── view │ │ │ │ └── test_case_test.rb │ │ │ └── testing_sandbox.rb │ │ └── lib │ │ │ ├── actionpack.rb │ │ │ ├── action_controller │ │ │ ├── templates │ │ │ │ └── rescues │ │ │ │ │ ├── unknown_action.erb │ │ │ │ │ └── missing_template.erb │ │ │ ├── vendor │ │ │ │ └── html-scanner │ │ │ │ │ └── html │ │ │ │ │ └── version.rb │ │ │ ├── translation.rb │ │ │ └── middlewares.rb │ │ │ └── action_pack │ │ │ └── version.rb │ ├── actionmailer │ │ ├── lib │ │ │ ├── actionmailer.rb │ │ │ └── action_mailer │ │ │ │ ├── vendor │ │ │ │ ├── tmail-1.2.3 │ │ │ │ │ ├── tmail │ │ │ │ │ │ ├── loader.rb │ │ │ │ │ │ ├── mbox.rb │ │ │ │ │ │ ├── main.rb │ │ │ │ │ │ └── index.rb │ │ │ │ │ └── tmail.rb │ │ │ │ ├── text_format.rb │ │ │ │ └── tmail.rb │ │ │ │ ├── utils.rb │ │ │ │ └── version.rb │ │ └── test │ │ │ └── fixtures │ │ │ ├── first_mailer │ │ │ └── share.erb │ │ │ ├── auto_layout_mailer │ │ │ ├── hello.html.erb │ │ │ ├── multipart.text.html.erb │ │ │ └── multipart.text.plain.erb │ │ │ ├── second_mailer │ │ │ └── share.erb │ │ │ ├── layouts │ │ │ ├── spam.html.erb │ │ │ ├── auto_layout_mailer.html.erb │ │ │ └── auto_layout_mailer.text.erb │ │ │ ├── test_mailer │ │ │ ├── _subtemplate.text.plain.erb │ │ │ ├── rxml_template.rxml │ │ │ ├── rxml_template.builder │ │ │ ├── body_ivar.erb │ │ │ ├── signed_up.html.erb │ │ │ ├── implicitly_multipart_example.text.yaml.erb │ │ │ ├── included_subtemplate.text.plain.erb │ │ │ ├── implicitly_multipart_example.ignored.erb │ │ │ ├── implicitly_multipart_example.rhtml.bak │ │ │ ├── custom_templating_extension.text.html.haml │ │ │ ├── custom_templating_extension.text.plain.haml │ │ │ ├── implicitly_multipart_example.text.plain.erb │ │ │ ├── signed_up_with_url.erb │ │ │ ├── implicitly_multipart_example.text.html.erb │ │ │ └── implicitly_multipart_example.text.html.erb~ │ │ │ ├── explicit_layout_mailer │ │ │ ├── logout.html.erb │ │ │ └── signup.html.erb │ │ │ ├── templates │ │ │ └── signed_up.erb │ │ │ ├── helper_mailer │ │ │ ├── use_example_helper.erb │ │ │ ├── use_helper.erb │ │ │ ├── use_helper_method.erb │ │ │ └── use_mail_helper.erb │ │ │ ├── asset_host_mailer │ │ │ └── email_with_asset.html.erb │ │ │ ├── path.with.dots │ │ │ └── funky_path_mailer │ │ │ │ └── multipart_with_template_path_with_dots.erb │ │ │ └── helpers │ │ │ └── example_helper.rb │ ├── activesupport │ │ └── lib │ │ │ ├── activesupport.rb │ │ │ └── active_support │ │ │ ├── core_ext │ │ │ ├── process.rb │ │ │ ├── string │ │ │ │ ├── bytesize.rb │ │ │ │ ├── xchar.rb │ │ │ │ └── behavior.rb │ │ │ ├── file.rb │ │ │ ├── cgi.rb │ │ │ ├── base64.rb │ │ │ ├── pathname.rb │ │ │ ├── bigdecimal.rb │ │ │ ├── kernel │ │ │ │ └── daemonizing.rb │ │ │ ├── class.rb │ │ │ ├── float.rb │ │ │ ├── kernel.rb │ │ │ ├── object.rb │ │ │ ├── array │ │ │ │ └── random_access.rb │ │ │ ├── object │ │ │ │ └── metaclass.rb │ │ │ └── time │ │ │ │ └── behavior.rb │ │ │ ├── vendor │ │ │ ├── i18n-0.1.3 │ │ │ │ ├── test │ │ │ │ │ ├── locale │ │ │ │ │ │ ├── en.yml │ │ │ │ │ │ └── en.rb │ │ │ │ │ └── all.rb │ │ │ │ └── Rakefile │ │ │ └── tzinfo-0.3.12 │ │ │ │ └── tzinfo │ │ │ │ └── definitions │ │ │ │ └── Europe │ │ │ │ ├── Skopje.rb │ │ │ │ ├── Zagreb.rb │ │ │ │ ├── Sarajevo.rb │ │ │ │ ├── Bratislava.rb │ │ │ │ └── Ljubljana.rb │ │ │ ├── json.rb │ │ │ ├── json │ │ │ ├── encoders │ │ │ │ ├── symbol.rb │ │ │ │ ├── nil_class.rb │ │ │ │ ├── false_class.rb │ │ │ │ ├── regexp.rb │ │ │ │ ├── true_class.rb │ │ │ │ ├── string.rb │ │ │ │ └── object.rb │ │ │ └── variable.rb │ │ │ ├── values │ │ │ └── unicode_tables.dat │ │ │ ├── core_ext.rb │ │ │ ├── version.rb │ │ │ ├── multibyte │ │ │ └── exceptions.rb │ │ │ ├── testing │ │ │ └── default.rb │ │ │ └── all.rb │ └── activeresource │ │ ├── lib │ │ ├── activeresource.rb │ │ └── active_resource │ │ │ └── version.rb │ │ └── test │ │ └── fixtures │ │ ├── person.rb │ │ ├── customer.rb │ │ ├── proxy.rb │ │ ├── street_address.rb │ │ └── beast.rb └── gems │ ├── mongo_mapper-0.6.4 │ ├── VERSION │ ├── .gitignore │ ├── lib │ │ └── mongo_mapper │ │ │ └── associations │ │ │ ├── many_proxy.rb │ │ │ └── many_polymorphic_proxy.rb │ └── test │ │ └── NOTE_ON_TESTING │ ├── mocha-0.9.8 │ ├── lib │ │ ├── mocha │ │ │ ├── standalone.rb │ │ │ ├── is_a.rb │ │ │ ├── no_yields.rb │ │ │ ├── metaclass.rb │ │ │ ├── logger.rb │ │ │ ├── parameter_matchers │ │ │ │ ├── base.rb │ │ │ │ └── object.rb │ │ │ ├── single_return_value.rb │ │ │ ├── single_yield.rb │ │ │ ├── change_state_side_effect.rb │ │ │ └── expectation_error.rb │ │ ├── mocha_standalone.rb │ │ ├── mocha.rb │ │ └── stubba.rb │ ├── test │ │ ├── simple_counter.rb │ │ ├── deprecation_disabler.rb │ │ └── unit │ │ │ └── string_inspect_test.rb │ └── COPYING │ ├── thoughtbot-shoulda-2.10.2 │ ├── test │ │ ├── fixtures │ │ │ ├── friendships.yml │ │ │ ├── products.yml │ │ │ ├── taggings.yml │ │ │ ├── addresses.yml │ │ │ ├── users.yml │ │ │ ├── posts.yml │ │ │ └── tags.yml │ │ ├── rails_root │ │ │ ├── db │ │ │ │ ├── schema.rb │ │ │ │ └── migrate │ │ │ │ │ ├── 007_create_fleas.rb │ │ │ │ │ ├── 004_create_tags.rb │ │ │ │ │ ├── 011_create_treats.rb │ │ │ │ │ ├── 20090506203502_create_profiles.rb │ │ │ │ │ ├── 005_create_dogs.rb │ │ │ │ │ ├── 008_create_dogs_fleas.rb │ │ │ │ │ ├── 003_create_taggings.rb │ │ │ │ │ ├── 20090513104502_create_cats.rb │ │ │ │ │ ├── 002_create_posts.rb │ │ │ │ │ ├── 010_create_friendships.rb │ │ │ │ │ └── 20090506203536_create_registrations.rb │ │ │ ├── config │ │ │ │ ├── environments │ │ │ │ │ └── test.rb │ │ │ │ ├── database.yml │ │ │ │ ├── routes.rb │ │ │ │ └── initializers │ │ │ │ │ └── shoulda.rb │ │ │ ├── app │ │ │ │ ├── helpers │ │ │ │ │ ├── posts_helper.rb │ │ │ │ │ ├── users_helper.rb │ │ │ │ │ └── application_helper.rb │ │ │ │ ├── views │ │ │ │ │ ├── layouts │ │ │ │ │ │ └── wide.html.erb │ │ │ │ │ ├── users │ │ │ │ │ │ └── show.rhtml │ │ │ │ │ └── posts │ │ │ │ │ │ └── show.rhtml │ │ │ │ └── models │ │ │ │ │ ├── profile.rb │ │ │ │ │ ├── treat.rb │ │ │ │ │ ├── registration.rb │ │ │ │ │ ├── flea.rb │ │ │ │ │ ├── tagging.rb │ │ │ │ │ ├── friendship.rb │ │ │ │ │ ├── pets │ │ │ │ │ └── cat.rb │ │ │ │ │ ├── tag.rb │ │ │ │ │ └── address.rb │ │ │ ├── script │ │ │ │ ├── console │ │ │ │ └── generate │ │ │ ├── test │ │ │ │ └── shoulda_macros │ │ │ │ │ └── custom_macro.rb │ │ │ └── vendor │ │ │ │ ├── gems │ │ │ │ └── gem_with_macro-0.0.1 │ │ │ │ │ └── shoulda_macros │ │ │ │ │ └── gem_macro.rb │ │ │ │ └── plugins │ │ │ │ └── plugin_with_macro │ │ │ │ └── shoulda_macros │ │ │ │ └── plugin_macro.rb │ │ └── unit │ │ │ ├── flea_test.rb │ │ │ ├── tagging_test.rb │ │ │ ├── friendship_test.rb │ │ │ ├── cat_test.rb │ │ │ ├── dog_test.rb │ │ │ └── address_test.rb │ ├── lib │ │ ├── shoulda │ │ │ ├── tasks.rb │ │ │ ├── action_view.rb │ │ │ ├── helpers.rb │ │ │ ├── action_mailer.rb │ │ │ └── rspec.rb │ │ └── shoulda.rb │ └── rails │ │ └── init.rb │ ├── redgreen-1.2.2 │ └── bin │ │ └── rg │ └── factory_girl-1.2.3 │ └── lib │ └── factory_girl │ ├── proxy │ └── create.rb │ └── attribute │ ├── static.rb │ └── callback.rb ├── .gems ├── app └── helpers │ ├── stories_helper.rb │ ├── comments_helper.rb │ └── application_helper.rb ├── README ├── script ├── plugin ├── runner ├── server ├── console ├── destroy ├── generate ├── dbconsole ├── performance │ ├── profiler │ └── benchmarker └── about ├── test ├── unit │ └── helpers │ │ ├── comments_helper_test.rb │ │ └── stories_helper_test.rb ├── factories │ ├── comment.rb │ ├── story.rb │ └── user.rb ├── functional │ ├── comments_controller_test.rb │ └── stories_controller_test.rb └── performance │ └── browsing_test.rb ├── .gitignore ├── doc └── README_FOR_APP ├── config ├── locales │ └── en.yml └── initializers │ └── mime_types.rb ├── Rakefile └── db └── seeds.rb /gem_make.out: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/railties/html/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/railties/configs/empty.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/gems/mongo_mapper-0.6.4/VERSION: -------------------------------------------------------------------------------- 1 | 0.6.4 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/tasks.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/developers.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/all/people.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gems: -------------------------------------------------------------------------------- 1 | bcrypt-ruby '>= 2.1.2' 2 | mongo 3 | mongo_mapper 4 | -------------------------------------------------------------------------------- /app/helpers/stories_helper.rb: -------------------------------------------------------------------------------- 1 | module StoriesHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/hello.txt: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/shared.html.erb: -------------------------------------------------------------------------------- 1 | Elastica -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.erb: -------------------------------------------------------------------------------- 1 | invalid -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_two.html.erb: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /app/helpers/comments_helper.rb: -------------------------------------------------------------------------------- 1 | module CommentsHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha/standalone.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/api' -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/fixtures/friendships.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/fixtures/products.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/fixtures/taggings.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/db/schema.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/actionpack.rb: -------------------------------------------------------------------------------- 1 | require 'action_pack' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_hello.builder: -------------------------------------------------------------------------------- 1 | xm.hello -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.js.erb: -------------------------------------------------------------------------------- 1 | partial js -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/csv/accounts.csv: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/accounts.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/actionmailer.rb: -------------------------------------------------------------------------------- 1 | require 'action_mailer' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/fun/games/_game.erb: -------------------------------------------------------------------------------- 1 | <%= game.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/alt/layouts/alt.rhtml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial.html.erb: -------------------------------------------------------------------------------- 1 | partial html -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_partial_only.erb: -------------------------------------------------------------------------------- 1 | only partial -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/dont_pick_me: -------------------------------------------------------------------------------- 1 | non-template file -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.erb~: -------------------------------------------------------------------------------- 1 | Don't pick me! -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/activerecord.rb: -------------------------------------------------------------------------------- 1 | require 'active_record' 2 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/naked/yml/courses.yml: -------------------------------------------------------------------------------- 1 | qwerty 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/first_mailer/share.erb: -------------------------------------------------------------------------------- 1 | first mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/failsafe/500.html: -------------------------------------------------------------------------------- 1 | hello <%= "my" %> world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/projects/_project.erb: -------------------------------------------------------------------------------- 1 | <%= project.name %> -------------------------------------------------------------------------------- /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/javascripts/bank.js: -------------------------------------------------------------------------------- 1 | // bank js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/robber.js: -------------------------------------------------------------------------------- 1 | // robber js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/replies/_reply.erb: -------------------------------------------------------------------------------- 1 | <%= reply.content %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_raise.html.erb: -------------------------------------------------------------------------------- 1 | <%= doesnt_exist %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.da.html.erb: -------------------------------------------------------------------------------- 1 | Hey verden -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hello_world.pt-BR.html.erb: -------------------------------------------------------------------------------- 1 | Ola mundo -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/hyphen-ated.erb: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/template.erb: -------------------------------------------------------------------------------- 1 | <%= template.path %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/topics/_topic.html.erb: -------------------------------------------------------------------------------- 1 | <%= topic.title %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fk_test_has_pk.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/activesupport.rb: -------------------------------------------------------------------------------- 1 | require 'active_support' 2 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/config/environments/test.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/hello.html.erb: -------------------------------------------------------------------------------- 1 | Inside -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/second_mailer/share.erb: -------------------------------------------------------------------------------- 1 | second mail 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/_top_level_partial_only.erb: -------------------------------------------------------------------------------- 1 | top level partial -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/fun/serious/games/_game.erb: -------------------------------------------------------------------------------- 1 | <%= game.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/views/hello.rhtml: -------------------------------------------------------------------------------- 1 | hello.rhtml -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/xhr.html.erb: -------------------------------------------------------------------------------- 1 | XHR! 2 | <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/mascots/_mascot.html.erb: -------------------------------------------------------------------------------- 1 | <%= mascot.name %> -------------------------------------------------------------------------------- /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/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/stylesheets/bank.css: -------------------------------------------------------------------------------- 1 | /* bank.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/robber.css: -------------------------------------------------------------------------------- 1 | /* robber.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_counter.html.erb: -------------------------------------------------------------------------------- 1 | <%= counter_counter %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_form.erb: -------------------------------------------------------------------------------- 1 | <%= form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.erb: -------------------------------------------------------------------------------- 1 |
This is grand!
2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/malformed/malformed.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/utf8.html.erb: -------------------------------------------------------------------------------- 1 | Русский текст 2 | 日本語のテキスト -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/minimalistics.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/activeresource.rb: -------------------------------------------------------------------------------- 1 | require 'active_resource' 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/layouts/spam.html.erb: -------------------------------------------------------------------------------- 1 | Spammer layout <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/_subtemplate.text.plain.erb: -------------------------------------------------------------------------------- 1 | let's go! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/_top_level_partial.html.erb: -------------------------------------------------------------------------------- 1 | top level partial html -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/developers/_developer.erb: -------------------------------------------------------------------------------- 1 | <%= developer.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/fun/games/hello_world.erb: -------------------------------------------------------------------------------- 1 | Living in a nested world -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/alt/hello.rhtml: -------------------------------------------------------------------------------- 1 | alt/hello.rhtml 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override2/layouts/test/sub.erb: -------------------------------------------------------------------------------- 1 | layout: <%= yield %> -------------------------------------------------------------------------------- /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/public/500.da.html: -------------------------------------------------------------------------------- 1 | 500 localized error fixture 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // application js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/prototype.js: -------------------------------------------------------------------------------- 1 | // prototype js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/version.1.0.js: -------------------------------------------------------------------------------- 1 | // version.1.0 js -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/scope/test/modgreet.erb: -------------------------------------------------------------------------------- 1 |Beautiful modules!
-------------------------------------------------------------------------------- /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/hello_world_with_layout_false.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/malformed/malformed.html.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/binary.rb: -------------------------------------------------------------------------------- 1 | class Binary < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/guid.rb: -------------------------------------------------------------------------------- 1 | class Guid < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha_standalone.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/api' 2 | require 'mocha/object' -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb: -------------------------------------------------------------------------------- 1 | You logged out -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb: -------------------------------------------------------------------------------- 1 | We do not spam -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/addresses/list.erb: -------------------------------------------------------------------------------- 1 | We only need to get this far! 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/item.rhtml: -------------------------------------------------------------------------------- 1 | item.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/override/test/hello_world.erb: -------------------------------------------------------------------------------- 1 | Hello overridden world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/javascripts/subdir/subdir.js: -------------------------------------------------------------------------------- 1 | // subdir js 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/version.1.0.css: -------------------------------------------------------------------------------- 1 | /* version.1.0.css */ -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/quiz/questions/_question.html.erb: -------------------------------------------------------------------------------- 1 | <%= question.name %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/malformed/malformed.en.html.erb~: -------------------------------------------------------------------------------- 1 | Don't render me! -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.rhtml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.rxml: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/third_party_template_library.mab: -------------------------------------------------------------------------------- 1 | Mab -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/stylesheets/subdir/subdir.css: -------------------------------------------------------------------------------- 1 | /* subdir.css */ 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.xml.builder: -------------------------------------------------------------------------------- 1 | xml.p "Hello world!" -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_one.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "two" %> world 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/greeting.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /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/items.yml: -------------------------------------------------------------------------------- 1 | dvd: 2 | id: 1 3 | name: Godfather 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/warehouse-things.yml: -------------------------------------------------------------------------------- 1 | one: 2 | id: 1 3 | value: 1000 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/default.rb: -------------------------------------------------------------------------------- 1 | class Default < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/task.rb: -------------------------------------------------------------------------------- 1 | class Task < ActiveRecord::Base 2 | 3 | end 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/builtin/rails_info/rails/info_helper.rb: -------------------------------------------------------------------------------- 1 | module Rails::InfoHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.html.erb: -------------------------------------------------------------------------------- 1 | text/html multipart -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/auto_layout_mailer/multipart.text.plain.erb: -------------------------------------------------------------------------------- 1 | text/plain multipart -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/rxml_template.builder: -------------------------------------------------------------------------------- 1 | xml.instruct! 2 | xml.test -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/controller/controller_fixtures/app/controllers/admin/user_controller.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/respond_to/using_defaults_with_type_list.html.erb: -------------------------------------------------------------------------------- 1 | Hello world! -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_customer.erb: -------------------------------------------------------------------------------- 1 | Hello: <%= customer.name rescue "Anonymous" %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_labelling_form.erb: -------------------------------------------------------------------------------- 1 | <%= labelling_form.label :title %> 2 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/_person.erb: -------------------------------------------------------------------------------- 1 | Second: <%= name %> 2 | Third: <%= @name %> 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/implicit_content_type.atom.builder: -------------------------------------------------------------------------------- 1 | xml.atom do 2 | end 3 | -------------------------------------------------------------------------------- /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/activerecord/test/fixtures/naked/yml/companies.yml: -------------------------------------------------------------------------------- 1 | # i wonder what will happen here 2 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/railties_path.rb: -------------------------------------------------------------------------------- 1 | RAILTIES_PATH = File.join(File.dirname(__FILE__), '..') 2 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb: -------------------------------------------------------------------------------- 1 | Hello from layout <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/layouts/auto_layout_mailer.text.erb: -------------------------------------------------------------------------------- 1 | text/plain layout - <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/templates/signed_up.erb: -------------------------------------------------------------------------------- 1 | Hello there, 2 | 3 | Mr. <%= @recipient %> -------------------------------------------------------------------------------- /vendor/rails/actionmailer/test/fixtures/test_mailer/body_ivar.erb: -------------------------------------------------------------------------------- 1 | body: <%= @body %> 2 | bar: <%= @bar %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml: -------------------------------------------------------------------------------- 1 | layout_test.rhtml <%= yield %> -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/custom_constant_handling_without_block.mobile.erb: -------------------------------------------------------------------------------- 1 | Mobile -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/respond_to/using_defaults.js.rjs: -------------------------------------------------------------------------------- 1 | page[:body].visual_effect :highlight -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/formatted_xml_erb.html.erb: -------------------------------------------------------------------------------- 1 |<%=h @exception.message %>
3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <% cache do %>ERB
<% end %> 3 | -------------------------------------------------------------------------------- /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/js_fragment_cached_with_partial.js.rjs: -------------------------------------------------------------------------------- 1 | page.replace_html 'notices', :partial => 'partial' -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/layouts/_column.html.erb: -------------------------------------------------------------------------------- 1 |<%=h @exception.message %>
3 | -------------------------------------------------------------------------------- /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/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/multipart/single_parameter: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/examples/associations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activerecord/examples/associations.png -------------------------------------------------------------------------------- /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/member_types.yml: -------------------------------------------------------------------------------- 1 | founding: 2 | id: 1 3 | name: Founding 4 | provisional: 5 | id: 2 6 | name: Provisional 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/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/models/contract.rb: -------------------------------------------------------------------------------- 1 | class Contract < ActiveRecord::Base 2 | belongs_to :company 3 | belongs_to :developer 4 | end 5 | 6 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/ship_part.rb: -------------------------------------------------------------------------------- 1 | class ShipPart < ActiveRecord::Base 2 | belongs_to :ship 3 | 4 | validates_presence_of :name 5 | end -------------------------------------------------------------------------------- /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/activesupport/lib/active_support/vendor/i18n-0.1.3/Rakefile: -------------------------------------------------------------------------------- 1 | task :default => [:test] 2 | 3 | task :test do 4 | ruby "test/all.rb" 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/check_bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/check_bullet.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/feature_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/feature_tile.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/footer_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/footer_tile.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/grey_bullet.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/grey_bullet.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/header_tile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/header_tile.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/polymorphic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/polymorphic.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/posts_index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/posts_index.png -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/view.erb: -------------------------------------------------------------------------------- 1 | <%= class_name %>#<%= action %> 2 | 3 | Find me in <%= path %> 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.sw0 3 | .DS_Store 4 | **/.DS_Store 5 | log/* 6 | tmp/* 7 | tmp/**/* 8 | config/database.yml 9 | coverage/* 10 | coverage/**/* 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /script/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /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/multipart/bracketed_param: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="foo[baz]" 3 | 4 | bar 5 | --AaB03x-- 6 | -------------------------------------------------------------------------------- /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/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/models/essay.rb: -------------------------------------------------------------------------------- 1 | class Essay < ActiveRecord::Base 2 | belongs_to :writer, :primary_key => :name, :polymorphic => true 3 | end 4 | -------------------------------------------------------------------------------- /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/activesupport/lib/active_support/json/encoders/symbol.rb: -------------------------------------------------------------------------------- 1 | class Symbol 2 | def as_json(options = nil) #:nodoc: 3 | to_s 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/chapters_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/chapters_icon.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/error_messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/error_messages.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/has_one_through.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/has_one_through.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/header_backdrop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/header_backdrop.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/caution.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/example.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/important.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/warning.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/rails_welcome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/rails_welcome.png -------------------------------------------------------------------------------- /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/observer/templates/observer.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %>Observer < ActiveRecord::Observer 2 | end 3 | -------------------------------------------------------------------------------- /script/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/test/rails_root/app/models/tagging.rb: -------------------------------------------------------------------------------- 1 | class Tagging < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :tag 4 | end 5 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/config/database.yml: -------------------------------------------------------------------------------- 1 | test: 2 | :adapter: sqlite3 3 | # :dbfile: db/sqlite3.db 4 | :dbfile: ":memory:" 5 | -------------------------------------------------------------------------------- /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/test_mailer/custom_templating_extension.text.html.haml: -------------------------------------------------------------------------------- 1 | %p Hello there, 2 | 3 | %p 4 | Mr. 5 | = @recipient 6 | from haml -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.xml.builder: -------------------------------------------------------------------------------- 1 | xml.body do 2 | cache do 3 | xml.p "Builder" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /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/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/subject.rb: -------------------------------------------------------------------------------- 1 | # used for OracleSynonymTest, see test/synonym_test_oci.rb 2 | # 3 | class Subject < ActiveRecord::Base 4 | end 5 | -------------------------------------------------------------------------------- /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/guides/images/credits_pic_blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/credits_pic_blank.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/has_many_through.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/has_many_through.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/1.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/10.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/11.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/12.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/13.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/14.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/15.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/2.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/3.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/4.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/5.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/6.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/7.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/8.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/icons/callouts/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/icons/callouts/9.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/rails_guides_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/rails_guides_logo.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/rails_logo_remix.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/rails_logo_remix.gif -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/session_fixation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/session_fixation.png -------------------------------------------------------------------------------- /test/factories/comment.rb: -------------------------------------------------------------------------------- 1 | Factory.define(:comment) do |c| 2 | c.user { Factory(:user) } 3 | c.story { Factory(:story) } 4 | c.body "I liked this story." 5 | end 6 | -------------------------------------------------------------------------------- /test/factories/story.rb: -------------------------------------------------------------------------------- 1 | Factory.define :story do |s| 2 | s.url "http://google.com" 3 | s.title "Google Launches Search" 4 | s.user { Factory(:user) } 5 | end 6 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha/is_a.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | 3 | # :stopdoc: 4 | 5 | alias_method :__is_a__, :is_a? 6 | 7 | # :startdoc: 8 | 9 | end 10 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/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.text.plain.erb: -------------------------------------------------------------------------------- 1 | Plain text to <%= @recipient %>. 2 | Plain text to <%= @recipient %>. 3 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/binary_file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/actionpack/test/fixtures/multipart/binary_file -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mixed_files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/actionpack/test/fixtures/multipart/mixed_files -------------------------------------------------------------------------------- /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/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/railties/lib/console_with_helpers.rb: -------------------------------------------------------------------------------- 1 | def helper 2 | @helper ||= ApplicationController.helpers 3 | end 4 | 5 | @controller = ApplicationController.new 6 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/script/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/actionpack/test/fixtures/multipart/mona_lisa.jpg -------------------------------------------------------------------------------- /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/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/actionpack/test/fixtures/public/images/rails.png -------------------------------------------------------------------------------- /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!" 5 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/test/using_layout_around_block_with_args.html.erb: -------------------------------------------------------------------------------- 1 | <% render(:layout => "layout_for_block_with_args") do |*args| %><%= args.join %><% end %> -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/models/pet.rb: -------------------------------------------------------------------------------- 1 | class Pet < ActiveRecord::Base 2 | set_primary_key :pet_id 3 | belongs_to :owner, :touch => true 4 | has_many :toys 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/i18n/demo_untranslated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/i18n/demo_untranslated.png -------------------------------------------------------------------------------- /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/lib/rails_generator/generators/components/controller/templates/view.html.erb: -------------------------------------------------------------------------------- 1 |Find me in <%= path %>
3 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/controller.rb: -------------------------------------------------------------------------------- 1 | class <%= controller_class_name %>Controller < ApplicationController 2 | end 3 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/test/rails_root/script/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.dirname(__FILE__) + '/../config/boot' 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activerecord/test/fixtures/fixture_database.sqlite3 -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite -------------------------------------------------------------------------------- /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/models/categorization.rb: -------------------------------------------------------------------------------- 1 | class Categorization < ActiveRecord::Base 2 | belongs_to :post 3 | belongs_to :category 4 | belongs_to :author 5 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/string/bytesize.rb: -------------------------------------------------------------------------------- 1 | unless '1.9'.respond_to?(:bytesize) 2 | class String 3 | alias :bytesize :size 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/customized_error_messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/customized_error_messages.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/i18n/demo_translated_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/i18n/demo_translated_en.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/validation_error_messages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/validation_error_messages.png -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/plugin/templates/test_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'active_support' 3 | require 'active_support/test_case' -------------------------------------------------------------------------------- /script/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' 5 | -------------------------------------------------------------------------------- /vendor/gems/redgreen-1.2.2/bin/rg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require 'rubygems' 3 | require 'redgreen' 4 | require 'win32console' if PLATFORM =~ /win32/ 5 | 6 | require $0 = ARGV.first 7 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :inline => 'Some inline content' %> 2 | <% cache do %>Some cached content<% end %> 3 | -------------------------------------------------------------------------------- /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/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/fixture_database_2.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activerecord/test/fixtures/fixture_database_2.sqlite3 -------------------------------------------------------------------------------- /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/owner.rb: -------------------------------------------------------------------------------- 1 | class Owner < ActiveRecord::Base 2 | set_primary_key :owner_id 3 | has_many :pets 4 | has_many :toys, :through => :pets 5 | end 6 | -------------------------------------------------------------------------------- /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/railties/bin/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/i18n/demo_localized_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/i18n/demo_localized_pirate.png -------------------------------------------------------------------------------- /vendor/rails/railties/guides/images/i18n/demo_translated_pirate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/i18n/demo_translated_pirate.png -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/members.yml: -------------------------------------------------------------------------------- 1 | groucho: 2 | name: Groucho Marx 3 | member_type_id: 1 4 | some_other_guy: 5 | name: Englebert Humperdink 6 | member_type_id: 2 7 | -------------------------------------------------------------------------------- /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/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/railties/guides/images/i18n/demo_translation_missing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/railties/guides/images/i18n/demo_translation_missing.png -------------------------------------------------------------------------------- /vendor/gems/mongo_mapper-0.6.4/lib/mongo_mapper/associations/many_proxy.rb: -------------------------------------------------------------------------------- 1 | module MongoMapper 2 | module Associations 3 | class ManyProxy < ManyDocumentsProxy 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/rails/init.rb: -------------------------------------------------------------------------------- 1 | if RAILS_ENV == 'test' 2 | if defined? Spec 3 | require 'shoulda/rspec' 4 | else 5 | require 'shoulda/rails' 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /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/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/activeresource/test/fixtures/proxy.rb: -------------------------------------------------------------------------------- 1 | class ProxyResource < ActiveResource::Base 2 | self.site = "http://localhost" 3 | self.proxy = "http://user:password@proxy.local:3000" 4 | end -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/banker/newsmonger/HEAD/vendor/rails/activesupport/lib/active_support/values/unicode_tables.dat -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/helper/templates/helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>HelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/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/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/railties/lib/rails_generator/generators/components/controller/templates/helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>HelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /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/gems/mocha-0.9.8/lib/mocha/no_yields.rb: -------------------------------------------------------------------------------- 1 | module Mocha # :nodoc: 2 | 3 | class NoYields # :nodoc: 4 | 5 | def each 6 | end 7 | 8 | end 9 | 10 | end 11 | 12 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/test/shoulda_macros/custom_macro.rb: -------------------------------------------------------------------------------- 1 | module CustomMacro 2 | def custom_macro 3 | end 4 | end 5 | ActiveSupport::TestCase.extend(CustomMacro) 6 | 7 | -------------------------------------------------------------------------------- /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/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/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/activesupport/lib/active_support/core_ext/file.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/file/atomic' 2 | 3 | class File #:nodoc: 4 | extend ActiveSupport::CoreExtensions::File::Atomic 5 | end 6 | -------------------------------------------------------------------------------- /vendor/rails/railties/bin/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/resource/templates/helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= controller_class_name %>HelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/scaffold/templates/helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= controller_class_name %>HelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /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 | end 7 | end 8 | -------------------------------------------------------------------------------- /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/actionpack/test/fixtures/test/nested_layout.erb: -------------------------------------------------------------------------------- 1 | <% content_for :title, "title" -%> 2 | <% content_for :column do -%>column<% end -%> 3 | <% render :layout => 'layouts/column' do -%>content<% end -%> -------------------------------------------------------------------------------- /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/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/models/member_detail.rb: -------------------------------------------------------------------------------- 1 | class MemberDetail < ActiveRecord::Base 2 | belongs_to :member 3 | belongs_to :organization 4 | has_one :member_type, :through => :member 5 | end 6 | -------------------------------------------------------------------------------- /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/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/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/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/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/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/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/gems/thoughtbot-shoulda-2.10.2/lib/shoulda.rb: -------------------------------------------------------------------------------- 1 | module Shoulda 2 | VERSION = "2.10.2" 3 | end 4 | 5 | if defined? Spec 6 | require 'shoulda/rspec' 7 | else 8 | require 'shoulda/test_unit' 9 | end 10 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb: -------------------------------------------------------------------------------- 1 | module GemMacro 2 | def gem_macro 3 | end 4 | end 5 | ActiveSupport::TestCase.extend(GemMacro) 6 | 7 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/unit/flea_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class FleaTest < ActiveSupport::TestCase 4 | should_have_and_belong_to_many :dogs 5 | end 6 | 7 | -------------------------------------------------------------------------------- /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/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/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/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/gems/mocha-0.9.8/lib/stubba.rb: -------------------------------------------------------------------------------- 1 | # for backwards compatibility 2 | require 'mocha' 3 | require 'mocha/deprecation' 4 | Mocha::Deprecation.warning "require 'stubba' is no longer needed and stubba.rb will soon be removed" 5 | -------------------------------------------------------------------------------- /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/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/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/toy.rb: -------------------------------------------------------------------------------- 1 | class Toy < ActiveRecord::Base 2 | set_primary_key :toy_id 3 | belongs_to :pet 4 | 5 | named_scope :with_name, lambda { |name| {:conditions => {:name => name}} } 6 | end 7 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails/version.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /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/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/activesupport/lib/active_support/core_ext.rb: -------------------------------------------------------------------------------- 1 | Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| 2 | filename = File.basename(path, '.rb') 3 | require "active_support/core_ext/#{filename}" 4 | end 5 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/factories/user.rb: -------------------------------------------------------------------------------- 1 | Factory.define(:user) do |u| 2 | u.sequence(:email) { |n| "john#{n}@doe.com" } 3 | u.sequence(:username) { |n| "joe_user_#{n}" } 4 | u.password "testing" 5 | u.password_confirmation "testing" 6 | end 7 | -------------------------------------------------------------------------------- /vendor/gems/mongo_mapper-0.6.4/test/NOTE_ON_TESTING: -------------------------------------------------------------------------------- 1 | I am doing my best to keep unit and functional tests separate. As I see them, functional tests hit the database and should never care about internals. Unit tests do not hit the database. -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb: -------------------------------------------------------------------------------- 1 | module PluginMacro 2 | def plugin_macro 3 | end 4 | end 5 | ActiveSupport::TestCase.extend(PluginMacro) 6 | 7 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/unit/tagging_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class TaggingTest < ActiveSupport::TestCase 4 | should_belong_to :post 5 | should_belong_to :tag 6 | end 7 | -------------------------------------------------------------------------------- /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/organization.rb: -------------------------------------------------------------------------------- 1 | class Organization < ActiveRecord::Base 2 | has_many :member_details 3 | has_many :members, :through => :member_details 4 | 5 | named_scope :clubs, { :from => 'clubs' } 6 | end -------------------------------------------------------------------------------- /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/json/encoders/nil_class.rb: -------------------------------------------------------------------------------- 1 | class NilClass 2 | AS_JSON = ActiveSupport::JSON::Variable.new('null').freeze 3 | 4 | def as_json(options = nil) #:nodoc: 5 | AS_JSON 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/functional/comments_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class CommentsControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/functional/stories_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class StoriesControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/test/simple_counter.rb: -------------------------------------------------------------------------------- 1 | class SimpleCounter 2 | 3 | attr_reader :count 4 | 5 | def initialize 6 | @count = 0 7 | end 8 | 9 | def increment 10 | @count += 1 11 | end 12 | 13 | end -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/version.rb: -------------------------------------------------------------------------------- 1 | module ActionMailer 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/lib/active_record/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveRecord 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /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/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/json/encoders/false_class.rb: -------------------------------------------------------------------------------- 1 | class FalseClass 2 | AS_JSON = ActiveSupport::JSON::Variable.new('false').freeze 3 | 4 | def as_json(options = nil) #:nodoc: 5 | AS_JSON 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /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 | 6 | def as_json(options = nil) #:nodoc: 7 | self 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/json/encoders/true_class.rb: -------------------------------------------------------------------------------- 1 | class TrueClass 2 | AS_JSON = ActiveSupport::JSON::Variable.new('true').freeze 3 | 4 | def as_json(options = nil) #:nodoc: 5 | AS_JSON 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/rails/actionpack/lib/action_pack/version.rb: -------------------------------------------------------------------------------- 1 | module ActionPack #:nodoc: 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/applications/app/scm/svn.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | class Svn < Scm 3 | def self.checkout(repos, branch = nil) 4 | `svn checkout #{repos}/#{branch || "trunk"}` 5 | end 6 | end 7 | end -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | en: 5 | hello: "Hello world" -------------------------------------------------------------------------------- /vendor/rails/activeresource/lib/active_resource/version.rb: -------------------------------------------------------------------------------- 1 | module ActiveResource 2 | module VERSION #:nodoc: 3 | MAJOR = 2 4 | MINOR = 3 5 | TINY = 4 6 | 7 | STRING = [MAJOR, MINOR, TINY].join('.') 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/COPYING: -------------------------------------------------------------------------------- 1 | Copyright Revieworld Ltd. 2006 2 | 3 | You may use, copy and redistribute this library under the same terms as Ruby itself (see http://www.ruby-lang.org/en/LICENSE.txt) or under the MIT license (see MIT-LICENSE file). 4 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/multipart/none: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="submit-name" 3 | 4 | Larry 5 | --AaB03x 6 | Content-Disposition: form-data; name="files"; filename="" 7 | 8 | 9 | --AaB03x-- 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/dispatches/config.ru: -------------------------------------------------------------------------------- 1 | # Rack Dispatcher 2 | 3 | # Require your environment file to bootstrap Rails 4 | require File.dirname(__FILE__) + '/config/environment' 5 | 6 | # Dispatch the request 7 | run ActionController::Dispatcher.new 8 | -------------------------------------------------------------------------------- /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/metal/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Cast some metal! 3 | 4 | Examples: 5 | `./script/generate metal poller` 6 | 7 | This will create: 8 | Metal: app/metal/poller.rb 9 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/rails_generator/generators/components/model/templates/model.rb: -------------------------------------------------------------------------------- 1 | class <%= class_name %> < ActiveRecord::Base 2 | <% attributes.select(&:reference?).each do |attribute| -%> 3 | belongs_to :<%= attribute.name %> 4 | <% end -%> 5 | end 6 | -------------------------------------------------------------------------------- /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/gems/mocha-0.9.8/lib/mocha/metaclass.rb: -------------------------------------------------------------------------------- 1 | module Mocha 2 | 3 | module ObjectMethods 4 | def __metaclass__ 5 | class << self; self; end 6 | end 7 | end 8 | 9 | end 10 | 11 | class Object 12 | include Mocha::ObjectMethods 13 | end -------------------------------------------------------------------------------- /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/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/railties/lib/performance_test_help.rb: -------------------------------------------------------------------------------- 1 | require 'action_controller/performance_test' 2 | 3 | ActionController::Base.perform_caching = true 4 | ActiveSupport::Dependencies.mechanism = :require 5 | Rails.logger.level = ActiveSupport::BufferedLogger::INFO 6 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/functional_caching/formatted_fragment_cached.js.rjs: -------------------------------------------------------------------------------- 1 | page.assign 'title', 'Hey' 2 | cache do 3 | page['element_1'].visual_effect :highlight 4 | page['element_2'].visual_effect :highlight 5 | end 6 | page.assign 'footer', 'Bye' 7 | -------------------------------------------------------------------------------- /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/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/railties/configs/locales/en.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | en: 5 | hello: "Hello world" -------------------------------------------------------------------------------- /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/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/activesupport/lib/active_support/json/encoders/string.rb: -------------------------------------------------------------------------------- 1 | class String 2 | def to_json(options = nil) #:nodoc: 3 | ActiveSupport::JSON::Encoding.escape(self) 4 | end 5 | 6 | def as_json(options = nil) #:nodoc: 7 | self 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/all.rb: -------------------------------------------------------------------------------- 1 | dir = File.dirname(__FILE__) 2 | require dir + '/i18n_test.rb' 3 | require dir + '/simple_backend_test.rb' 4 | require dir + '/i18n_exceptions_test.rb' 5 | # *require* dir + '/custom_backend_test.rb' -------------------------------------------------------------------------------- /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/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/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/gems/mocha-0.9.8/lib/mocha/logger.rb: -------------------------------------------------------------------------------- 1 | module Mocha 2 | 3 | class Logger 4 | 5 | def initialize(io) 6 | @io = io 7 | end 8 | 9 | def warn(message) 10 | @io.puts "WARNING: #{message}" 11 | end 12 | 13 | end 14 | 15 | end -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/app/models/pets/cat.rb: -------------------------------------------------------------------------------- 1 | module Pets 2 | class Cat < ActiveRecord::Base 3 | belongs_to :owner, :class_name => 'User' 4 | belongs_to :address, :dependent => :destroy 5 | validates_presence_of :owner_id 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /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/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/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/activesupport/lib/active_support/multibyte/exceptions.rb: -------------------------------------------------------------------------------- 1 | # encoding: utf-8 2 | 3 | module ActiveSupport #:nodoc: 4 | module Multibyte #:nodoc: 5 | # Raised when a problem with the encoding was found. 6 | class EncodingError < StandardError; end 7 | end 8 | end -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails/rack.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | module Rack 3 | autoload :Debugger, "rails/rack/debugger" 4 | autoload :LogTailer, "rails/rack/log_tailer" 5 | autoload :Metal, "rails/rack/metal" 6 | autoload :Static, "rails/rack/static" 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /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 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha/parameter_matchers/base.rb: -------------------------------------------------------------------------------- 1 | module Mocha 2 | 3 | module ParameterMatchers 4 | 5 | class Base # :nodoc: 6 | 7 | def to_matcher 8 | self 9 | end 10 | 11 | end 12 | 13 | end 14 | 15 | end 16 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/action_view.rb: -------------------------------------------------------------------------------- 1 | require 'shoulda' 2 | require 'shoulda/action_view/macros' 3 | 4 | module Test # :nodoc: all 5 | module Unit 6 | class TestCase 7 | extend Shoulda::ActionView::Macros 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /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/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/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/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/railties/lib/rails_generator/generators/components/plugin/templates/unit_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class <%= class_name %>Test < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /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/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/helpers.rb: -------------------------------------------------------------------------------- 1 | module Shoulda # :nodoc: 2 | module Helpers 3 | # Prints a message to stdout, tagged with the name of the calling method. 4 | def report!(msg = "") 5 | puts("#{caller.first}: #{msg}") 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/rails/actionpack/test/fixtures/multipart/empty: -------------------------------------------------------------------------------- 1 | --AaB03x 2 | Content-Disposition: form-data; name="submit-name" 3 | 4 | Larry 5 | --AaB03x 6 | Content-Disposition: form-data; name="files"; filename="file1.txt" 7 | Content-Type: text/plain 8 | 9 | 10 | --AaB03x-- 11 | -------------------------------------------------------------------------------- /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/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/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/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/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/railties/guides/images/icons/README: -------------------------------------------------------------------------------- 1 | Replaced the plain DocBook XSL admonition icons with Jimmac's DocBook 2 | icons (http://jimmac.musichall.cz/ikony.php3). I dropped transparency 3 | from the Jimmac icons to get round MS IE and FOP PNG incompatibilies. 4 | 5 | Stuart Rackham 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/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/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/railties/lib/rails_generator/generators/applications/app/scm/scm.rb: -------------------------------------------------------------------------------- 1 | module Rails 2 | class Scm 3 | private 4 | def self.hash_to_parameters(hash) 5 | hash.collect { |key, value| "--#{key} #{(value.kind_of?(String) ? value : "")}"}.join(" ") 6 | end 7 | end 8 | end -------------------------------------------------------------------------------- /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 | test "the truth" do 6 | assert true 7 | end 8 | end 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 | -------------------------------------------------------------------------------- /test/performance/browsing_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | require 'performance_test_help' 3 | 4 | # Profiling results for each test method are written to tmp/performance. 5 | class BrowsingTest < ActionController::PerformanceTest 6 | def test_homepage 7 | get '/' 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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 Shoulda::ActionMailer::Assertions 8 | end 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/unit/cat_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class Pets::CatTest < ActiveSupport::TestCase 4 | should_belong_to :owner 5 | should_belong_to :address, :dependent => :destroy 6 | should_validate_presence_of :owner_id 7 | end 8 | -------------------------------------------------------------------------------- /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/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_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/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/railties/lib/console_sandbox.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Base.connection.increment_open_transactions 2 | ActiveRecord::Base.connection.begin_db_transaction 3 | at_exit do 4 | ActiveRecord::Base.connection.rollback_db_transaction 5 | ActiveRecord::Base.connection.decrement_open_transactions 6 | end 7 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/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/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/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 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/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/rails/actionmailer/lib/action_mailer/vendor/text_format.rb: -------------------------------------------------------------------------------- 1 | # Prefer gems to the bundled libs. 2 | require 'rubygems' 3 | 4 | begin 5 | gem 'text-format', '>= 0.6.3' 6 | rescue Gem::LoadError 7 | $:.unshift "#{File.dirname(__FILE__)}/text-format-0.6.3" 8 | end 9 | 10 | require 'text/format' 11 | -------------------------------------------------------------------------------- /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/activesupport/lib/active_support/core_ext/float.rb: -------------------------------------------------------------------------------- 1 | require 'active_support/core_ext/float/rounding' 2 | require 'active_support/core_ext/float/time' 3 | 4 | class Float #:nodoc: 5 | include ActiveSupport::CoreExtensions::Float::Rounding 6 | include ActiveSupport::CoreExtensions::Float::Time 7 | end 8 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/files/javascripts/guides.js: -------------------------------------------------------------------------------- 1 | function guideMenu(){ 2 | 3 | if (document.getElementById('guides').style.display == "none") { 4 | document.getElementById('guides').style.display = "block"; 5 | } else { 6 | document.getElementById('guides').style.display = "none"; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/helpers/performance_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | require 'performance_test_help' 3 | 4 | # Profiling results for each test method are written to tmp/performance. 5 | class BrowsingTest < ActionController::PerformanceTest 6 | def test_homepage 7 | get '/' 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/metal/metal_generator.rb: -------------------------------------------------------------------------------- 1 | class MetalGenerator < Rails::Generator::NamedBase 2 | def manifest 3 | record do |m| 4 | m.directory 'app/metal' 5 | m.template 'metal.rb', File.join('app/metal', "#{file_name}.rb") 6 | end 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /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 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/tasks/middleware.rake: -------------------------------------------------------------------------------- 1 | desc 'Prints out your Rack middleware stack' 2 | task :middleware => :environment do 3 | ActionController::Dispatcher.middleware.active.each do |middleware| 4 | puts "use #{middleware.inspect}" 5 | end 6 | puts "run ActionController::Dispatcher.new" 7 | end 8 | -------------------------------------------------------------------------------- /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/gems/thoughtbot-shoulda-2.10.2/test/rails_root/db/migrate/011_create_treats.rb: -------------------------------------------------------------------------------- 1 | class CreateTreats < ActiveRecord::Migration 2 | def self.up 3 | create_table :treats do |t| 4 | t.integer :dog_id 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :treats 11 | end 12 | end -------------------------------------------------------------------------------- /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/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/view/test_case_test.rb: -------------------------------------------------------------------------------- 1 | require 'abstract_unit' 2 | 3 | class TestCaseTest < ActionView::TestCase 4 | def test_should_have_current_url 5 | controller = TestController.new 6 | assert_nothing_raised(NoMethodError){ controller.url_for({:controller => "foo", :action => "index"}) } 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/rails/activerecord/test/fixtures/people.yml: -------------------------------------------------------------------------------- 1 | michael: 2 | id: 1 3 | first_name: Michael 4 | primary_contact_id: 2 5 | gender: M 6 | david: 7 | id: 2 8 | first_name: David 9 | primary_contact_id: 3 10 | gender: M 11 | susan: 12 | id: 3 13 | first_name: Susan 14 | primary_contact_id: 2 15 | gender: F -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/rails_root/db/migrate/20090506203502_create_profiles.rb: -------------------------------------------------------------------------------- 1 | class CreateProfiles < ActiveRecord::Migration 2 | def self.up 3 | create_table :profiles do |t| 4 | 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :profiles 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/translation.rb: -------------------------------------------------------------------------------- 1 | module ActionController 2 | module Translation 3 | def translate(*args) 4 | I18n.translate *args 5 | end 6 | alias :t :translate 7 | 8 | def localize(*args) 9 | I18n.localize *args 10 | end 11 | alias :l :localize 12 | end 13 | end -------------------------------------------------------------------------------- /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/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/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/gems/mocha-0.9.8/lib/mocha/single_return_value.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/is_a' 2 | 3 | module Mocha # :nodoc: 4 | 5 | class SingleReturnValue # :nodoc: 6 | 7 | def initialize(value) 8 | @value = value 9 | end 10 | 11 | def evaluate 12 | @value 13 | end 14 | 15 | end 16 | 17 | end 18 | -------------------------------------------------------------------------------- /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.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/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/metaclass' 5 | require 'active_support/core_ext/object/misc' 6 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/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/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 :all 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/create.rb: -------------------------------------------------------------------------------- 1 | class Factory 2 | class Proxy #:nodoc: 3 | class Create < Build #:nodoc: 4 | def result 5 | run_callbacks(:after_build) 6 | @instance.save! 7 | run_callbacks(:after_create) 8 | @instance 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/rails/railties/lib/rails_generator/generators/components/performance_test/templates/performance_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | require 'performance_test_help' 3 | 4 | class <%= class_name %>Test < ActionController::PerformanceTest 5 | # Replace this with your real tests. 6 | def test_homepage 7 | get '/' 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /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/migrations/broken/100_migration_that_raises_exception.rb: -------------------------------------------------------------------------------- 1 | class MigrationThatRaisesException < ActiveRecord::Migration 2 | def self.up 3 | add_column "people", "last_name", :string 4 | raise 'Something broke' 5 | end 6 | 7 | def self.down 8 | remove_column "people", "last_name" 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /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/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/activesupport/lib/active_support/all.rb: -------------------------------------------------------------------------------- 1 | # For forward compatibility with Rails 3. 2 | # 3 | # require 'active_support' loads a very bare minumum in Rails 3. 4 | # require 'active_support/all' loads the whole suite like Rails 2 did. 5 | # 6 | # To prepare for Rails 3, switch to require 'active_support/all' now. 7 | 8 | require 'active_support' 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/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 | -------------------------------------------------------------------------------- /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/gems/mocha-0.9.8/lib/mocha/parameter_matchers/object.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/parameter_matchers/equals' 2 | 3 | module Mocha 4 | 5 | module ObjectMethods 6 | def to_matcher # :nodoc: 7 | Mocha::ParameterMatchers::Equals.new(self) 8 | end 9 | end 10 | 11 | end 12 | 13 | class Object 14 | include Mocha::ObjectMethods 15 | end 16 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/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/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/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 = nil) 4 | ActiveSupport::JSON.encode(as_json(options)) 5 | end 6 | 7 | def as_json(options = nil) 8 | instance_values 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /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/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/test/rails_root/db/migrate/20090513104502_create_cats.rb: -------------------------------------------------------------------------------- 1 | class CreateCats < ActiveRecord::Migration 2 | def self.up 3 | create_table :cats 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 :cats 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha/single_yield.rb: -------------------------------------------------------------------------------- 1 | module Mocha # :nodoc: 2 | 3 | class SingleYield # :nodoc: 4 | 5 | attr_reader :parameters 6 | 7 | def initialize(*parameters) 8 | @parameters = parameters 9 | end 10 | 11 | def each 12 | yield(@parameters) 13 | end 14 | 15 | end 16 | 17 | end 18 | 19 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/lib/mocha/change_state_side_effect.rb: -------------------------------------------------------------------------------- 1 | module Mocha 2 | 3 | class ChangeStateSideEffect 4 | 5 | def initialize(state) 6 | @state = state 7 | end 8 | 9 | def perform 10 | @state.activate 11 | end 12 | 13 | def mocha_inspect 14 | "then #{@state.mocha_inspect}" 15 | end 16 | 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/test/deprecation_disabler.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/deprecation' 2 | 3 | module DeprecationDisabler 4 | 5 | def disable_deprecations 6 | original_mode = Mocha::Deprecation.mode 7 | Mocha::Deprecation.mode = :disabled 8 | begin 9 | yield 10 | ensure 11 | Mocha::Deprecation.mode = original_mode 12 | end 13 | end 14 | 15 | end -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/rspec.rb: -------------------------------------------------------------------------------- 1 | require 'shoulda/active_record/matchers' 2 | require 'shoulda/action_controller/matchers' 3 | require 'active_support/test_case' 4 | 5 | # :enddoc: 6 | module ActiveSupport 7 | class TestCase 8 | include Shoulda::ActiveRecord::Matchers 9 | include Shoulda::ActionController::Matchers 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /vendor/gems/mongo_mapper-0.6.4/lib/mongo_mapper/associations/many_polymorphic_proxy.rb: -------------------------------------------------------------------------------- 1 | module MongoMapper 2 | module Associations 3 | class ManyPolymorphicProxy < ManyDocumentsProxy 4 | private 5 | def apply_scope(doc) 6 | doc.send("#{@association.type_key_name}=", doc.class.name) 7 | super 8 | end 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- 1 | # This file should contain all the record creation needed to seed the database with its default values. 2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). 3 | # 4 | # Examples: 5 | # 6 | # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) 7 | # Major.create(:name => 'Daley', :city => cities.first) 8 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/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/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/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/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/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/gems/mocha-0.9.8/lib/mocha/expectation_error.rb: -------------------------------------------------------------------------------- 1 | require 'mocha/backtrace_filter' 2 | 3 | module Mocha 4 | 5 | class ExpectationError < StandardError 6 | 7 | def initialize(message = nil, backtrace = []) 8 | super(message) 9 | filter = BacktraceFilter.new 10 | set_backtrace(filter.filtered(backtrace)) 11 | end 12 | 13 | end 14 | 15 | end 16 | -------------------------------------------------------------------------------- /vendor/gems/mocha-0.9.8/test/unit/string_inspect_test.rb: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(__FILE__), "..", "test_helper") 2 | require 'mocha/inspect' 3 | 4 | class StringInspectTest < Test::Unit::TestCase 5 | 6 | def test_should_replace_escaped_quotes_with_single_quote 7 | string = "my_string" 8 | assert_equal "'my_string'", string.mocha_inspect 9 | end 10 | 11 | end 12 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/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/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 | 13 | module Quiz 14 | class Question < Struct.new(:name, :id) 15 | def to_param 16 | id.to_s 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/test/fixtures/public/absolute/test.css: -------------------------------------------------------------------------------- 1 | /* bank.css */ 2 | 3 | /* robber.css */ 4 | 5 | /* version.1.0.css */ 6 | 7 | /* bank.css */ 8 | 9 | /* bank.css */ 10 | 11 | /* robber.css */ 12 | 13 | /* version.1.0.css */ 14 | 15 | /* bank.css */ 16 | 17 | /* robber.css */ 18 | 19 | /* version.1.0.css */ 20 | 21 | /* robber.css */ 22 | 23 | /* 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 16 | -------------------------------------------------------------------------------- /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/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/models/ship.rb: -------------------------------------------------------------------------------- 1 | class Ship < ActiveRecord::Base 2 | self.record_timestamps = false 3 | 4 | belongs_to :pirate 5 | has_many :parts, :class_name => 'ShipPart', :autosave => true 6 | 7 | accepts_nested_attributes_for :pirate, :allow_destroy => true, :reject_if => proc { |attributes| attributes.empty? } 8 | 9 | validates_presence_of :name 10 | end 11 | -------------------------------------------------------------------------------- /vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/static.rb: -------------------------------------------------------------------------------- 1 | class Factory 2 | class Attribute #:nodoc: 3 | 4 | class Static < Attribute #:nodoc: 5 | 6 | def initialize(name, value) 7 | super(name) 8 | @value = value 9 | end 10 | 11 | def add_to(proxy) 12 | proxy.set(name, @value) 13 | end 14 | end 15 | 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /vendor/gems/thoughtbot-shoulda-2.10.2/test/unit/dog_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class Pets::DogTest < ActiveSupport::TestCase 4 | should_belong_to :user 5 | should_belong_to :address, :dependent => :destroy 6 | should_have_many :treats 7 | should_have_and_belong_to_many :fleas 8 | should_validate_presence_of :owner_id, :treats, :fleas 9 | end 10 | -------------------------------------------------------------------------------- /vendor/rails/railties/guides/files/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | /* Guides.rubyonrails.org */ 2 | /* Style.css */ 3 | /* Created January 30, 2009 4 | --------------------------------------- */ 5 | 6 | /* 7 | --------------------------------------- 8 | Import advanced style sheet 9 | --------------------------------------- 10 | */ 11 | 12 | @import url("reset.css"); 13 | @import url("main.css"); 14 | -------------------------------------------------------------------------------- /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/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/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/activesupport/lib/active_support/vendor/tzinfo-0.3.12/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.12/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/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/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/activesupport/lib/active_support/vendor/tzinfo-0.3.12/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/gems/thoughtbot-shoulda-2.10.2/test/rails_root/db/migrate/20090506203536_create_registrations.rb: -------------------------------------------------------------------------------- 1 | class CreateRegistrations < ActiveRecord::Migration 2 | def self.up 3 | create_table :registrations do |t| 4 | t.integer :user_id 5 | t.integer :profile_id 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :registrations 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/rails/actionmailer/lib/action_mailer/vendor/tmail.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__)}/tmail-1.2.3" 8 | end 9 | 10 | module TMail 11 | end 12 | 13 | require 'tmail' 14 | 15 | silence_warnings do 16 | TMail::Encoder.const_set("MAX_LINE_LEN", 200) 17 | end 18 | -------------------------------------------------------------------------------- /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/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/activesupport/lib/active_support/vendor/tzinfo-0.3.12/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.12/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/railties/configs/seeds.rb: -------------------------------------------------------------------------------- 1 | # This file should contain all the record creation needed to seed the database with its default values. 2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). 3 | # 4 | # Examples: 5 | # 6 | # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) 7 | # Major.create(:name => 'Daley', :city => cities.first) 8 | -------------------------------------------------------------------------------- /vendor/gems/factory_girl-1.2.3/lib/factory_girl/attribute/callback.rb: -------------------------------------------------------------------------------- 1 | class Factory 2 | class Attribute #:nodoc: 3 | 4 | class Callback < Attribute #:nodoc: 5 | def initialize(name, block) 6 | @name = name.to_sym 7 | @block = block 8 | end 9 | 10 | def add_to(proxy) 11 | proxy.add_callback(name, @block) 12 | end 13 | end 14 | 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/rails/actionpack/lib/action_controller/middlewares.rb: -------------------------------------------------------------------------------- 1 | use "Rack::Lock", :if => lambda { 2 | !ActionController::Base.allow_concurrency 3 | } 4 | 5 | use "ActionController::Failsafe" 6 | 7 | use lambda { ActionController::Base.session_store }, 8 | lambda { ActionController::Base.session_options } 9 | 10 | use "ActionController::ParamsParser" 11 | use "Rack::MethodOverride" 12 | use "Rack::Head" 13 | -------------------------------------------------------------------------------- /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/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/gems/thoughtbot-shoulda-2.10.2/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/gems/thoughtbot-shoulda-2.10.2/test/unit/address_test.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + '/../test_helper' 2 | 3 | class AddressTest < ActiveSupport::TestCase 4 | fixtures :all 5 | 6 | should_belong_to :addressable 7 | should_validate_uniqueness_of :title, :scoped_to => [:addressable_id, :addressable_type] 8 | should_ensure_length_at_least :zip, 5 9 | should_validate_numericality_of :zip 10 | end 11 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/object/metaclass.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | # Get object's meta (ghost, eigenclass, singleton) class 3 | def metaclass 4 | class << self 5 | self 6 | end 7 | end 8 | 9 | # If class_eval is called on an object, add those methods to its metaclass 10 | def class_eval(*args, &block) 11 | metaclass.class_eval(*args, &block) 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/rails/activesupport/lib/active_support/core_ext/string/behavior.rb: -------------------------------------------------------------------------------- 1 | module ActiveSupport #:nodoc: 2 | module CoreExtensions #:nodoc: 3 | module String #:nodoc: 4 | module Behavior 5 | # Enable more predictable duck-typing on String-like classes. See 6 | # Object#acts_like?. 7 | def acts_like_string? 8 | true 9 | end 10 | end 11 | end 12 | end 13 | end -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------