├── .bundle └── config ├── .gitattributes ├── .github ├── CODEOWNERS ├── dependabot.yml └── workflows │ ├── rubocop.yml │ ├── test.yml │ └── yard.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .ruby-version ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── RELEASE.md ├── Rakefile ├── bin ├── bundle ├── bundler ├── htmldiff ├── ldiff ├── racc ├── rake ├── rspec ├── rubocop ├── ruby-parse ├── ruby-rewrite ├── yard ├── yardoc └── yri ├── docker-compose.yml ├── lib └── pundit │ ├── matchers.rb │ └── matchers │ ├── actions_matcher.rb │ ├── attributes_matcher.rb │ ├── base_matcher.rb │ ├── forbid_all_actions_matcher.rb │ ├── forbid_only_actions_matcher.rb │ ├── permit_actions_matcher.rb │ ├── permit_all_actions_matcher.rb │ ├── permit_attributes_matcher.rb │ ├── permit_only_actions_matcher.rb │ └── utils │ └── policy_info.rb ├── pundit-matchers.gemspec └── spec ├── policy_factory.rb ├── pundit └── matchers │ ├── configuration_spec.rb │ ├── forbid_all_actions_matcher_spec.rb │ ├── forbid_only_actions_matcher_spec.rb │ ├── permit_actions_matcher_spec.rb │ ├── permit_all_actions_matcher_spec.rb │ ├── permit_attributes_matcher_spec.rb │ ├── permit_only_actions_matcher_spec.rb │ └── utils │ └── policy_info_spec.rb ├── shared_examples.rb └── spec_helper.rb /.bundle/config: -------------------------------------------------------------------------------- 1 | --- 2 | BUNDLE_BIN: "bin" 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | .rubocop_todo.yml linguist-generated 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.github/workflows/rubocop.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/yard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.github/workflows/yard.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --require spec_helper 2 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.3.6 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/Dockerfile -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/README.md -------------------------------------------------------------------------------- /RELEASE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/RELEASE.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/bundle -------------------------------------------------------------------------------- /bin/bundler: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/bundler -------------------------------------------------------------------------------- /bin/htmldiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/htmldiff -------------------------------------------------------------------------------- /bin/ldiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/ldiff -------------------------------------------------------------------------------- /bin/racc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/racc -------------------------------------------------------------------------------- /bin/rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/rake -------------------------------------------------------------------------------- /bin/rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/rspec -------------------------------------------------------------------------------- /bin/rubocop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/rubocop -------------------------------------------------------------------------------- /bin/ruby-parse: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/ruby-parse -------------------------------------------------------------------------------- /bin/ruby-rewrite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/ruby-rewrite -------------------------------------------------------------------------------- /bin/yard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/yard -------------------------------------------------------------------------------- /bin/yardoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/yardoc -------------------------------------------------------------------------------- /bin/yri: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/bin/yri -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /lib/pundit/matchers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/attributes_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/attributes_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/base_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/base_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/forbid_all_actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/forbid_all_actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/forbid_only_actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/forbid_only_actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/permit_actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/permit_actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/permit_all_actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/permit_all_actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/permit_attributes_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/permit_attributes_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/permit_only_actions_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/permit_only_actions_matcher.rb -------------------------------------------------------------------------------- /lib/pundit/matchers/utils/policy_info.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/lib/pundit/matchers/utils/policy_info.rb -------------------------------------------------------------------------------- /pundit-matchers.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/pundit-matchers.gemspec -------------------------------------------------------------------------------- /spec/policy_factory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/policy_factory.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/configuration_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/forbid_all_actions_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/forbid_all_actions_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/forbid_only_actions_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/forbid_only_actions_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/permit_actions_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/permit_actions_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/permit_all_actions_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/permit_all_actions_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/permit_attributes_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/permit_attributes_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/permit_only_actions_matcher_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/permit_only_actions_matcher_spec.rb -------------------------------------------------------------------------------- /spec/pundit/matchers/utils/policy_info_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/pundit/matchers/utils/policy_info_spec.rb -------------------------------------------------------------------------------- /spec/shared_examples.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/shared_examples.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pundit-community/pundit-matchers/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------