Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
Commits
c858f70d
Commit
c858f70d
authored
Oct 22, 2018
by
gfyoung
Committed by
Rémy Coutable
Oct 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable frozen string for lib/gitlab/*.rb
parent
173b1436
Changes
151
Hide whitespace changes
Inline
Side-by-side
Showing
75 changed files
with
166 additions
and
14 deletions
+166
-14
changelogs/unreleased/frozen-string-enable-lib-gitlab.yml
changelogs/unreleased/frozen-string-enable-lib-gitlab.yml
+5
-0
lib/backup/manager.rb
lib/backup/manager.rb
+1
-1
lib/gitlab/access.rb
lib/gitlab/access.rb
+2
-0
lib/gitlab/action_rate_limiter.rb
lib/gitlab/action_rate_limiter.rb
+2
-0
lib/gitlab/allowable.rb
lib/gitlab/allowable.rb
+2
-0
lib/gitlab/app_logger.rb
lib/gitlab/app_logger.rb
+2
-0
lib/gitlab/asciidoc.rb
lib/gitlab/asciidoc.rb
+2
-0
lib/gitlab/auth.rb
lib/gitlab/auth.rb
+2
-0
lib/gitlab/background_migration.rb
lib/gitlab/background_migration.rb
+2
-0
lib/gitlab/base_doorkeeper_controller.rb
lib/gitlab/base_doorkeeper_controller.rb
+2
-0
lib/gitlab/blame.rb
lib/gitlab/blame.rb
+2
-0
lib/gitlab/blob_helper.rb
lib/gitlab/blob_helper.rb
+2
-0
lib/gitlab/build_access.rb
lib/gitlab/build_access.rb
+2
-0
lib/gitlab/changes_list.rb
lib/gitlab/changes_list.rb
+2
-0
lib/gitlab/chat_name_token.rb
lib/gitlab/chat_name_token.rb
+2
-0
lib/gitlab/ci_access.rb
lib/gitlab/ci_access.rb
+2
-0
lib/gitlab/closing_issue_extractor.rb
lib/gitlab/closing_issue_extractor.rb
+2
-0
lib/gitlab/color_schemes.rb
lib/gitlab/color_schemes.rb
+2
-0
lib/gitlab/config_helper.rb
lib/gitlab/config_helper.rb
+2
-0
lib/gitlab/contributions_calendar.rb
lib/gitlab/contributions_calendar.rb
+2
-0
lib/gitlab/contributor.rb
lib/gitlab/contributor.rb
+2
-0
lib/gitlab/cross_project_access.rb
lib/gitlab/cross_project_access.rb
+2
-0
lib/gitlab/current_settings.rb
lib/gitlab/current_settings.rb
+2
-0
lib/gitlab/daemon.rb
lib/gitlab/daemon.rb
+2
-0
lib/gitlab/database.rb
lib/gitlab/database.rb
+7
-5
lib/gitlab/dependency_linker.rb
lib/gitlab/dependency_linker.rb
+2
-0
lib/gitlab/downtime_check.rb
lib/gitlab/downtime_check.rb
+2
-0
lib/gitlab/ee_compat_check.rb
lib/gitlab/ee_compat_check.rb
+2
-0
lib/gitlab/emoji.rb
lib/gitlab/emoji.rb
+2
-0
lib/gitlab/encoding_helper.rb
lib/gitlab/encoding_helper.rb
+2
-0
lib/gitlab/environment.rb
lib/gitlab/environment.rb
+2
-0
lib/gitlab/environment_logger.rb
lib/gitlab/environment_logger.rb
+2
-0
lib/gitlab/exclusive_lease.rb
lib/gitlab/exclusive_lease.rb
+2
-0
lib/gitlab/exclusive_lease_helpers.rb
lib/gitlab/exclusive_lease_helpers.rb
+2
-0
lib/gitlab/fake_application_settings.rb
lib/gitlab/fake_application_settings.rb
+2
-0
lib/gitlab/favicon.rb
lib/gitlab/favicon.rb
+2
-0
lib/gitlab/file_detector.rb
lib/gitlab/file_detector.rb
+2
-0
lib/gitlab/file_finder.rb
lib/gitlab/file_finder.rb
+2
-0
lib/gitlab/file_markdown_link_builder.rb
lib/gitlab/file_markdown_link_builder.rb
+3
-1
lib/gitlab/git.rb
lib/gitlab/git.rb
+2
-0
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+2
-0
lib/gitlab/git_access_wiki.rb
lib/gitlab/git_access_wiki.rb
+2
-0
lib/gitlab/git_logger.rb
lib/gitlab/git_logger.rb
+2
-0
lib/gitlab/git_ref_validator.rb
lib/gitlab/git_ref_validator.rb
+2
-0
lib/gitlab/gitaly_client.rb
lib/gitlab/gitaly_client.rb
+3
-1
lib/gitlab/github_import.rb
lib/gitlab/github_import.rb
+2
-0
lib/gitlab/gl_id.rb
lib/gitlab/gl_id.rb
+2
-0
lib/gitlab/gl_repository.rb
lib/gitlab/gl_repository.rb
+2
-0
lib/gitlab/gon_helper.rb
lib/gitlab/gon_helper.rb
+2
-0
lib/gitlab/gpg.rb
lib/gitlab/gpg.rb
+2
-0
lib/gitlab/graphql.rb
lib/gitlab/graphql.rb
+2
-0
lib/gitlab/group_hierarchy.rb
lib/gitlab/group_hierarchy.rb
+2
-0
lib/gitlab/highlight.rb
lib/gitlab/highlight.rb
+2
-0
lib/gitlab/http.rb
lib/gitlab/http.rb
+2
-0
lib/gitlab/http_io.rb
lib/gitlab/http_io.rb
+9
-6
lib/gitlab/i18n.rb
lib/gitlab/i18n.rb
+2
-0
lib/gitlab/identifier.rb
lib/gitlab/identifier.rb
+2
-0
lib/gitlab/import_export.rb
lib/gitlab/import_export.rb
+2
-0
lib/gitlab/import_formatter.rb
lib/gitlab/import_formatter.rb
+2
-0
lib/gitlab/import_sources.rb
lib/gitlab/import_sources.rb
+2
-0
lib/gitlab/incoming_email.rb
lib/gitlab/incoming_email.rb
+2
-0
lib/gitlab/insecure_key_fingerprint.rb
lib/gitlab/insecure_key_fingerprint.rb
+2
-0
lib/gitlab/issuable_metadata.rb
lib/gitlab/issuable_metadata.rb
+2
-0
lib/gitlab/issuable_sorter.rb
lib/gitlab/issuable_sorter.rb
+2
-0
lib/gitlab/issuables_count_for_state.rb
lib/gitlab/issuables_count_for_state.rb
+2
-0
lib/gitlab/issues_labels.rb
lib/gitlab/issues_labels.rb
+2
-0
lib/gitlab/job_waiter.rb
lib/gitlab/job_waiter.rb
+2
-0
lib/gitlab/json_logger.rb
lib/gitlab/json_logger.rb
+2
-0
lib/gitlab/kubernetes.rb
lib/gitlab/kubernetes.rb
+2
-0
lib/gitlab/language_detection.rb
lib/gitlab/language_detection.rb
+2
-0
lib/gitlab/lazy.rb
lib/gitlab/lazy.rb
+2
-0
lib/gitlab/lfs_token.rb
lib/gitlab/lfs_token.rb
+2
-0
lib/gitlab/logger.rb
lib/gitlab/logger.rb
+2
-0
lib/gitlab/mail_room.rb
lib/gitlab/mail_room.rb
+2
-0
lib/gitlab/markup_helper.rb
lib/gitlab/markup_helper.rb
+2
-0
No files found.
changelogs/unreleased/frozen-string-enable-lib-gitlab.yml
0 → 100644
View file @
c858f70d
---
title
:
Enable frozen string for lib/gitlab/*.rb
merge_request
:
author
:
gfyoung
type
:
performance
lib/backup/manager.rb
View file @
c858f70d
...
...
@@ -164,7 +164,7 @@ def unpack
def
tar_version
tar_version
,
_
=
Gitlab
::
Popen
.
popen
(
%w(tar --version)
)
tar_version
.
force_encoding
(
'locale'
).
split
(
"
\n
"
).
first
tar_version
.
dup
.
force_encoding
(
'locale'
).
split
(
"
\n
"
).
first
end
def
skipped?
(
item
)
...
...
lib/gitlab/access.rb
View file @
c858f70d
# frozen_string_literal: true
# Gitlab::Access module
#
# Define allowed roles that can be used
...
...
lib/gitlab/action_rate_limiter.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# This class implements a simple rate limiter that can be used to throttle
# certain actions. Unlike Rack Attack and Rack::Throttle, which operate at
...
...
lib/gitlab/allowable.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Allowable
def
can?
(
*
args
)
...
...
lib/gitlab/app_logger.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
AppLogger
<
Gitlab
::
Logger
def
self
.
file_name_noext
...
...
lib/gitlab/asciidoc.rb
View file @
c858f70d
# frozen_string_literal: true
require
'asciidoctor'
require
'asciidoctor/converter/html5'
require
"asciidoctor-plantuml"
...
...
lib/gitlab/auth.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Auth
MissingPersonalAccessTokenError
=
Class
.
new
(
StandardError
)
...
...
lib/gitlab/background_migration.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
BackgroundMigration
def
self
.
queue
...
...
lib/gitlab/base_doorkeeper_controller.rb
View file @
c858f70d
# frozen_string_literal: true
# This is a base controller for doorkeeper.
# It adds the `can?` helper used in the views.
module
Gitlab
...
...
lib/gitlab/blame.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Blame
attr_accessor
:blob
,
:commit
...
...
lib/gitlab/blob_helper.rb
View file @
c858f70d
# frozen_string_literal: true
# This has been extracted from https://github.com/github/linguist/blob/master/lib/linguist/blob_helper.rb
module
Gitlab
module
BlobHelper
...
...
lib/gitlab/build_access.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
BuildAccess
<
UserAccess
attr_accessor
:user
,
:project
...
...
lib/gitlab/changes_list.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
ChangesList
include
Enumerable
...
...
lib/gitlab/chat_name_token.rb
View file @
c858f70d
# frozen_string_literal: true
require
'json'
module
Gitlab
...
...
lib/gitlab/ci_access.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# For backwards compatibility, generic CI (which is a build without a user) is
# allowed to :build_download_code without any other checks.
...
...
lib/gitlab/closing_issue_extractor.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
ClosingIssueExtractor
ISSUE_CLOSING_REGEX
=
begin
...
...
lib/gitlab/color_schemes.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# Module containing GitLab's syntax color scheme definitions and helper
# methods for accessing them.
...
...
lib/gitlab/config_helper.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab::ConfigHelper
def
gitlab_config_features
Gitlab
.
config
.
gitlab
.
default_projects_features
...
...
lib/gitlab/contributions_calendar.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
ContributionsCalendar
attr_reader
:contributor
...
...
lib/gitlab/contributor.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Contributor
attr_accessor
:email
,
:name
,
:commits
,
:additions
,
:deletions
...
...
lib/gitlab/cross_project_access.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
CrossProjectAccess
class
<<
self
...
...
lib/gitlab/current_settings.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
CurrentSettings
class
<<
self
...
...
lib/gitlab/daemon.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Daemon
def
self
.
initialize_instance
(
*
args
)
...
...
lib/gitlab/database.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Database
# The max value of INTEGER type is the same between MySQL and PostgreSQL:
...
...
@@ -99,11 +101,11 @@ def self.nulls_last_order(field, direction = 'ASC')
order
=
"
#{
field
}
#{
direction
}
"
if
postgresql?
order
<<
'
NULLS LAST
'
order
=
"
#{
order
}
NULLS LAST
"
else
# `field IS NULL` will be `0` for non-NULL columns and `1` for NULL
# columns. In the (default) ascending order, `0` comes first.
order
.
prepend
(
"
#{
field
}
IS NULL, "
)
if
direction
==
'ASC'
order
=
"
#{
field
}
IS NULL,
#{
order
}
"
if
direction
==
'ASC'
end
order
...
...
@@ -113,11 +115,11 @@ def self.nulls_first_order(field, direction = 'ASC')
order
=
"
#{
field
}
#{
direction
}
"
if
postgresql?
order
<<
'
NULLS FIRST
'
order
=
"
#{
order
}
NULLS FIRST
"
else
# `field IS NULL` will be `0` for non-NULL columns and `1` for NULL
# columns. In the (default) ascending order, `0` comes first.
order
.
prepend
(
"
#{
field
}
IS NULL, "
)
if
direction
==
'DESC'
order
=
"
#{
field
}
IS NULL,
#{
order
}
"
if
direction
==
'DESC'
end
order
...
...
@@ -184,7 +186,7 @@ def self.bulk_insert(table, rows, return_ids: false, disable_quote: [])
EOF
if
return_ids
sql
<<
'
RETURNING id
'
sql
=
"
#{
sql
}
RETURNING id
"
end
result
=
connection
.
execute
(
sql
)
...
...
lib/gitlab/dependency_linker.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
DependencyLinker
LINKERS
=
[
...
...
lib/gitlab/downtime_check.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# Checks if a set of migrations requires downtime or not.
class
DowntimeCheck
...
...
lib/gitlab/ee_compat_check.rb
View file @
c858f70d
# frozen_string_literal: true
# rubocop: disable Rails/Output
module
Gitlab
# Checks if a set of migrations requires downtime or not.
...
...
lib/gitlab/emoji.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Emoji
extend
self
...
...
lib/gitlab/encoding_helper.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
EncodingHelper
extend
self
...
...
lib/gitlab/environment.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Environment
def
self
.
hostname
...
...
lib/gitlab/environment_logger.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
EnvironmentLogger
<
Gitlab
::
Logger
def
self
.
file_name_noext
...
...
lib/gitlab/exclusive_lease.rb
View file @
c858f70d
# frozen_string_literal: true
require
'securerandom'
module
Gitlab
...
...
lib/gitlab/exclusive_lease_helpers.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# This module provides helper methods which are intregrated with GitLab::ExclusiveLease
module
ExclusiveLeaseHelpers
...
...
lib/gitlab/fake_application_settings.rb
View file @
c858f70d
# frozen_string_literal: true
# This class extends an OpenStruct object by adding predicate methods to mimic
# ActiveRecord access. We rely on the initial values being true or false to
# determine whether to define a predicate method because for a newly-added
...
...
lib/gitlab/favicon.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Favicon
class
<<
self
...
...
lib/gitlab/file_detector.rb
View file @
c858f70d
# frozen_string_literal: true
require
'set'
module
Gitlab
...
...
lib/gitlab/file_finder.rb
View file @
c858f70d
# frozen_string_literal: true
# This class finds files in a repository by name and content
# the result is joined and sorted by file name
module
Gitlab
...
...
lib/gitlab/file_markdown_link_builder.rb
View file @
c858f70d
# frozen_string_literal: true
# Builds the markdown link of a file
# It needs the methods filename and secure_url (final destination url) to be defined.
module
Gitlab
...
...
@@ -8,7 +10,7 @@ def markdown_link
return
unless
name
=
markdown_name
markdown
=
"[
#{
name
.
gsub
(
']'
,
'\\]'
)
}
](
#{
secure_url
}
)"
markdown
.
prepend
(
"!"
)
if
image_or_video?
||
dangerous?
markdown
=
"!
#{
markdown
}
"
if
image_or_video?
||
dangerous?
markdown
end
...
...
lib/gitlab/git.rb
View file @
c858f70d
# frozen_string_literal: true
require_dependency
'gitlab/encoding_helper'
module
Gitlab
...
...
lib/gitlab/git_access.rb
View file @
c858f70d
# frozen_string_literal: true
# Check a user's access to perform a git action. All public methods in this
# class return an instance of `GitlabAccessStatus`
module
Gitlab
...
...
lib/gitlab/git_access_wiki.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
GitAccessWiki
<
GitAccess
ERROR_MESSAGES
=
{
...
...
lib/gitlab/git_logger.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
GitLogger
<
Gitlab
::
Logger
def
self
.
file_name_noext
...
...
lib/gitlab/git_ref_validator.rb
View file @
c858f70d
# frozen_string_literal: true
# Gitaly note: JV: does not need to be migrated, works without a repo.
module
Gitlab
...
...
lib/gitlab/gitaly_client.rb
View file @
c858f70d
# frozen_string_literal: true
require
'base64'
require
'gitaly'
...
...
@@ -23,7 +25,7 @@ def initialize(call_site, invocation_count, max_call_stack, most_invoked_stack)
stacks
=
most_invoked_stack
.
join
(
'\n'
)
if
most_invoked_stack
msg
=
"GitalyClient#
#{
call_site
}
called
#{
invocation_count
}
times from single request. Potential n+1?"
msg
<<
"
\n
The following call site called into Gitaly
#{
max_call_stack
}
times:
\n
#{
stacks
}
\n
"
if
stacks
msg
=
"
#{
msg
}
\n
The following call site called into Gitaly
#{
max_call_stack
}
times:
\n
#{
stacks
}
\n
"
if
stacks
super
(
msg
)
end
...
...
lib/gitlab/github_import.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
GithubImport
def
self
.
refmap
...
...
lib/gitlab/gl_id.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
GlId
def
self
.
gl_id
(
user
)
...
...
lib/gitlab/gl_repository.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
GlRepository
def
self
.
gl_repository
(
project
,
is_wiki
)
...
...
lib/gitlab/gon_helper.rb
View file @
c858f70d
# frozen_string_literal: true
# rubocop:disable Metrics/AbcSize
module
Gitlab
...
...
lib/gitlab/gpg.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Gpg
extend
self
...
...
lib/gitlab/graphql.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
Graphql
StandardGraphqlError
=
Class
.
new
(
StandardError
)
...
...
lib/gitlab/group_hierarchy.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# Retrieving of parent or child groups based on a base ActiveRecord relation.
#
...
...
lib/gitlab/highlight.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Highlight
TIMEOUT_BACKGROUND
=
30
.
seconds
...
...
lib/gitlab/http.rb
View file @
c858f70d
# frozen_string_literal: true
# This class is used as a proxy for all outbounding http connection
# coming from callbacks, services and hooks. The direct use of the HTTParty
# is discouraged because it can lead to several security problems, like SSRF
...
...
lib/gitlab/http_io.rb
View file @
c858f70d
# frozen_string_literal: true
##
# This class is compatible with IO class (https://ruby-doc.org/core-2.3.1/IO.html)
# source: https://gitlab.com/snippets/1685610
...
...
@@ -73,8 +75,8 @@ def each_line
end
end
def
read
(
length
=
nil
,
outbuf
=
""
)
out
=
""
def
read
(
length
=
nil
,
outbuf
=
nil
)
out
=
[]
length
||=
size
-
tell
...
...
@@ -90,17 +92,18 @@ def read(length = nil, outbuf = "")
length
-=
chunk_data
.
bytesize
end
out
=
out
.
join
# If outbuf is passed, we put the output into the buffer. This supports IO.copy_stream functionality
if
outbuf
outbuf
.
slice!
(
0
,
outbuf
.
bytesize
)
outbuf
<<
out
outbuf
.
replace
(
out
)
end
out
end
def
readline
out
=
""
out
=
[]
until
eof?
data
=
get_chunk
...
...
@@ -116,7 +119,7 @@ def readline
end
end
out
out
.
join
end
def
write
(
data
)
...
...
lib/gitlab/i18n.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
I18n
extend
self
...
...
lib/gitlab/identifier.rb
View file @
c858f70d
# frozen_string_literal: true
# Detect user based on identifier like
# key-13 or user-36 or last commit
module
Gitlab
...
...
lib/gitlab/import_export.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
ImportExport
extend
self
...
...
lib/gitlab/import_formatter.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
ImportFormatter
def
comment
(
author
,
date
,
body
)
...
...
lib/gitlab/import_sources.rb
View file @
c858f70d
# frozen_string_literal: true
# Gitlab::ImportSources module
#
# Define import sources that can be used
...
...
lib/gitlab/incoming_email.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
IncomingEmail
UNSUBSCRIBE_SUFFIX
=
'+unsubscribe'
.
freeze
...
...
lib/gitlab/insecure_key_fingerprint.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
#
# Calculates the fingerprint of a given key without using
...
...
lib/gitlab/issuable_metadata.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
IssuableMetadata
def
issuable_meta_data
(
issuable_collection
,
collection_type
)
...
...
lib/gitlab/issuable_sorter.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
IssuableSorter
class
<<
self
...
...
lib/gitlab/issuables_count_for_state.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# Class for counting and caching the number of issuables per state.
class
IssuablesCountForState
...
...
lib/gitlab/issues_labels.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
IssuesLabels
class
<<
self
...
...
lib/gitlab/job_waiter.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# JobWaiter can be used to wait for a number of Sidekiq jobs to complete.
#
...
...
lib/gitlab/json_logger.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
JsonLogger
<
::
Gitlab
::
Logger
def
self
.
file_name_noext
...
...
lib/gitlab/kubernetes.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# Helper methods to do with Kubernetes network services & resources
module
Kubernetes
...
...
lib/gitlab/language_detection.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
LanguageDetection
MAX_LANGUAGES
=
5
...
...
lib/gitlab/lazy.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
# A class that can be wrapped around an expensive method call so it's only
# executed when actually needed.
...
...
lib/gitlab/lfs_token.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
LfsToken
attr_accessor
:actor
...
...
lib/gitlab/logger.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
class
Logger
<
::
Logger
def
self
.
file_name
...
...
lib/gitlab/mail_room.rb
View file @
c858f70d
# frozen_string_literal: true
require
'yaml'
require
'json'
require_relative
'redis/queues'
unless
defined?
(
Gitlab
::
Redis
::
Queues
)
...
...
lib/gitlab/markup_helper.rb
View file @
c858f70d
# frozen_string_literal: true
module
Gitlab
module
MarkupHelper
extend
self
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment