Merge branch '26039-Update-to-github-linguist5.3.x' into 'master'
Resolve "Update to github-linguist 5.3.x" Closes #26039 See merge request gitlab-org/gitlab-ce!17241
This commit is contained in:
commit
daf88307c0
5 changed files with 12 additions and 7 deletions
2
Gemfile
2
Gemfile
|
@ -81,7 +81,7 @@ gem 'gollum-lib', '~> 4.2', require: false
|
|||
gem 'gollum-rugged_adapter', '~> 0.4.4', require: false
|
||||
|
||||
# Language detection
|
||||
gem 'github-linguist', '~> 4.7.0', require: 'linguist'
|
||||
gem 'github-linguist', '~> 5.3.3', require: 'linguist'
|
||||
|
||||
# API
|
||||
gem 'grape', '~> 1.0'
|
||||
|
|
|
@ -288,11 +288,11 @@ GEM
|
|||
gitaly-proto (0.84.0)
|
||||
google-protobuf (~> 3.1)
|
||||
grpc (~> 1.0)
|
||||
github-linguist (4.7.6)
|
||||
charlock_holmes (~> 0.7.3)
|
||||
github-linguist (5.3.3)
|
||||
charlock_holmes (~> 0.7.5)
|
||||
escape_utils (~> 1.1.0)
|
||||
mime-types (>= 1.19)
|
||||
rugged (>= 0.23.0b)
|
||||
rugged (>= 0.25.1)
|
||||
github-markup (1.6.1)
|
||||
gitlab-flowdock-git-hook (1.0.1)
|
||||
flowdock (~> 0.7)
|
||||
|
@ -1058,7 +1058,7 @@ DEPENDENCIES
|
|||
gettext_i18n_rails (~> 1.8.0)
|
||||
gettext_i18n_rails_js (~> 1.2.0)
|
||||
gitaly-proto (~> 0.84.0)
|
||||
github-linguist (~> 4.7.0)
|
||||
github-linguist (~> 5.3.3)
|
||||
gitlab-flowdock-git-hook (~> 1.0.1)
|
||||
gitlab-markup (~> 1.6.2)
|
||||
gitlab-styles (~> 2.3)
|
||||
|
|
|
@ -160,7 +160,7 @@ class Blob < SimpleDelegator
|
|||
if stored_externally?
|
||||
if rich_viewer
|
||||
rich_viewer.binary?
|
||||
elsif Linguist::Language.find_by_filename(name).any?
|
||||
elsif Linguist::Language.find_by_extension(name).any?
|
||||
false
|
||||
elsif _mime_type
|
||||
_mime_type.binary?
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Update to github-linguist 5.3.x
|
||||
merge_request: 17241
|
||||
author: Ken Ding
|
||||
type: other
|
|
@ -1590,7 +1590,7 @@ describe Gitlab::Git::Repository, seed_helper: true do
|
|||
expected_languages = [
|
||||
{ value: 66.63, label: "Ruby", color: "#701516", highlight: "#701516" },
|
||||
{ value: 22.96, label: "JavaScript", color: "#f1e05a", highlight: "#f1e05a" },
|
||||
{ value: 7.9, label: "HTML", color: "#e44b23", highlight: "#e44b23" },
|
||||
{ value: 7.9, label: "HTML", color: "#e34c26", highlight: "#e34c26" },
|
||||
{ value: 2.51, label: "CoffeeScript", color: "#244776", highlight: "#244776" }
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue