Skip to content
代码片段 群组 项目
Gemfile 15.1 KB
更新 更旧
# frozen_string_literal: true

gitlabhq's avatar
gitlabhq 已提交

if ENV['BUNDLER_CHECKSUM_VERIFICATION_OPT_IN'] # this verification is still experimental
  $LOAD_PATH.unshift(File.expand_path("vendor/gems/bundler-checksum/lib", __dir__))
  require 'bundler-checksum'
  Bundler::Checksum.patch!
end

Thong Kuah's avatar
Thong Kuah 已提交
gem 'bundler-checksum', '~> 0.1.0', path: 'vendor/gems/bundler-checksum', require: false
# NOTE: When incrementing the major or minor version here, also increment activerecord_version
# in vendor/gems/attr_encrypted/attr_encrypted.gemspec until we resolve
# https://gitlab.com/gitlab-org/gitlab/-/issues/375713
Stan Hu's avatar
Stan Hu 已提交
gem 'rails', '~> 6.1.6.1'
gem 'bootsnap', '~> 1.13.0', require: false
# Pin openssl to match the version bundled with our supported Rubies.
# See https://stdgems.org/openssl/#gem-version.
gem 'openssl', '2.2.1'
# This gem was originally bundled with Ruby 2.7, but is unbundled as of Ruby 3.
# Since the latest version caused problems with GitLab, we pin this to an older
# version for now.
# See https://gitlab.com/gitlab-org/gitlab/-/issues/376417
gem 'ipaddr', '1.2.2'

Valery Sizov's avatar
Valery Sizov 已提交
# Responders respond_to and respond_with
Heinrich Lee Yu's avatar
Heinrich Lee Yu 已提交
gem 'responders', '~> 3.0'
ubudzisz's avatar
ubudzisz 已提交
gem 'sprockets', '~> 3.7.0'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets 已提交
# Default values for AR models
# Supported DBs
gem 'pg', '~> 1.4.3'
Stan Hu's avatar
Stan Hu 已提交
gem 'rugged', '~> 1.2'
gem 'faraday', '~> 1.0'
gem 'marginalia', '~> 1.11.1'
# Authorization
karen Carias's avatar
karen Carias 已提交
# Authentication libraries
Heinrich Lee Yu's avatar
Heinrich Lee Yu 已提交
gem 'devise', '~> 4.8.1'
gem 'devise-pbkdf2-encryptable', '~> 0.0.0', path: 'vendor/gems/devise-pbkdf2-encryptable'
gem 'bcrypt', '~> 3.1', '>= 3.1.14'
gem 'doorkeeper', '~> 5.5.0.rc2'
gem 'doorkeeper-openid_connect', '~> 1.7.5'
gem 'rexml', '~> 3.2.5'
gem 'ruby-saml', '~> 1.13.0'
Jessie Young's avatar
Jessie Young 已提交
gem 'omniauth', '~> 2.1.0'
gem 'omniauth-azure-oauth2', '~> 0.0.9', path: 'vendor/gems/omniauth-azure-oauth2' # See gem README.md
Jessie Young's avatar
Jessie Young 已提交
gem 'omniauth-cas3', '~> 1.1.4', path: 'vendor/gems/omniauth-cas3' # See vendor/gems/omniauth-cas3/README.md
gem 'omniauth-facebook', '~> 4.0.0'
gem 'omniauth-gitlab', '~> 4.0.0', path: 'vendor/gems/omniauth-gitlab' # See vendor/gems/omniauth-gitlab/README.md
Jessie Young's avatar
Jessie Young 已提交
gem 'omniauth-saml', '~> 2.0.0'
Jessie Young's avatar
Jessie Young 已提交
gem 'omniauth_crowd', '~> 2.4.0', path: 'vendor/gems/omniauth_crowd' # See vendor/gems/omniauth_crowd/README.md
Jessie Young's avatar
Jessie Young 已提交
gem 'gitlab-omniauth-openid-connect', '~> 0.10.0', require: 'omniauth_openid_connect'
gem 'omniauth-salesforce', '~> 1.0.5', path: 'vendor/gems/omniauth-salesforce' # See gem README.md
Nick Thomas's avatar
Nick Thomas 已提交

