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
data/spec/dummy/config/boot.rb
DELETED
data/spec/dummy/config/routes.rb
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
Dummy::Application.routes.draw do
|
2
|
-
root :to => 'application#index'
|
3
|
-
|
4
|
-
resources :changes, :controller => 'paper_trail_manager/changes'
|
5
|
-
resources :entities
|
6
|
-
resources :platforms
|
7
|
-
|
8
|
-
# The priority is based upon order of creation:
|
9
|
-
# first created -> highest priority.
|
10
|
-
|
11
|
-
# Sample of regular route:
|
12
|
-
# match 'products/:id' => 'catalog#view'
|
13
|
-
# Keep in mind you can assign values other than :controller and :action
|
14
|
-
|
15
|
-
# Sample of named route:
|
16
|
-
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
17
|
-
# This route can be invoked with purchase_url(:id => product.id)
|
18
|
-
|
19
|
-
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
20
|
-
# resources :products
|
21
|
-
|
22
|
-
# Sample resource route with options:
|
23
|
-
# resources :products do
|
24
|
-
# member do
|
25
|
-
# get 'short'
|
26
|
-
# post 'toggle'
|
27
|
-
# end
|
28
|
-
#
|
29
|
-
# collection do
|
30
|
-
# get 'sold'
|
31
|
-
# end
|
32
|
-
# end
|
33
|
-
|
34
|
-
# Sample resource route with sub-resources:
|
35
|
-
# resources :products do
|
36
|
-
# resources :comments, :sales
|
37
|
-
# resource :seller
|
38
|
-
# end
|
39
|
-
|
40
|
-
# Sample resource route with more complex sub-resources
|
41
|
-
# resources :products do
|
42
|
-
# resources :comments
|
43
|
-
# resources :sales do
|
44
|
-
# get 'recent', :on => :collection
|
45
|
-
# end
|
46
|
-
# end
|
47
|
-
|
48
|
-
# Sample resource route within a namespace:
|
49
|
-
# namespace :admin do
|
50
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
51
|
-
# # (app/controllers/admin/products_controller.rb)
|
52
|
-
# resources :products
|
53
|
-
# end
|
54
|
-
|
55
|
-
# You can have the root of your site routed with "root"
|
56
|
-
# just remember to delete public/index.html.
|
57
|
-
# root :to => "welcome#index"
|
58
|
-
|
59
|
-
# See how all your routes lay out with "rake routes"
|
60
|
-
|
61
|
-
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
62
|
-
# Note: This route will make all actions in every controller accessible via GET requests.
|
63
|
-
# match ':controller(/:action(/:id(.:format)))'
|
64
|
-
end
|
@@ -1,175 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
// Technique from Juriy Zaytsev
|
3
|
-
// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
|
4
|
-
function isEventSupported(eventName) {
|
5
|
-
var el = document.createElement('div');
|
6
|
-
eventName = 'on' + eventName;
|
7
|
-
var isSupported = (eventName in el);
|
8
|
-
if (!isSupported) {
|
9
|
-
el.setAttribute(eventName, 'return;');
|
10
|
-
isSupported = typeof el[eventName] == 'function';
|
11
|
-
}
|
12
|
-
el = null;
|
13
|
-
return isSupported;
|
14
|
-
}
|
15
|
-
|
16
|
-
function isForm(element) {
|
17
|
-
return Object.isElement(element) && element.nodeName.toUpperCase() == 'FORM'
|
18
|
-
}
|
19
|
-
|
20
|
-
function isInput(element) {
|
21
|
-
if (Object.isElement(element)) {
|
22
|
-
var name = element.nodeName.toUpperCase()
|
23
|
-
return name == 'INPUT' || name == 'SELECT' || name == 'TEXTAREA'
|
24
|
-
}
|
25
|
-
else return false
|
26
|
-
}
|
27
|
-
|
28
|
-
var submitBubbles = isEventSupported('submit'),
|
29
|
-
changeBubbles = isEventSupported('change')
|
30
|
-
|
31
|
-
if (!submitBubbles || !changeBubbles) {
|
32
|
-
// augment the Event.Handler class to observe custom events when needed
|
33
|
-
Event.Handler.prototype.initialize = Event.Handler.prototype.initialize.wrap(
|
34
|
-
function(init, element, eventName, selector, callback) {
|
35
|
-
init(element, eventName, selector, callback)
|
36
|
-
// is the handler being attached to an element that doesn't support this event?
|
37
|
-
if ( (!submitBubbles && this.eventName == 'submit' && !isForm(this.element)) ||
|
38
|
-
(!changeBubbles && this.eventName == 'change' && !isInput(this.element)) ) {
|
39
|
-
// "submit" => "emulated:submit"
|
40
|
-
this.eventName = 'emulated:' + this.eventName
|
41
|
-
}
|
42
|
-
}
|
43
|
-
)
|
44
|
-
}
|
45
|
-
|
46
|
-
if (!submitBubbles) {
|
47
|
-
// discover forms on the page by observing focus events which always bubble
|
48
|
-
document.on('focusin', 'form', function(focusEvent, form) {
|
49
|
-
// special handler for the real "submit" event (one-time operation)
|
50
|
-
if (!form.retrieve('emulated:submit')) {
|
51
|
-
form.on('submit', function(submitEvent) {
|
52
|
-
var emulated = form.fire('emulated:submit', submitEvent, true)
|
53
|
-
// if custom event received preventDefault, cancel the real one too
|
54
|
-
if (emulated.returnValue === false) submitEvent.preventDefault()
|
55
|
-
})
|
56
|
-
form.store('emulated:submit', true)
|
57
|
-
}
|
58
|
-
})
|
59
|
-
}
|
60
|
-
|
61
|
-
if (!changeBubbles) {
|
62
|
-
// discover form inputs on the page
|
63
|
-
document.on('focusin', 'input, select, texarea', function(focusEvent, input) {
|
64
|
-
// special handler for real "change" events
|
65
|
-
if (!input.retrieve('emulated:change')) {
|
66
|
-
input.on('change', function(changeEvent) {
|
67
|
-
input.fire('emulated:change', changeEvent, true)
|
68
|
-
})
|
69
|
-
input.store('emulated:change', true)
|
70
|
-
}
|
71
|
-
})
|
72
|
-
}
|
73
|
-
|
74
|
-
function handleRemote(element) {
|
75
|
-
var method, url, params;
|
76
|
-
|
77
|
-
var event = element.fire("ajax:before");
|
78
|
-
if (event.stopped) return false;
|
79
|
-
|
80
|
-
if (element.tagName.toLowerCase() === 'form') {
|
81
|
-
method = element.readAttribute('method') || 'post';
|
82
|
-
url = element.readAttribute('action');
|
83
|
-
params = element.serialize();
|
84
|
-
} else {
|
85
|
-
method = element.readAttribute('data-method') || 'get';
|
86
|
-
url = element.readAttribute('href');
|
87
|
-
params = {};
|
88
|
-
}
|
89
|
-
|
90
|
-
new Ajax.Request(url, {
|
91
|
-
method: method,
|
92
|
-
parameters: params,
|
93
|
-
evalScripts: true,
|
94
|
-
|
95
|
-
onComplete: function(request) { element.fire("ajax:complete", request); },
|
96
|
-
onSuccess: function(request) { element.fire("ajax:success", request); },
|
97
|
-
onFailure: function(request) { element.fire("ajax:failure", request); }
|
98
|
-
});
|
99
|
-
|
100
|
-
element.fire("ajax:after");
|
101
|
-
}
|
102
|
-
|
103
|
-
function handleMethod(element) {
|
104
|
-
var method = element.readAttribute('data-method'),
|
105
|
-
url = element.readAttribute('href'),
|
106
|
-
csrf_param = $$('meta[name=csrf-param]')[0],
|
107
|
-
csrf_token = $$('meta[name=csrf-token]')[0];
|
108
|
-
|
109
|
-
var form = new Element('form', { method: "POST", action: url, style: "display: none;" });
|
110
|
-
element.parentNode.insert(form);
|
111
|
-
|
112
|
-
if (method !== 'post') {
|
113
|
-
var field = new Element('input', { type: 'hidden', name: '_method', value: method });
|
114
|
-
form.insert(field);
|
115
|
-
}
|
116
|
-
|
117
|
-
if (csrf_param) {
|
118
|
-
var param = csrf_param.readAttribute('content'),
|
119
|
-
token = csrf_token.readAttribute('content'),
|
120
|
-
field = new Element('input', { type: 'hidden', name: param, value: token });
|
121
|
-
form.insert(field);
|
122
|
-
}
|
123
|
-
|
124
|
-
form.submit();
|
125
|
-
}
|
126
|
-
|
127
|
-
|
128
|
-
document.on("click", "*[data-confirm]", function(event, element) {
|
129
|
-
var message = element.readAttribute('data-confirm');
|
130
|
-
if (!confirm(message)) event.stop();
|
131
|
-
});
|
132
|
-
|
133
|
-
document.on("click", "a[data-remote]", function(event, element) {
|
134
|
-
if (event.stopped) return;
|
135
|
-
handleRemote(element);
|
136
|
-
event.stop();
|
137
|
-
});
|
138
|
-
|
139
|
-
document.on("click", "a[data-method]", function(event, element) {
|
140
|
-
if (event.stopped) return;
|
141
|
-
handleMethod(element);
|
142
|
-
event.stop();
|
143
|
-
});
|
144
|
-
|
145
|
-
document.on("submit", function(event) {
|
146
|
-
var element = event.findElement(),
|
147
|
-
message = element.readAttribute('data-confirm');
|
148
|
-
if (message && !confirm(message)) {
|
149
|
-
event.stop();
|
150
|
-
return false;
|
151
|
-
}
|
152
|
-
|
153
|
-
var inputs = element.select("input[type=submit][data-disable-with]");
|
154
|
-
inputs.each(function(input) {
|
155
|
-
input.disabled = true;
|
156
|
-
input.writeAttribute('data-original-value', input.value);
|
157
|
-
input.value = input.readAttribute('data-disable-with');
|
158
|
-
});
|
159
|
-
|
160
|
-
var element = event.findElement("form[data-remote]");
|
161
|
-
if (element) {
|
162
|
-
handleRemote(element);
|
163
|
-
event.stop();
|
164
|
-
}
|
165
|
-
});
|
166
|
-
|
167
|
-
document.on("ajax:after", "form", function(event, element) {
|
168
|
-
var inputs = element.select("input[type=submit][disabled=true][data-disable-with]");
|
169
|
-
inputs.each(function(input) {
|
170
|
-
input.value = input.readAttribute('data-original-value');
|
171
|
-
input.removeAttribute('data-original-value');
|
172
|
-
input.disabled = false;
|
173
|
-
});
|
174
|
-
});
|
175
|
-
})();
|
@@ -1,47 +0,0 @@
|
|
1
|
-
.changes_feed a {
|
2
|
-
margin-bottom: 2em;
|
3
|
-
}
|
4
|
-
|
5
|
-
.changes_table {}
|
6
|
-
.changes_table, .changes_table table {
|
7
|
-
border-collapse: collapse; }
|
8
|
-
.changes_table .changes_header {
|
9
|
-
background-color: #BECDD3; }
|
10
|
-
.changes_table .change_row {}
|
11
|
-
.changes_table .change_row td {
|
12
|
-
margin-bottom: 2em;
|
13
|
-
border-bottom: 2px solid #CCC;
|
14
|
-
text-align: left;
|
15
|
-
vertical-align: text-top; }
|
16
|
-
.changes_table .change_row .change_time {
|
17
|
-
width: 10%; }
|
18
|
-
.changes_table .change_row .change_detail_key {
|
19
|
-
width: 15%;
|
20
|
-
padding: .25em; }
|
21
|
-
.changes_table .change_row .change_detail_value {
|
22
|
-
width: 40%;
|
23
|
-
padding: .25em; }
|
24
|
-
.changes_table .change_row .change_detail_separator {
|
25
|
-
width: 5%; }
|
26
|
-
.changes_table .change_row .odd {
|
27
|
-
background-color: #ddd; }
|
28
|
-
.changes_table .change_row .even {
|
29
|
-
background-color: #eee; }
|
30
|
-
.changes_table .change_row .change_details .event,
|
31
|
-
.changes_table .change_row .change_details .rollback {
|
32
|
-
display: inline-block;
|
33
|
-
padding: 0 4px;
|
34
|
-
color: #fff;
|
35
|
-
font-weight: bold; }
|
36
|
-
.changes_table .change_row .change_details .event {
|
37
|
-
text-transform: uppercase; }
|
38
|
-
.changes_table .change_row .change_details .rollback {
|
39
|
-
float: right;
|
40
|
-
background: #999;
|
41
|
-
}
|
42
|
-
.changes_table .change_row.create .event {
|
43
|
-
background: #5AA351; }
|
44
|
-
.changes_table .change_row.destroy .event {
|
45
|
-
background: #A35164; }
|
46
|
-
.changes_table .change_row.update .event {
|
47
|
-
background: #5174A3; }
|
data/spec/spec_helper.rb
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'spork'
|
3
|
-
|
4
|
-
Spork.prefork do
|
5
|
-
# Loading more in this block will cause your tests to run faster. However,
|
6
|
-
# if you change any configuration or code from libraries loaded here, you'll
|
7
|
-
# need to restart spork for it take effect.
|
8
|
-
|
9
|
-
end
|
10
|
-
|
11
|
-
Spork.each_run do
|
12
|
-
# This code will be run each time you run your specs.
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
# --- Instructions ---
|
17
|
-
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
|
18
|
-
# block.
|
19
|
-
#
|
20
|
-
# The Spork.prefork block is run only once when the spork server is started.
|
21
|
-
# You typically want to place most of your (slow) initializer code in here, in
|
22
|
-
# particular, require'ing any 3rd-party gems that you don't normally modify
|
23
|
-
# during development.
|
24
|
-
#
|
25
|
-
# The Spork.each_run block is run each time you run your specs. In case you
|
26
|
-
# need to load files that tend to change during development, require them here.
|
27
|
-
# With Rails, your application modules are loaded automatically, so sometimes
|
28
|
-
# this block can remain empty.
|
29
|
-
#
|
30
|
-
# Note: You can modify files loaded *from* the Spork.each_run block without
|
31
|
-
# restarting the spork server. However, this file itself will not be reloaded,
|
32
|
-
# so if you change any of the code inside the each_run block, you still need to
|
33
|
-
# restart the server. In general, if you have non-trivial code in this file,
|
34
|
-
# it's advisable to move it into a separate file so you can easily edit it
|
35
|
-
# without restarting spork. (For example, with RSpec, you could move
|
36
|
-
# non-trivial code into a file spec/support/my_helper.rb, making sure that the
|
37
|
-
# spec/support/* files are require'd from inside the each_run block.)
|
38
|
-
#
|
39
|
-
# Any code that is left outside the two blocks will be run during preforking
|
40
|
-
# *and* during each_run -- that's probably not what you want.
|
41
|
-
#
|
42
|
-
# These instructions should self-destruct in 10 seconds. If they don't, feel
|
43
|
-
# free to delete them.
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
# Configure Rails Envinronment
|
49
|
-
ENV["RAILS_ENV"] = "test"
|
50
|
-
|
51
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
52
|
-
require "rails/test_help"
|
53
|
-
require "rspec/rails"
|
54
|
-
|
55
|
-
ActionMailer::Base.delivery_method = :test
|
56
|
-
ActionMailer::Base.perform_deliveries = true
|
57
|
-
ActionMailer::Base.default_url_options[:host] = "test.com"
|
58
|
-
|
59
|
-
Rails.backtrace_cleaner.remove_silencers!
|
60
|
-
|
61
|
-
# Run any available migration
|
62
|
-
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
63
|
-
|
64
|
-
# Load support files
|
65
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
66
|
-
|
67
|
-
RSpec.configure do |config|
|
68
|
-
# Remove this line if you don't want RSpec's should and should_not
|
69
|
-
# methods or matchers
|
70
|
-
require 'rspec/expectations'
|
71
|
-
config.include RSpec::Matchers
|
72
|
-
|
73
|
-
# == Mock Framework
|
74
|
-
config.mock_with :rspec
|
75
|
-
|
76
|
-
config.use_transactional_fixtures = true
|
77
|
-
end
|