├── .gitignore ├── .travis.yml ├── CHANGELOG ├── MIT-LICENSE ├── README.rdoc ├── Rakefile ├── app ├── controllers │ ├── authorization_rules_controller.rb │ └── authorization_usages_controller.rb ├── helpers │ └── authorization_rules_helper.rb └── views │ ├── authorization_rules │ ├── _change.erb │ ├── _show_graph.erb │ ├── _suggestions.erb │ ├── change.html.erb │ ├── graph.dot.erb │ ├── graph.html.erb │ └── index.html.erb │ └── authorization_usages │ └── index.html.erb ├── authorization_rules.dist.rb ├── config └── routes.rb ├── declarative_authorization.gemspec ├── garlic_example.rb ├── gemfiles ├── 2.3.gemfile ├── 3.0.gemfile ├── 3.1.gemfile ├── 3.2.gemfile ├── 4.0.gemfile └── 4.1.gemfile ├── init.rb ├── lib ├── declarative_authorization.rb ├── declarative_authorization │ ├── adapters │ │ ├── active_record.rb │ │ └── active_record │ │ │ ├── base_extensions.rb │ │ │ └── obligation_scope_builder.rb │ ├── authorization.rb │ ├── development_support │ │ ├── analyzer.rb │ │ ├── change_analyzer.rb │ │ ├── change_supporter.rb │ │ └── development_support.rb │ ├── helper.rb │ ├── in_controller.rb │ ├── in_model.rb │ ├── maintenance.rb │ ├── obligation_scope.rb │ ├── rails_legacy.rb │ ├── railsengine.rb │ └── reader.rb ├── generators │ └── authorization │ │ ├── install │ │ └── install_generator.rb │ │ └── rules │ │ ├── rules_generator.rb │ │ └── templates │ │ └── authorization_rules.rb └── tasks │ └── authorization_tasks.rake └── test ├── authorization_test.rb ├── controller_filter_resource_access_test.rb ├── controller_test.rb ├── database.yml ├── development_support ├── analyzer_test.rb ├── change_analyzer_test.rb └── change_supporter_test.rb ├── dsl_reader_test.rb ├── helper_test.rb ├── maintenance_test.rb ├── model_test.rb ├── schema.sql ├── test_helper.rb └── test_support └── minitest_compatibility.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/CHANGELOG -------------------------------------------------------------------------------- /MIT-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/MIT-LICENSE -------------------------------------------------------------------------------- /README.rdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/README.rdoc -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/Rakefile -------------------------------------------------------------------------------- /app/controllers/authorization_rules_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/controllers/authorization_rules_controller.rb -------------------------------------------------------------------------------- /app/controllers/authorization_usages_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/controllers/authorization_usages_controller.rb -------------------------------------------------------------------------------- /app/helpers/authorization_rules_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/helpers/authorization_rules_helper.rb -------------------------------------------------------------------------------- /app/views/authorization_rules/_change.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/_change.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/_show_graph.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/_show_graph.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/_suggestions.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/_suggestions.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/change.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/change.html.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/graph.dot.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/graph.dot.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/graph.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/graph.html.erb -------------------------------------------------------------------------------- /app/views/authorization_rules/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_rules/index.html.erb -------------------------------------------------------------------------------- /app/views/authorization_usages/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/app/views/authorization_usages/index.html.erb -------------------------------------------------------------------------------- /authorization_rules.dist.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/authorization_rules.dist.rb -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/config/routes.rb -------------------------------------------------------------------------------- /declarative_authorization.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/declarative_authorization.gemspec -------------------------------------------------------------------------------- /garlic_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/garlic_example.rb -------------------------------------------------------------------------------- /gemfiles/2.3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/2.3.gemfile -------------------------------------------------------------------------------- /gemfiles/3.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/3.0.gemfile -------------------------------------------------------------------------------- /gemfiles/3.1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/3.1.gemfile -------------------------------------------------------------------------------- /gemfiles/3.2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/3.2.gemfile -------------------------------------------------------------------------------- /gemfiles/4.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/4.0.gemfile -------------------------------------------------------------------------------- /gemfiles/4.1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/gemfiles/4.1.gemfile -------------------------------------------------------------------------------- /init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/init.rb -------------------------------------------------------------------------------- /lib/declarative_authorization.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/adapters/active_record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/adapters/active_record.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/adapters/active_record/base_extensions.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/declarative_authorization/adapters/active_record/obligation_scope_builder.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/declarative_authorization/authorization.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/authorization.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/development_support/analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/development_support/analyzer.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/development_support/change_analyzer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/development_support/change_analyzer.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/development_support/change_supporter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/development_support/change_supporter.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/development_support/development_support.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/development_support/development_support.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/helper.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/in_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/in_controller.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/in_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/in_model.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/maintenance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/maintenance.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/obligation_scope.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/obligation_scope.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/rails_legacy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/rails_legacy.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/railsengine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/railsengine.rb -------------------------------------------------------------------------------- /lib/declarative_authorization/reader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/declarative_authorization/reader.rb -------------------------------------------------------------------------------- /lib/generators/authorization/install/install_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/generators/authorization/install/install_generator.rb -------------------------------------------------------------------------------- /lib/generators/authorization/rules/rules_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/generators/authorization/rules/rules_generator.rb -------------------------------------------------------------------------------- /lib/generators/authorization/rules/templates/authorization_rules.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/generators/authorization/rules/templates/authorization_rules.rb -------------------------------------------------------------------------------- /lib/tasks/authorization_tasks.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/lib/tasks/authorization_tasks.rake -------------------------------------------------------------------------------- /test/authorization_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/authorization_test.rb -------------------------------------------------------------------------------- /test/controller_filter_resource_access_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/controller_filter_resource_access_test.rb -------------------------------------------------------------------------------- /test/controller_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/controller_test.rb -------------------------------------------------------------------------------- /test/database.yml: -------------------------------------------------------------------------------- 1 | test: 2 | adapter: sqlite3 3 | database: ":memory:" 4 | -------------------------------------------------------------------------------- /test/development_support/analyzer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/development_support/analyzer_test.rb -------------------------------------------------------------------------------- /test/development_support/change_analyzer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/development_support/change_analyzer_test.rb -------------------------------------------------------------------------------- /test/development_support/change_supporter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/development_support/change_supporter_test.rb -------------------------------------------------------------------------------- /test/dsl_reader_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/dsl_reader_test.rb -------------------------------------------------------------------------------- /test/helper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/helper_test.rb -------------------------------------------------------------------------------- /test/maintenance_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/maintenance_test.rb -------------------------------------------------------------------------------- /test/model_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/model_test.rb -------------------------------------------------------------------------------- /test/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/schema.sql -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/test_helper.rb -------------------------------------------------------------------------------- /test/test_support/minitest_compatibility.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stffn/declarative_authorization/HEAD/test/test_support/minitest_compatibility.rb --------------------------------------------------------------------------------