summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/file_detector_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch..."Rémy Coutable2019-03-191-4/+0
| | | This reverts merge request !26183
* New Repository#insights_config methodRémy Coutable2019-03-181-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix spec failureJames Lopez2018-11-151-1/+2
|
* Fix trailing whitespaceJames Lopez2018-11-151-1/+1
|
* Update spec to use PLAIN_FILENAMES constantJames Lopez2018-11-151-1/+2
|
* Refactor spec to test all extensionsJames Lopez2018-11-151-1/+3
|
* Fix text rendering of readme/indexJames Lopez2018-11-141-0/+4
|
* Test type of README file without extensionAchilleas Pipinellis2018-11-021-2/+3
|
* Render index.* like README.* when it's present in a directoryJakub Jirutka2018-11-021-1/+5
| | | | Resolves #18933
* Remove Koding integration and documentationStan Hu2018-10-121-4/+0
| | | | | | This integration no longer works and does not appear to be supported. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39697
* Recognize 'UNLICENSE' license filesJ.D. Bean2018-09-061-1/+5
|
* Cache issuable template namesSean McGivern2017-10-121-0/+8
| | | | | | | We were looking these up on each request to an issue page, because the form is pre-filled, as is the template dropdown. That was unnecessary: we could just treat these as 'special' repository files (like the rendered README) and cache them in Redis until they change on a push.
* Match full file path in FileDetectorSean McGivern2017-10-121-0/+4
| | | | | | | | | The basename appears to have been a holdover from the past - it doesn't look necessary now. Some of the regexes were unanchored on one side, so explicitly ensure that they only match the root. Apart from that, this means that pushing to foo/README.md will no longer invalidate the main README cache for a project.
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-4/+4
|
* Unify detecting of special repository filesYorick Peterse2016-11-211-0/+59
This moves the logic of detecting special repository files (e.g. a README or a Koding configuration file) to a single class: Gitlab::FileDetector. Moving this logic into a single place allows this to be re-used more easily. This commit also changes Repository#gitlab_ci_yaml so that its cached similar to other data (e.g. the Koding configuration file).