# Kerberos authentication. EE-only
gem 'gssapi', group: :kerberos
gem 'timfel-krb5-auth', '~> 0.8', group: :kerberos
# Spam and anti-bot protection
gem 'recaptcha', '~> 4.11', require: 'recaptcha/rails'
Stan Hu's avatar
Stan Hu 已提交
gem 'akismet', '~> 3.0'
# Two-factor authentication
gem 'rqrcode-rails3', '~> 0.1.7'
gem 'attr_encrypted', '~> 3.2.4', path: 'vendor/gems/attr_encrypted'
gem 'u2f', '~> 0.2.1'
# GitLab Pages
gem 'validates_hostname', '~> 1.0.11'
Stan Hu's avatar
Stan Hu 已提交
gem 'rubyzip', '~> 2.3.2', require: 'zip'
# GitLab Pages letsencrypt support
gem 'browser', '~> 4.2'
# OS detection for usage ping
gem 'ohai', '~> 16.10'

Utkarsh Gupta's avatar
Utkarsh Gupta 已提交
gem 'gpgme', '~> 2.0.19'
Yorick Peterse's avatar
Yorick Peterse 已提交
# GitLab fork with several improvements to original library. For full list of changes
# see https://github.com/intridea/omniauth-ldap/compare/master...gitlabhq:master
gem 'gitlab_omniauth-ldap', '~> 2.2.0', require: 'omniauth-ldap'
gem 'net-ldap', '~> 0.16.3'
Igor Drozdov's avatar
Igor Drozdov 已提交
gem 'grape', '~> 1.5.2'
gem 'grape-entity', '~> 0.10.0'
gem 'rack-cors', '~> 1.1.1', require: 'rack/cors'
gem 'grape-swagger', '~>1.5.0', group: [:development, :test]
gem 'grape-swagger-entity', '~> 0.5.1', group: [:development, :test]
Nick Thomas's avatar
Nick Thomas 已提交
# GraphQL API
gem 'graphql', '~> 1.13.12'
gem 'graphql-docs', '~> 2.1.0', group: [:development, :test]
gem 'graphlient', '~> 0.5.0' # Used by BulkImport feature (group::import)
gem 'hashie', '~> 5.0.0'
# Disable strong_params so that Mash does not respond to :permitted?
gem 'hashie-forbidden_attributes'

# Pagination
gem 'kaminari', '~> 1.2.2'
Igor Drozdov's avatar
Igor Drozdov 已提交
gem 'hamlit', '~> 2.15.0'

# Files attachments
gem 'mini_magick', '~> 4.10.1'
# for backups
gem 'fog-aws', '~> 3.14'
# Locked until fog-google resolves https://github.com/fog/fog-google/issues/421.
# Also see config/initializers/fog_core_patch.rb.
gem 'fog-core', '= 2.1.0'
gem 'fog-google', '~> 1.15', require: 'fog/google'
gem 'gitlab-fog-azure-rm', '~> 1.3.0', require: 'fog/azurerm'
# for Google storage
# for aws storage
bogdanvlviv's avatar
bogdanvlviv 已提交
gem 'unf', '~> 0.1.4'

# Seed data
gem 'elasticsearch-model', '~> 7.2'
gem 'elasticsearch-rails', '~> 7.2', require: 'elasticsearch/rails/instrumentation'
gem 'elasticsearch-api',   '7.13.3'
gem 'typhoeus', '~> 1.4.0' # Used with Elasticsearch to support http keep-alive connections
Robert Speicher's avatar
Robert Speicher 已提交
# Markdown and HTML processing
gem 'gitlab-markup', '~> 1.8.0'
gem 'github-markup', '~> 1.7.0', require: 'github/markup'
gem 'RedCloth', '~> 4.3.2'
gem 'rdoc', '~> 6.3.2'
gem 'org-ruby', '~> 0.9.12'
gem 'creole', '~> 0.5.0'
gem 'wikicloth', '0.8.1'
gem 'asciidoctor-include-ext', '~> 0.4.0', require: false
gem 'asciidoctor-kroki', '~> 0.5.0', require: false
gem 'truncato', '~> 0.7.12'
gem 'bootstrap_form', '~> 4.2.0'
skv-headless's avatar
skv-headless 已提交
# Diffs
Stan Hu's avatar
Stan Hu 已提交
gem 'diffy', '~> 3.4'
skv-headless's avatar
skv-headless 已提交

