gitlab-org--gitlab-foss/Gemfile

347 lines
8.2 KiB
Ruby
Raw Normal View History

2013-03-06 16:55:11 +00:00
source "https://rubygems.org"
2011-10-08 21:36:38 +00:00
2016-03-28 19:37:53 +00:00
gem 'rails', '4.2.6'
2015-11-26 13:48:01 +00:00
gem 'rails-deprecated_sanitizer', '~> 1.0.3'
2015-11-25 16:18:44 +00:00
# Responders respond_to and respond_with
gem 'responders', '~> 2.0'
# Specify a sprockets version due to increased performance
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/6069
gem 'sprockets', '~> 3.6.0'
# Default values for AR models
gem "default_value_for", "~> 3.0.0"
2012-06-20 10:45:26 +00:00
# Supported DBs
2015-08-26 01:42:46 +00:00
gem "mysql2", '~> 0.3.16', group: :mysql
gem "pg", '~> 0.18.2', group: :postgres
2012-06-20 10:45:26 +00:00
2015-06-30 19:25:36 +00:00
# Authentication libraries
gem 'devise', '~> 4.0'
gem 'doorkeeper', '~> 3.1'
gem 'omniauth', '~> 1.3.1'
gem 'omniauth-auth0', '~> 1.4.1'
gem 'omniauth-azure-oauth2', '~> 0.0.6'
2015-10-07 01:42:32 +00:00
gem 'omniauth-bitbucket', '~> 0.0.2'
2015-11-12 04:25:31 +00:00
gem 'omniauth-cas3', '~> 1.1.2'
2015-11-03 16:58:12 +00:00
gem 'omniauth-facebook', '~> 3.0.0'
2015-10-07 01:42:32 +00:00
gem 'omniauth-github', '~> 1.1.1'
gem 'omniauth-gitlab', '~> 1.0.0'
gem 'omniauth-google-oauth2', '~> 0.2.0'
2015-10-07 01:48:19 +00:00
gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
gem 'omniauth-saml', '~> 1.5.0'
2015-10-07 02:03:42 +00:00
gem 'omniauth-shibboleth', '~> 1.2.0'
2015-10-07 01:42:32 +00:00
gem 'omniauth-twitter', '~> 1.2.0'
gem 'omniauth_crowd', '~> 2.2.0'
2015-11-24 20:48:49 +00:00
gem 'rack-oauth2', '~> 1.2.1'
gem 'jwt'
2012-06-20 10:45:26 +00:00
# Spam and anti-bot protection
gem 'recaptcha', '~> 3.0', require: 'recaptcha/rails'
gem 'akismet', '~> 2.0'
2015-03-27 22:35:26 +00:00
# Two-factor authentication
gem 'devise-two-factor', '~> 3.0.0'
2015-08-26 01:42:46 +00:00
gem 'rqrcode-rails3', '~> 0.1.7'
gem 'attr_encrypted', '~> 3.0.0'
gem 'u2f', '~> 0.2.1'
2015-03-27 22:35:26 +00:00
# Browser detection
gem "browser", '~> 2.0.3'
2013-03-03 20:08:04 +00:00
# Extracting information from a git repository
2013-05-14 10:07:39 +00:00
# Provide access to Gitlab::Git library
gem "gitlab_git", '~> 10.0'
2013-04-27 20:50:17 +00:00
# LDAP Auth
# GitLab fork with several improvements to original library. For full list of changes
# see https://github.com/intridea/omniauth-ldap/compare/master...gitlabhq:master
2015-08-26 01:42:46 +00:00
gem 'gitlab_omniauth-ldap', '~> 1.2.1', require: "omniauth-ldap"
# Git Wiki
2016-02-28 12:11:43 +00:00
# Required manually in config/initializers/gollum.rb to control load order
gem 'gollum-lib', '~> 4.1.0', require: false
gem 'gollum-rugged_adapter', '~> 0.4.2', require: false
2012-10-02 13:29:03 +00:00
# Language detection
gem "github-linguist", "~> 4.7.0", require: "linguist"
2012-10-02 13:29:03 +00:00
2012-08-11 19:59:56 +00:00
# API
gem 'grape', '~> 0.13.0'
2015-10-08 02:08:30 +00:00
gem 'grape-entity', '~> 0.4.2'
gem 'rack-cors', '~> 0.4.0', require: 'rack/cors'
2012-08-11 19:59:56 +00:00
# Pagination
gem "kaminari", "~> 0.17.0"
2012-08-11 19:59:56 +00:00
# HAML
2015-10-08 01:59:16 +00:00
gem "haml-rails", '~> 0.9.0'
2012-08-11 19:59:56 +00:00
# Files attachments
2016-03-04 01:32:18 +00:00
gem "carrierwave", '~> 0.10.0'
2013-07-08 06:47:31 +00:00
# Drag and Drop UI
2015-08-26 01:42:46 +00:00
gem 'dropzonejs-rails', '~> 0.7.1'
# for backups
gem 'fog-aws', '~> 0.9'
gem 'fog-azure', '~> 0.0'
gem 'fog-core', '~> 1.40'
gem 'fog-local', '~> 0.3'
gem 'fog-google', '~> 0.3'
gem 'fog-openstack', '~> 0.1'
2013-05-01 09:41:37 +00:00
# for aws storage
2015-08-26 01:42:46 +00:00
gem "unf", '~> 0.1.4'
2012-08-11 19:59:56 +00:00
# Authorization
2015-08-26 01:42:46 +00:00
gem "six", '~> 0.2.0'
2012-08-11 19:59:56 +00:00
# Seed data
2015-08-26 01:42:46 +00:00
gem "seed-fu", '~> 2.3.5'
2012-08-11 19:59:56 +00:00
2015-04-29 19:02:41 +00:00
# Markdown and HTML processing
gem 'html-pipeline', '~> 1.11.0'
2015-08-26 01:42:46 +00:00
gem 'task_list', '~> 1.0.2', require: 'task_list/railtie'
gem 'github-markup', '~> 1.3.1'
gem 'redcarpet', '~> 3.3.3'
gem 'RedCloth', '~> 4.2.9'
2015-04-29 19:02:41 +00:00
gem 'rdoc', '~>3.6'
2015-08-26 01:42:46 +00:00
gem 'org-ruby', '~> 0.9.12'
2015-11-24 20:42:42 +00:00
gem 'creole', '~> 0.5.0'
2015-09-09 08:06:35 +00:00
gem 'wikicloth', '0.8.1'
gem 'asciidoctor', '~> 1.5.2'
2016-06-06 18:55:23 +00:00
gem 'rouge', '~> 1.11'
2012-08-11 19:59:56 +00:00
# See https://groups.google.com/forum/#!topic/ruby-security-ann/aSbgDiwb24s
# and https://groups.google.com/forum/#!topic/ruby-security-ann/Dy7YiKb_pMM
gem 'nokogiri', '~> 1.6.7', '>= 1.6.7.2'
2014-04-15 15:02:02 +00:00
# Diffs
gem 'diffy', '~> 3.0.3'
# Application server
2013-12-18 16:06:49 +00:00
group :unicorn do
2016-02-16 23:14:47 +00:00
gem "unicorn", '~> 4.9.0'
2015-08-26 01:42:46 +00:00
gem 'unicorn-worker-killer', '~> 0.4.2'
2013-12-18 16:06:49 +00:00
end
2012-08-11 19:59:56 +00:00
2013-02-14 15:33:20 +00:00
# State machine
gem "state_machines-activerecord", '~> 0.4.0'
# Run events after state machine commits
gem 'after_commit_queue'
2013-02-14 15:33:20 +00:00
2012-08-11 19:59:56 +00:00
# Issue tags
2015-03-28 23:39:32 +00:00
gem 'acts-as-taggable-on', '~> 3.4'
2012-08-11 19:59:56 +00:00
# Background jobs
2015-08-26 01:42:46 +00:00
gem 'sinatra', '~> 1.4.4', require: nil
2015-12-10 17:45:36 +00:00
gem 'sidekiq', '~> 4.0'
gem 'sidekiq-cron', '~> 0.4.0'
gem 'redis-namespace'
2012-08-11 19:59:56 +00:00
# HTTP requests
2015-08-26 01:42:46 +00:00
gem "httparty", '~> 0.13.3'
2012-08-11 19:59:56 +00:00
# Colored output to console
gem "rainbow", '~> 2.1.0'
2012-08-11 19:59:56 +00:00
2012-11-18 20:51:49 +00:00
# GitLab settings
2015-08-26 01:42:46 +00:00
gem 'settingslogic', '~> 2.0.9'
2011-11-04 07:42:36 +00:00
2012-08-11 19:59:56 +00:00
# Misc
2015-08-26 01:42:46 +00:00
gem 'version_sorter', '~> 2.0.0'
2012-08-11 19:59:56 +00:00
# Cache
2015-08-26 01:42:46 +00:00
gem "redis-rails", '~> 4.0.0'
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'
# Campfire integration
2015-10-08 01:54:15 +00:00
gem 'tinder', '~> 1.10.0'
2013-05-23 18:10:32 +00:00
# HipChat integration
2015-03-30 22:53:24 +00:00
gem 'hipchat', '~> 1.5.0'
2013-05-23 18:10:32 +00:00
# Flowdock integration
gem "gitlab-flowdock-git-hook", "~> 1.0.1"
# Gemnasium integration
gem "gemnasium-gitlab-service", "~> 0.2"
2014-03-18 17:27:03 +00:00
# Slack integration
2015-10-08 01:51:05 +00:00
gem "slack-notifier", "~> 1.2.0"
2014-03-18 17:27:03 +00:00
# Asana integration
2015-11-25 22:03:30 +00:00
gem 'asana', '~> 0.4.0'
2015-08-04 22:21:12 +00:00
# FogBugz integration
2015-09-15 20:09:32 +00:00
gem 'ruby-fogbugz', '~> 0.2.1'
2015-08-04 22:21:12 +00:00
# d3
2016-01-02 02:34:49 +00:00
gem 'd3_rails', '~> 3.5.0'
# underscore-rails
gem "underscore-rails", "~> 1.8.0"
2013-07-10 10:48:03 +00:00
# Sanitize user input
gem "sanitize", '~> 2.0'
gem 'babosa', '~> 1.0.2'
2013-07-10 10:48:03 +00:00
# Sanitizes SVG input
gem "loofah", "~> 2.0.3"
# Working with license
gem 'licensee', '~> 8.0.0'
2013-09-24 18:13:25 +00:00
# Protect against bruteforcing
gem "rack-attack", '~> 4.3.1'
2013-09-24 18:13:25 +00:00
# Ace editor
2016-05-09 21:15:01 +00:00
gem 'ace-rails-ap', '~> 4.0.2'
# Keyboard shortcuts
2015-08-26 01:42:46 +00:00
gem 'mousetrap-rails', '~> 1.4.6'
2014-08-21 08:14:31 +00:00
# Detect and convert string character encoding
gem 'charlock_holmes', '~> 0.7.3'
2015-12-22 22:04:41 +00:00
gem "sass-rails", '~> 5.0.0'
2015-08-26 01:42:46 +00:00
gem "coffee-rails", '~> 4.1.0'
2015-10-14 06:39:59 +00:00
gem "uglifier", '~> 2.7.2'
2015-05-29 04:05:14 +00:00
gem 'turbolinks', '~> 2.5.0'
gem 'jquery-turbolinks', '~> 2.1.0'
2015-08-26 01:42:46 +00:00
gem 'addressable', '~> 2.3.8'
2016-01-02 02:11:39 +00:00
gem 'bootstrap-sass', '~> 3.3.0'
2015-05-23 04:33:46 +00:00
gem 'font-awesome-rails', '~> 4.2'
2016-02-12 20:34:00 +00:00
gem 'gitlab_emoji', '~> 0.3.0'
2015-11-24 20:36:36 +00:00
gem 'gon', '~> 6.0.1'
gem 'jquery-atwho-rails', '~> 1.3.2'
gem 'jquery-rails', '~> 4.1.0'
gem 'jquery-ui-rails', '~> 5.0.0'
2015-05-23 04:33:46 +00:00
gem 'raphael-rails', '~> 2.1.2'
gem 'request_store', '~> 1.3.0'
2015-06-24 21:13:21 +00:00
gem 'select2-rails', '~> 3.5.9'
2015-08-26 01:42:46 +00:00
gem 'virtus', '~> 1.0.1'
2015-12-01 14:02:26 +00:00
gem 'net-ssh', '~> 3.0.1'
2016-05-02 11:29:17 +00:00
gem 'base32', '~> 0.3.0'
2011-10-08 21:36:38 +00:00
# Sentry integration
2016-02-23 20:34:16 +00:00
gem 'sentry-raven', '~> 0.15'
gem 'premailer-rails', '~> 1.9.0'
Storing of application metrics in InfluxDB This adds the ability to write application metrics (e.g. SQL timings) to InfluxDB. These metrics can in turn be visualized using Grafana, or really anything else that can read from InfluxDB. These metrics can be used to track application performance over time, between different Ruby versions, different GitLab versions, etc. == Transaction Metrics Currently the following is tracked on a per transaction basis (a transaction is a Rails request or a single Sidekiq job): * Timings per query along with the raw (obfuscated) SQL and information about what file the query originated from. * Timings per view along with the path of the view and information about what file triggered the rendering process. * The duration of a request itself along with the controller/worker class and method name. * The duration of any instrumented method calls (more below). == Sampled Metrics Certain metrics can't be directly associated with a transaction. For example, a process' total memory usage is unrelated to any running transactions. While a transaction can result in the memory usage going up there's no accurate way to determine what transaction is to blame, this becomes especially problematic in multi-threaded environments. To solve this problem there's a separate thread that takes samples at a fixed interval. This thread (using the class Gitlab::Metrics::Sampler) currently tracks the following: * The process' total memory usage. * The number of file descriptors opened by the process. * The amount of Ruby objects (using ObjectSpace.count_objects). * GC statistics such as timings, heap slots, etc. The default/current interval is 15 seconds, any smaller interval might put too much pressure on InfluxDB (especially when running dozens of processes). == Method Instrumentation While currently not yet used methods can be instrumented to track how long they take to run. Unlike the likes of New Relic this doesn't require modifying the source code (e.g. including modules), it all happens from the outside. For example, to track `User.by_login` we'd add the following code somewhere in an initializer: Gitlab::Metrics::Instrumentation. instrument_method(User, :by_login) to instead instrument an instance method: Gitlab::Metrics::Instrumentation. instrument_instance_method(User, :save) Instrumentation for either all public model methods or a few crucial ones will be added in the near future, I simply haven't gotten to doing so just yet. == Configuration By default metrics are disabled. This means users don't have to bother setting anything up if they don't want to. Metrics can be enabled by editing one's gitlab.yml configuration file (see config/gitlab.yml.example for example settings). == Writing Data To InfluxDB Because InfluxDB is still a fairly young product I expect the worse. Data loss, unexpected reboots, the database not responding, you name it. Because of this data is _not_ written to InfluxDB directly, instead it's queued and processed by Sidekiq. This ensures that users won't notice anything when InfluxDB is giving trouble. The metrics worker can be started in a standalone manner as following: bundle exec sidekiq -q metrics The corresponding class is called MetricsWorker.
2015-12-09 15:45:51 +00:00
# Metrics
group :metrics do
gem 'allocations', '~> 1.0', require: false, platform: :mri
gem 'method_source', '~> 0.8', require: false
Storing of application metrics in InfluxDB This adds the ability to write application metrics (e.g. SQL timings) to InfluxDB. These metrics can in turn be visualized using Grafana, or really anything else that can read from InfluxDB. These metrics can be used to track application performance over time, between different Ruby versions, different GitLab versions, etc. == Transaction Metrics Currently the following is tracked on a per transaction basis (a transaction is a Rails request or a single Sidekiq job): * Timings per query along with the raw (obfuscated) SQL and information about what file the query originated from. * Timings per view along with the path of the view and information about what file triggered the rendering process. * The duration of a request itself along with the controller/worker class and method name. * The duration of any instrumented method calls (more below). == Sampled Metrics Certain metrics can't be directly associated with a transaction. For example, a process' total memory usage is unrelated to any running transactions. While a transaction can result in the memory usage going up there's no accurate way to determine what transaction is to blame, this becomes especially problematic in multi-threaded environments. To solve this problem there's a separate thread that takes samples at a fixed interval. This thread (using the class Gitlab::Metrics::Sampler) currently tracks the following: * The process' total memory usage. * The number of file descriptors opened by the process. * The amount of Ruby objects (using ObjectSpace.count_objects). * GC statistics such as timings, heap slots, etc. The default/current interval is 15 seconds, any smaller interval might put too much pressure on InfluxDB (especially when running dozens of processes). == Method Instrumentation While currently not yet used methods can be instrumented to track how long they take to run. Unlike the likes of New Relic this doesn't require modifying the source code (e.g. including modules), it all happens from the outside. For example, to track `User.by_login` we'd add the following code somewhere in an initializer: Gitlab::Metrics::Instrumentation. instrument_method(User, :by_login) to instead instrument an instance method: Gitlab::Metrics::Instrumentation. instrument_instance_method(User, :save) Instrumentation for either all public model methods or a few crucial ones will be added in the near future, I simply haven't gotten to doing so just yet. == Configuration By default metrics are disabled. This means users don't have to bother setting anything up if they don't want to. Metrics can be enabled by editing one's gitlab.yml configuration file (see config/gitlab.yml.example for example settings). == Writing Data To InfluxDB Because InfluxDB is still a fairly young product I expect the worse. Data loss, unexpected reboots, the database not responding, you name it. Because of this data is _not_ written to InfluxDB directly, instead it's queued and processed by Sidekiq. This ensures that users won't notice anything when InfluxDB is giving trouble. The metrics worker can be started in a standalone manner as following: bundle exec sidekiq -q metrics The corresponding class is called MetricsWorker.
2015-12-09 15:45:51 +00:00
gem 'influxdb', '~> 0.2', require: false
end
2011-10-27 19:37:17 +00:00
group :development do
2015-08-26 01:42:46 +00:00
gem "foreman"
gem 'brakeman', '~> 3.2.0', require: false
2015-08-26 01:42:46 +00:00
gem 'letter_opener_web', '~> 1.3.0'
2015-08-26 01:42:46 +00:00
gem 'quiet_assets', '~> 1.0.2'
gem 'rerun', '~> 0.11.0'
gem 'bullet', require: false
gem 'rblineprof', platform: :mri, require: false
2015-11-25 16:18:44 +00:00
gem 'web-console', '~> 2.0'
2013-10-01 12:15:14 +00:00
# Better errors handler
2015-08-26 01:42:46 +00:00
gem 'better_errors', '~> 1.0.1'
gem 'binding_of_caller', '~> 0.7.2'
# Docs generator
2015-08-26 01:42:46 +00:00
gem "sdoc", '~> 0.3.20'
# thin instead webrick
2015-08-26 01:42:46 +00:00
gem 'thin', '~> 1.6.1'
2011-10-08 21:36:38 +00:00
end
group :development, :test do
gem 'byebug', platform: :mri
2015-06-17 22:05:48 +00:00
gem 'pry-rails'
gem 'awesome_print', '~> 1.2.0', require: false
2015-08-26 01:42:46 +00:00
gem 'fuubar', '~> 2.0.0'
2015-12-28 02:04:06 +00:00
gem 'database_cleaner', '~> 1.4.0'
gem 'factory_girl_rails', '~> 4.6.0'
gem 'rspec-rails', '~> 3.4.0'
2015-11-12 09:52:20 +00:00
gem 'rspec-retry'
2015-12-28 02:04:06 +00:00
gem 'spinach-rails', '~> 0.2.1'
2016-03-09 13:12:08 +00:00
gem 'spinach-rerun-reporter', '~> 0.0.2'
2012-09-10 06:26:35 +00:00
# Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
2015-08-26 01:42:46 +00:00
gem 'minitest', '~> 5.7.0'
2013-04-04 07:55:43 +00:00
# Generate Fake data
gem 'ffaker', '~> 2.0.0'
2013-04-04 07:55:43 +00:00
2016-03-14 05:52:19 +00:00
gem 'capybara', '~> 2.6.2'
2015-06-17 22:05:48 +00:00
gem 'capybara-screenshot', '~> 1.0.0'
2016-03-07 20:03:55 +00:00
gem 'poltergeist', '~> 1.9.0'
2013-03-26 09:13:30 +00:00
gem 'teaspoon', '~> 1.1.0'
2015-08-26 01:42:46 +00:00
gem 'teaspoon-jasmine', '~> 2.2.0'
2014-02-15 19:46:15 +00:00
gem 'spring', '~> 1.7.0'
2015-08-26 01:42:46 +00:00
gem 'spring-commands-rspec', '~> 1.0.4'
gem 'spring-commands-spinach', '~> 1.1.0'
2015-05-06 20:50:47 +00:00
gem 'spring-commands-teaspoon', '~> 0.0.2'
2015-08-26 01:42:46 +00:00
2016-05-23 18:03:04 +00:00
gem 'rubocop', '~> 0.40.0', require: false
gem 'rubocop-rspec', '~> 1.5.0', require: false
gem 'scss_lint', '~> 0.47.0', require: false
2016-05-23 18:03:04 +00:00
gem 'coveralls', '~> 0.8.2', require: false
gem 'simplecov', '~> 0.11.0', require: false
gem 'flog', require: false
gem 'flay', require: false
gem 'bundler-audit', require: false
gem 'benchmark-ips', require: false
gem "license_finder", require: false
gem 'knapsack'
2011-10-08 21:36:38 +00:00
end
group :test do
2015-06-10 05:38:36 +00:00
gem 'shoulda-matchers', '~> 2.8.0', require: false
gem 'email_spec', '~> 1.6.0'
gem 'webmock', '~> 1.21.0'
2015-11-26 09:57:04 +00:00
gem 'test_after_commit', '~> 0.4.2'
2015-08-04 22:21:12 +00:00
gem 'sham_rack'
2011-10-08 21:36:38 +00:00
end
group :production do
gem "gitlab_meta", '7.0'
end
gem "newrelic_rpm", '~> 3.14'
2016-04-17 15:32:31 +00:00
gem 'octokit', '~> 4.3.0'
2015-08-18 22:46:36 +00:00
gem "mail_room", "~> 0.7"
2015-08-19 00:02:26 +00:00
2015-08-26 01:42:46 +00:00
gem 'email_reply_parser', '~> 0.5.8'
## CI
gem 'activerecord-session_store', '~> 1.0.0'
2015-08-26 01:42:46 +00:00
gem "nested_form", '~> 0.3.2'
# OAuth
gem 'oauth2', '~> 1.0.0'
# Soft deletion
gem "paranoia", "~> 2.0"
# Health check
gem 'health_check', '~> 1.5.1'