summaryrefslogtreecommitdiff
path: root/lib/declarative_policy.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable more frozen string in lib/**/*.rbgfyoung2018-10-061-0/+2
| | | | | | | | | | | | | Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
* Fix UnneededRequireStatement copSemyon Pupkov2018-09-211-2/+0
|
* [Rails5] Permit concurrent loadsJan Provaznik2018-07-101-1/+11
| | | | | | | | | | | | | | Rails 5 introduced a new (and safer) autoload mechanism which uses locking when loading missing constants. Under some circumstances it's possible that a deadlock occurs in multi-threaded environment (especially when running capybara tests) To avoid these deadlocks, concurrent load is enabled when loading policies - we ere hitting timeout in this case: https://gitlab.com/gitlab-org/gitlab-ce/issues/48263 Note that autoloading is enabled only in development or test envs (not in production).
* [CE] Add Naming/FileName rule checking expected class/module per filenameGabriel Mazetto2018-03-081-1/+3
|
* Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+2
| | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* declarative_policy rubocop fixhttp://jneen.net/2017-08-031-2/+3
|
* short-circuit if there is no policy, and add :read_project checkhttp://jneen.net/2017-08-031-4/+9
|
* cache DeclarativePolicy.class_for at the class levelhttp://jneen.net/2017-07-171-5/+35
|
* add a new DeclarativePolicy frameworkhttp://jneen.net/2017-06-271-0/+58