gem 'rack', '~> 2.2.4'
# https://github.com/zombocom/rack-timeout/blob/master/README.md#rails-apps-manually
gem 'rack-timeout', '~> 0.6.3', require: 'rack/timeout/base'
Stan Hu's avatar
Stan Hu 已提交
  gem 'puma', '~> 5.6.5', require: false
Andrew8xx8's avatar
Andrew8xx8 已提交
# State machine
Marius Bobin's avatar
Marius Bobin 已提交
# CI domain tags

# Background jobs
gem 'sidekiq', '~> 6.4.0'
gem 'sidekiq-cron', '~> 1.8.0'
gem 'redis-namespace', '~> 1.9.0'
Heinrich Lee Yu's avatar
Heinrich Lee Yu 已提交
gem 'gitlab-sidekiq-fetcher', '0.8.0', require: 'sidekiq-reliable-fetch'
# Cron Parser
gem 'fugit', '~> 1.2.1'
# HTTP requests
gem 'httparty', '~> 0.20.0'

# Colored output to console
Riyad Preukschas's avatar
Riyad Preukschas 已提交
# GitLab settings
gem 'settingslogic', '~> 2.0.9'
# Linear-time regex library for untrusted regular expressions
gem 're2', '~> 1.5.0'
# Misc
# Export Ruby Regex to Javascript
Stan Hu's avatar
Stan Hu 已提交
gem 'redis', '~> 4.7.0'
# Redis session store
blackst0ne's avatar
blackst0ne 已提交
# Discord integration
gem 'discordrb-webhooks', '~> 3.4', require: false
# Jira integration
gem 'jira-ruby', '~> 2.1.4'
gem 'atlassian-jwt', '~> 0.2.0'
# Flowdock integration
# Slack integration
# Hangouts Chat integration
gem 'hangouts-chat', '~> 0.0.5', require: 'hangouts_chat'
Jeremy's avatar
Jeremy 已提交
# Asana integration
Jeremy's avatar
Jeremy 已提交

Jared Szechy's avatar
Jared Szechy 已提交
# FogBugz integration
Jared Szechy's avatar
Jared Szechy 已提交
gem 'ruby-fogbugz', '~> 0.2.1'
Tiger's avatar
Tiger 已提交
gem 'kubeclient', '~> 4.9.3'
# Sanitize user input
Stan Hu's avatar
Stan Hu 已提交
gem 'sanitize', '~> 6.0'
Stan Hu's avatar
Stan Hu 已提交
# Sanitizes SVG input
# Detects the open source license the repository includes
# This version needs to be in sync with gitlab-org/gitaly
gem 'licensee', '~> 9.15'
# Detect and convert string character encoding
gem 'charlock_holmes', '~> 0.7.7'
# Detect mime content type from content
Stan Hu's avatar
Stan Hu 已提交
gem 'ruby-magic', '~> 0.5'
# Parse time & duration
gem 'gitlab-chronic', '~> 0.10.5'
gem 'gitlab_chronic_duration', '~> 0.10.6.2'
gem 'terser', '1.0.2'
gem 'addressable', '~> 2.8'
Igor Drozdov's avatar
Igor Drozdov 已提交
gem 'gon', '~> 6.4.0'
gem 'request_store', '~> 1.5.1'
gem 'base32', '~> 0.3.0'
Nick Thomas's avatar
Nick Thomas 已提交

