cantango 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +58 -0
- data/LICENSE.txt +20 -0
- data/README.textile +211 -0
- data/Rakefile +48 -0
- data/VERSION +1 -0
- data/cantango.gemspec +658 -0
- data/ideas/feature_list.markdown +58 -0
- data/lib/cantango.rb +32 -0
- data/lib/cantango/ability.rb +56 -0
- data/lib/cantango/ability/cache.rb +95 -0
- data/lib/cantango/ability/cache/base_cache.rb +26 -0
- data/lib/cantango/ability/cache/kompiler.rb +24 -0
- data/lib/cantango/ability/cache/moneta_cache.rb +32 -0
- data/lib/cantango/ability/cache/session_cache.rb +38 -0
- data/lib/cantango/ability/class_methods.rb +27 -0
- data/lib/cantango/ability/masquerade_helpers.rb +19 -0
- data/lib/cantango/ability/permission_helpers.rb +20 -0
- data/lib/cantango/ability/permit_helpers.rb +27 -0
- data/lib/cantango/ability/role_helpers.rb +26 -0
- data/lib/cantango/ability/scope.rb +20 -0
- data/lib/cantango/ability/user_helpers.rb +22 -0
- data/lib/cantango/api.rb +5 -0
- data/lib/cantango/api/aliases.rb +8 -0
- data/lib/cantango/api/aliases/account_permit.rb +8 -0
- data/lib/cantango/api/aliases/license.rb +7 -0
- data/lib/cantango/api/aliases/permit.rb +9 -0
- data/lib/cantango/api/aliases/role_group_permit.rb +7 -0
- data/lib/cantango/api/aliases/role_permit.rb +7 -0
- data/lib/cantango/api/aliases/user_permit.rb +8 -0
- data/lib/cantango/api/common.rb +10 -0
- data/lib/cantango/api/options.rb +16 -0
- data/lib/cantango/api/user.rb +20 -0
- data/lib/cantango/api/user/ability.rb +38 -0
- data/lib/cantango/api/user/can.rb +26 -0
- data/lib/cantango/api/user/scope.rb +29 -0
- data/lib/cantango/api/user_account.rb +20 -0
- data/lib/cantango/api/user_account/ability.rb +44 -0
- data/lib/cantango/api/user_account/can.rb +26 -0
- data/lib/cantango/api/user_account/scope.rb +29 -0
- data/lib/cantango/cache.rb +6 -0
- data/lib/cantango/cache/moneta_cache.rb +68 -0
- data/lib/cantango/cancan/rule.rb +6 -0
- data/lib/cantango/configuration.rb +83 -0
- data/lib/cantango/configuration/ability.rb +13 -0
- data/lib/cantango/configuration/autoload.rb +38 -0
- data/lib/cantango/configuration/categories.rb +55 -0
- data/lib/cantango/configuration/engines.rb +49 -0
- data/lib/cantango/configuration/engines/cache.rb +20 -0
- data/lib/cantango/configuration/engines/engine.rb +31 -0
- data/lib/cantango/configuration/engines/permission.rb +49 -0
- data/lib/cantango/configuration/engines/permit.rb +26 -0
- data/lib/cantango/configuration/engines/store.rb +24 -0
- data/lib/cantango/configuration/factory.rb +59 -0
- data/lib/cantango/configuration/guest.rb +57 -0
- data/lib/cantango/configuration/hash_registry.rb +62 -0
- data/lib/cantango/configuration/models.rb +48 -0
- data/lib/cantango/configuration/registry.rb +53 -0
- data/lib/cantango/configuration/role_groups.rb +15 -0
- data/lib/cantango/configuration/role_registry.rb +43 -0
- data/lib/cantango/configuration/roles.rb +16 -0
- data/lib/cantango/configuration/user.rb +47 -0
- data/lib/cantango/configuration/user_account.rb +23 -0
- data/lib/cantango/configuration/user_accounts.rb +7 -0
- data/lib/cantango/configuration/users.rb +7 -0
- data/lib/cantango/helpers.rb +5 -0
- data/lib/cantango/helpers/role_methods.rb +26 -0
- data/lib/cantango/permission_engine.rb +7 -0
- data/lib/cantango/permission_engine/builder.rb +6 -0
- data/lib/cantango/permission_engine/collector.rb +43 -0
- data/lib/cantango/permission_engine/compiler.rb +67 -0
- data/lib/cantango/permission_engine/evaluator.rb +34 -0
- data/lib/cantango/permission_engine/factory.rb +60 -0
- data/lib/cantango/permission_engine/loader.rb +7 -0
- data/lib/cantango/permission_engine/loader/base.rb +39 -0
- data/lib/cantango/permission_engine/loader/categories.rb +50 -0
- data/lib/cantango/permission_engine/loader/permissions.rb +66 -0
- data/lib/cantango/permission_engine/moneta_store.rb +30 -0
- data/lib/cantango/permission_engine/parser.rb +32 -0
- data/lib/cantango/permission_engine/parser/categories.rb +18 -0
- data/lib/cantango/permission_engine/parser/category.rb +34 -0
- data/lib/cantango/permission_engine/parser/default.rb +20 -0
- data/lib/cantango/permission_engine/parser/ownership.rb +32 -0
- data/lib/cantango/permission_engine/parser/permissions.rb +33 -0
- data/lib/cantango/permission_engine/parser/regex.rb +35 -0
- data/lib/cantango/permission_engine/parser/relationship.rb +23 -0
- data/lib/cantango/permission_engine/parser/rule.rb +31 -0
- data/lib/cantango/permission_engine/permission.rb +40 -0
- data/lib/cantango/permission_engine/selector.rb +16 -0
- data/lib/cantango/permission_engine/selector/base.rb +19 -0
- data/lib/cantango/permission_engine/selector/licenses.rb +19 -0
- data/lib/cantango/permission_engine/selector/role_groups.rb +24 -0
- data/lib/cantango/permission_engine/selector/roles.rb +25 -0
- data/lib/cantango/permission_engine/selector/users.rb +22 -0
- data/lib/cantango/permission_engine/statement.rb +14 -0
- data/lib/cantango/permission_engine/statements.rb +35 -0
- data/lib/cantango/permission_engine/store.rb +33 -0
- data/lib/cantango/permission_engine/yaml_store.rb +108 -0
- data/lib/cantango/permit_engine.rb +8 -0
- data/lib/cantango/permit_engine/account_permit.rb +41 -0
- data/lib/cantango/permit_engine/account_permit/builder.rb +22 -0
- data/lib/cantango/permit_engine/account_permit/finder.rb +20 -0
- data/lib/cantango/permit_engine/builder.rb +8 -0
- data/lib/cantango/permit_engine/builder/base.rb +50 -0
- data/lib/cantango/permit_engine/builder/special_permits.rb +20 -0
- data/lib/cantango/permit_engine/compatibility.rb +20 -0
- data/lib/cantango/permit_engine/executor.rb +7 -0
- data/lib/cantango/permit_engine/executor/abstract.rb +40 -0
- data/lib/cantango/permit_engine/executor/base.rb +51 -0
- data/lib/cantango/permit_engine/executor/system.rb +13 -0
- data/lib/cantango/permit_engine/factory.rb +45 -0
- data/lib/cantango/permit_engine/finder.rb +39 -0
- data/lib/cantango/permit_engine/license.rb +37 -0
- data/lib/cantango/permit_engine/license/loader.rb +19 -0
- data/lib/cantango/permit_engine/license/rules.rb +17 -0
- data/lib/cantango/permit_engine/permit.rb +149 -0
- data/lib/cantango/permit_engine/role_group_permit.rb +37 -0
- data/lib/cantango/permit_engine/role_group_permit/builder.rb +47 -0
- data/lib/cantango/permit_engine/role_group_permit/finder.rb +20 -0
- data/lib/cantango/permit_engine/role_matcher.rb +13 -0
- data/lib/cantango/permit_engine/role_permit.rb +38 -0
- data/lib/cantango/permit_engine/role_permit/builder.rb +46 -0
- data/lib/cantango/permit_engine/role_permit/finder.rb +19 -0
- data/lib/cantango/permit_engine/user_permit.rb +40 -0
- data/lib/cantango/permit_engine/user_permit/builder.rb +21 -0
- data/lib/cantango/permit_engine/user_permit/finder.rb +20 -0
- data/lib/cantango/permit_engine/util.rb +19 -0
- data/lib/cantango/rails.rb +5 -0
- data/lib/cantango/rails/base_helpers.rb +26 -0
- data/lib/cantango/rails/controller_helpers.rb +15 -0
- data/lib/cantango/rails/engine.rb +47 -0
- data/lib/cantango/rails/railtie.rb +7 -0
- data/lib/cantango/rails/view_helpers.rb +15 -0
- data/lib/cantango/rspec.rb +1 -0
- data/lib/cantango/rspec/config.rb +9 -0
- data/lib/cantango/rspec/matchers.rb +9 -0
- data/lib/cantango/rspec/matchers/be_allowed_to.rb +26 -0
- data/lib/cantango/rspec/matchers/have_license.rb +11 -0
- data/lib/cantango/rspec/matchers/have_license_class.rb +14 -0
- data/lib/cantango/rspec/matchers/have_license_file.rb +82 -0
- data/lib/cantango/rules.rb +23 -0
- data/lib/cantango/rules/adaptor.rb +32 -0
- data/lib/cantango/rules/adaptor/active_record.rb +13 -0
- data/lib/cantango/rules/adaptor/generic.rb +16 -0
- data/lib/cantango/rules/adaptor/mongoid.rb +13 -0
- data/lib/cantango/rules/dsl.rb +24 -0
- data/lib/cantango/rules/rule_class.rb +11 -0
- data/lib/cantango/rules/scope.rb +24 -0
- data/lib/cantango/rules/user_relation.rb +68 -0
- data/lib/cantango/users.rb +5 -0
- data/lib/cantango/users/macros.rb +9 -0
- data/lib/cantango/users/masquerade.rb +22 -0
- data/lib/cantango/users/masquerade/session_active_user.rb +18 -0
- data/lib/cantango/users/user.rb +30 -0
- data/lib/cantango/users/user_account.rb +23 -0
- data/lib/generators/cantango/base.rb +52 -0
- data/lib/generators/cantango/license/license_generator.rb +34 -0
- data/lib/generators/cantango/license/templates/license.erb +10 -0
- data/lib/generators/cantango/license_base.rb +15 -0
- data/lib/generators/cantango/licenses/licenses_generator.rb +31 -0
- data/lib/generators/cantango/permit_generator.rb +36 -0
- data/lib/generators/cantango/role_permit/role_permit_generator.rb +42 -0
- data/lib/generators/cantango/role_permit/templates/account_permit.erb +4 -0
- data/lib/generators/cantango/role_permit/templates/role_group_permit.erb +14 -0
- data/lib/generators/cantango/role_permit/templates/role_permit.erb +13 -0
- data/lib/generators/cantango/role_permits/role_permits_generator.rb +127 -0
- data/spec/Note_on_licenses.textile +44 -0
- data/spec/Refactor_into_engines.textile +115 -0
- data/spec/TODO +7 -0
- data/spec/active_record/AR_README.textile +20 -0
- data/spec/active_record/config_helper.rb +108 -0
- data/spec/active_record/db/database.yml +4 -0
- data/spec/active_record/helper/ar_config.rb +19 -0
- data/spec/active_record/helper/permits_config.rb +12 -0
- data/spec/active_record/helper/rails_config.rb +6 -0
- data/spec/active_record/helper/rspec_config.rb +20 -0
- data/spec/active_record/migrations/001_create_user.rb +14 -0
- data/spec/active_record/migrations/002_create_comment.rb +13 -0
- data/spec/active_record/migrations/003_create_post.rb +13 -0
- data/spec/active_record/migrations/004_create_article.rb +13 -0
- data/spec/active_record/migrations/005_create_account.rb +13 -0
- data/spec/active_record/migrations/006_create_todo.rb +12 -0
- data/spec/active_record/migrations/007_create_user_todos.rb +13 -0
- data/spec/active_record/scenarios/SCENARIOS README.textile +19 -0
- data/spec/active_record/scenarios/engines/permission_engine/cantango_permissions.yml +63 -0
- data/spec/active_record/scenarios/engines/permission_engine/categories.yml +6 -0
- data/spec/active_record/scenarios/engines/permission_engine/tango_permission_yml_spec.rb +77 -0
- data/spec/active_record/scenarios/engines/permission_engine/users.rb +88 -0
- data/spec/active_record/scenarios/engines/permit_engine/licenses_spec.rb +37 -0
- data/spec/active_record/scenarios/engines/permit_engine/role_groups_permits_spec.rb +35 -0
- data/spec/active_record/scenarios/guest_user_admin/admin_user_spec.rb +19 -0
- data/spec/active_record/scenarios/guest_user_admin/docs/GUEST_ADMIN_USER_SCENARIO.textile +20 -0
- data/spec/active_record/scenarios/guest_user_admin/editor_spec.rb +19 -0
- data/spec/active_record/scenarios/guest_user_admin/guest_user_spec.rb +16 -0
- data/spec/active_record/scenarios/guest_user_admin/user_having_user_and_editor_roles_spec.rb +19 -0
- data/spec/active_record/scenarios/guest_user_admin/user_spec.rb +32 -0
- data/spec/active_record/scenarios/masquerading/masquerading_for_admin_account_spec.rb +41 -0
- data/spec/active_record/scenarios/masquerading/masquerading_for_admin_user_spec.rb +38 -0
- data/spec/active_record/scenarios/shared/api.rb +4 -0
- data/spec/active_record/scenarios/shared/can_tango.rb +2 -0
- data/spec/active_record/scenarios/shared/examples/user_accounts.rb +47 -0
- data/spec/active_record/scenarios/shared/examples/users.rb +85 -0
- data/spec/active_record/scenarios/shared/licenses/musicians_license.rb +12 -0
- data/spec/active_record/scenarios/shared/models/items.rb +26 -0
- data/spec/active_record/scenarios/shared/models/todo.rb +4 -0
- data/spec/active_record/scenarios/shared/models/user_todo.rb +4 -0
- data/spec/active_record/scenarios/shared/models/users.rb +46 -0
- data/spec/active_record/scenarios/shared/permits/PERMITS README.textile +3 -0
- data/spec/active_record/scenarios/shared/permits/account_permits/admin_account_permit.rb +30 -0
- data/spec/active_record/scenarios/shared/permits/account_permits/guest_account_permit.rb +16 -0
- data/spec/active_record/scenarios/shared/permits/account_permits/user_account_permit.rb +46 -0
- data/spec/active_record/scenarios/shared/permits/role/admin_permit.rb +11 -0
- data/spec/active_record/scenarios/shared/permits/role/editor_permit.rb +42 -0
- data/spec/active_record/scenarios/shared/permits/role/guest_permit.rb +26 -0
- data/spec/active_record/scenarios/shared/permits/role/super_admin_permit.rb +9 -0
- data/spec/active_record/scenarios/shared/permits/role/user_permit.rb +49 -0
- data/spec/active_record/scenarios/shared/permits/role_group/bloggers_permit.rb +8 -0
- data/spec/active_record/scenarios/shared/permits/role_group/musicians_permit.rb +9 -0
- data/spec/active_record/scenarios/shared/permits/special/any_role_permit.rb +10 -0
- data/spec/active_record/scenarios/shared/permits/special/system_role_permit.rb +10 -0
- data/spec/active_record/scenarios/user_accounts/admin_account_spec.rb +34 -0
- data/spec/active_record/scenarios/user_accounts/config/account_permits.yml +0 -0
- data/spec/active_record/scenarios/user_accounts/docs/USER_ACCOUNTS_SCENARIO.textile +20 -0
- data/spec/active_record/scenarios/user_accounts/docs/basic_rules_spec_possible_samples.txt +84 -0
- data/spec/active_record/scenarios/user_accounts/guest_account_spec.rb +34 -0
- data/spec/active_record/scenarios/user_accounts/helpers.rb +5 -0
- data/spec/active_record/scenarios/user_accounts/helpers/account_setup.rb +41 -0
- data/spec/active_record/scenarios/user_accounts/helpers/user_factory.rb +19 -0
- data/spec/active_record/scenarios/user_accounts/permits/admin_account_permit.rb +28 -0
- data/spec/active_record/scenarios/user_accounts/permits/guest_account_permit.rb +14 -0
- data/spec/active_record/scenarios/user_accounts/permits/user_account_permit.rb +43 -0
- data/spec/active_record/scenarios/user_accounts/user_account_spec.rb +36 -0
- data/spec/active_record/spec_helper.rb +19 -0
- data/spec/cantango/README.textile +3 -0
- data/spec/cantango/ability/cache/compiler_spec.rb +45 -0
- data/spec/cantango/ability/cache/session_cache_spec.rb +11 -0
- data/spec/cantango/ability/cache_spec.rb +107 -0
- data/spec/cantango/ability_filters_spec.rb +128 -0
- data/spec/cantango/ability_spec.rb +74 -0
- data/spec/cantango/api/current_user_accounts.rb +14 -0
- data/spec/cantango/api/current_users.rb +10 -0
- data/spec/cantango/api/user/ability_api_spec.rb +44 -0
- data/spec/cantango/api/user/can_api_spec.rb +109 -0
- data/spec/cantango/api/user/scope_api_spec.rb +65 -0
- data/spec/cantango/api/user_account/ability_api_spec.rb +29 -0
- data/spec/cantango/api/user_account/can_api_spec.rb +82 -0
- data/spec/cantango/api/user_account/scope_api_spec.rb +0 -0
- data/spec/cantango/api/user_account_api_spec.rb +0 -0
- data/spec/cantango/api/user_api_spec.rb +0 -0
- data/spec/cantango/configuration/ability_spec.rb +13 -0
- data/spec/cantango/configuration/autoload_spec.rb +53 -0
- data/spec/cantango/configuration/categories_spec.rb +60 -0
- data/spec/cantango/configuration/engines/cache_spec.rb +19 -0
- data/spec/cantango/configuration/engines/engine_shared.rb +22 -0
- data/spec/cantango/configuration/engines/permission_spec.rb +31 -0
- data/spec/cantango/configuration/engines/permit_spec.rb +16 -0
- data/spec/cantango/configuration/engines/store_engine_shared.rb +16 -0
- data/spec/cantango/configuration/engines/store_shared.rb +36 -0
- data/spec/cantango/configuration/engines_spec.rb +41 -0
- data/spec/cantango/configuration/factory_spec.rb +20 -0
- data/spec/cantango/configuration/guest/find_guest_default_way_spec.rb +33 -0
- data/spec/cantango/configuration/guest_spec.rb +62 -0
- data/spec/cantango/configuration/hash_registry_spec.rb +17 -0
- data/spec/cantango/configuration/registry_spec.rb +17 -0
- data/spec/cantango/configuration/role_groups_spec.rb +15 -0
- data/spec/cantango/configuration/roles_spec.rb +16 -0
- data/spec/cantango/configuration/shared/factory_ex.rb +40 -0
- data/spec/cantango/configuration/shared/hash_registry_ex.rb +65 -0
- data/spec/cantango/configuration/shared/registry_ex.rb +39 -0
- data/spec/cantango/configuration/shared/role_registry_ex.rb +22 -0
- data/spec/cantango/configuration/user_account_spec.rb +26 -0
- data/spec/cantango/configuration/user_spec.rb +46 -0
- data/spec/cantango/configuration_spec.rb +42 -0
- data/spec/cantango/license/save_license_spec.rb +24 -0
- data/spec/cantango/models/items.rb +12 -0
- data/spec/cantango/models/users.rb +13 -0
- data/spec/cantango/moneta_spec.rb +31 -0
- data/spec/cantango/parser/categories_spec.rb +0 -0
- data/spec/cantango/parser/permissions_spec.rb +0 -0
- data/spec/cantango/permission_engine/PERMISSION_STORE.textile +75 -0
- data/spec/cantango/permission_engine/categories_store_spec.rb +10 -0
- data/spec/cantango/permission_engine/compiler_spec.rb +32 -0
- data/spec/cantango/permission_engine/loader/categories_spec.rb +19 -0
- data/spec/cantango/permission_engine/loader/permissions/cantango_permissions_loader.rb +27 -0
- data/spec/cantango/permission_engine/loader/permissions/shared.rb +9 -0
- data/spec/cantango/permission_engine/moneta_store_spec.rb +0 -0
- data/spec/cantango/permission_engine/parser_spec.rb +39 -0
- data/spec/cantango/permission_engine/permission_spec.rb +35 -0
- data/spec/cantango/permission_engine/permission_store_spec.rb +10 -0
- data/spec/cantango/permission_engine/shared_examples.rb +22 -0
- data/spec/cantango/permission_engine/store_spec.rb +8 -0
- data/spec/cantango/permission_engine/user_permission_store_spec.rb +12 -0
- data/spec/cantango/permission_engine/yaml_store_spec.rb +83 -0
- data/spec/cantango/permit_engine/account_permit_spec.rb +47 -0
- data/spec/cantango/permit_engine/builder/role_group_permits_spec.rb +63 -0
- data/spec/cantango/permit_engine/builder/role_permits_spec.rb +58 -0
- data/spec/cantango/permit_engine/builder/special_permits_spec.rb +42 -0
- data/spec/cantango/permit_engine/executor/system_spec.rb +61 -0
- data/spec/cantango/permit_engine/factory_spec.rb +50 -0
- data/spec/cantango/permit_engine/finder_spec.rb +70 -0
- data/spec/cantango/permit_engine/permit/permit_static_and_dynamic_rules_spec.rb +74 -0
- data/spec/cantango/permit_engine/role_group_permit_spec.rb +43 -0
- data/spec/cantango/permit_engine/role_permit_spec.rb +44 -0
- data/spec/cantango/permit_engine/user_permit_spec.rb +41 -0
- data/spec/cantango/rules_spec.rb +55 -0
- data/spec/devise-dummy/Rakefile +7 -0
- data/spec/devise-dummy/app/controllers/accounts_controller.rb +25 -0
- data/spec/devise-dummy/app/controllers/application_controller.rb +3 -0
- data/spec/devise-dummy/app/controllers/articles_controller.rb +48 -0
- data/spec/devise-dummy/app/controllers/comments_controller.rb +40 -0
- data/spec/devise-dummy/app/controllers/concertos_controller.rb +49 -0
- data/spec/devise-dummy/app/controllers/main_controller.rb +8 -0
- data/spec/devise-dummy/app/controllers/posts_controller.rb +49 -0
- data/spec/devise-dummy/app/controllers/users_controller.rb +25 -0
- data/spec/devise-dummy/app/helpers/application_helper.rb +2 -0
- data/spec/devise-dummy/app/models/account_setup.rb +41 -0
- data/spec/devise-dummy/app/models/admin.rb +11 -0
- data/spec/devise-dummy/app/models/article.rb +6 -0
- data/spec/devise-dummy/app/models/comment.rb +5 -0
- data/spec/devise-dummy/app/models/concerto.rb +6 -0
- data/spec/devise-dummy/app/models/guest.rb +34 -0
- data/spec/devise-dummy/app/models/improvisation.rb +2 -0
- data/spec/devise-dummy/app/models/post.rb +5 -0
- data/spec/devise-dummy/app/models/song.rb +3 -0
- data/spec/devise-dummy/app/models/tune.rb +3 -0
- data/spec/devise-dummy/app/models/user.rb +22 -0
- data/spec/devise-dummy/app/permits/accounts/admin/roles/editor_permit.rb +15 -0
- data/spec/devise-dummy/app/permits/licenses/bloggers_license.rb +12 -0
- data/spec/devise-dummy/app/permits/licenses/musicians_license.rb +13 -0
- data/spec/devise-dummy/app/permits/role_groups/editor_permit.rb +13 -0
- data/spec/devise-dummy/app/permits/roles/admin_permit.rb +12 -0
- data/spec/devise-dummy/app/permits/roles/guest_permit.rb +12 -0
- data/spec/devise-dummy/app/permits/roles/user_permit.rb +14 -0
- data/spec/devise-dummy/app/views/articles/admin.html.haml +20 -0
- data/spec/devise-dummy/app/views/articles/admin_account.html.haml +20 -0
- data/spec/devise-dummy/app/views/articles/guest.html.haml +20 -0
- data/spec/devise-dummy/app/views/articles/index.html.haml +23 -0
- data/spec/devise-dummy/app/views/articles/show.html.haml +10 -0
- data/spec/devise-dummy/app/views/comments/guest.html.haml +20 -0
- data/spec/devise-dummy/app/views/comments/index.html.haml +20 -0
- data/spec/devise-dummy/app/views/concertos/admin.html.haml +19 -0
- data/spec/devise-dummy/app/views/concertos/admin_account.html.haml +20 -0
- data/spec/devise-dummy/app/views/concertos/guest.html.haml +20 -0
- data/spec/devise-dummy/app/views/concertos/index.html.haml +19 -0
- data/spec/devise-dummy/app/views/concertos/show.html.haml +10 -0
- data/spec/devise-dummy/app/views/devise/confirmations/new.html.erb +12 -0
- data/spec/devise-dummy/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/spec/devise-dummy/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/spec/devise-dummy/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/spec/devise-dummy/app/views/devise/passwords/edit.html.erb +16 -0
- data/spec/devise-dummy/app/views/devise/passwords/new.html.erb +12 -0
- data/spec/devise-dummy/app/views/devise/registrations/edit.html.erb +25 -0
- data/spec/devise-dummy/app/views/devise/registrations/new.html.erb +18 -0
- data/spec/devise-dummy/app/views/devise/sessions/new.html.erb +17 -0
- data/spec/devise-dummy/app/views/devise/shared/_links.erb +25 -0
- data/spec/devise-dummy/app/views/devise/unlocks/new.html.erb +12 -0
- data/spec/devise-dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/devise-dummy/app/views/main/index.html.haml +1 -0
- data/spec/devise-dummy/app/views/posts/admin.html.haml +20 -0
- data/spec/devise-dummy/app/views/posts/admin_account.html.haml +20 -0
- data/spec/devise-dummy/app/views/posts/guest.html.haml +20 -0
- data/spec/devise-dummy/app/views/posts/index.html.haml +19 -0
- data/spec/devise-dummy/app/views/posts/show.html.haml +11 -0
- data/spec/devise-dummy/app/views/users/admin.html.haml +19 -0
- data/spec/devise-dummy/app/views/users/admin_account.html.haml +19 -0
- data/spec/devise-dummy/app/views/users/guest.html.haml +19 -0
- data/spec/devise-dummy/app/views/users/index.html.haml +19 -0
- data/spec/devise-dummy/app/views/users/show.html.haml +11 -0
- data/spec/devise-dummy/config.ru +4 -0
- data/spec/devise-dummy/config/application.rb +46 -0
- data/spec/devise-dummy/config/boot.rb +10 -0
- data/spec/devise-dummy/config/cantango_permissions.yml +50 -0
- data/spec/devise-dummy/config/categories.yml +10 -0
- data/spec/devise-dummy/config/database.yml +22 -0
- data/spec/devise-dummy/config/environment.rb +5 -0
- data/spec/devise-dummy/config/environments/development.rb +26 -0
- data/spec/devise-dummy/config/environments/production.rb +49 -0
- data/spec/devise-dummy/config/environments/test.rb +35 -0
- data/spec/devise-dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/devise-dummy/config/initializers/cantango.rb +8 -0
- data/spec/devise-dummy/config/initializers/devise.rb +204 -0
- data/spec/devise-dummy/config/initializers/inflections.rb +10 -0
- data/spec/devise-dummy/config/initializers/mime_types.rb +5 -0
- data/spec/devise-dummy/config/initializers/secret_token.rb +7 -0
- data/spec/devise-dummy/config/initializers/session_store.rb +8 -0
- data/spec/devise-dummy/config/initializers/simple_roles.rb +42 -0
- data/spec/devise-dummy/config/locales/devise.en.yml +53 -0
- data/spec/devise-dummy/config/locales/en.yml +5 -0
- data/spec/devise-dummy/config/routes.rb +88 -0
- data/spec/devise-dummy/db/migrate/002_create_comment.rb +13 -0
- data/spec/devise-dummy/db/migrate/003_create_post.rb +14 -0
- data/spec/devise-dummy/db/migrate/004_create_article.rb +14 -0
- data/spec/devise-dummy/db/migrate/005_create_account.rb +13 -0
- data/spec/devise-dummy/db/migrate/006_create_concerto.rb +14 -0
- data/spec/devise-dummy/db/migrate/007_devise_create_users.rb +31 -0
- data/spec/devise-dummy/db/schema.rb +75 -0
- data/spec/devise-dummy/db/seeds.rb +5 -0
- data/spec/devise-dummy/db/users.txt +7 -0
- data/spec/devise-dummy/public/404.html +26 -0
- data/spec/devise-dummy/public/422.html +26 -0
- data/spec/devise-dummy/public/500.html +26 -0
- data/spec/devise-dummy/public/favicon.ico +0 -0
- data/spec/devise-dummy/public/javascripts/application.js +2 -0
- data/spec/devise-dummy/public/javascripts/controls.js +965 -0
- data/spec/devise-dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/devise-dummy/public/javascripts/effects.js +1123 -0
- data/spec/devise-dummy/public/javascripts/prototype.js +6001 -0
- data/spec/devise-dummy/public/javascripts/rails.js +191 -0
- data/spec/devise-dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/devise-dummy/script/rails +6 -0
- data/spec/devise-dummy_spec_helper.rb +41 -0
- data/spec/devise-integration/concerto_spec.rb +80 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/accounts_controller.rb +23 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/articles_controller.rb +55 -0
- data/spec/dummy/app/controllers/comments_controller.rb +38 -0
- data/spec/dummy/app/controllers/concertos_controller.rb +43 -0
- data/spec/dummy/app/controllers/main_controller.rb +8 -0
- data/spec/dummy/app/controllers/posts_controller.rb +47 -0
- data/spec/dummy/app/controllers/sessions_controller.rb +16 -0
- data/spec/dummy/app/controllers/users_controller.rb +23 -0
- data/spec/dummy/app/helpers/application_helper.rb +37 -0
- data/spec/dummy/app/models/account_setup.rb +41 -0
- data/spec/dummy/app/models/admin.rb +4 -0
- data/spec/dummy/app/models/article.rb +6 -0
- data/spec/dummy/app/models/comment.rb +5 -0
- data/spec/dummy/app/models/concerto.rb +6 -0
- data/spec/dummy/app/models/guest.rb +27 -0
- data/spec/dummy/app/models/improvisation.rb +2 -0
- data/spec/dummy/app/models/post.rb +5 -0
- data/spec/dummy/app/models/song.rb +3 -0
- data/spec/dummy/app/models/tune.rb +3 -0
- data/spec/dummy/app/models/user.rb +12 -0
- data/spec/dummy/app/permits/accounts/admin/roles/editor_permit.rb +15 -0
- data/spec/dummy/app/permits/licenses/bloggers_license.rb +12 -0
- data/spec/dummy/app/permits/licenses/musicians_license.rb +13 -0
- data/spec/dummy/app/permits/role_groups/editor_permit.rb +13 -0
- data/spec/dummy/app/permits/roles/admin_permit.rb +12 -0
- data/spec/dummy/app/permits/roles/guest_permit.rb +12 -0
- data/spec/dummy/app/permits/roles/user_permit.rb +18 -0
- data/spec/dummy/app/views/articles/admin.html.haml +20 -0
- data/spec/dummy/app/views/articles/admin_account.html.haml +20 -0
- data/spec/dummy/app/views/articles/guest.html.haml +20 -0
- data/spec/dummy/app/views/articles/index.html.haml +23 -0
- data/spec/dummy/app/views/articles/show.html.haml +10 -0
- data/spec/dummy/app/views/comments/guest.html.haml +20 -0
- data/spec/dummy/app/views/comments/index.html.haml +20 -0
- data/spec/dummy/app/views/concertos/admin.html.haml +20 -0
- data/spec/dummy/app/views/concertos/admin_account.html.haml +20 -0
- data/spec/dummy/app/views/concertos/guest.html.haml +20 -0
- data/spec/dummy/app/views/concertos/index.html.haml +19 -0
- data/spec/dummy/app/views/concertos/show.html.haml +10 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/main/index.html.haml +1 -0
- data/spec/dummy/app/views/posts/admin.html.haml +20 -0
- data/spec/dummy/app/views/posts/admin_account.html.haml +20 -0
- data/spec/dummy/app/views/posts/guest.html.haml +20 -0
- data/spec/dummy/app/views/posts/index.html.haml +19 -0
- data/spec/dummy/app/views/posts/show.html.haml +11 -0
- data/spec/dummy/app/views/users/admin.html.haml +19 -0
- data/spec/dummy/app/views/users/admin_account.html.haml +19 -0
- data/spec/dummy/app/views/users/guest.html.haml +19 -0
- data/spec/dummy/app/views/users/index.html.haml +19 -0
- data/spec/dummy/app/views/users/show.html.haml +11 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +43 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/cantango_permissions.yml +50 -0
- data/spec/dummy/config/categories.yml +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cantango.rb +5 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/simple_roles.rb +44 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +84 -0
- data/spec/dummy/db/migrate/001_create_user.rb +16 -0
- data/spec/dummy/db/migrate/002_create_comment.rb +13 -0
- data/spec/dummy/db/migrate/003_create_post.rb +14 -0
- data/spec/dummy/db/migrate/004_create_article.rb +14 -0
- data/spec/dummy/db/migrate/005_create_account.rb +13 -0
- data/spec/dummy/db/migrate/006_create_concerto.rb +14 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- data/spec/dummy_spec_helper.rb +43 -0
- data/spec/entire_suite_spec.rb +15 -0
- data/spec/factories.rb +8 -0
- data/spec/fixtures/config/cantango_permissions.yml +48 -0
- data/spec/fixtures/config/categories.yml +6 -0
- data/spec/fixtures/config/evaluator_fixtures.yml +18 -0
- data/spec/fixtures/config/licenses.yml +4 -0
- data/spec/fixtures/config/permissions.yml +19 -0
- data/spec/fixtures/config/role_group.yml +4 -0
- data/spec/fixtures/config/roles.yml +4 -0
- data/spec/fixtures/config/user_permissions.yml +8 -0
- data/spec/fixtures/models.rb +2 -0
- data/spec/fixtures/models/items.rb +8 -0
- data/spec/fixtures/models/simple_roles.rb +44 -0
- data/spec/fixtures/models/user.rb +22 -0
- data/spec/fixtures/models/user_account.rb +21 -0
- data/spec/fixtures/tango_fixtures.rb +29 -0
- data/spec/generators/cantango/account_role_permit_generator_spec.rb +35 -0
- data/spec/generators/cantango/account_role_permits_generator_spec.rb +59 -0
- data/spec/generators/cantango/license_generator_spec.rb +33 -0
- data/spec/generators/cantango/licenses_generator_spec.rb +58 -0
- data/spec/generators/cantango/role_permit_generator_spec.rb +35 -0
- data/spec/generators/cantango/role_permits_generator_spec.rb +58 -0
- data/spec/helpers/dummy_app_ability.rb +26 -0
- data/spec/integration/Design_notes.textile +30 -0
- data/spec/integration/admin_user/masquerade_spec.rb +22 -0
- data/spec/integration/cache_using_moneta_spec.rb +46 -0
- data/spec/integration/cache_using_session_spec.rb +46 -0
- data/spec/integration/main_spec.rb +16 -0
- data/spec/integration/performance/ability_initialize_performance.rb +54 -0
- data/spec/integration/performance/cache_performance.rb +31 -0
- data/spec/integration/performance/can_performance.rb +54 -0
- data/spec/integration/performance/helpers/ability.rb +44 -0
- data/spec/integration/performance/helpers/ability_api.rb +44 -0
- data/spec/integration/performance/helpers/ability_raw.rb +8 -0
- data/spec/integration/performance/helpers/cache.rb +37 -0
- data/spec/integration/performance/helpers/rules.rb +12 -0
- data/spec/integration/performance/integral_performance_caching_disabled.rb +33 -0
- data/spec/integration/performance/integral_performance_caching_enabled.rb +33 -0
- data/spec/integration/performance/raw_performance.rb +11 -0
- data/spec/integration/user/articles_spec.rb +39 -0
- data/spec/integration/user/concerto_spec.rb +39 -0
- data/spec/note_on_caching_and_dynamic.textile +114 -0
- data/spec/path_helper.rb +9 -0
- data/spec/simple_roles.rb +46 -0
- data/spec/spec_helper.rb +22 -0
- data/wiki/ability/initialize.markdown +45 -0
- data/wiki/api/user/api.markdown +88 -0
- data/wiki/api/user_account/api.markdown +88 -0
- data/wiki/config/ability.markdown +18 -0
- data/wiki/config/autoload.markdown +31 -0
- data/wiki/config/guest.markdown +49 -0
- data/wiki/config/models_registration.markdown +16 -0
- data/wiki/config/role_groups.markdown +1 -0
- data/wiki/config/roles.markdown +1 -0
- data/wiki/engines/cache/config.markdown +31 -0
- data/wiki/engines/cache/session_store.markdown +0 -0
- data/wiki/engines/cache/store.markdown +6 -0
- data/wiki/engines/permissions/categories.markdown +33 -0
- data/wiki/engines/permissions/config.markdown +60 -0
- data/wiki/engines/permissions/moneta_store.markdown +0 -0
- data/wiki/engines/permissions/store.markdown +0 -0
- data/wiki/engines/permissions/yaml_store.markdown +0 -0
- data/wiki/engines/permits/config.markdown +0 -0
- data/wiki/engines/permits/licenses.markdown +0 -0
- data/wiki/engines/permits/role_groups.markdown +0 -0
- data/wiki/engines/permits/roles.markdown +0 -0
- data/wiki/engines/permits/user_accounts.markdown +0 -0
- data/wiki/feature_list.markdown +39 -0
- data/wiki/rules_caching.markdown +17 -0
- data/wiki/users/masquerading.markdown +29 -0
- data/wiki/when_to_use.markdown +64 -0
- data/wiki/why_to_use.markdown +11 -0
- metadata +788 -0
metadata
ADDED
@@ -0,0 +1,788 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cantango
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kristian Mandrup
|
9
|
+
- Stanislaw Pankevich
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2011-08-15 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rails
|
17
|
+
requirement: &2152347860 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2152347860
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: cancan
|
28
|
+
requirement: &2152346720 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2152346720
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: sugar-high
|
39
|
+
requirement: &2152345860 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0.5'
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *2152345860
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: sqlite3
|
50
|
+
requirement: &2152344700 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *2152344700
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: hashie
|
61
|
+
requirement: &2152343380 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.4'
|
67
|
+
type: :runtime
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *2152343380
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: sourcify
|
72
|
+
requirement: &2152337000 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *2152337000
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: dkastner-moneta
|
83
|
+
requirement: &2152332820 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2152332820
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: friendly_id
|
94
|
+
requirement: &2152331580 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *2152331580
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: meta_where
|
105
|
+
requirement: &2152330380 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :runtime
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *2152330380
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: devise
|
116
|
+
requirement: &2152326040 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *2152326040
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: &2152321880 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 2.5.0
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *2152321880
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: jeweler
|
138
|
+
requirement: &2152267200 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: 1.6.4
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: *2152267200
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: bundler
|
149
|
+
requirement: &2152265340 !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ~>
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 1.0.10
|
155
|
+
type: :development
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: *2152265340
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rdoc
|
160
|
+
requirement: &2152263620 !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: *2152263620
|
169
|
+
description: ! 'Define your permission rules as role- or role group specific permits.
|
170
|
+
|
171
|
+
Integrates well with multiple Devise user acounts.
|
172
|
+
|
173
|
+
Includes rules caching.
|
174
|
+
|
175
|
+
Store permissions in yaml file or key-value store'
|
176
|
+
email: kmandrup@gmail.com, s.pankevich@gmail.com
|
177
|
+
executables: []
|
178
|
+
extensions: []
|
179
|
+
extra_rdoc_files:
|
180
|
+
- LICENSE.txt
|
181
|
+
- README.textile
|
182
|
+
files:
|
183
|
+
- .document
|
184
|
+
- .rspec
|
185
|
+
- Gemfile
|
186
|
+
- LICENSE.txt
|
187
|
+
- README.textile
|
188
|
+
- Rakefile
|
189
|
+
- VERSION
|
190
|
+
- cantango.gemspec
|
191
|
+
- ideas/feature_list.markdown
|
192
|
+
- lib/cantango.rb
|
193
|
+
- lib/cantango/ability.rb
|
194
|
+
- lib/cantango/ability/cache.rb
|
195
|
+
- lib/cantango/ability/cache/base_cache.rb
|
196
|
+
- lib/cantango/ability/cache/kompiler.rb
|
197
|
+
- lib/cantango/ability/cache/moneta_cache.rb
|
198
|
+
- lib/cantango/ability/cache/session_cache.rb
|
199
|
+
- lib/cantango/ability/class_methods.rb
|
200
|
+
- lib/cantango/ability/masquerade_helpers.rb
|
201
|
+
- lib/cantango/ability/permission_helpers.rb
|
202
|
+
- lib/cantango/ability/permit_helpers.rb
|
203
|
+
- lib/cantango/ability/role_helpers.rb
|
204
|
+
- lib/cantango/ability/scope.rb
|
205
|
+
- lib/cantango/ability/user_helpers.rb
|
206
|
+
- lib/cantango/api.rb
|
207
|
+
- lib/cantango/api/aliases.rb
|
208
|
+
- lib/cantango/api/aliases/account_permit.rb
|
209
|
+
- lib/cantango/api/aliases/license.rb
|
210
|
+
- lib/cantango/api/aliases/permit.rb
|
211
|
+
- lib/cantango/api/aliases/role_group_permit.rb
|
212
|
+
- lib/cantango/api/aliases/role_permit.rb
|
213
|
+
- lib/cantango/api/aliases/user_permit.rb
|
214
|
+
- lib/cantango/api/common.rb
|
215
|
+
- lib/cantango/api/options.rb
|
216
|
+
- lib/cantango/api/user.rb
|
217
|
+
- lib/cantango/api/user/ability.rb
|
218
|
+
- lib/cantango/api/user/can.rb
|
219
|
+
- lib/cantango/api/user/scope.rb
|
220
|
+
- lib/cantango/api/user_account.rb
|
221
|
+
- lib/cantango/api/user_account/ability.rb
|
222
|
+
- lib/cantango/api/user_account/can.rb
|
223
|
+
- lib/cantango/api/user_account/scope.rb
|
224
|
+
- lib/cantango/cache.rb
|
225
|
+
- lib/cantango/cache/moneta_cache.rb
|
226
|
+
- lib/cantango/cancan/rule.rb
|
227
|
+
- lib/cantango/configuration.rb
|
228
|
+
- lib/cantango/configuration/ability.rb
|
229
|
+
- lib/cantango/configuration/autoload.rb
|
230
|
+
- lib/cantango/configuration/categories.rb
|
231
|
+
- lib/cantango/configuration/engines.rb
|
232
|
+
- lib/cantango/configuration/engines/cache.rb
|
233
|
+
- lib/cantango/configuration/engines/engine.rb
|
234
|
+
- lib/cantango/configuration/engines/permission.rb
|
235
|
+
- lib/cantango/configuration/engines/permit.rb
|
236
|
+
- lib/cantango/configuration/engines/store.rb
|
237
|
+
- lib/cantango/configuration/factory.rb
|
238
|
+
- lib/cantango/configuration/guest.rb
|
239
|
+
- lib/cantango/configuration/hash_registry.rb
|
240
|
+
- lib/cantango/configuration/models.rb
|
241
|
+
- lib/cantango/configuration/registry.rb
|
242
|
+
- lib/cantango/configuration/role_groups.rb
|
243
|
+
- lib/cantango/configuration/role_registry.rb
|
244
|
+
- lib/cantango/configuration/roles.rb
|
245
|
+
- lib/cantango/configuration/user.rb
|
246
|
+
- lib/cantango/configuration/user_account.rb
|
247
|
+
- lib/cantango/configuration/user_accounts.rb
|
248
|
+
- lib/cantango/configuration/users.rb
|
249
|
+
- lib/cantango/helpers.rb
|
250
|
+
- lib/cantango/helpers/role_methods.rb
|
251
|
+
- lib/cantango/permission_engine.rb
|
252
|
+
- lib/cantango/permission_engine/builder.rb
|
253
|
+
- lib/cantango/permission_engine/collector.rb
|
254
|
+
- lib/cantango/permission_engine/compiler.rb
|
255
|
+
- lib/cantango/permission_engine/evaluator.rb
|
256
|
+
- lib/cantango/permission_engine/factory.rb
|
257
|
+
- lib/cantango/permission_engine/loader.rb
|
258
|
+
- lib/cantango/permission_engine/loader/base.rb
|
259
|
+
- lib/cantango/permission_engine/loader/categories.rb
|
260
|
+
- lib/cantango/permission_engine/loader/permissions.rb
|
261
|
+
- lib/cantango/permission_engine/moneta_store.rb
|
262
|
+
- lib/cantango/permission_engine/parser.rb
|
263
|
+
- lib/cantango/permission_engine/parser/categories.rb
|
264
|
+
- lib/cantango/permission_engine/parser/category.rb
|
265
|
+
- lib/cantango/permission_engine/parser/default.rb
|
266
|
+
- lib/cantango/permission_engine/parser/ownership.rb
|
267
|
+
- lib/cantango/permission_engine/parser/permissions.rb
|
268
|
+
- lib/cantango/permission_engine/parser/regex.rb
|
269
|
+
- lib/cantango/permission_engine/parser/relationship.rb
|
270
|
+
- lib/cantango/permission_engine/parser/rule.rb
|
271
|
+
- lib/cantango/permission_engine/permission.rb
|
272
|
+
- lib/cantango/permission_engine/selector.rb
|
273
|
+
- lib/cantango/permission_engine/selector/base.rb
|
274
|
+
- lib/cantango/permission_engine/selector/licenses.rb
|
275
|
+
- lib/cantango/permission_engine/selector/role_groups.rb
|
276
|
+
- lib/cantango/permission_engine/selector/roles.rb
|
277
|
+
- lib/cantango/permission_engine/selector/users.rb
|
278
|
+
- lib/cantango/permission_engine/statement.rb
|
279
|
+
- lib/cantango/permission_engine/statements.rb
|
280
|
+
- lib/cantango/permission_engine/store.rb
|
281
|
+
- lib/cantango/permission_engine/yaml_store.rb
|
282
|
+
- lib/cantango/permit_engine.rb
|
283
|
+
- lib/cantango/permit_engine/account_permit.rb
|
284
|
+
- lib/cantango/permit_engine/account_permit/builder.rb
|
285
|
+
- lib/cantango/permit_engine/account_permit/finder.rb
|
286
|
+
- lib/cantango/permit_engine/builder.rb
|
287
|
+
- lib/cantango/permit_engine/builder/base.rb
|
288
|
+
- lib/cantango/permit_engine/builder/special_permits.rb
|
289
|
+
- lib/cantango/permit_engine/compatibility.rb
|
290
|
+
- lib/cantango/permit_engine/executor.rb
|
291
|
+
- lib/cantango/permit_engine/executor/abstract.rb
|
292
|
+
- lib/cantango/permit_engine/executor/base.rb
|
293
|
+
- lib/cantango/permit_engine/executor/system.rb
|
294
|
+
- lib/cantango/permit_engine/factory.rb
|
295
|
+
- lib/cantango/permit_engine/finder.rb
|
296
|
+
- lib/cantango/permit_engine/license.rb
|
297
|
+
- lib/cantango/permit_engine/license/loader.rb
|
298
|
+
- lib/cantango/permit_engine/license/rules.rb
|
299
|
+
- lib/cantango/permit_engine/permit.rb
|
300
|
+
- lib/cantango/permit_engine/role_group_permit.rb
|
301
|
+
- lib/cantango/permit_engine/role_group_permit/builder.rb
|
302
|
+
- lib/cantango/permit_engine/role_group_permit/finder.rb
|
303
|
+
- lib/cantango/permit_engine/role_matcher.rb
|
304
|
+
- lib/cantango/permit_engine/role_permit.rb
|
305
|
+
- lib/cantango/permit_engine/role_permit/builder.rb
|
306
|
+
- lib/cantango/permit_engine/role_permit/finder.rb
|
307
|
+
- lib/cantango/permit_engine/user_permit.rb
|
308
|
+
- lib/cantango/permit_engine/user_permit/builder.rb
|
309
|
+
- lib/cantango/permit_engine/user_permit/finder.rb
|
310
|
+
- lib/cantango/permit_engine/util.rb
|
311
|
+
- lib/cantango/rails.rb
|
312
|
+
- lib/cantango/rails/base_helpers.rb
|
313
|
+
- lib/cantango/rails/controller_helpers.rb
|
314
|
+
- lib/cantango/rails/engine.rb
|
315
|
+
- lib/cantango/rails/railtie.rb
|
316
|
+
- lib/cantango/rails/view_helpers.rb
|
317
|
+
- lib/cantango/rspec.rb
|
318
|
+
- lib/cantango/rspec/config.rb
|
319
|
+
- lib/cantango/rspec/matchers.rb
|
320
|
+
- lib/cantango/rspec/matchers/be_allowed_to.rb
|
321
|
+
- lib/cantango/rspec/matchers/have_license.rb
|
322
|
+
- lib/cantango/rspec/matchers/have_license_class.rb
|
323
|
+
- lib/cantango/rspec/matchers/have_license_file.rb
|
324
|
+
- lib/cantango/rules.rb
|
325
|
+
- lib/cantango/rules/adaptor.rb
|
326
|
+
- lib/cantango/rules/adaptor/active_record.rb
|
327
|
+
- lib/cantango/rules/adaptor/generic.rb
|
328
|
+
- lib/cantango/rules/adaptor/mongoid.rb
|
329
|
+
- lib/cantango/rules/dsl.rb
|
330
|
+
- lib/cantango/rules/rule_class.rb
|
331
|
+
- lib/cantango/rules/scope.rb
|
332
|
+
- lib/cantango/rules/user_relation.rb
|
333
|
+
- lib/cantango/users.rb
|
334
|
+
- lib/cantango/users/macros.rb
|
335
|
+
- lib/cantango/users/masquerade.rb
|
336
|
+
- lib/cantango/users/masquerade/session_active_user.rb
|
337
|
+
- lib/cantango/users/user.rb
|
338
|
+
- lib/cantango/users/user_account.rb
|
339
|
+
- lib/generators/cantango/base.rb
|
340
|
+
- lib/generators/cantango/license/license_generator.rb
|
341
|
+
- lib/generators/cantango/license/templates/license.erb
|
342
|
+
- lib/generators/cantango/license_base.rb
|
343
|
+
- lib/generators/cantango/licenses/licenses_generator.rb
|
344
|
+
- lib/generators/cantango/permit_generator.rb
|
345
|
+
- lib/generators/cantango/role_permit/role_permit_generator.rb
|
346
|
+
- lib/generators/cantango/role_permit/templates/account_permit.erb
|
347
|
+
- lib/generators/cantango/role_permit/templates/role_group_permit.erb
|
348
|
+
- lib/generators/cantango/role_permit/templates/role_permit.erb
|
349
|
+
- lib/generators/cantango/role_permits/role_permits_generator.rb
|
350
|
+
- spec/Note_on_licenses.textile
|
351
|
+
- spec/Refactor_into_engines.textile
|
352
|
+
- spec/TODO
|
353
|
+
- spec/active_record/AR_README.textile
|
354
|
+
- spec/active_record/config_helper.rb
|
355
|
+
- spec/active_record/db/database.yml
|
356
|
+
- spec/active_record/helper/ar_config.rb
|
357
|
+
- spec/active_record/helper/permits_config.rb
|
358
|
+
- spec/active_record/helper/rails_config.rb
|
359
|
+
- spec/active_record/helper/rspec_config.rb
|
360
|
+
- spec/active_record/migrations/001_create_user.rb
|
361
|
+
- spec/active_record/migrations/002_create_comment.rb
|
362
|
+
- spec/active_record/migrations/003_create_post.rb
|
363
|
+
- spec/active_record/migrations/004_create_article.rb
|
364
|
+
- spec/active_record/migrations/005_create_account.rb
|
365
|
+
- spec/active_record/migrations/006_create_todo.rb
|
366
|
+
- spec/active_record/migrations/007_create_user_todos.rb
|
367
|
+
- spec/active_record/scenarios/SCENARIOS README.textile
|
368
|
+
- spec/active_record/scenarios/engines/permission_engine/cantango_permissions.yml
|
369
|
+
- spec/active_record/scenarios/engines/permission_engine/categories.yml
|
370
|
+
- spec/active_record/scenarios/engines/permission_engine/tango_permission_yml_spec.rb
|
371
|
+
- spec/active_record/scenarios/engines/permission_engine/users.rb
|
372
|
+
- spec/active_record/scenarios/engines/permit_engine/licenses_spec.rb
|
373
|
+
- spec/active_record/scenarios/engines/permit_engine/role_groups_permits_spec.rb
|
374
|
+
- spec/active_record/scenarios/guest_user_admin/admin_user_spec.rb
|
375
|
+
- spec/active_record/scenarios/guest_user_admin/docs/GUEST_ADMIN_USER_SCENARIO.textile
|
376
|
+
- spec/active_record/scenarios/guest_user_admin/editor_spec.rb
|
377
|
+
- spec/active_record/scenarios/guest_user_admin/guest_user_spec.rb
|
378
|
+
- spec/active_record/scenarios/guest_user_admin/user_having_user_and_editor_roles_spec.rb
|
379
|
+
- spec/active_record/scenarios/guest_user_admin/user_spec.rb
|
380
|
+
- spec/active_record/scenarios/masquerading/masquerading_for_admin_account_spec.rb
|
381
|
+
- spec/active_record/scenarios/masquerading/masquerading_for_admin_user_spec.rb
|
382
|
+
- spec/active_record/scenarios/shared/api.rb
|
383
|
+
- spec/active_record/scenarios/shared/can_tango.rb
|
384
|
+
- spec/active_record/scenarios/shared/examples/user_accounts.rb
|
385
|
+
- spec/active_record/scenarios/shared/examples/users.rb
|
386
|
+
- spec/active_record/scenarios/shared/licenses/musicians_license.rb
|
387
|
+
- spec/active_record/scenarios/shared/models/items.rb
|
388
|
+
- spec/active_record/scenarios/shared/models/todo.rb
|
389
|
+
- spec/active_record/scenarios/shared/models/user_todo.rb
|
390
|
+
- spec/active_record/scenarios/shared/models/users.rb
|
391
|
+
- spec/active_record/scenarios/shared/permits/PERMITS README.textile
|
392
|
+
- spec/active_record/scenarios/shared/permits/account_permits/admin_account_permit.rb
|
393
|
+
- spec/active_record/scenarios/shared/permits/account_permits/guest_account_permit.rb
|
394
|
+
- spec/active_record/scenarios/shared/permits/account_permits/user_account_permit.rb
|
395
|
+
- spec/active_record/scenarios/shared/permits/role/admin_permit.rb
|
396
|
+
- spec/active_record/scenarios/shared/permits/role/editor_permit.rb
|
397
|
+
- spec/active_record/scenarios/shared/permits/role/guest_permit.rb
|
398
|
+
- spec/active_record/scenarios/shared/permits/role/super_admin_permit.rb
|
399
|
+
- spec/active_record/scenarios/shared/permits/role/user_permit.rb
|
400
|
+
- spec/active_record/scenarios/shared/permits/role_group/bloggers_permit.rb
|
401
|
+
- spec/active_record/scenarios/shared/permits/role_group/musicians_permit.rb
|
402
|
+
- spec/active_record/scenarios/shared/permits/special/any_role_permit.rb
|
403
|
+
- spec/active_record/scenarios/shared/permits/special/system_role_permit.rb
|
404
|
+
- spec/active_record/scenarios/user_accounts/admin_account_spec.rb
|
405
|
+
- spec/active_record/scenarios/user_accounts/config/account_permits.yml
|
406
|
+
- spec/active_record/scenarios/user_accounts/docs/USER_ACCOUNTS_SCENARIO.textile
|
407
|
+
- spec/active_record/scenarios/user_accounts/docs/basic_rules_spec_possible_samples.txt
|
408
|
+
- spec/active_record/scenarios/user_accounts/guest_account_spec.rb
|
409
|
+
- spec/active_record/scenarios/user_accounts/helpers.rb
|
410
|
+
- spec/active_record/scenarios/user_accounts/helpers/account_setup.rb
|
411
|
+
- spec/active_record/scenarios/user_accounts/helpers/user_factory.rb
|
412
|
+
- spec/active_record/scenarios/user_accounts/permits/admin_account_permit.rb
|
413
|
+
- spec/active_record/scenarios/user_accounts/permits/guest_account_permit.rb
|
414
|
+
- spec/active_record/scenarios/user_accounts/permits/user_account_permit.rb
|
415
|
+
- spec/active_record/scenarios/user_accounts/user_account_spec.rb
|
416
|
+
- spec/active_record/spec_helper.rb
|
417
|
+
- spec/cantango/README.textile
|
418
|
+
- spec/cantango/ability/cache/compiler_spec.rb
|
419
|
+
- spec/cantango/ability/cache/session_cache_spec.rb
|
420
|
+
- spec/cantango/ability/cache_spec.rb
|
421
|
+
- spec/cantango/ability_filters_spec.rb
|
422
|
+
- spec/cantango/ability_spec.rb
|
423
|
+
- spec/cantango/api/current_user_accounts.rb
|
424
|
+
- spec/cantango/api/current_users.rb
|
425
|
+
- spec/cantango/api/user/ability_api_spec.rb
|
426
|
+
- spec/cantango/api/user/can_api_spec.rb
|
427
|
+
- spec/cantango/api/user/scope_api_spec.rb
|
428
|
+
- spec/cantango/api/user_account/ability_api_spec.rb
|
429
|
+
- spec/cantango/api/user_account/can_api_spec.rb
|
430
|
+
- spec/cantango/api/user_account/scope_api_spec.rb
|
431
|
+
- spec/cantango/api/user_account_api_spec.rb
|
432
|
+
- spec/cantango/api/user_api_spec.rb
|
433
|
+
- spec/cantango/configuration/ability_spec.rb
|
434
|
+
- spec/cantango/configuration/autoload_spec.rb
|
435
|
+
- spec/cantango/configuration/categories_spec.rb
|
436
|
+
- spec/cantango/configuration/engines/cache_spec.rb
|
437
|
+
- spec/cantango/configuration/engines/engine_shared.rb
|
438
|
+
- spec/cantango/configuration/engines/permission_spec.rb
|
439
|
+
- spec/cantango/configuration/engines/permit_spec.rb
|
440
|
+
- spec/cantango/configuration/engines/store_engine_shared.rb
|
441
|
+
- spec/cantango/configuration/engines/store_shared.rb
|
442
|
+
- spec/cantango/configuration/engines_spec.rb
|
443
|
+
- spec/cantango/configuration/factory_spec.rb
|
444
|
+
- spec/cantango/configuration/guest/find_guest_default_way_spec.rb
|
445
|
+
- spec/cantango/configuration/guest_spec.rb
|
446
|
+
- spec/cantango/configuration/hash_registry_spec.rb
|
447
|
+
- spec/cantango/configuration/registry_spec.rb
|
448
|
+
- spec/cantango/configuration/role_groups_spec.rb
|
449
|
+
- spec/cantango/configuration/roles_spec.rb
|
450
|
+
- spec/cantango/configuration/shared/factory_ex.rb
|
451
|
+
- spec/cantango/configuration/shared/hash_registry_ex.rb
|
452
|
+
- spec/cantango/configuration/shared/registry_ex.rb
|
453
|
+
- spec/cantango/configuration/shared/role_registry_ex.rb
|
454
|
+
- spec/cantango/configuration/user_account_spec.rb
|
455
|
+
- spec/cantango/configuration/user_spec.rb
|
456
|
+
- spec/cantango/configuration_spec.rb
|
457
|
+
- spec/cantango/license/save_license_spec.rb
|
458
|
+
- spec/cantango/models/items.rb
|
459
|
+
- spec/cantango/models/users.rb
|
460
|
+
- spec/cantango/moneta_spec.rb
|
461
|
+
- spec/cantango/parser/categories_spec.rb
|
462
|
+
- spec/cantango/parser/permissions_spec.rb
|
463
|
+
- spec/cantango/permission_engine/PERMISSION_STORE.textile
|
464
|
+
- spec/cantango/permission_engine/categories_store_spec.rb
|
465
|
+
- spec/cantango/permission_engine/compiler_spec.rb
|
466
|
+
- spec/cantango/permission_engine/loader/categories_spec.rb
|
467
|
+
- spec/cantango/permission_engine/loader/permissions/cantango_permissions_loader.rb
|
468
|
+
- spec/cantango/permission_engine/loader/permissions/shared.rb
|
469
|
+
- spec/cantango/permission_engine/moneta_store_spec.rb
|
470
|
+
- spec/cantango/permission_engine/parser_spec.rb
|
471
|
+
- spec/cantango/permission_engine/permission_spec.rb
|
472
|
+
- spec/cantango/permission_engine/permission_store_spec.rb
|
473
|
+
- spec/cantango/permission_engine/shared_examples.rb
|
474
|
+
- spec/cantango/permission_engine/store_spec.rb
|
475
|
+
- spec/cantango/permission_engine/user_permission_store_spec.rb
|
476
|
+
- spec/cantango/permission_engine/yaml_store_spec.rb
|
477
|
+
- spec/cantango/permit_engine/account_permit_spec.rb
|
478
|
+
- spec/cantango/permit_engine/builder/role_group_permits_spec.rb
|
479
|
+
- spec/cantango/permit_engine/builder/role_permits_spec.rb
|
480
|
+
- spec/cantango/permit_engine/builder/special_permits_spec.rb
|
481
|
+
- spec/cantango/permit_engine/executor/system_spec.rb
|
482
|
+
- spec/cantango/permit_engine/factory_spec.rb
|
483
|
+
- spec/cantango/permit_engine/finder_spec.rb
|
484
|
+
- spec/cantango/permit_engine/permit/permit_static_and_dynamic_rules_spec.rb
|
485
|
+
- spec/cantango/permit_engine/role_group_permit_spec.rb
|
486
|
+
- spec/cantango/permit_engine/role_permit_spec.rb
|
487
|
+
- spec/cantango/permit_engine/user_permit_spec.rb
|
488
|
+
- spec/cantango/rules_spec.rb
|
489
|
+
- spec/devise-dummy/Rakefile
|
490
|
+
- spec/devise-dummy/app/controllers/accounts_controller.rb
|
491
|
+
- spec/devise-dummy/app/controllers/application_controller.rb
|
492
|
+
- spec/devise-dummy/app/controllers/articles_controller.rb
|
493
|
+
- spec/devise-dummy/app/controllers/comments_controller.rb
|
494
|
+
- spec/devise-dummy/app/controllers/concertos_controller.rb
|
495
|
+
- spec/devise-dummy/app/controllers/main_controller.rb
|
496
|
+
- spec/devise-dummy/app/controllers/posts_controller.rb
|
497
|
+
- spec/devise-dummy/app/controllers/users_controller.rb
|
498
|
+
- spec/devise-dummy/app/helpers/application_helper.rb
|
499
|
+
- spec/devise-dummy/app/models/account_setup.rb
|
500
|
+
- spec/devise-dummy/app/models/admin.rb
|
501
|
+
- spec/devise-dummy/app/models/article.rb
|
502
|
+
- spec/devise-dummy/app/models/comment.rb
|
503
|
+
- spec/devise-dummy/app/models/concerto.rb
|
504
|
+
- spec/devise-dummy/app/models/guest.rb
|
505
|
+
- spec/devise-dummy/app/models/improvisation.rb
|
506
|
+
- spec/devise-dummy/app/models/post.rb
|
507
|
+
- spec/devise-dummy/app/models/song.rb
|
508
|
+
- spec/devise-dummy/app/models/tune.rb
|
509
|
+
- spec/devise-dummy/app/models/user.rb
|
510
|
+
- spec/devise-dummy/app/permits/accounts/admin/roles/editor_permit.rb
|
511
|
+
- spec/devise-dummy/app/permits/licenses/bloggers_license.rb
|
512
|
+
- spec/devise-dummy/app/permits/licenses/musicians_license.rb
|
513
|
+
- spec/devise-dummy/app/permits/role_groups/editor_permit.rb
|
514
|
+
- spec/devise-dummy/app/permits/roles/admin_permit.rb
|
515
|
+
- spec/devise-dummy/app/permits/roles/guest_permit.rb
|
516
|
+
- spec/devise-dummy/app/permits/roles/user_permit.rb
|
517
|
+
- spec/devise-dummy/app/views/articles/admin.html.haml
|
518
|
+
- spec/devise-dummy/app/views/articles/admin_account.html.haml
|
519
|
+
- spec/devise-dummy/app/views/articles/guest.html.haml
|
520
|
+
- spec/devise-dummy/app/views/articles/index.html.haml
|
521
|
+
- spec/devise-dummy/app/views/articles/show.html.haml
|
522
|
+
- spec/devise-dummy/app/views/comments/guest.html.haml
|
523
|
+
- spec/devise-dummy/app/views/comments/index.html.haml
|
524
|
+
- spec/devise-dummy/app/views/concertos/admin.html.haml
|
525
|
+
- spec/devise-dummy/app/views/concertos/admin_account.html.haml
|
526
|
+
- spec/devise-dummy/app/views/concertos/guest.html.haml
|
527
|
+
- spec/devise-dummy/app/views/concertos/index.html.haml
|
528
|
+
- spec/devise-dummy/app/views/concertos/show.html.haml
|
529
|
+
- spec/devise-dummy/app/views/devise/confirmations/new.html.erb
|
530
|
+
- spec/devise-dummy/app/views/devise/mailer/confirmation_instructions.html.erb
|
531
|
+
- spec/devise-dummy/app/views/devise/mailer/reset_password_instructions.html.erb
|
532
|
+
- spec/devise-dummy/app/views/devise/mailer/unlock_instructions.html.erb
|
533
|
+
- spec/devise-dummy/app/views/devise/passwords/edit.html.erb
|
534
|
+
- spec/devise-dummy/app/views/devise/passwords/new.html.erb
|
535
|
+
- spec/devise-dummy/app/views/devise/registrations/edit.html.erb
|
536
|
+
- spec/devise-dummy/app/views/devise/registrations/new.html.erb
|
537
|
+
- spec/devise-dummy/app/views/devise/sessions/new.html.erb
|
538
|
+
- spec/devise-dummy/app/views/devise/shared/_links.erb
|
539
|
+
- spec/devise-dummy/app/views/devise/unlocks/new.html.erb
|
540
|
+
- spec/devise-dummy/app/views/layouts/application.html.erb
|
541
|
+
- spec/devise-dummy/app/views/main/index.html.haml
|
542
|
+
- spec/devise-dummy/app/views/posts/admin.html.haml
|
543
|
+
- spec/devise-dummy/app/views/posts/admin_account.html.haml
|
544
|
+
- spec/devise-dummy/app/views/posts/guest.html.haml
|
545
|
+
- spec/devise-dummy/app/views/posts/index.html.haml
|
546
|
+
- spec/devise-dummy/app/views/posts/show.html.haml
|
547
|
+
- spec/devise-dummy/app/views/users/admin.html.haml
|
548
|
+
- spec/devise-dummy/app/views/users/admin_account.html.haml
|
549
|
+
- spec/devise-dummy/app/views/users/guest.html.haml
|
550
|
+
- spec/devise-dummy/app/views/users/index.html.haml
|
551
|
+
- spec/devise-dummy/app/views/users/show.html.haml
|
552
|
+
- spec/devise-dummy/config.ru
|
553
|
+
- spec/devise-dummy/config/application.rb
|
554
|
+
- spec/devise-dummy/config/boot.rb
|
555
|
+
- spec/devise-dummy/config/cantango_permissions.yml
|
556
|
+
- spec/devise-dummy/config/categories.yml
|
557
|
+
- spec/devise-dummy/config/database.yml
|
558
|
+
- spec/devise-dummy/config/environment.rb
|
559
|
+
- spec/devise-dummy/config/environments/development.rb
|
560
|
+
- spec/devise-dummy/config/environments/production.rb
|
561
|
+
- spec/devise-dummy/config/environments/test.rb
|
562
|
+
- spec/devise-dummy/config/initializers/backtrace_silencers.rb
|
563
|
+
- spec/devise-dummy/config/initializers/cantango.rb
|
564
|
+
- spec/devise-dummy/config/initializers/devise.rb
|
565
|
+
- spec/devise-dummy/config/initializers/inflections.rb
|
566
|
+
- spec/devise-dummy/config/initializers/mime_types.rb
|
567
|
+
- spec/devise-dummy/config/initializers/secret_token.rb
|
568
|
+
- spec/devise-dummy/config/initializers/session_store.rb
|
569
|
+
- spec/devise-dummy/config/initializers/simple_roles.rb
|
570
|
+
- spec/devise-dummy/config/locales/devise.en.yml
|
571
|
+
- spec/devise-dummy/config/locales/en.yml
|
572
|
+
- spec/devise-dummy/config/routes.rb
|
573
|
+
- spec/devise-dummy/db/migrate/002_create_comment.rb
|
574
|
+
- spec/devise-dummy/db/migrate/003_create_post.rb
|
575
|
+
- spec/devise-dummy/db/migrate/004_create_article.rb
|
576
|
+
- spec/devise-dummy/db/migrate/005_create_account.rb
|
577
|
+
- spec/devise-dummy/db/migrate/006_create_concerto.rb
|
578
|
+
- spec/devise-dummy/db/migrate/007_devise_create_users.rb
|
579
|
+
- spec/devise-dummy/db/schema.rb
|
580
|
+
- spec/devise-dummy/db/seeds.rb
|
581
|
+
- spec/devise-dummy/db/users.txt
|
582
|
+
- spec/devise-dummy/public/404.html
|
583
|
+
- spec/devise-dummy/public/422.html
|
584
|
+
- spec/devise-dummy/public/500.html
|
585
|
+
- spec/devise-dummy/public/favicon.ico
|
586
|
+
- spec/devise-dummy/public/javascripts/application.js
|
587
|
+
- spec/devise-dummy/public/javascripts/controls.js
|
588
|
+
- spec/devise-dummy/public/javascripts/dragdrop.js
|
589
|
+
- spec/devise-dummy/public/javascripts/effects.js
|
590
|
+
- spec/devise-dummy/public/javascripts/prototype.js
|
591
|
+
- spec/devise-dummy/public/javascripts/rails.js
|
592
|
+
- spec/devise-dummy/public/stylesheets/.gitkeep
|
593
|
+
- spec/devise-dummy/script/rails
|
594
|
+
- spec/devise-dummy_spec_helper.rb
|
595
|
+
- spec/devise-integration/concerto_spec.rb
|
596
|
+
- spec/dummy/Rakefile
|
597
|
+
- spec/dummy/app/controllers/accounts_controller.rb
|
598
|
+
- spec/dummy/app/controllers/application_controller.rb
|
599
|
+
- spec/dummy/app/controllers/articles_controller.rb
|
600
|
+
- spec/dummy/app/controllers/comments_controller.rb
|
601
|
+
- spec/dummy/app/controllers/concertos_controller.rb
|
602
|
+
- spec/dummy/app/controllers/main_controller.rb
|
603
|
+
- spec/dummy/app/controllers/posts_controller.rb
|
604
|
+
- spec/dummy/app/controllers/sessions_controller.rb
|
605
|
+
- spec/dummy/app/controllers/users_controller.rb
|
606
|
+
- spec/dummy/app/helpers/application_helper.rb
|
607
|
+
- spec/dummy/app/models/account_setup.rb
|
608
|
+
- spec/dummy/app/models/admin.rb
|
609
|
+
- spec/dummy/app/models/article.rb
|
610
|
+
- spec/dummy/app/models/comment.rb
|
611
|
+
- spec/dummy/app/models/concerto.rb
|
612
|
+
- spec/dummy/app/models/guest.rb
|
613
|
+
- spec/dummy/app/models/improvisation.rb
|
614
|
+
- spec/dummy/app/models/post.rb
|
615
|
+
- spec/dummy/app/models/song.rb
|
616
|
+
- spec/dummy/app/models/tune.rb
|
617
|
+
- spec/dummy/app/models/user.rb
|
618
|
+
- spec/dummy/app/permits/accounts/admin/roles/editor_permit.rb
|
619
|
+
- spec/dummy/app/permits/licenses/bloggers_license.rb
|
620
|
+
- spec/dummy/app/permits/licenses/musicians_license.rb
|
621
|
+
- spec/dummy/app/permits/role_groups/editor_permit.rb
|
622
|
+
- spec/dummy/app/permits/roles/admin_permit.rb
|
623
|
+
- spec/dummy/app/permits/roles/guest_permit.rb
|
624
|
+
- spec/dummy/app/permits/roles/user_permit.rb
|
625
|
+
- spec/dummy/app/views/articles/admin.html.haml
|
626
|
+
- spec/dummy/app/views/articles/admin_account.html.haml
|
627
|
+
- spec/dummy/app/views/articles/guest.html.haml
|
628
|
+
- spec/dummy/app/views/articles/index.html.haml
|
629
|
+
- spec/dummy/app/views/articles/show.html.haml
|
630
|
+
- spec/dummy/app/views/comments/guest.html.haml
|
631
|
+
- spec/dummy/app/views/comments/index.html.haml
|
632
|
+
- spec/dummy/app/views/concertos/admin.html.haml
|
633
|
+
- spec/dummy/app/views/concertos/admin_account.html.haml
|
634
|
+
- spec/dummy/app/views/concertos/guest.html.haml
|
635
|
+
- spec/dummy/app/views/concertos/index.html.haml
|
636
|
+
- spec/dummy/app/views/concertos/show.html.haml
|
637
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
638
|
+
- spec/dummy/app/views/main/index.html.haml
|
639
|
+
- spec/dummy/app/views/posts/admin.html.haml
|
640
|
+
- spec/dummy/app/views/posts/admin_account.html.haml
|
641
|
+
- spec/dummy/app/views/posts/guest.html.haml
|
642
|
+
- spec/dummy/app/views/posts/index.html.haml
|
643
|
+
- spec/dummy/app/views/posts/show.html.haml
|
644
|
+
- spec/dummy/app/views/users/admin.html.haml
|
645
|
+
- spec/dummy/app/views/users/admin_account.html.haml
|
646
|
+
- spec/dummy/app/views/users/guest.html.haml
|
647
|
+
- spec/dummy/app/views/users/index.html.haml
|
648
|
+
- spec/dummy/app/views/users/show.html.haml
|
649
|
+
- spec/dummy/config.ru
|
650
|
+
- spec/dummy/config/application.rb
|
651
|
+
- spec/dummy/config/boot.rb
|
652
|
+
- spec/dummy/config/cantango_permissions.yml
|
653
|
+
- spec/dummy/config/categories.yml
|
654
|
+
- spec/dummy/config/database.yml
|
655
|
+
- spec/dummy/config/environment.rb
|
656
|
+
- spec/dummy/config/environments/development.rb
|
657
|
+
- spec/dummy/config/environments/production.rb
|
658
|
+
- spec/dummy/config/environments/test.rb
|
659
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
660
|
+
- spec/dummy/config/initializers/cantango.rb
|
661
|
+
- spec/dummy/config/initializers/inflections.rb
|
662
|
+
- spec/dummy/config/initializers/mime_types.rb
|
663
|
+
- spec/dummy/config/initializers/secret_token.rb
|
664
|
+
- spec/dummy/config/initializers/session_store.rb
|
665
|
+
- spec/dummy/config/initializers/simple_roles.rb
|
666
|
+
- spec/dummy/config/locales/en.yml
|
667
|
+
- spec/dummy/config/routes.rb
|
668
|
+
- spec/dummy/db/migrate/001_create_user.rb
|
669
|
+
- spec/dummy/db/migrate/002_create_comment.rb
|
670
|
+
- spec/dummy/db/migrate/003_create_post.rb
|
671
|
+
- spec/dummy/db/migrate/004_create_article.rb
|
672
|
+
- spec/dummy/db/migrate/005_create_account.rb
|
673
|
+
- spec/dummy/db/migrate/006_create_concerto.rb
|
674
|
+
- spec/dummy/public/404.html
|
675
|
+
- spec/dummy/public/422.html
|
676
|
+
- spec/dummy/public/500.html
|
677
|
+
- spec/dummy/public/favicon.ico
|
678
|
+
- spec/dummy/public/javascripts/application.js
|
679
|
+
- spec/dummy/public/javascripts/controls.js
|
680
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
681
|
+
- spec/dummy/public/javascripts/effects.js
|
682
|
+
- spec/dummy/public/javascripts/prototype.js
|
683
|
+
- spec/dummy/public/javascripts/rails.js
|
684
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
685
|
+
- spec/dummy/script/rails
|
686
|
+
- spec/dummy/tmp/pids/server.pid
|
687
|
+
- spec/dummy_spec_helper.rb
|
688
|
+
- spec/entire_suite_spec.rb
|
689
|
+
- spec/factories.rb
|
690
|
+
- spec/fixtures/config/cantango_permissions.yml
|
691
|
+
- spec/fixtures/config/categories.yml
|
692
|
+
- spec/fixtures/config/evaluator_fixtures.yml
|
693
|
+
- spec/fixtures/config/licenses.yml
|
694
|
+
- spec/fixtures/config/permissions.yml
|
695
|
+
- spec/fixtures/config/role_group.yml
|
696
|
+
- spec/fixtures/config/roles.yml
|
697
|
+
- spec/fixtures/config/user_permissions.yml
|
698
|
+
- spec/fixtures/models.rb
|
699
|
+
- spec/fixtures/models/items.rb
|
700
|
+
- spec/fixtures/models/simple_roles.rb
|
701
|
+
- spec/fixtures/models/user.rb
|
702
|
+
- spec/fixtures/models/user_account.rb
|
703
|
+
- spec/fixtures/tango_fixtures.rb
|
704
|
+
- spec/generators/cantango/account_role_permit_generator_spec.rb
|
705
|
+
- spec/generators/cantango/account_role_permits_generator_spec.rb
|
706
|
+
- spec/generators/cantango/license_generator_spec.rb
|
707
|
+
- spec/generators/cantango/licenses_generator_spec.rb
|
708
|
+
- spec/generators/cantango/role_permit_generator_spec.rb
|
709
|
+
- spec/generators/cantango/role_permits_generator_spec.rb
|
710
|
+
- spec/helpers/dummy_app_ability.rb
|
711
|
+
- spec/integration/Design_notes.textile
|
712
|
+
- spec/integration/admin_user/masquerade_spec.rb
|
713
|
+
- spec/integration/cache_using_moneta_spec.rb
|
714
|
+
- spec/integration/cache_using_session_spec.rb
|
715
|
+
- spec/integration/main_spec.rb
|
716
|
+
- spec/integration/performance/ability_initialize_performance.rb
|
717
|
+
- spec/integration/performance/cache_performance.rb
|
718
|
+
- spec/integration/performance/can_performance.rb
|
719
|
+
- spec/integration/performance/helpers/ability.rb
|
720
|
+
- spec/integration/performance/helpers/ability_api.rb
|
721
|
+
- spec/integration/performance/helpers/ability_raw.rb
|
722
|
+
- spec/integration/performance/helpers/cache.rb
|
723
|
+
- spec/integration/performance/helpers/rules.rb
|
724
|
+
- spec/integration/performance/integral_performance_caching_disabled.rb
|
725
|
+
- spec/integration/performance/integral_performance_caching_enabled.rb
|
726
|
+
- spec/integration/performance/raw_performance.rb
|
727
|
+
- spec/integration/user/articles_spec.rb
|
728
|
+
- spec/integration/user/concerto_spec.rb
|
729
|
+
- spec/note_on_caching_and_dynamic.textile
|
730
|
+
- spec/path_helper.rb
|
731
|
+
- spec/simple_roles.rb
|
732
|
+
- spec/spec_helper.rb
|
733
|
+
- wiki/ability/initialize.markdown
|
734
|
+
- wiki/api/user/api.markdown
|
735
|
+
- wiki/api/user_account/api.markdown
|
736
|
+
- wiki/config/ability.markdown
|
737
|
+
- wiki/config/autoload.markdown
|
738
|
+
- wiki/config/guest.markdown
|
739
|
+
- wiki/config/models_registration.markdown
|
740
|
+
- wiki/config/role_groups.markdown
|
741
|
+
- wiki/config/roles.markdown
|
742
|
+
- wiki/engines/cache/config.markdown
|
743
|
+
- wiki/engines/cache/session_store.markdown
|
744
|
+
- wiki/engines/cache/store.markdown
|
745
|
+
- wiki/engines/permissions/categories.markdown
|
746
|
+
- wiki/engines/permissions/config.markdown
|
747
|
+
- wiki/engines/permissions/moneta_store.markdown
|
748
|
+
- wiki/engines/permissions/store.markdown
|
749
|
+
- wiki/engines/permissions/yaml_store.markdown
|
750
|
+
- wiki/engines/permits/config.markdown
|
751
|
+
- wiki/engines/permits/licenses.markdown
|
752
|
+
- wiki/engines/permits/role_groups.markdown
|
753
|
+
- wiki/engines/permits/roles.markdown
|
754
|
+
- wiki/engines/permits/user_accounts.markdown
|
755
|
+
- wiki/feature_list.markdown
|
756
|
+
- wiki/rules_caching.markdown
|
757
|
+
- wiki/users/masquerading.markdown
|
758
|
+
- wiki/when_to_use.markdown
|
759
|
+
- wiki/why_to_use.markdown
|
760
|
+
homepage: http://github.com/kristianmandrup/cantango
|
761
|
+
licenses:
|
762
|
+
- MIT
|
763
|
+
post_install_message:
|
764
|
+
rdoc_options: []
|
765
|
+
require_paths:
|
766
|
+
- lib
|
767
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
768
|
+
none: false
|
769
|
+
requirements:
|
770
|
+
- - ! '>='
|
771
|
+
- !ruby/object:Gem::Version
|
772
|
+
version: '0'
|
773
|
+
segments:
|
774
|
+
- 0
|
775
|
+
hash: 2981871111333637393
|
776
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
777
|
+
none: false
|
778
|
+
requirements:
|
779
|
+
- - ! '>='
|
780
|
+
- !ruby/object:Gem::Version
|
781
|
+
version: '0'
|
782
|
+
requirements: []
|
783
|
+
rubyforge_project:
|
784
|
+
rubygems_version: 1.8.7
|
785
|
+
signing_key:
|
786
|
+
specification_version: 3
|
787
|
+
summary: CanCan extension with role oriented permission management and more
|
788
|
+
test_files: []
|