summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-1/+5
|
* Avoid calling freeze on already frozen strings in libDinesh Panda2019-09-101-2/+2
|
* Rename dev, org, com helperDoug Stull2019-08-281-1/+1
|
* Backport EE changes made to the scripts/ directoryresolve-scripts-differencesYorick Peterse2019-07-291-2/+2
| | | | | | This backport changes made by EE to the files in the scripts/ directory. This comes with a few changes to some scripts to make them work in the single codebase setup.
* Add Gitlab.ee methodRobert Speicher2019-06-261-0/+4
| | | | This method yields to the given block when the installation is EE.
* Backport gitlab.yml.example from EEconfig-yaml-differencesYorick Peterse2019-06-201-6/+10
| | | | | | | | To make this happen, we need to conditionally add the group_saml strategy when running tests, but only on EE. This requires some changes to Gitlab.ee? so that it can be used before/without loading the Rails environment. We also have to change how we require a few files, so this can run outside of Rails.
* Add DNS rebinding protection settingsOswaldo Ferreira2019-05-301-0/+5
|
* Merge branch 'winh-separate-frontend-fixtures' into 'master'Phil Hughes2019-05-071-1/+5
|\ | | | | | | | | Generate EE-specific JavaScript fixtures into ee/ directory (CE-backport) See merge request gitlab-org/gitlab-ce!28032
| * Allow to override Gitlab.ee? with IS_GITLAB_EEWinnie Hellmann2019-05-021-1/+5
| | | | | | | | (cherry picked from commit f3b74d59865a88be67663339447667c725961413)
* | Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-051-2/+2
|/
* Use a fixed git abbrev parameter when we fetch a git revision10735-geo-gitlab-revision-can-return-not-consistent-resultsValery Sizov2019-03-281-1/+1
|
* Creates a function to check if repo is EEFilipa Lacerda2019-03-041-0/+4
| | | | | Adds EE information to gon Creates a global vue mixin
* Revert the "What's new" featureBrandon Labuschagne2019-01-291-40/+8
|
* Extract process_name from GitLab::SentryAndrew Newdigate2019-01-161-0/+8
| | | | | | | | GitLab::Sentry has a program_context method to determine whether a Sentry exception occurred in Sidekiq or rails. Since we will need similar functionality for distributed tracing, this change extracts the program_context method into GitLab.process_name for more general consumption.
* Resolve "Add "What's new" menu item in top navigation"Brandon Labuschagne2019-01-141-8/+40
|
* Improve variables supportimprove-variables-supportKamil Trzciński2018-11-191-0/+4
| | | | | | This ensures that variables accept only string, alongside also improves kubernetes_namespace, improving validation and default value being set.
* Enable more frozen string in lib/**/*.rbgfyoung2018-10-061-0/+2
| | | | | | | | | | | | | Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
* Show the commit-sha for pre-release versionsBob Van Landuyt2018-10-021-0/+4
| | | | | | | | | The pre-release tags are set at the beginning of a release, so it would be impossible to figure out which version was running if we're running nightlies. In that case it's better to still link to the SHA. These versions don't get deployed to .com.
* Stop relying on migrations in the CacheableAttributes cache key and cache ↵Rémy Coutable2018-07-051-4/+0
| | | | | | attributes for 1 minute instead Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add installation type to usage ping dataBalasankar C2018-06-071-0/+1
|
* Replace Gitlab::REVISION with Gitlab.revision and handle installations ↵46600-fix-gitlab-revision-when-not-in-git-repoRémy Coutable2018-05-241-1/+16
| | | | | | without a .git directory Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce a new CacheableAttributes concernRémy Coutable2018-05-231-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'osw-backport-dev-env-check-for-storage-settings-deprecation' ↵Rémy Coutable2018-04-251-1/+1
|\ | | | | | | | | | | | | into 'master' Backport dev env check for storage settings deprecation See merge request gitlab-org/gitlab-ce!18461
| * Backport dev env check for storage settings deprecationOswaldo Ferreira2018-04-241-1/+1
| |
* | Do not preload settingsKamil Trzciński2018-04-241-1/+0
|/
* Get rid of config/initializers/2_app.rb and define Gitlab in lib/gitlab.rbRémy Coutable2018-04-231-1/+7
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Address latest feedbackRémy Coutable2018-04-231-4/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Move Settings to its own file, isolate it from Rails and introduce Gitlab.rootRémy Coutable2018-04-231-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add .org? method to Gitlab helperOswaldo Ferreira2018-04-171-1/+5
| | | | dev_env_or_com? now considers dev.gitlab.org
* Backport GitLab domain helper methodsOswaldo Ferreira2018-04-131-10/+7
|
* Deprecate legacy disk pathsZeger-Jan van de Weg2018-04-121-0/+8
| | | | | | | | | | | Direct disk access is impossible on environments where components run in their own container. There for constructing the path should not be done except for exceptional cases. One of the considerations, instead of logging, was to use Sentry. For now I've chosen not to use this as the impact of this change is hard to determine. Getting this in now will allow us to checkout the impact on dev.gitlab.org and staging.
* Include the ee/ directory in backtracesallow-ee-in-backtracesSean McGivern2018-03-121-0/+1
|
* Make the revision on the `/help` page clickabletc-link-to-commit-on-help-pageToon Claes2017-06-091-1/+3
| | | | | For quicker access, add hyperlink to the gitlab.com commits page for the current REVISION of GitLab.
* Update `Gitlab.com?` to support stagingrs-gitalb-com-stagingRobert Speicher2016-06-271-1/+6
|
* Fix a few places where autoloading would failRémy Coutable2016-05-101-1/+1
| | | | | | | | | | | - Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add `Gitlab.com?` methodrs-gitlab-com-checkRobert Speicher2016-04-121-0/+3
| | | | | | | | | | To be used as a feature flag for GitLab.com-only features, such as welcome emails. We will be careful to only use this to disable features or functionality that do not make sense for any installations that aren't GitLab.com. We will not use this to restrict features from other installations or keep them "exclusive" to GitLab.com.
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-1/+0
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-0/+1
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix application initializeDmitriy Zaporozhets2015-07-151-0/+4
|
* Remove satellitesDmitriy Zaporozhets2015-07-151-5/+0
|
* Add lib/gitlab.rb to autoload non-conventional pathsRobert Speicher2015-04-091-0/+5