Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 18:09:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-26 18:09:04 +0300
commitee24c7d68f57a67754a5d1e2ea99f688029d14bd (patch)
tree8391744a26dd3f77c4bb1bbb55672ba0e066d969 /vendor
parenta1c0b634f78f51389fd3ec390a1803afa3de49a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'vendor')
-rw-r--r--vendor/gems/gitlab_active_record/.gitignore11
-rw-r--r--vendor/gems/gitlab_active_record/.gitlab-ci.yml28
-rw-r--r--vendor/gems/gitlab_active_record/.rspec3
-rw-r--r--vendor/gems/gitlab_active_record/Gemfile6
-rw-r--r--vendor/gems/gitlab_active_record/Gemfile.lock54
-rw-r--r--vendor/gems/gitlab_active_record/LICENSE7
-rw-r--r--vendor/gems/gitlab_active_record/Rakefile8
-rwxr-xr-xvendor/gems/gitlab_active_record/bin/console15
-rwxr-xr-xvendor/gems/gitlab_active_record/bin/setup8
-rw-r--r--vendor/gems/gitlab_active_record/gitlab_active_record.gemspec29
-rw-r--r--vendor/gems/gitlab_active_record/lib/gitlab_active_record.rb7
-rw-r--r--vendor/gems/gitlab_active_record/lib/gitlab_active_record/version.rb5
-rw-r--r--vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb7
-rw-r--r--vendor/gems/gitlab_active_record/spec/spec_helper.rb15
14 files changed, 203 insertions, 0 deletions
diff --git a/vendor/gems/gitlab_active_record/.gitignore b/vendor/gems/gitlab_active_record/.gitignore
new file mode 100644
index 00000000000..b04a8c840df
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/.gitignore
@@ -0,0 +1,11 @@
+/.bundle/
+/.yardoc
+/_yardoc/
+/coverage/
+/doc/
+/pkg/
+/spec/reports/
+/tmp/
+
+# rspec failure tracking
+.rspec_status
diff --git a/vendor/gems/gitlab_active_record/.gitlab-ci.yml b/vendor/gems/gitlab_active_record/.gitlab-ci.yml
new file mode 100644
index 00000000000..a1e883119e8
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+workflow:
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+
+.rspec:
+ cache:
+ key: gitlab_active_record-ruby
+ paths:
+ - vendor/gems/gitlab_active_record/vendor/ruby
+ before_script:
+ - cd vendor/gems/gitlab_active_record
+ - ruby -v # Print out ruby version for debugging
+ - gem install bundler --no-document # Bundler is not installed with the image
+ - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
+ - bundle config set with 'development'
+ - bundle config set --local frozen 'true' # Disallow Gemfile.lock changes on CI
+ - bundle config # Show bundler configuration
+ - bundle install -j $(nproc)
+ script:
+ - bundle exec rspec
+
+rspec-2.7:
+ image: "ruby:2.7"
+ extends: .rspec
+
+rspec-3.0:
+ image: "ruby:3.0"
+ extends: .rspec
diff --git a/vendor/gems/gitlab_active_record/.rspec b/vendor/gems/gitlab_active_record/.rspec
new file mode 100644
index 00000000000..34c5164d9b5
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/.rspec
@@ -0,0 +1,3 @@
+--format documentation
+--color
+--require spec_helper
diff --git a/vendor/gems/gitlab_active_record/Gemfile b/vendor/gems/gitlab_active_record/Gemfile
new file mode 100644
index 00000000000..e694fe26c66
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/Gemfile
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+# Specify your gem's dependencies in gitlab_active_record.gemspec
+gemspec
diff --git a/vendor/gems/gitlab_active_record/Gemfile.lock b/vendor/gems/gitlab_active_record/Gemfile.lock
new file mode 100644
index 00000000000..93aecbc7276
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/Gemfile.lock
@@ -0,0 +1,54 @@
+PATH
+ remote: .
+ specs:
+ gitlab_active_record (0.1.0)
+ activerecord (~> 6.1)
+ activesupport (~> 6.1)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ activemodel (6.1.7)
+ activesupport (= 6.1.7)
+ activerecord (6.1.7)
+ activemodel (= 6.1.7)
+ activesupport (= 6.1.7)
+ activesupport (6.1.7)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (>= 1.6, < 2)
+ minitest (>= 5.1)
+ tzinfo (~> 2.0)
+ zeitwerk (~> 2.3)
+ concurrent-ruby (1.1.10)
+ diff-lcs (1.5.0)
+ i18n (1.12.0)
+ concurrent-ruby (~> 1.0)
+ minitest (5.16.3)
+ rake (13.0.6)
+ rspec (3.11.0)
+ rspec-core (~> 3.11.0)
+ rspec-expectations (~> 3.11.0)
+ rspec-mocks (~> 3.11.0)
+ rspec-core (3.11.0)
+ rspec-support (~> 3.11.0)
+ rspec-expectations (3.11.0)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-mocks (3.11.0)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-support (3.11.0)
+ tzinfo (2.0.5)
+ concurrent-ruby (~> 1.0)
+ zeitwerk (2.6.6)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ gitlab_active_record!
+ rake (~> 13.0)
+ rspec (~> 3.0)
+
+BUNDLED WITH
+ 2.3.26
diff --git a/vendor/gems/gitlab_active_record/LICENSE b/vendor/gems/gitlab_active_record/LICENSE
new file mode 100644
index 00000000000..aafb7f79450
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2022 GitLab B.V.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/gems/gitlab_active_record/Rakefile b/vendor/gems/gitlab_active_record/Rakefile
new file mode 100644
index 00000000000..b6ae734104e
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/Rakefile
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+require "bundler/gem_tasks"
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:spec)
+
+task default: :spec
diff --git a/vendor/gems/gitlab_active_record/bin/console b/vendor/gems/gitlab_active_record/bin/console
new file mode 100755
index 00000000000..a436c04dd66
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/bin/console
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+require "bundler/setup"
+require "gitlab_active_record"
+
+# You can add fixtures and/or initialization code here to make experimenting
+# with your gem easier. You can also use a different console, if you like.
+
+# (If you use this, don't forget to add pry to your Gemfile!)
+# require "pry"
+# Pry.start
+
+require "irb"
+IRB.start(__FILE__)
diff --git a/vendor/gems/gitlab_active_record/bin/setup b/vendor/gems/gitlab_active_record/bin/setup
new file mode 100755
index 00000000000..dce67d860af
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/bin/setup
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -euo pipefail
+IFS=$'\n\t'
+set -vx
+
+bundle install
+
+# Do any other automated setup that you need to do here
diff --git a/vendor/gems/gitlab_active_record/gitlab_active_record.gemspec b/vendor/gems/gitlab_active_record/gitlab_active_record.gemspec
new file mode 100644
index 00000000000..17e7d8f40d6
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/gitlab_active_record.gemspec
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+require_relative "lib/gitlab_active_record/version"
+
+Gem::Specification.new do |spec|
+ spec.name = "gitlab_active_record"
+ spec.version = GitlabActiveRecord::VERSION
+ spec.authors = ["GitLab"]
+ spec.email = [""]
+
+ spec.summary = "ActiveRecord patches for CI partitioning"
+ spec.description = "ActiveRecord patches for CI partitioning"
+ spec.homepage = "https://gitlab.com/gitlab-org/gitlab"
+ spec.required_ruby_version = ">= 2.6.0"
+
+ spec.metadata["homepage_uri"] = spec.homepage
+ spec.metadata["source_code_uri"] = "https://gitlab.com/gitlab-org/gitlab"
+
+ spec.files = Dir.glob("lib/**/*")
+ spec.bindir = "exe"
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+
+ spec.add_dependency 'activerecord', '~> 6.1'
+ spec.add_dependency 'activesupport', '~> 6.1'
+
+ spec.add_development_dependency 'rake', '~> 13.0'
+ spec.add_development_dependency 'rspec', '~> 3.0'
+end
diff --git a/vendor/gems/gitlab_active_record/lib/gitlab_active_record.rb b/vendor/gems/gitlab_active_record/lib/gitlab_active_record.rb
new file mode 100644
index 00000000000..2ac8c71939f
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/lib/gitlab_active_record.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+require_relative "gitlab_active_record/version"
+
+module GitlabActiveRecord
+ class Error < StandardError; end
+end
diff --git a/vendor/gems/gitlab_active_record/lib/gitlab_active_record/version.rb b/vendor/gems/gitlab_active_record/lib/gitlab_active_record/version.rb
new file mode 100644
index 00000000000..d274361efd7
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/lib/gitlab_active_record/version.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+module GitlabActiveRecord
+ VERSION = "0.1.0"
+end
diff --git a/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb b/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb
new file mode 100644
index 00000000000..d9263a08dfd
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+RSpec.describe GitlabActiveRecord do
+ it "has a version number" do
+ expect(GitlabActiveRecord::VERSION).not_to be nil
+ end
+end
diff --git a/vendor/gems/gitlab_active_record/spec/spec_helper.rb b/vendor/gems/gitlab_active_record/spec/spec_helper.rb
new file mode 100644
index 00000000000..3cfabb45b1a
--- /dev/null
+++ b/vendor/gems/gitlab_active_record/spec/spec_helper.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require "gitlab_active_record"
+
+RSpec.configure do |config|
+ # Enable flags like --only-failures and --next-failure
+ config.example_status_persistence_file_path = ".rspec_status"
+
+ # Disable RSpec exposing methods globally on `Module` and `main`
+ config.disable_monkey_patching!
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end