1. 30 Sep, 2020 1 commit
    • Zeger-Jan van de Weg's avatar
      Update programming language colors and metadata · ee05bed0
      Zeger-Jan van de Weg authored and Adam Hegyi's avatar Adam Hegyi committed
      When linguist was phased out the data we depended on was vendored. This
      created some stale data since than, and this commit updates the vendored
      file to the file upstream has at 7.11.0. This version number was choosen
      as Gitaly will shortly run `github-linguist` at that version.
      
      Than this updated file is used to update the colors in the database, for
      records already in the database. About 200 `UPDATE` statements are
      executed.
      ee05bed0
  2. 13 Oct, 2018 1 commit
    • Zeger-Jan van de Weg's avatar
      Remove dependencies on Linguist · 399056ed
      Zeger-Jan van de Weg authored and Stan Hu's avatar Stan Hu committed
      This saves about 128 MB of baseline RAM usage per Unicorn and
      Sidekiq process (!).
      
      Linguist wasn't detecting languages anymore from CE/EE since
      9ae8b574. 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.
      399056ed