paper_trail_manager 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.travis.yml +6 -0
- data/CHANGES.md +37 -0
- data/Gemfile +1 -18
- data/Gemfile.lock +60 -98
- data/README.md +23 -0
- data/Rakefile +10 -25
- data/VERSION +1 -1
- data/paper_trail_manager.gemspec +322 -93
- data/rails_test/Rakefile +90 -0
- data/{spec/dummy → rails_test/common}/app/controllers/application_controller.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/controllers/entities_controller.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/controllers/platforms_controller.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/helpers/application_helper.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/helpers/entities_helper.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/helpers/platforms_helper.rb +0 -0
- data/{spec/dummy → rails_test/common}/app/models/entity.rb +2 -0
- data/{spec/dummy → rails_test/common}/app/models/platform.rb +2 -0
- data/{spec/dummy → rails_test/common}/app/views/application/index.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/entities/_form.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/entities/edit.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/entities/index.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/entities/new.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/entities/show.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/layouts/application.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/platforms/_form.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/platforms/edit.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/platforms/index.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/platforms/new.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/app/views/platforms/show.html.erb +0 -0
- data/{spec/dummy → rails_test/common}/config/database.yml +0 -0
- data/{spec/dummy → rails_test/common}/db/migrate/20110228091428_create_entities.rb +0 -0
- data/{spec/dummy → rails_test/common}/db/migrate/20110228093241_create_platforms.rb +0 -0
- data/{spec/dummy → rails_test/common}/db/migrate/20110228094444_create_versions.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/controllers/entities_controller_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/controllers/platforms_controller_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/helpers/entities_helper_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/helpers/platforms_helper_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/integration/navigation_spec.rb +1 -1
- data/{spec/dummy → rails_test/common}/spec/integration/paper_trail_manager_spec.rb +28 -21
- data/{spec/dummy → rails_test/common}/spec/models/entity_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/models/platform_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/requests/entities_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/requests/platforms_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/routing/entities_routing_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/routing/platforms_routing_spec.rb +0 -0
- data/rails_test/common/spec/spec_helper.rb +32 -0
- data/{spec → rails_test/common/spec}/support/factories.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/entities/edit.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/entities/index.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/entities/new.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/entities/show.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/platforms/edit.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/platforms/index.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/platforms/new.html.erb_spec.rb +0 -0
- data/{spec/dummy → rails_test/common}/spec/views/platforms/show.html.erb_spec.rb +0 -0
- data/rails_test/generate_test_directory +59 -0
- data/rails_test/rails-3.0.17/.gitignore +4 -0
- data/rails_test/rails-3.0.17/README +256 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/Rakefile +1 -1
- data/rails_test/rails-3.0.17/app/controllers/application_controller.rb +6 -0
- data/rails_test/rails-3.0.17/app/controllers/entities_controller.rb +83 -0
- data/rails_test/rails-3.0.17/app/controllers/platforms_controller.rb +83 -0
- data/rails_test/rails-3.0.17/app/helpers/application_helper.rb +2 -0
- data/rails_test/rails-3.0.17/app/helpers/entities_helper.rb +2 -0
- data/rails_test/rails-3.0.17/app/helpers/platforms_helper.rb +2 -0
- data/rails_test/rails-3.0.17/app/models/entity.rb +8 -0
- data/rails_test/rails-3.0.17/app/models/platform.rb +8 -0
- data/rails_test/rails-3.0.17/app/views/application/index.html.erb +6 -0
- data/rails_test/rails-3.0.17/app/views/entities/_form.html.erb +17 -0
- data/rails_test/rails-3.0.17/app/views/entities/edit.html.erb +6 -0
- data/rails_test/rails-3.0.17/app/views/entities/index.html.erb +21 -0
- data/rails_test/rails-3.0.17/app/views/entities/new.html.erb +5 -0
- data/rails_test/rails-3.0.17/app/views/entities/show.html.erb +5 -0
- data/rails_test/rails-3.0.17/app/views/layouts/application.html.erb +14 -0
- data/rails_test/rails-3.0.17/app/views/platforms/_form.html.erb +17 -0
- data/rails_test/rails-3.0.17/app/views/platforms/edit.html.erb +6 -0
- data/rails_test/rails-3.0.17/app/views/platforms/index.html.erb +21 -0
- data/rails_test/rails-3.0.17/app/views/platforms/new.html.erb +5 -0
- data/rails_test/rails-3.0.17/app/views/platforms/show.html.erb +5 -0
- data/rails_test/rails-3.0.17/config.ru +4 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/config/application.rb +5 -8
- data/rails_test/rails-3.0.17/config/boot.rb +6 -0
- data/rails_test/rails-3.0.17/config/database.yml +22 -0
- data/rails_test/rails-3.0.17/config/environment.rb +5 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/config/environments/development.rb +1 -1
- data/{spec/dummy → rails_test/rails-3.0.17}/config/environments/production.rb +1 -1
- data/{spec/dummy → rails_test/rails-3.0.17}/config/environments/test.rb +1 -1
- data/{spec/dummy → rails_test/rails-3.0.17}/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/config/initializers/inflections.rb +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/config/initializers/mime_types.rb +0 -0
- data/rails_test/rails-3.0.17/config/initializers/secret_token.rb +7 -0
- data/rails_test/rails-3.0.17/config/initializers/session_store.rb +8 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/config/locales/en.yml +0 -0
- data/rails_test/rails-3.0.17/config/routes.rb +8 -0
- data/rails_test/rails-3.0.17/db/migrate/20110228091428_create_entities.rb +14 -0
- data/rails_test/rails-3.0.17/db/migrate/20110228093241_create_platforms.rb +14 -0
- data/rails_test/rails-3.0.17/db/migrate/20110228094444_create_versions.rb +18 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/db/schema.rb +0 -0
- data/rails_test/rails-3.0.17/db/seeds.rb +7 -0
- data/rails_test/rails-3.0.17/doc/README_FOR_APP +2 -0
- data/{spec/dummy/public/favicon.ico → rails_test/rails-3.0.17/lib/tasks/.gitkeep} +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/404.html +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/422.html +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/500.html +0 -0
- data/rails_test/rails-3.0.17/public/favicon.ico +0 -0
- data/rails_test/rails-3.0.17/public/images/rails.png +0 -0
- data/rails_test/rails-3.0.17/public/index.html +239 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/javascripts/application.js +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/javascripts/controls.js +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/javascripts/dragdrop.js +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/javascripts/effects.js +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/public/javascripts/prototype.js +0 -0
- data/rails_test/rails-3.0.17/public/javascripts/rails.js +202 -0
- data/rails_test/rails-3.0.17/public/robots.txt +5 -0
- data/rails_test/rails-3.0.17/public/stylesheets/.gitkeep +0 -0
- data/{spec/dummy → rails_test/rails-3.0.17}/script/rails +0 -0
- data/rails_test/rails-3.0.17/spec/controllers/entities_controller_spec.rb +125 -0
- data/rails_test/rails-3.0.17/spec/controllers/platforms_controller_spec.rb +125 -0
- data/rails_test/rails-3.0.17/spec/helpers/entities_helper_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/helpers/platforms_helper_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/integration/navigation_spec.rb +7 -0
- data/rails_test/rails-3.0.17/spec/integration/paper_trail_manager_spec.rb +232 -0
- data/rails_test/rails-3.0.17/spec/models/entity_spec.rb +14 -0
- data/rails_test/rails-3.0.17/spec/models/platform_spec.rb +14 -0
- data/rails_test/rails-3.0.17/spec/requests/entities_spec.rb +11 -0
- data/rails_test/rails-3.0.17/spec/requests/platforms_spec.rb +11 -0
- data/rails_test/rails-3.0.17/spec/routing/entities_routing_spec.rb +35 -0
- data/rails_test/rails-3.0.17/spec/routing/platforms_routing_spec.rb +35 -0
- data/rails_test/rails-3.0.17/spec/spec_helper.rb +32 -0
- data/rails_test/rails-3.0.17/spec/support/factories.rb +14 -0
- data/rails_test/rails-3.0.17/spec/views/entities/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/views/entities/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.0.17/spec/views/entities/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/views/entities/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.0.17/spec/views/platforms/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/views/platforms/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.0.17/spec/views/platforms/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.0.17/spec/views/platforms/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.0.17/test/performance/browsing_test.rb +9 -0
- data/rails_test/rails-3.0.17/test/test_helper.rb +13 -0
- data/rails_test/rails-3.0.17/vendor/plugins/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/.gitignore +15 -0
- data/rails_test/rails-3.1.8/README +261 -0
- data/rails_test/rails-3.1.8/Rakefile +7 -0
- data/rails_test/rails-3.1.8/app/assets/images/rails.png +0 -0
- data/rails_test/rails-3.1.8/app/assets/javascripts/application.js +9 -0
- data/rails_test/rails-3.1.8/app/assets/stylesheets/application.css +7 -0
- data/rails_test/rails-3.1.8/app/controllers/application_controller.rb +6 -0
- data/rails_test/rails-3.1.8/app/controllers/entities_controller.rb +83 -0
- data/rails_test/rails-3.1.8/app/controllers/platforms_controller.rb +83 -0
- data/rails_test/rails-3.1.8/app/helpers/application_helper.rb +2 -0
- data/rails_test/rails-3.1.8/app/helpers/entities_helper.rb +2 -0
- data/rails_test/rails-3.1.8/app/helpers/platforms_helper.rb +2 -0
- data/rails_test/rails-3.1.8/app/mailers/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/app/models/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/app/models/entity.rb +8 -0
- data/rails_test/rails-3.1.8/app/models/platform.rb +8 -0
- data/rails_test/rails-3.1.8/app/views/application/index.html.erb +6 -0
- data/rails_test/rails-3.1.8/app/views/entities/_form.html.erb +17 -0
- data/rails_test/rails-3.1.8/app/views/entities/edit.html.erb +6 -0
- data/rails_test/rails-3.1.8/app/views/entities/index.html.erb +21 -0
- data/rails_test/rails-3.1.8/app/views/entities/new.html.erb +5 -0
- data/rails_test/rails-3.1.8/app/views/entities/show.html.erb +5 -0
- data/rails_test/rails-3.1.8/app/views/layouts/application.html.erb +14 -0
- data/rails_test/rails-3.1.8/app/views/platforms/_form.html.erb +17 -0
- data/rails_test/rails-3.1.8/app/views/platforms/edit.html.erb +6 -0
- data/rails_test/rails-3.1.8/app/views/platforms/index.html.erb +21 -0
- data/rails_test/rails-3.1.8/app/views/platforms/new.html.erb +5 -0
- data/rails_test/rails-3.1.8/app/views/platforms/show.html.erb +5 -0
- data/{spec/dummy → rails_test/rails-3.1.8}/config.ru +1 -1
- data/rails_test/rails-3.1.8/config/application.rb +48 -0
- data/rails_test/rails-3.1.8/config/boot.rb +6 -0
- data/rails_test/rails-3.1.8/config/database.yml +22 -0
- data/{spec/dummy → rails_test/rails-3.1.8}/config/environment.rb +1 -1
- data/rails_test/rails-3.1.8/config/environments/development.rb +30 -0
- data/rails_test/rails-3.1.8/config/environments/production.rb +60 -0
- data/rails_test/rails-3.1.8/config/environments/test.rb +39 -0
- data/rails_test/rails-3.1.8/config/initializers/backtrace_silencers.rb +7 -0
- data/rails_test/rails-3.1.8/config/initializers/inflections.rb +10 -0
- data/rails_test/rails-3.1.8/config/initializers/mime_types.rb +5 -0
- data/{spec/dummy → rails_test/rails-3.1.8}/config/initializers/secret_token.rb +1 -1
- data/{spec/dummy → rails_test/rails-3.1.8}/config/initializers/session_store.rb +2 -2
- data/rails_test/rails-3.1.8/config/initializers/wrap_parameters.rb +14 -0
- data/rails_test/rails-3.1.8/config/locales/en.yml +5 -0
- data/rails_test/rails-3.1.8/config/routes.rb +8 -0
- data/rails_test/rails-3.1.8/db/migrate/20110228091428_create_entities.rb +14 -0
- data/rails_test/rails-3.1.8/db/migrate/20110228093241_create_platforms.rb +14 -0
- data/rails_test/rails-3.1.8/db/migrate/20110228094444_create_versions.rb +18 -0
- data/rails_test/rails-3.1.8/db/schema.rb +40 -0
- data/rails_test/rails-3.1.8/db/seeds.rb +7 -0
- data/rails_test/rails-3.1.8/doc/README_FOR_APP +2 -0
- data/rails_test/rails-3.1.8/lib/assets/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/lib/tasks/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/log/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/public/404.html +26 -0
- data/rails_test/rails-3.1.8/public/422.html +26 -0
- data/rails_test/rails-3.1.8/public/500.html +26 -0
- data/rails_test/rails-3.1.8/public/favicon.ico +0 -0
- data/rails_test/rails-3.1.8/public/index.html +241 -0
- data/rails_test/rails-3.1.8/public/robots.txt +5 -0
- data/rails_test/rails-3.1.8/script/rails +6 -0
- data/rails_test/rails-3.1.8/spec/controllers/entities_controller_spec.rb +125 -0
- data/rails_test/rails-3.1.8/spec/controllers/platforms_controller_spec.rb +125 -0
- data/rails_test/rails-3.1.8/spec/helpers/entities_helper_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/helpers/platforms_helper_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/integration/navigation_spec.rb +7 -0
- data/rails_test/rails-3.1.8/spec/integration/paper_trail_manager_spec.rb +232 -0
- data/rails_test/rails-3.1.8/spec/models/entity_spec.rb +14 -0
- data/rails_test/rails-3.1.8/spec/models/platform_spec.rb +14 -0
- data/rails_test/rails-3.1.8/spec/requests/entities_spec.rb +11 -0
- data/rails_test/rails-3.1.8/spec/requests/platforms_spec.rb +11 -0
- data/rails_test/rails-3.1.8/spec/routing/entities_routing_spec.rb +35 -0
- data/rails_test/rails-3.1.8/spec/routing/platforms_routing_spec.rb +35 -0
- data/rails_test/rails-3.1.8/spec/spec_helper.rb +32 -0
- data/rails_test/rails-3.1.8/spec/support/factories.rb +14 -0
- data/rails_test/rails-3.1.8/spec/views/entities/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/views/entities/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.1.8/spec/views/entities/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/views/entities/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.1.8/spec/views/platforms/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/views/platforms/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.1.8/spec/views/platforms/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.1.8/spec/views/platforms/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.1.8/test/fixtures/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/test/functional/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/test/integration/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/test/performance/browsing_test.rb +12 -0
- data/rails_test/rails-3.1.8/test/test_helper.rb +13 -0
- data/rails_test/rails-3.1.8/test/unit/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/vendor/assets/stylesheets/.gitkeep +0 -0
- data/rails_test/rails-3.1.8/vendor/plugins/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/.gitignore +15 -0
- data/rails_test/rails-3.2.8/README.rdoc +261 -0
- data/rails_test/rails-3.2.8/Rakefile +7 -0
- data/rails_test/rails-3.2.8/app/assets/images/rails.png +0 -0
- data/rails_test/rails-3.2.8/app/assets/javascripts/application.js +15 -0
- data/rails_test/rails-3.2.8/app/assets/stylesheets/application.css +13 -0
- data/rails_test/rails-3.2.8/app/controllers/application_controller.rb +6 -0
- data/rails_test/rails-3.2.8/app/controllers/entities_controller.rb +83 -0
- data/rails_test/rails-3.2.8/app/controllers/platforms_controller.rb +83 -0
- data/rails_test/rails-3.2.8/app/helpers/application_helper.rb +2 -0
- data/rails_test/rails-3.2.8/app/helpers/entities_helper.rb +2 -0
- data/rails_test/rails-3.2.8/app/helpers/platforms_helper.rb +2 -0
- data/rails_test/rails-3.2.8/app/mailers/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/app/models/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/app/models/entity.rb +8 -0
- data/rails_test/rails-3.2.8/app/models/platform.rb +8 -0
- data/rails_test/rails-3.2.8/app/views/application/index.html.erb +6 -0
- data/rails_test/rails-3.2.8/app/views/entities/_form.html.erb +17 -0
- data/rails_test/rails-3.2.8/app/views/entities/edit.html.erb +6 -0
- data/rails_test/rails-3.2.8/app/views/entities/index.html.erb +21 -0
- data/rails_test/rails-3.2.8/app/views/entities/new.html.erb +5 -0
- data/rails_test/rails-3.2.8/app/views/entities/show.html.erb +5 -0
- data/rails_test/rails-3.2.8/app/views/layouts/application.html.erb +14 -0
- data/rails_test/rails-3.2.8/app/views/platforms/_form.html.erb +17 -0
- data/rails_test/rails-3.2.8/app/views/platforms/edit.html.erb +6 -0
- data/rails_test/rails-3.2.8/app/views/platforms/index.html.erb +21 -0
- data/rails_test/rails-3.2.8/app/views/platforms/new.html.erb +5 -0
- data/rails_test/rails-3.2.8/app/views/platforms/show.html.erb +5 -0
- data/rails_test/rails-3.2.8/config.ru +4 -0
- data/rails_test/rails-3.2.8/config/application.rb +62 -0
- data/rails_test/rails-3.2.8/config/boot.rb +6 -0
- data/rails_test/rails-3.2.8/config/database.yml +22 -0
- data/rails_test/rails-3.2.8/config/environment.rb +5 -0
- data/rails_test/rails-3.2.8/config/environments/development.rb +37 -0
- data/rails_test/rails-3.2.8/config/environments/production.rb +67 -0
- data/rails_test/rails-3.2.8/config/environments/test.rb +37 -0
- data/rails_test/rails-3.2.8/config/initializers/backtrace_silencers.rb +7 -0
- data/rails_test/rails-3.2.8/config/initializers/inflections.rb +15 -0
- data/rails_test/rails-3.2.8/config/initializers/mime_types.rb +5 -0
- data/rails_test/rails-3.2.8/config/initializers/secret_token.rb +7 -0
- data/rails_test/rails-3.2.8/config/initializers/session_store.rb +8 -0
- data/rails_test/rails-3.2.8/config/initializers/wrap_parameters.rb +14 -0
- data/rails_test/rails-3.2.8/config/locales/en.yml +5 -0
- data/rails_test/rails-3.2.8/config/routes.rb +8 -0
- data/rails_test/rails-3.2.8/db/migrate/20110228091428_create_entities.rb +14 -0
- data/rails_test/rails-3.2.8/db/migrate/20110228093241_create_platforms.rb +14 -0
- data/rails_test/rails-3.2.8/db/migrate/20110228094444_create_versions.rb +18 -0
- data/rails_test/rails-3.2.8/db/schema.rb +40 -0
- data/rails_test/rails-3.2.8/db/seeds.rb +7 -0
- data/rails_test/rails-3.2.8/doc/README_FOR_APP +2 -0
- data/rails_test/rails-3.2.8/lib/assets/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/lib/tasks/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/log/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/public/404.html +26 -0
- data/rails_test/rails-3.2.8/public/422.html +26 -0
- data/rails_test/rails-3.2.8/public/500.html +25 -0
- data/rails_test/rails-3.2.8/public/favicon.ico +0 -0
- data/rails_test/rails-3.2.8/public/index.html +241 -0
- data/rails_test/rails-3.2.8/public/robots.txt +5 -0
- data/rails_test/rails-3.2.8/script/rails +6 -0
- data/rails_test/rails-3.2.8/spec/controllers/entities_controller_spec.rb +125 -0
- data/rails_test/rails-3.2.8/spec/controllers/platforms_controller_spec.rb +125 -0
- data/rails_test/rails-3.2.8/spec/helpers/entities_helper_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/helpers/platforms_helper_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/integration/navigation_spec.rb +7 -0
- data/rails_test/rails-3.2.8/spec/integration/paper_trail_manager_spec.rb +232 -0
- data/rails_test/rails-3.2.8/spec/models/entity_spec.rb +14 -0
- data/rails_test/rails-3.2.8/spec/models/platform_spec.rb +14 -0
- data/rails_test/rails-3.2.8/spec/requests/entities_spec.rb +11 -0
- data/rails_test/rails-3.2.8/spec/requests/platforms_spec.rb +11 -0
- data/rails_test/rails-3.2.8/spec/routing/entities_routing_spec.rb +35 -0
- data/rails_test/rails-3.2.8/spec/routing/platforms_routing_spec.rb +35 -0
- data/rails_test/rails-3.2.8/spec/spec_helper.rb +32 -0
- data/rails_test/rails-3.2.8/spec/support/factories.rb +14 -0
- data/rails_test/rails-3.2.8/spec/views/entities/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/views/entities/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.2.8/spec/views/entities/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/views/entities/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.2.8/spec/views/platforms/edit.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/views/platforms/index.html.erb_spec.rb +14 -0
- data/rails_test/rails-3.2.8/spec/views/platforms/new.html.erb_spec.rb +15 -0
- data/rails_test/rails-3.2.8/spec/views/platforms/show.html.erb_spec.rb +11 -0
- data/rails_test/rails-3.2.8/test/fixtures/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/test/functional/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/test/integration/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/test/performance/browsing_test.rb +12 -0
- data/rails_test/rails-3.2.8/test/test_helper.rb +13 -0
- data/rails_test/rails-3.2.8/test/unit/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/vendor/assets/javascripts/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/vendor/assets/stylesheets/.gitkeep +0 -0
- data/rails_test/rails-3.2.8/vendor/plugins/.gitkeep +0 -0
- metadata +322 -138
- data/spec/controllers/paper_trail_manager/changes_controller_spec.rb +0 -8
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/routes.rb +0 -64
- data/spec/dummy/public/javascripts/rails.js +0 -175
- data/spec/dummy/public/stylesheets/changes.css +0 -47
- data/spec/paper_trail_manager_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -77
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
Rails318::Application.load_tasks
|
Binary file
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require jquery_ujs
|
9
|
+
//= require_tree .
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require_self
|
6
|
+
*= require_tree .
|
7
|
+
*/
|
@@ -0,0 +1,83 @@
|
|
1
|
+
class EntitiesController < ApplicationController
|
2
|
+
# GET /entities
|
3
|
+
# GET /entities.xml
|
4
|
+
def index
|
5
|
+
@entities = Entity.all
|
6
|
+
|
7
|
+
respond_to do |format|
|
8
|
+
format.html # index.html.erb
|
9
|
+
format.xml { render :xml => @entities }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /entities/1
|
14
|
+
# GET /entities/1.xml
|
15
|
+
def show
|
16
|
+
@entity = Entity.find(params[:id])
|
17
|
+
|
18
|
+
respond_to do |format|
|
19
|
+
format.html # show.html.erb
|
20
|
+
format.xml { render :xml => @entity }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# GET /entities/new
|
25
|
+
# GET /entities/new.xml
|
26
|
+
def new
|
27
|
+
@entity = Entity.new
|
28
|
+
|
29
|
+
respond_to do |format|
|
30
|
+
format.html # new.html.erb
|
31
|
+
format.xml { render :xml => @entity }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# GET /entities/1/edit
|
36
|
+
def edit
|
37
|
+
@entity = Entity.find(params[:id])
|
38
|
+
end
|
39
|
+
|
40
|
+
# POST /entities
|
41
|
+
# POST /entities.xml
|
42
|
+
def create
|
43
|
+
@entity = Entity.new(params[:entity])
|
44
|
+
|
45
|
+
respond_to do |format|
|
46
|
+
if @entity.save
|
47
|
+
format.html { redirect_to(@entity, :notice => 'Entity was successfully created.') }
|
48
|
+
format.xml { render :xml => @entity, :status => :created, :location => @entity }
|
49
|
+
else
|
50
|
+
format.html { render :action => "new" }
|
51
|
+
format.xml { render :xml => @entity.errors, :status => :unprocessable_entity }
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# PUT /entities/1
|
57
|
+
# PUT /entities/1.xml
|
58
|
+
def update
|
59
|
+
@entity = Entity.find(params[:id])
|
60
|
+
|
61
|
+
respond_to do |format|
|
62
|
+
if @entity.update_attributes(params[:entity])
|
63
|
+
format.html { redirect_to(@entity, :notice => 'Entity was successfully updated.') }
|
64
|
+
format.xml { head :ok }
|
65
|
+
else
|
66
|
+
format.html { render :action => "edit" }
|
67
|
+
format.xml { render :xml => @entity.errors, :status => :unprocessable_entity }
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# DELETE /entities/1
|
73
|
+
# DELETE /entities/1.xml
|
74
|
+
def destroy
|
75
|
+
@entity = Entity.find(params[:id])
|
76
|
+
@entity.destroy
|
77
|
+
|
78
|
+
respond_to do |format|
|
79
|
+
format.html { redirect_to(entities_url) }
|
80
|
+
format.xml { head :ok }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
class PlatformsController < ApplicationController
|
2
|
+
# GET /platforms
|
3
|
+
# GET /platforms.xml
|
4
|
+
def index
|
5
|
+
@platforms = Platform.all
|
6
|
+
|
7
|
+
respond_to do |format|
|
8
|
+
format.html # index.html.erb
|
9
|
+
format.xml { render :xml => @platforms }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /platforms/1
|
14
|
+
# GET /platforms/1.xml
|
15
|
+
def show
|
16
|
+
@platform = Platform.find(params[:id])
|
17
|
+
|
18
|
+
respond_to do |format|
|
19
|
+
format.html # show.html.erb
|
20
|
+
format.xml { render :xml => @platform }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# GET /platforms/new
|
25
|
+
# GET /platforms/new.xml
|
26
|
+
def new
|
27
|
+
@platform = Platform.new
|
28
|
+
|
29
|
+
respond_to do |format|
|
30
|
+
format.html # new.html.erb
|
31
|
+
format.xml { render :xml => @platform }
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# GET /platforms/1/edit
|
36
|
+
def edit
|
37
|
+
@platform = Platform.find(params[:id])
|
38
|
+
end
|
39
|
+
|
40
|
+
# POST /platforms
|
41
|
+
# POST /platforms.xml
|
42
|
+
def create
|
43
|
+
@platform = Platform.new(params[:platform])
|
44
|
+
|
45
|
+
respond_to do |format|
|
46
|
+
if @platform.save
|
47
|
+
format.html { redirect_to(@platform, :notice => 'Platform was successfully created.') }
|
48
|
+
format.xml { render :xml => @platform, :status => :created, :location => @platform }
|
49
|
+
else
|
50
|
+
format.html { render :action => "new" }
|
51
|
+
format.xml { render :xml => @platform.errors, :status => :unprocessable_entity }
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# PUT /platforms/1
|
57
|
+
# PUT /platforms/1.xml
|
58
|
+
def update
|
59
|
+
@platform = Platform.find(params[:id])
|
60
|
+
|
61
|
+
respond_to do |format|
|
62
|
+
if @platform.update_attributes(params[:platform])
|
63
|
+
format.html { redirect_to(@platform, :notice => 'Platform was successfully updated.') }
|
64
|
+
format.xml { head :ok }
|
65
|
+
else
|
66
|
+
format.html { render :action => "edit" }
|
67
|
+
format.xml { render :xml => @platform.errors, :status => :unprocessable_entity }
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# DELETE /platforms/1
|
73
|
+
# DELETE /platforms/1.xml
|
74
|
+
def destroy
|
75
|
+
@platform = Platform.find(params[:id])
|
76
|
+
@platform.destroy
|
77
|
+
|
78
|
+
respond_to do |format|
|
79
|
+
format.html { redirect_to(platforms_url) }
|
80
|
+
format.xml { head :ok }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<h1>Paper Trail Manager demo app</h1>
|
2
|
+
|
3
|
+
<ul>
|
4
|
+
<li><%= link_to "Changes", changes_path %>: list and manage the changes made within this application, which is the point of Paper Trail Manager.</li>
|
5
|
+
<li><%= link_to "Entities", entities_path %>: list of records you can manipulate to create changes.</li>
|
6
|
+
</ul>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%= form_for(@entity) do |f| %>
|
2
|
+
<% if @entity.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@entity.errors.count, "error") %> prohibited this entity from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @entity.errors.full_messages.each do |msg| %>
|
8
|
+
<li><%= msg %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="actions">
|
15
|
+
<%= f.submit %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<h1>Listing entities</h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<th></th>
|
6
|
+
<th></th>
|
7
|
+
<th></th>
|
8
|
+
</tr>
|
9
|
+
|
10
|
+
<% @entities.each do |entity| %>
|
11
|
+
<tr>
|
12
|
+
<td><%= link_to 'Show', entity %></td>
|
13
|
+
<td><%= link_to 'Edit', edit_entity_path(entity) %></td>
|
14
|
+
<td><%= link_to 'Destroy', entity, :confirm => 'Are you sure?', :method => :delete %></td>
|
15
|
+
</tr>
|
16
|
+
<% end %>
|
17
|
+
</table>
|
18
|
+
|
19
|
+
<br />
|
20
|
+
|
21
|
+
<%= link_to 'New Entity', new_entity_path %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%= form_for(@platform) do |f| %>
|
2
|
+
<% if @platform.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@platform.errors.count, "error") %> prohibited this platform from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @platform.errors.full_messages.each do |msg| %>
|
8
|
+
<li><%= msg %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="actions">
|
15
|
+
<%= f.submit %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<h1>Listing platforms</h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<th></th>
|
6
|
+
<th></th>
|
7
|
+
<th></th>
|
8
|
+
</tr>
|
9
|
+
|
10
|
+
<% @platforms.each do |platform| %>
|
11
|
+
<tr>
|
12
|
+
<td><%= link_to 'Show', platform %></td>
|
13
|
+
<td><%= link_to 'Edit', edit_platform_path(platform) %></td>
|
14
|
+
<td><%= link_to 'Destroy', platform, :confirm => 'Are you sure?', :method => :delete %></td>
|
15
|
+
</tr>
|
16
|
+
<% end %>
|
17
|
+
</table>
|
18
|
+
|
19
|
+
<br />
|
20
|
+
|
21
|
+
<%= link_to 'New Platform', new_platform_path %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'rails/all'
|
4
|
+
|
5
|
+
if defined?(Bundler)
|
6
|
+
# If you precompile assets before deploying to production, use this line
|
7
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
8
|
+
# If you want your assets lazily compiled in production, use this line
|
9
|
+
# Bundler.require(:default, :assets, Rails.env)
|
10
|
+
end
|
11
|
+
|
12
|
+
module Rails318
|
13
|
+
class Application < Rails::Application
|
14
|
+
# Settings in config/environments/* take precedence over those specified here.
|
15
|
+
# Application configuration should go into files in config/initializers
|
16
|
+
# -- all .rb files in that directory are automatically loaded.
|
17
|
+
|
18
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
+
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
+
|
21
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
+
|
25
|
+
# Activate observers that should always be running.
|
26
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
+
|
28
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
+
|
32
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
+
# config.i18n.default_locale = :de
|
35
|
+
|
36
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
+
config.encoding = "utf-8"
|
38
|
+
|
39
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
+
config.filter_parameters += [:password]
|
41
|
+
|
42
|
+
# Enable the asset pipeline
|
43
|
+
config.assets.enabled = true
|
44
|
+
|
45
|
+
# Version of your assets, change this if you want to expire all your assets
|
46
|
+
config.assets.version = '1.0'
|
47
|
+
end
|
48
|
+
end
|