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
291def85
Commit
291def85
authored
Apr 16, 2018
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address gitlab.rb and gitlab_spec.rb conflicts
parent
351a563c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
lib/gitlab.rb
lib/gitlab.rb
+0
-18
spec/lib/gitlab_spec.rb
spec/lib/gitlab_spec.rb
+0
-3
No files found.
lib/gitlab.rb
View file @
291def85
...
@@ -4,11 +4,8 @@ module Gitlab
...
@@ -4,11 +4,8 @@ module Gitlab
COM_URL
=
'https://gitlab.com'
.
freeze
COM_URL
=
'https://gitlab.com'
.
freeze
APP_DIRS_PATTERN
=
%r{^/?(app|config|ee|lib|spec|
\(\w
*
\)
)}
APP_DIRS_PATTERN
=
%r{^/?(app|config|ee|lib|spec|
\(\w
*
\)
)}
SUBDOMAIN_REGEX
=
%r{
\A
https://[a-z0-9]+
\.
gitlab
\.
com
\z
}
SUBDOMAIN_REGEX
=
%r{
\A
https://[a-z0-9]+
\.
gitlab
\.
com
\z
}
<<<<<<<
HEAD
SUBSCRIPTIONS_URL
=
'https://customers.gitlab.com'
.
freeze
SUBSCRIPTIONS_URL
=
'https://customers.gitlab.com'
.
freeze
SUBSCRIPTIONS_PLANS_URL
=
"
#{
SUBSCRIPTIONS_URL
}
/plans"
.
freeze
SUBSCRIPTIONS_PLANS_URL
=
"
#{
SUBSCRIPTIONS_URL
}
/plans"
.
freeze
=======
>>>>>>>
upstream
/
master
def
self
.
com?
def
self
.
com?
# Check `gl_subdomain?` as well to keep parity with gitlab.com
# Check `gl_subdomain?` as well to keep parity with gitlab.com
...
@@ -17,24 +14,9 @@ module Gitlab
...
@@ -17,24 +14,9 @@ module Gitlab
def
self
.
gl_subdomain?
def
self
.
gl_subdomain?
SUBDOMAIN_REGEX
===
Gitlab
.
config
.
gitlab
.
url
SUBDOMAIN_REGEX
===
Gitlab
.
config
.
gitlab
.
url
<<<<<<<
HEAD
end
end
def
self
.
dev_env_or_com?
def
self
.
dev_env_or_com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
com?
end
end
def
self
.
dev?
Gitlab
.
config
.
gitlab
.
url
==
'https://dev.gitlab.org'
end
def
self
.
inc_controlled?
dev?
||
com?
=======
end
def
self
.
dev_env_or_com?
Rails
.
env
.
test?
||
Rails
.
env
.
development?
||
com?
>>>>>>>
upstream
/
master
end
end
end
spec/lib/gitlab_spec.rb
View file @
291def85
...
@@ -16,11 +16,8 @@ describe Gitlab do
...
@@ -16,11 +16,8 @@ describe Gitlab do
it
'is true when on other gitlab subdomain'
do
it
'is true when on other gitlab subdomain'
do
stub_config_setting
(
url:
'https://example.gitlab.com'
)
stub_config_setting
(
url:
'https://example.gitlab.com'
)
<<<<<<<
HEAD
=======
expect
(
described_class
.
com?
).
to
eq
true
expect
(
described_class
.
com?
).
to
eq
true
>>>>>>>
upstream
/
master
end
end
it
'is false when not on GitLab.com'
do
it
'is false when not on GitLab.com'
do
...
...
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