gitlabhq's avatar
gitlabhq 已提交

# Protect against bruteforcing
# Sentry integration
gem 'sentry-ruby', '~> 5.1.1'
gem 'sentry-rails', '~> 5.1.1'
gem 'sentry-sidekiq', '~> 5.1.1'
# PostgreSQL query parsing
# LabKit: Tracing and Correlation
gem 'gitlab-labkit', '~> 0.26.0'
Stan Hu's avatar
Stan Hu 已提交
gem 'thrift', '>= 0.16.0'
Ruben Davila's avatar
Ruben Davila 已提交
# I18n
gem 'ruby_parser', '~> 3.15', require: false
Ruben Davila's avatar
Ruben Davila 已提交
gem 'gettext_i18n_rails', '~> 1.8.0'
gem 'gettext', '~> 3.3', require: false, group: :development
gem 'batch-loader', '~> 2.0.1'
Sean McGivern's avatar
Sean McGivern 已提交
gem 'peek', '~> 1.1'
# Snowplow events tracking
gem 'snowplow-tracker', '~> 0.6.1'

gem 'webrick', '~> 1.6.1', require: false
gem 'prometheus-client-mmap', '~> 0.16', require: 'prometheus/client'
Peter Leitzen's avatar
Peter Leitzen 已提交
gem 'warning', '~> 1.3.0'
Nihad Abbasov's avatar
Nihad Abbasov 已提交
group :development do
  gem 'lefthook', '~> 1.1.3', require: false
  gem 'solargraph', '~> 0.47.2', require: false
  # Better errors handler
gitlabhq's avatar
gitlabhq 已提交
end

group :development, :test do
  gem 'deprecation_toolkit', '~> 1.5.1', require: false
  gem 'bullet', '~> 7.0.2'
Shinya Maeda's avatar
Shinya Maeda 已提交
  gem 'pry-rails', '~> 0.3.9'
  gem 'database_cleaner', '~> 1.7.0'
Igor Drozdov's avatar
Igor Drozdov 已提交
  gem 'rspec-rails', '~> 5.0.1'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets 已提交

  # Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
  # Generate Fake data
Takuya Noguchi's avatar
Takuya Noguchi 已提交
  gem 'ffaker', '~> 2.10'
  gem 'spring', '~> 2.1.0'
  gem 'gitlab-styles', '~> 9.0.0', require: false
Stan Hu's avatar
Stan Hu 已提交
  gem 'haml_lint', '~> 0.40.0', require: false
  gem 'bundler-audit', '~> 0.7.0.1', require: false
  # Benchmarking & profiling
bogdanvlviv's avatar
bogdanvlviv 已提交
  gem 'benchmark-ips', '~> 2.3.0', require: false
  gem 'benchmark-memory', '~> 0.1', require: false
Albert Salim's avatar
Albert Salim 已提交
  gem 'knapsack', '~> 1.21.1'
  gem 'crystalball', '~> 0.7.0', require: false
  gem 'simple_po_parser', '~> 1.1.6', require: false
  gem 'timecop', '~> 0.9.1'
Nathan Friend's avatar
Nathan Friend 已提交

  gem 'png_quantizator', '~> 0.2.1', require: false

  gem 'parallel', '~> 1.19', require: false
Thong Kuah's avatar
Thong Kuah 已提交

  gem 'sigdump', '~> 0.2.4', require: 'sigdump/setup'
  gem 'pact', '~> 1.63'
gitlabhq's avatar
gitlabhq 已提交
end

group :development, :test, :danger do
group :development, :test, :coverage do
  gem 'simplecov', '~> 0.21', require: false
  gem 'simplecov-lcov', '~> 0.8.0', require: false
  gem 'simplecov-cobertura', '~> 1.3.1', require: false
  gem 'undercover', '~> 0.4.4', require: false
# Gems required in omnibus-gitlab pipeline
group :development, :test, :omnibus do
  gem 'license_finder', '~> 7.0', require: false
