Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fffc4b4a
Commit
fffc4b4a
authored
Apr 28, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
Apr 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move prepend to the last line in lib/gitlab - 3
parent
0a49a02f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
10 deletions
+17
-10
changelogs/unreleased/lib-gitlab-refactoring-3.yml
changelogs/unreleased/lib-gitlab-refactoring-3.yml
+5
-0
lib/gitlab/auth/saml/config.rb
lib/gitlab/auth/saml/config.rb
+2
-2
lib/gitlab/auth/saml/user.rb
lib/gitlab/auth/saml/user.rb
+2
-2
lib/gitlab/checks/base_checker.rb
lib/gitlab/checks/base_checker.rb
+2
-1
lib/gitlab/checks/change_access.rb
lib/gitlab/checks/change_access.rb
+2
-2
lib/gitlab/checks/diff_check.rb
lib/gitlab/checks/diff_check.rb
+2
-1
lib/gitlab/ci/parsers.rb
lib/gitlab/ci/parsers.rb
+2
-2
No files found.
changelogs/unreleased/lib-gitlab-refactoring-3.yml
0 → 100644
View file @
fffc4b4a
---
title
:
Move prepend to last line in lib/gitlab files
merge_request
:
30194
author
:
Rajendra Kadam
type
:
fixed
lib/gitlab/auth/saml/config.rb
View file @
fffc4b4a
...
...
@@ -4,8 +4,6 @@ module Gitlab
module
Auth
module
Saml
class
Config
prepend_if_ee
(
'::EE::Gitlab::Auth::Saml::Config'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
class
<<
self
def
options
Gitlab
::
Auth
::
OAuth
::
Provider
.
config_for
(
'saml'
)
...
...
@@ -31,3 +29,5 @@ module Gitlab
end
end
end
Gitlab
::
Auth
::
Saml
::
Config
.
prepend_if_ee
(
'::EE::Gitlab::Auth::Saml::Config'
)
lib/gitlab/auth/saml/user.rb
View file @
fffc4b4a
...
...
@@ -9,8 +9,6 @@ module Gitlab
module
Auth
module
Saml
class
User
<
Gitlab
::
Auth
::
OAuth
::
User
prepend_if_ee
(
'::EE::Gitlab::Auth::Saml::User'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
extend
::
Gitlab
::
Utils
::
Override
def
save
...
...
@@ -63,3 +61,5 @@ module Gitlab
end
end
end
Gitlab
::
Auth
::
Saml
::
User
.
prepend_if_ee
(
'::EE::Gitlab::Auth::Saml::User'
)
lib/gitlab/checks/base_checker.rb
View file @
fffc4b4a
...
...
@@ -3,7 +3,6 @@
module
Gitlab
module
Checks
class
BaseChecker
prepend_if_ee
(
'EE::Gitlab::Checks::BaseChecker'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
include
Gitlab
::
Utils
::
StrongMemoize
attr_reader
:change_access
...
...
@@ -57,3 +56,5 @@ module Gitlab
end
end
end
Gitlab
::
Checks
::
BaseChecker
.
prepend_if_ee
(
'EE::Gitlab::Checks::BaseChecker'
)
lib/gitlab/checks/change_access.rb
View file @
fffc4b4a
...
...
@@ -3,8 +3,6 @@
module
Gitlab
module
Checks
class
ChangeAccess
prepend_if_ee
(
'EE::Gitlab::Checks::ChangeAccess'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
ATTRIBUTES
=
%i[user_access project skip_authorization
skip_lfs_integrity_check protocol oldrev newrev ref
branch_name tag_name logger commits]
.
freeze
...
...
@@ -55,3 +53,5 @@ module Gitlab
end
end
end
Gitlab
::
Checks
::
ChangeAccess
.
prepend_if_ee
(
'EE::Gitlab::Checks::ChangeAccess'
)
lib/gitlab/checks/diff_check.rb
View file @
fffc4b4a
...
...
@@ -4,7 +4,6 @@ module Gitlab
module
Checks
class
DiffCheck
<
BaseChecker
include
Gitlab
::
Utils
::
StrongMemoize
prepend_if_ee
(
'EE::Gitlab::Checks::DiffCheck'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
LOG_MESSAGES
=
{
validate_file_paths:
"Validating diffs' file paths..."
,
...
...
@@ -97,3 +96,5 @@ module Gitlab
end
end
end
Gitlab
::
Checks
::
DiffCheck
.
prepend_if_ee
(
'EE::Gitlab::Checks::DiffCheck'
)
lib/gitlab/ci/parsers.rb
View file @
fffc4b4a
...
...
@@ -3,8 +3,6 @@
module
Gitlab
module
Ci
module
Parsers
prepend_if_ee
(
'::EE::Gitlab::Ci::Parsers'
)
# rubocop: disable Cop/InjectEnterpriseEditionModule
ParserNotFoundError
=
Class
.
new
(
ParserError
)
def
self
.
parsers
...
...
@@ -23,3 +21,5 @@ module Gitlab
end
end
end
Gitlab
::
Ci
::
Parsers
.
prepend_if_ee
(
'::EE::Gitlab::Ci::Parsers'
)
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