summaryrefslogtreecommitdiff
path: root/lib/gitlab/blob_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix inline rendering of SVGs from current repo17276-breakage-in-displaying-svg-in-the-same-repositoryHeinrich Lee Yu2019-08-021-1/+1
| | | | Changes generated URL to raw instead of blob
* Fixing image lfs bug and also displaying text lfsFrancisco Javier López2018-12-271-5/+5
| | | | | | | | | | | This commit, introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23812, fixes a problem creating a displaying image diff notes when the image is stored in LFS. The main problem was that `Gitlab::Diff::File` was returning an invalid valid in `text?` for this kind of files. It also fixes a rendering problem with other LFS files, like text ones. They LFS pointer shouldn't be shown when LFS is enabled for the project, but they were.
* Enable frozen string for lib/gitlab/*.rbgfyoung2018-10-221-0/+2
|
* Remove dependencies on LinguistZeger-Jan van de Weg2018-10-121-0/+145
This saves about 128 MB of baseline RAM usage per Unicorn and Sidekiq process (!). Linguist wasn't detecting languages anymore from CE/EE since 9ae8b57467ac8b38f1fa9020a466d94a93cbb9dd. However, Linguist::BlobHelper was still being depended on by BlobLike and others. This removes the Linguist gem, given it isn't required anymore. EscapeUtils were pulled in as dependency, but given Banzai depends on it, it is now added explicitly. Previously, Linguist was used to detect the best ACE mode. Instead, we rely on ACE to guess the best mode based on the file extension.