gitlabhq's avatar
gitlabhq 已提交
group :test do
  gem 'fuubar', '~> 2.2.0'
  gem 'rspec-retry', '~> 0.6.1'
  gem 'rspec_profiling', '~> 0.0.6'
Igor Drozdov's avatar
Igor Drozdov 已提交
  gem 'capybara', '~> 3.35.3'
Tan Le's avatar
Tan Le 已提交
  gem 'shoulda-matchers', '~> 5.1.0', require: false
  gem 'email_spec', '~> 2.2.0'
  gem 'test-prof', '~> 1.0.7'

  # Moved in `test` because https://gitlab.com/gitlab-org/gitlab/-/issues/217527
  gem 'derailed_benchmarks', require: false
gitlabhq's avatar
gitlabhq 已提交
end
gem 'octokit', '~> 4.15'
Douwe Maan's avatar
Douwe Maan 已提交

# Updating this gem version here is deprecated. See:
# https://docs.gitlab.com/ee/development/emails.html#mailroom-gem-updates
gem 'gitlab-mail_room', '~> 0.0.9', require: 'mail_room'
Douwe Maan's avatar
Douwe Maan 已提交

Stan Hu's avatar
Stan Hu 已提交
gem 'stackprof', '~> 0.2.21', require: false
Stan Hu's avatar
Stan Hu 已提交
gem 'rbtrace', '~> 0.4', require: false
gem 'memory_profiler', '~> 0.9', require: false
gem 'activerecord-explain-analyze', '~> 0.1', require: false
Stan Hu's avatar
Stan Hu 已提交
gem 'oauth2', '~> 2.0'
Douwe Maan's avatar
Douwe Maan 已提交

gem 'vmstat', '~> 2.3.0'
gem 'sys-filesystem', '~> 1.4.3'
# Spamcheck GRPC protocol definitions
imand3r's avatar
imand3r 已提交
gem 'spamcheck', '~> 1.0.0'
# Gitaly GRPC protocol definitions
Tiger's avatar
Tiger 已提交
# KAS GRPC protocol definitions
gem 'kas-grpc', '~> 0.0.2'

gem 'grpc', '~> 1.42.0'
gem 'toml-rb', '~> 2.2.0'
gem 'unleash', '~> 3.2.2'

# Structured logging
gem 'lograge', '~> 0.5'

# Countries list
gem 'countries', '~> 3.0'
# Locked as long as quoted-printable encoding issues are not resolved
# Monkey-patched in `config/initializers/mail_encoding_patch.rb`
# See https://gitlab.com/gitlab-org/gitlab/issues/197386
gem 'mail', '= 2.7.1'
gem 'mail-smtp_pool', '~> 0.1.0', path: 'vendor/gems/mail-smtp_pool', require: false
Alishan Ladhani's avatar
Alishan Ladhani 已提交

gem 'microsoft_graph_mailer', '~> 0.1.0', path: 'vendor/gems/microsoft_graph_mailer'

Alishan Ladhani's avatar
Alishan Ladhani 已提交
# File encryption
gem 'lockbox', '~> 0.6.2'

# Email validation
gem 'valid_email', '~> 0.1'
gem 'json', '~> 2.5.1'
Stan Hu's avatar
Stan Hu 已提交
gem 'oj', '~> 3.13.21'
gem 'multi_json', '~> 1.14.1'
gem 'yajl-ruby', '~> 1.4.3', require: 'yajl'

# IPAddress utilities
gem 'ipaddress', '~> 0.8.3'
gem 'ipynbdiff', path: 'vendor/gems/ipynbdiff'

# Error Tracking OpenAPI client
# See https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/rake_tasks.md#update-openapi-client-for-error-tracking-feature
gem 'error_tracking_open_api', path: 'vendor/gems/error_tracking_open_api'

# Vulnerability advisories
gem 'cvss-suite', '~> 3.0.1', require: 'cvss_suite'
bohdan-barylo's avatar
bohdan-barylo 已提交

# Work with RPM packages
gem 'arr-pm', '~> 0.0.12'