Commit 291def85 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Address gitlab.rb and gitlab_spec.rb conflicts

parent 351a563c
...@@ -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{\Ahttps://[a-z0-9]+\.gitlab\.com\z} SUBDOMAIN_REGEX = %r{\Ahttps://[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
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment