paper_trail_manager 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +15 -7
- data/.travis.yml +9 -4
- data/Appraisals +15 -0
- data/CHANGES.md +5 -0
- data/Gemfile +3 -26
- data/README.md +6 -1
- data/Rakefile +8 -31
- data/app/controllers/paper_trail_manager/changes_controller.rb +3 -3
- data/app/helpers/paper_trail_manager/changes_helper.rb +1 -1
- data/app/views/paper_trail_manager/changes/_version.html.erb +1 -1
- data/gemfiles/rails_3.2.gemfile +7 -0
- data/gemfiles/rails_4.0.gemfile +7 -0
- data/gemfiles/rails_4.1.gemfile +7 -0
- data/gemfiles/rails_4.2.gemfile +7 -0
- data/lib/paper_trail_manager.rb +1 -0
- data/paper_trail_manager.gemspec +27 -381
- data/{rails_test/common/spec → spec}/controllers/entities_controller_spec.rb +1 -1
- data/{rails_test/common/spec → spec}/controllers/platforms_controller_spec.rb +1 -1
- data/{rails_test/rails-3.1.8 → spec/dummy}/.gitignore +0 -0
- data/spec/dummy/Gemfile +9 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/README.rdoc +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/Rakefile +0 -0
- data/{rails_test/rails-3.0.17/public → spec/dummy/app/assets}/images/rails.png +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/app/assets/javascripts/application.js +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/app/assets/stylesheets/application.css +0 -0
- data/{rails_test/common → spec/dummy}/app/controllers/application_controller.rb +0 -0
- data/{rails_test/common → spec/dummy}/app/controllers/entities_controller.rb +0 -0
- data/{rails_test/common → spec/dummy}/app/controllers/platforms_controller.rb +0 -0
- data/{rails_test/common → spec/dummy}/app/helpers/application_helper.rb +0 -0
- data/{rails_test/common → spec/dummy}/app/helpers/entities_helper.rb +0 -0
- data/{rails_test/common → spec/dummy}/app/helpers/platforms_helper.rb +0 -0
- data/{rails_test/rails-3.0.17/lib/tasks → spec/dummy/app/mailers}/.gitkeep +0 -0
- data/{rails_test/rails-3.0.17/public/stylesheets → spec/dummy/app/models}/.gitkeep +0 -0
- data/{rails_test/common → spec/dummy}/app/models/entity.rb +0 -2
- data/{rails_test/rails-3.1.8 → spec/dummy}/app/models/platform.rb +0 -2
- data/{rails_test/common → spec/dummy}/app/views/application/index.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/entities/_form.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/entities/edit.html.erb +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/app/views/entities/index.html.erb +1 -1
- data/{rails_test/common → spec/dummy}/app/views/entities/new.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/entities/show.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/layouts/application.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/platforms/_form.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/platforms/edit.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/platforms/index.html.erb +1 -1
- data/{rails_test/common → spec/dummy}/app/views/platforms/new.html.erb +0 -0
- data/{rails_test/common → spec/dummy}/app/views/platforms/show.html.erb +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config.ru +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/application.rb +3 -1
- data/{rails_test/rails-3.0.17 → spec/dummy}/config/boot.rb +0 -0
- data/{rails_test/common → spec/dummy}/config/database.yml +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/environment.rb +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/environments/development.rb +1 -1
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/environments/production.rb +1 -1
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/environments/test.rb +4 -5
- data/{rails_test/rails-3.0.17 → spec/dummy}/config/initializers/backtrace_silencers.rb +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/initializers/inflections.rb +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/config/initializers/mime_types.rb +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/config/initializers/secret_token.rb +1 -1
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/initializers/session_store.rb +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/config/initializers/wrap_parameters.rb +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/config/locales/en.yml +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/config/routes.rb +0 -0
- data/{rails_test/common → spec/dummy}/db/migrate/20110228091428_create_entities.rb +0 -0
- data/{rails_test/common → spec/dummy}/db/migrate/20110228093241_create_platforms.rb +0 -0
- data/{rails_test/common → spec/dummy}/db/migrate/20110228094444_create_versions.rb +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/db/schema.rb +15 -14
- data/{rails_test/rails-3.1.8 → spec/dummy}/db/seeds.rb +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/doc/README_FOR_APP +0 -0
- data/{rails_test/rails-3.0.17/vendor/plugins → spec/dummy/lib/assets}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/app/mailers → spec/dummy/lib/tasks}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/app/models → spec/dummy/log}/.gitkeep +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/public/404.html +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/public/422.html +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/public/500.html +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/public/favicon.ico +0 -0
- data/{rails_test/rails-3.2.8 → spec/dummy}/public/index.html +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/public/robots.txt +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/script/rails +0 -0
- data/{rails_test/rails-3.1.8/lib/assets → spec/dummy/test/fixtures}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/lib/tasks → spec/dummy/test/functional}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/log → spec/dummy/test/integration}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8 → spec/dummy}/test/performance/browsing_test.rb +0 -0
- data/{rails_test/rails-3.0.17 → spec/dummy}/test/test_helper.rb +0 -0
- data/{rails_test/rails-3.1.8/test/fixtures → spec/dummy/test/unit}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/test/functional → spec/dummy/vendor/assets/javascripts}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/test/integration → spec/dummy/vendor/assets/stylesheets}/.gitkeep +0 -0
- data/{rails_test/rails-3.1.8/test/unit → spec/dummy/vendor/plugins}/.gitkeep +0 -0
- data/{rails_test/common/spec → spec}/helpers/entities_helper_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/helpers/platforms_helper_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/integration/navigation_spec.rb +0 -0
- data/{rails_test/rails-3.1.8/spec → spec}/integration/paper_trail_manager_spec.rb +14 -14
- data/{rails_test/common/spec → spec}/models/entity_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/models/platform_spec.rb +0 -0
- data/spec/rails_helper.rb +27 -0
- data/{rails_test/common/spec → spec}/requests/entities_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/requests/platforms_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/routing/entities_routing_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/routing/platforms_routing_spec.rb +0 -0
- data/spec/spec_helper.rb +90 -0
- data/{rails_test/rails-3.0.17/spec → spec}/support/factories.rb +1 -1
- data/{rails_test/common/spec → spec}/views/entities/edit.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/entities/index.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/entities/new.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/entities/show.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/platforms/edit.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/platforms/index.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/platforms/new.html.erb_spec.rb +0 -0
- data/{rails_test/common/spec → spec}/views/platforms/show.html.erb_spec.rb +0 -0
- metadata +368 -458
- data/Gemfile.lock +0 -104
- data/VERSION +0 -1
- data/rails_test/Rakefile +0 -90
- data/rails_test/common/app/models/platform.rb +0 -8
- data/rails_test/common/app/views/entities/index.html.erb +0 -21
- data/rails_test/common/spec/integration/paper_trail_manager_spec.rb +0 -232
- data/rails_test/common/spec/spec_helper.rb +0 -32
- data/rails_test/common/spec/support/factories.rb +0 -14
- data/rails_test/generate_test_directory +0 -59
- data/rails_test/rails-3.0.17/.gitignore +0 -4
- data/rails_test/rails-3.0.17/README +0 -256
- data/rails_test/rails-3.0.17/Rakefile +0 -7
- data/rails_test/rails-3.0.17/app/controllers/application_controller.rb +0 -6
- data/rails_test/rails-3.0.17/app/controllers/entities_controller.rb +0 -83
- data/rails_test/rails-3.0.17/app/controllers/platforms_controller.rb +0 -83
- data/rails_test/rails-3.0.17/app/helpers/application_helper.rb +0 -2
- data/rails_test/rails-3.0.17/app/helpers/entities_helper.rb +0 -2
- data/rails_test/rails-3.0.17/app/helpers/platforms_helper.rb +0 -2
- data/rails_test/rails-3.0.17/app/models/entity.rb +0 -8
- data/rails_test/rails-3.0.17/app/models/platform.rb +0 -8
- data/rails_test/rails-3.0.17/app/views/application/index.html.erb +0 -6
- data/rails_test/rails-3.0.17/app/views/entities/_form.html.erb +0 -17
- data/rails_test/rails-3.0.17/app/views/entities/edit.html.erb +0 -6
- data/rails_test/rails-3.0.17/app/views/entities/index.html.erb +0 -21
- data/rails_test/rails-3.0.17/app/views/entities/new.html.erb +0 -5
- data/rails_test/rails-3.0.17/app/views/entities/show.html.erb +0 -5
- data/rails_test/rails-3.0.17/app/views/layouts/application.html.erb +0 -14
- data/rails_test/rails-3.0.17/app/views/platforms/_form.html.erb +0 -17
- data/rails_test/rails-3.0.17/app/views/platforms/edit.html.erb +0 -6
- data/rails_test/rails-3.0.17/app/views/platforms/index.html.erb +0 -21
- data/rails_test/rails-3.0.17/app/views/platforms/new.html.erb +0 -5
- data/rails_test/rails-3.0.17/app/views/platforms/show.html.erb +0 -5
- data/rails_test/rails-3.0.17/config.ru +0 -4
- data/rails_test/rails-3.0.17/config/application.rb +0 -42
- data/rails_test/rails-3.0.17/config/database.yml +0 -22
- data/rails_test/rails-3.0.17/config/environment.rb +0 -5
- data/rails_test/rails-3.0.17/config/environments/development.rb +0 -26
- data/rails_test/rails-3.0.17/config/environments/production.rb +0 -49
- data/rails_test/rails-3.0.17/config/environments/test.rb +0 -35
- data/rails_test/rails-3.0.17/config/initializers/inflections.rb +0 -10
- data/rails_test/rails-3.0.17/config/initializers/secret_token.rb +0 -7
- data/rails_test/rails-3.0.17/config/initializers/session_store.rb +0 -8
- data/rails_test/rails-3.0.17/config/locales/en.yml +0 -5
- data/rails_test/rails-3.0.17/config/routes.rb +0 -8
- data/rails_test/rails-3.0.17/db/migrate/20110228091428_create_entities.rb +0 -14
- data/rails_test/rails-3.0.17/db/migrate/20110228093241_create_platforms.rb +0 -14
- data/rails_test/rails-3.0.17/db/migrate/20110228094444_create_versions.rb +0 -18
- data/rails_test/rails-3.0.17/db/schema.rb +0 -40
- data/rails_test/rails-3.0.17/db/seeds.rb +0 -7
- data/rails_test/rails-3.0.17/public/500.html +0 -26
- data/rails_test/rails-3.0.17/public/index.html +0 -239
- data/rails_test/rails-3.0.17/public/javascripts/application.js +0 -2
- data/rails_test/rails-3.0.17/public/javascripts/controls.js +0 -965
- data/rails_test/rails-3.0.17/public/javascripts/dragdrop.js +0 -974
- data/rails_test/rails-3.0.17/public/javascripts/effects.js +0 -1123
- data/rails_test/rails-3.0.17/public/javascripts/prototype.js +0 -6001
- data/rails_test/rails-3.0.17/public/javascripts/rails.js +0 -202
- data/rails_test/rails-3.0.17/spec/controllers/entities_controller_spec.rb +0 -125
- data/rails_test/rails-3.0.17/spec/controllers/platforms_controller_spec.rb +0 -125
- data/rails_test/rails-3.0.17/spec/helpers/entities_helper_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/helpers/platforms_helper_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/integration/navigation_spec.rb +0 -7
- data/rails_test/rails-3.0.17/spec/integration/paper_trail_manager_spec.rb +0 -232
- data/rails_test/rails-3.0.17/spec/models/entity_spec.rb +0 -14
- data/rails_test/rails-3.0.17/spec/models/platform_spec.rb +0 -14
- data/rails_test/rails-3.0.17/spec/requests/entities_spec.rb +0 -11
- data/rails_test/rails-3.0.17/spec/requests/platforms_spec.rb +0 -11
- data/rails_test/rails-3.0.17/spec/routing/entities_routing_spec.rb +0 -35
- data/rails_test/rails-3.0.17/spec/routing/platforms_routing_spec.rb +0 -35
- data/rails_test/rails-3.0.17/spec/spec_helper.rb +0 -32
- data/rails_test/rails-3.0.17/spec/views/entities/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/views/entities/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.0.17/spec/views/entities/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/views/entities/show.html.erb_spec.rb +0 -11
- data/rails_test/rails-3.0.17/spec/views/platforms/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/views/platforms/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.0.17/spec/views/platforms/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.0.17/spec/views/platforms/show.html.erb_spec.rb +0 -11
- data/rails_test/rails-3.0.17/test/performance/browsing_test.rb +0 -9
- data/rails_test/rails-3.1.8/README +0 -261
- data/rails_test/rails-3.1.8/Rakefile +0 -7
- 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 +0 -9
- data/rails_test/rails-3.1.8/app/assets/stylesheets/application.css +0 -7
- data/rails_test/rails-3.1.8/app/controllers/application_controller.rb +0 -6
- data/rails_test/rails-3.1.8/app/controllers/entities_controller.rb +0 -83
- data/rails_test/rails-3.1.8/app/controllers/platforms_controller.rb +0 -83
- data/rails_test/rails-3.1.8/app/helpers/application_helper.rb +0 -2
- data/rails_test/rails-3.1.8/app/helpers/entities_helper.rb +0 -2
- data/rails_test/rails-3.1.8/app/helpers/platforms_helper.rb +0 -2
- data/rails_test/rails-3.1.8/app/models/entity.rb +0 -8
- data/rails_test/rails-3.1.8/app/views/application/index.html.erb +0 -6
- data/rails_test/rails-3.1.8/app/views/entities/_form.html.erb +0 -17
- data/rails_test/rails-3.1.8/app/views/entities/edit.html.erb +0 -6
- data/rails_test/rails-3.1.8/app/views/entities/new.html.erb +0 -5
- data/rails_test/rails-3.1.8/app/views/entities/show.html.erb +0 -5
- data/rails_test/rails-3.1.8/app/views/layouts/application.html.erb +0 -14
- data/rails_test/rails-3.1.8/app/views/platforms/_form.html.erb +0 -17
- data/rails_test/rails-3.1.8/app/views/platforms/edit.html.erb +0 -6
- data/rails_test/rails-3.1.8/app/views/platforms/index.html.erb +0 -21
- data/rails_test/rails-3.1.8/app/views/platforms/new.html.erb +0 -5
- data/rails_test/rails-3.1.8/app/views/platforms/show.html.erb +0 -5
- data/rails_test/rails-3.1.8/config.ru +0 -4
- data/rails_test/rails-3.1.8/config/application.rb +0 -48
- data/rails_test/rails-3.1.8/config/boot.rb +0 -6
- data/rails_test/rails-3.1.8/config/database.yml +0 -22
- data/rails_test/rails-3.1.8/config/environment.rb +0 -5
- data/rails_test/rails-3.1.8/config/environments/development.rb +0 -30
- data/rails_test/rails-3.1.8/config/environments/production.rb +0 -60
- data/rails_test/rails-3.1.8/config/environments/test.rb +0 -39
- data/rails_test/rails-3.1.8/config/initializers/backtrace_silencers.rb +0 -7
- data/rails_test/rails-3.1.8/config/initializers/inflections.rb +0 -10
- data/rails_test/rails-3.1.8/config/initializers/mime_types.rb +0 -5
- data/rails_test/rails-3.1.8/config/initializers/session_store.rb +0 -8
- data/rails_test/rails-3.1.8/config/routes.rb +0 -8
- data/rails_test/rails-3.1.8/db/migrate/20110228091428_create_entities.rb +0 -14
- data/rails_test/rails-3.1.8/db/migrate/20110228093241_create_platforms.rb +0 -14
- data/rails_test/rails-3.1.8/db/migrate/20110228094444_create_versions.rb +0 -18
- data/rails_test/rails-3.1.8/doc/README_FOR_APP +0 -2
- data/rails_test/rails-3.1.8/public/404.html +0 -26
- data/rails_test/rails-3.1.8/public/422.html +0 -26
- data/rails_test/rails-3.1.8/public/500.html +0 -26
- data/rails_test/rails-3.1.8/public/favicon.ico +0 -0
- data/rails_test/rails-3.1.8/public/index.html +0 -241
- data/rails_test/rails-3.1.8/public/robots.txt +0 -5
- data/rails_test/rails-3.1.8/script/rails +0 -6
- data/rails_test/rails-3.1.8/spec/controllers/entities_controller_spec.rb +0 -125
- data/rails_test/rails-3.1.8/spec/controllers/platforms_controller_spec.rb +0 -125
- data/rails_test/rails-3.1.8/spec/helpers/entities_helper_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/helpers/platforms_helper_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/integration/navigation_spec.rb +0 -7
- data/rails_test/rails-3.1.8/spec/models/entity_spec.rb +0 -14
- data/rails_test/rails-3.1.8/spec/models/platform_spec.rb +0 -14
- data/rails_test/rails-3.1.8/spec/requests/entities_spec.rb +0 -11
- data/rails_test/rails-3.1.8/spec/requests/platforms_spec.rb +0 -11
- data/rails_test/rails-3.1.8/spec/routing/entities_routing_spec.rb +0 -35
- data/rails_test/rails-3.1.8/spec/routing/platforms_routing_spec.rb +0 -35
- data/rails_test/rails-3.1.8/spec/spec_helper.rb +0 -32
- data/rails_test/rails-3.1.8/spec/support/factories.rb +0 -14
- data/rails_test/rails-3.1.8/spec/views/entities/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/views/entities/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.1.8/spec/views/entities/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/views/entities/show.html.erb_spec.rb +0 -11
- data/rails_test/rails-3.1.8/spec/views/platforms/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/views/platforms/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.1.8/spec/views/platforms/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.1.8/spec/views/platforms/show.html.erb_spec.rb +0 -11
- data/rails_test/rails-3.1.8/test/test_helper.rb +0 -13
- 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 +0 -15
- data/rails_test/rails-3.2.8/app/assets/images/rails.png +0 -0
- data/rails_test/rails-3.2.8/app/controllers/application_controller.rb +0 -6
- data/rails_test/rails-3.2.8/app/controllers/entities_controller.rb +0 -83
- data/rails_test/rails-3.2.8/app/controllers/platforms_controller.rb +0 -83
- data/rails_test/rails-3.2.8/app/helpers/application_helper.rb +0 -2
- data/rails_test/rails-3.2.8/app/helpers/entities_helper.rb +0 -2
- data/rails_test/rails-3.2.8/app/helpers/platforms_helper.rb +0 -2
- 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 +0 -8
- data/rails_test/rails-3.2.8/app/models/platform.rb +0 -8
- data/rails_test/rails-3.2.8/app/views/application/index.html.erb +0 -6
- data/rails_test/rails-3.2.8/app/views/entities/_form.html.erb +0 -17
- data/rails_test/rails-3.2.8/app/views/entities/edit.html.erb +0 -6
- data/rails_test/rails-3.2.8/app/views/entities/index.html.erb +0 -21
- data/rails_test/rails-3.2.8/app/views/entities/new.html.erb +0 -5
- data/rails_test/rails-3.2.8/app/views/entities/show.html.erb +0 -5
- data/rails_test/rails-3.2.8/app/views/layouts/application.html.erb +0 -14
- data/rails_test/rails-3.2.8/app/views/platforms/_form.html.erb +0 -17
- data/rails_test/rails-3.2.8/app/views/platforms/edit.html.erb +0 -6
- data/rails_test/rails-3.2.8/app/views/platforms/index.html.erb +0 -21
- data/rails_test/rails-3.2.8/app/views/platforms/new.html.erb +0 -5
- data/rails_test/rails-3.2.8/app/views/platforms/show.html.erb +0 -5
- data/rails_test/rails-3.2.8/config/boot.rb +0 -6
- data/rails_test/rails-3.2.8/config/database.yml +0 -22
- data/rails_test/rails-3.2.8/config/initializers/backtrace_silencers.rb +0 -7
- data/rails_test/rails-3.2.8/config/initializers/mime_types.rb +0 -5
- data/rails_test/rails-3.2.8/config/initializers/secret_token.rb +0 -7
- data/rails_test/rails-3.2.8/config/initializers/wrap_parameters.rb +0 -14
- data/rails_test/rails-3.2.8/config/locales/en.yml +0 -5
- data/rails_test/rails-3.2.8/db/migrate/20110228091428_create_entities.rb +0 -14
- data/rails_test/rails-3.2.8/db/migrate/20110228093241_create_platforms.rb +0 -14
- data/rails_test/rails-3.2.8/db/migrate/20110228094444_create_versions.rb +0 -18
- data/rails_test/rails-3.2.8/db/schema.rb +0 -40
- data/rails_test/rails-3.2.8/db/seeds.rb +0 -7
- data/rails_test/rails-3.2.8/doc/README_FOR_APP +0 -2
- 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 +0 -26
- data/rails_test/rails-3.2.8/public/422.html +0 -26
- data/rails_test/rails-3.2.8/public/favicon.ico +0 -0
- data/rails_test/rails-3.2.8/public/robots.txt +0 -5
- data/rails_test/rails-3.2.8/script/rails +0 -6
- data/rails_test/rails-3.2.8/spec/controllers/entities_controller_spec.rb +0 -125
- data/rails_test/rails-3.2.8/spec/controllers/platforms_controller_spec.rb +0 -125
- data/rails_test/rails-3.2.8/spec/helpers/entities_helper_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/helpers/platforms_helper_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/integration/navigation_spec.rb +0 -7
- data/rails_test/rails-3.2.8/spec/integration/paper_trail_manager_spec.rb +0 -232
- data/rails_test/rails-3.2.8/spec/models/entity_spec.rb +0 -14
- data/rails_test/rails-3.2.8/spec/models/platform_spec.rb +0 -14
- data/rails_test/rails-3.2.8/spec/requests/entities_spec.rb +0 -11
- data/rails_test/rails-3.2.8/spec/requests/platforms_spec.rb +0 -11
- data/rails_test/rails-3.2.8/spec/routing/entities_routing_spec.rb +0 -35
- data/rails_test/rails-3.2.8/spec/routing/platforms_routing_spec.rb +0 -35
- data/rails_test/rails-3.2.8/spec/spec_helper.rb +0 -32
- data/rails_test/rails-3.2.8/spec/support/factories.rb +0 -14
- data/rails_test/rails-3.2.8/spec/views/entities/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/views/entities/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.2.8/spec/views/entities/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/views/entities/show.html.erb_spec.rb +0 -11
- data/rails_test/rails-3.2.8/spec/views/platforms/edit.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/views/platforms/index.html.erb_spec.rb +0 -14
- data/rails_test/rails-3.2.8/spec/views/platforms/new.html.erb_spec.rb +0 -15
- data/rails_test/rails-3.2.8/spec/views/platforms/show.html.erb_spec.rb +0 -11
- 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 +0 -12
- data/rails_test/rails-3.2.8/test/test_helper.rb +0 -13
- 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
|
File without changes
|
data/spec/dummy/Gemfile
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
source :gemcutter
|
|
2
|
+
gem "rails", "=3.2.21"
|
|
3
|
+
gem "i18n", ">= 0.5", "< 0.7"
|
|
4
|
+
gem "sqlite3-ruby", :require => "sqlite3"
|
|
5
|
+
gem "rake"
|
|
6
|
+
gem "will_paginate", "~> 3.0.pre2"
|
|
7
|
+
gem "paper_trail_manager", :path => "/home/micah/work/paper_trail_manager"
|
|
8
|
+
gem 'factory_girl_rails', '~> 1.7.0'
|
|
9
|
+
gem 'rspec-rails', '~> 2.11.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<tr>
|
|
12
12
|
<td><%= link_to 'Show', entity %></td>
|
|
13
13
|
<td><%= link_to 'Edit', edit_entity_path(entity) %></td>
|
|
14
|
-
<td><%= link_to 'Destroy', entity, :confirm => 'Are you sure?'
|
|
14
|
+
<td><%= link_to 'Destroy', entity, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
|
|
15
15
|
</tr>
|
|
16
16
|
<% end %>
|
|
17
17
|
</table>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<tr>
|
|
12
12
|
<td><%= link_to 'Show', platform %></td>
|
|
13
13
|
<td><%= link_to 'Edit', edit_platform_path(platform) %></td>
|
|
14
|
-
<td><%= link_to 'Destroy', platform, :confirm => 'Are you sure?'
|
|
14
|
+
<td><%= link_to 'Destroy', platform, :method => :delete, :data => { :confirm => 'Are you sure?' } %></td>
|
|
15
15
|
</tr>
|
|
16
16
|
<% end %>
|
|
17
17
|
</table>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -51,7 +51,9 @@ module Rails328
|
|
|
51
51
|
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
|
52
52
|
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
|
53
53
|
# parameters by using an attr_accessible or attr_protected declaration.
|
|
54
|
-
|
|
54
|
+
if Rails.version < "4.1"
|
|
55
|
+
config.active_record.whitelist_attributes = false
|
|
56
|
+
end
|
|
55
57
|
|
|
56
58
|
# Enable the asset pipeline
|
|
57
59
|
config.assets.enabled = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -23,7 +23,7 @@ Rails328::Application.configure do
|
|
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
|
24
24
|
|
|
25
25
|
# Raise exception on mass assignment protection for Active Record models
|
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
|
26
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
|
27
27
|
|
|
28
28
|
# Log the query plan for queries taking more than this (works
|
|
29
29
|
# with SQLite, MySQL, and PostgreSQL)
|
|
@@ -9,7 +9,7 @@ Rails328::Application.configure do
|
|
|
9
9
|
config.action_controller.perform_caching = true
|
|
10
10
|
|
|
11
11
|
# Disable Rails's static asset server (Apache or nginx will already do this)
|
|
12
|
-
config.serve_static_assets = false
|
|
12
|
+
# config.serve_static_assets = false
|
|
13
13
|
|
|
14
14
|
# Compress JavaScripts and CSS
|
|
15
15
|
config.assets.compress = true
|
|
@@ -8,12 +8,9 @@ Rails328::Application.configure do
|
|
|
8
8
|
config.cache_classes = true
|
|
9
9
|
|
|
10
10
|
# Configure static asset server for tests with Cache-Control for performance
|
|
11
|
-
config.serve_static_assets = true
|
|
11
|
+
# config.serve_static_assets = true
|
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
|
13
13
|
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
|
15
|
-
config.whiny_nils = true
|
|
16
|
-
|
|
17
14
|
# Show full error reports and disable caching
|
|
18
15
|
config.consider_all_requests_local = true
|
|
19
16
|
config.action_controller.perform_caching = false
|
|
@@ -30,7 +27,9 @@ Rails328::Application.configure do
|
|
|
30
27
|
config.action_mailer.delivery_method = :test
|
|
31
28
|
|
|
32
29
|
# Raise exception on mass assignment protection for Active Record models
|
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
|
30
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
|
31
|
+
|
|
32
|
+
config.eager_load = false
|
|
34
33
|
|
|
35
34
|
# Print deprecation notices to the stderr
|
|
36
35
|
config.active_support.deprecation = :stderr
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
|
7
|
-
|
|
7
|
+
Rails328::Application.config.secret_key_base = Rails328::Application.config.secret_token = '96169e00f121ca10adb3df3e38edd800c2b0972dc6c9054a9e124979643558199e4245eb3bd60d0fb0f6e71734cc170ce4b57721e55fa106221cda73c9281c5e'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# encoding: UTF-8
|
|
1
2
|
# This file is auto-generated from the current state of the database. Instead
|
|
2
3
|
# of editing this file, please use the migrations feature of Active Record to
|
|
3
4
|
# incrementally modify your database, and then regenerate this schema definition.
|
|
@@ -8,33 +9,33 @@
|
|
|
8
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
9
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
10
11
|
#
|
|
11
|
-
# It's strongly recommended
|
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
12
13
|
|
|
13
|
-
ActiveRecord::Schema.define(:
|
|
14
|
+
ActiveRecord::Schema.define(version: 20110228094444) do
|
|
14
15
|
|
|
15
|
-
create_table "entities", :
|
|
16
|
-
t.string "name"
|
|
17
|
-
t.string "status"
|
|
16
|
+
create_table "entities", force: :cascade do |t|
|
|
17
|
+
t.string "name", limit: 255
|
|
18
|
+
t.string "status", limit: 255
|
|
18
19
|
t.datetime "created_at"
|
|
19
20
|
t.datetime "updated_at"
|
|
20
21
|
end
|
|
21
22
|
|
|
22
|
-
create_table "platforms", :
|
|
23
|
-
t.string "name"
|
|
24
|
-
t.string "status"
|
|
23
|
+
create_table "platforms", force: :cascade do |t|
|
|
24
|
+
t.string "name", limit: 255
|
|
25
|
+
t.string "status", limit: 255
|
|
25
26
|
t.datetime "created_at"
|
|
26
27
|
t.datetime "updated_at"
|
|
27
28
|
end
|
|
28
29
|
|
|
29
|
-
create_table "versions", :
|
|
30
|
-
t.string "item_type", :null
|
|
31
|
-
t.integer "item_id",
|
|
32
|
-
t.string "event", :null
|
|
33
|
-
t.string "whodunnit"
|
|
30
|
+
create_table "versions", force: :cascade do |t|
|
|
31
|
+
t.string "item_type", limit: 255, null: false
|
|
32
|
+
t.integer "item_id", null: false
|
|
33
|
+
t.string "event", limit: 255, null: false
|
|
34
|
+
t.string "whodunnit", limit: 255
|
|
34
35
|
t.text "object"
|
|
35
36
|
t.datetime "created_at"
|
|
36
37
|
end
|
|
37
38
|
|
|
38
|
-
add_index "versions", ["item_type", "item_id"], :
|
|
39
|
+
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
|
39
40
|
|
|
40
41
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/{rails_test/rails-3.1.8/test/functional → spec/dummy/vendor/assets/javascripts}/.gitkeep
RENAMED
|
File without changes
|
data/{rails_test/rails-3.1.8/test/integration → spec/dummy/vendor/assets/stylesheets}/.gitkeep
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
describe PaperTrailManager do
|
|
3
|
+
describe PaperTrailManager, :versioning => true do
|
|
4
4
|
def version
|
|
5
5
|
return assigns[:version]
|
|
6
6
|
end
|
|
@@ -41,21 +41,21 @@ describe PaperTrailManager do
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
context "with changes" do
|
|
44
|
-
before
|
|
44
|
+
before do
|
|
45
45
|
populate
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
after
|
|
48
|
+
after do
|
|
49
49
|
Entity.destroy_all
|
|
50
50
|
Platform.destroy_all
|
|
51
|
-
Version.destroy_all
|
|
51
|
+
PaperTrail::Version.destroy_all
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
context "index" do
|
|
55
55
|
context "when getting all changes" do
|
|
56
56
|
context "and authorized" do
|
|
57
57
|
context "and getting default index" do
|
|
58
|
-
before
|
|
58
|
+
before { get changes_path }
|
|
59
59
|
|
|
60
60
|
it "should have all changes" do
|
|
61
61
|
versions.size.should == 10
|
|
@@ -74,7 +74,7 @@ describe PaperTrailManager do
|
|
|
74
74
|
let(:page) { 2 }
|
|
75
75
|
let(:per_page) { 3 }
|
|
76
76
|
|
|
77
|
-
before
|
|
77
|
+
before { get changes_path(:page => page, :per_page => per_page) }
|
|
78
78
|
|
|
79
79
|
it "should set :page parameter" do
|
|
80
80
|
assigns[:page].should == page
|
|
@@ -90,7 +90,7 @@ describe PaperTrailManager do
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
context "and getting invalid pagination" do
|
|
93
|
-
before
|
|
93
|
+
before { get changes_path(:page => "Shanghai", :per_page => "Alice") }
|
|
94
94
|
|
|
95
95
|
it "should set default :page parameter" do
|
|
96
96
|
assigns[:page].should be_nil
|
|
@@ -110,7 +110,7 @@ describe PaperTrailManager do
|
|
|
110
110
|
|
|
111
111
|
context "when getting changes for a specific type" do
|
|
112
112
|
context "that exists" do
|
|
113
|
-
before
|
|
113
|
+
before { get changes_path(:type => "Entity") }
|
|
114
114
|
|
|
115
115
|
it "should show a subset of the changes" do
|
|
116
116
|
versions.size.should == 6
|
|
@@ -129,7 +129,7 @@ describe PaperTrailManager do
|
|
|
129
129
|
|
|
130
130
|
context "when getting changes for a specific record" do
|
|
131
131
|
context "that exists" do
|
|
132
|
-
before
|
|
132
|
+
before { get changes_path(:type => "Entity", :id => @reimu.id) }
|
|
133
133
|
|
|
134
134
|
it "should show a subset of the changes" do
|
|
135
135
|
versions.size.should == 3
|
|
@@ -154,7 +154,7 @@ describe PaperTrailManager do
|
|
|
154
154
|
context "show a change" do
|
|
155
155
|
context "that exists" do
|
|
156
156
|
context "when authorized" do
|
|
157
|
-
before
|
|
157
|
+
before do
|
|
158
158
|
@version = @reimu.versions.last
|
|
159
159
|
get change_path(@version)
|
|
160
160
|
end
|
|
@@ -191,11 +191,11 @@ describe PaperTrailManager do
|
|
|
191
191
|
|
|
192
192
|
context "when authorized" do
|
|
193
193
|
it "should rollback a newly-created record by deleting it" do
|
|
194
|
-
Entity.exists?(@reimu.id).should
|
|
194
|
+
Entity.exists?(@reimu.id).should be_truthy
|
|
195
195
|
|
|
196
196
|
put change_path(@reimu.versions.first)
|
|
197
197
|
|
|
198
|
-
Entity.exists?(@reimu.id).should
|
|
198
|
+
Entity.exists?(@reimu.id).should be_falsey
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
it "should rollback an edit by reverting to the previous state" do
|
|
@@ -209,9 +209,9 @@ describe PaperTrailManager do
|
|
|
209
209
|
end
|
|
210
210
|
|
|
211
211
|
it "should rollback a delete by restoring the record" do
|
|
212
|
-
Entity.exists?(@flanchan.id).should
|
|
212
|
+
Entity.exists?(@flanchan.id).should be_falsey
|
|
213
213
|
|
|
214
|
-
put change_path(Version.where(:item_id => @flanchan.id, :item_type => "Entity").last)
|
|
214
|
+
put change_path(PaperTrail::Version.where(:item_id => @flanchan.id, :item_type => "Entity").last)
|
|
215
215
|
|
|
216
216
|
flanchan = Entity.find(@flanchan.id)
|
|
217
217
|
flanchan.status.should == "The Embodiment of Scarlet Devil"
|