Gemfile 10.4 KB
Newer Older
B
blackst0ne 已提交
1 2
# --- Special code for migrating to Rails 5.0 ---
def rails5?
J
Jan Provaznik 已提交
3
  !%w[0 false].include?(ENV["RAILS5"])
B
blackst0ne 已提交
4 5 6 7 8
end

gem_versions = {}
gem_versions['activerecord_sane_schema_dumper'] = rails5? ? '1.0'      : '0.2'
gem_versions['default_value_for']               = rails5? ? '~> 3.0.5' : '~> 3.0.0'
9
gem_versions['rails']                           = rails5? ? '5.0.7'    : '4.2.10'
B
blackst0ne 已提交
10 11 12
gem_versions['rails-i18n']                      = rails5? ? '~> 5.1'   : '~> 4.0.9'
# --- The end of special code for migrating to Rails 5.0 ---

B
bogdanvlviv 已提交
13
source 'https://rubygems.org'
G
gitlabhq 已提交
14

B
blackst0ne 已提交
15
gem 'rails', gem_versions['rails']
V
Valery Sizov 已提交
16
gem 'rails-deprecated_sanitizer', '~> 1.0.3'
V
Valery Sizov 已提交
17

18 19 20
# Improves copy-on-write performance for MRI
gem 'nakayoshi_fork', '~> 0.0.4'

V
Valery Sizov 已提交
21 22
# Responders respond_to and respond_with
gem 'responders', '~> 2.0'
23

U
ubudzisz 已提交
24
gem 'sprockets', '~> 3.7.0'
25

D
Dmitriy Zaporozhets 已提交
26
# Default values for AR models
B
blackst0ne 已提交
27
gem 'default_value_for', gem_versions['default_value_for']
D
Dmitriy Zaporozhets 已提交
28

D
Dmitriy Zaporozhets 已提交
29
# Supported DBs
30
gem 'mysql2', '~> 0.4.10', group: :mysql
B
bogdanvlviv 已提交
31
gem 'pg', '~> 0.18.2', group: :postgres
D
Dmitriy Zaporozhets 已提交
32

S
Stan Hu 已提交
33
gem 'rugged', '~> 0.27'
34
gem 'grape-path-helpers', '~> 1.0'
R
Robert Speicher 已提交
35

36
gem 'faraday', '~> 0.12'
D
Douglas Barbosa Alexandre 已提交
37

K
karen Carias 已提交
38
# Authentication libraries
P
Pirate Praveen 已提交
39
gem 'devise', '~> 4.4'
40
gem 'doorkeeper', '~> 4.3'
41
gem 'doorkeeper-openid_connect', '~> 1.5'
P
Pirate Praveen 已提交
42
gem 'omniauth', '~> 1.8'
43
gem 'omniauth-auth0', '~> 2.0.0'
44
gem 'omniauth-azure-oauth2', '~> 0.0.9'
45
gem 'omniauth-cas3', '~> 1.1.4'
M
Markus Koller 已提交
46
gem 'omniauth-facebook', '~> 4.0.0'
47
gem 'omniauth-github', '~> 1.3'
M
Markus Koller 已提交
48
gem 'omniauth-gitlab', '~> 1.0.2'
49
gem 'omniauth-google-oauth2', '~> 0.5.3'
M
Markus Koller 已提交
50
gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
J
Joe Marty 已提交
51
gem 'omniauth-oauth2-generic', '~> 0.2.2'
P
Pirate Praveen 已提交
52
gem 'omniauth-saml', '~> 1.10'
53
gem 'omniauth-shibboleth', '~> 1.3.0'
54
gem 'omniauth-twitter', '~> 1.4'
M
Markus Koller 已提交
55
gem 'omniauth_crowd', '~> 2.2.0'
56
gem 'omniauth-authentiq', '~> 0.3.3'
M
Markus Koller 已提交
57 58
gem 'rack-oauth2', '~> 1.2.1'
gem 'jwt', '~> 1.5.6'
D
Dmitriy Zaporozhets 已提交
59

60
# Spam and anti-bot protection
61
gem 'recaptcha', '~> 3.0', require: 'recaptcha/rails'
62
gem 'akismet', '~> 2.0'
63

64
# Two-factor authentication
65
gem 'devise-two-factor', '~> 3.0.0'
D
Douwe Maan 已提交
66
gem 'rqrcode-rails3', '~> 0.1.7'
67
gem 'attr_encrypted', '~> 3.1.0'
68
gem 'u2f', '~> 0.2.1'
69

70
# GitLab Pages
71
gem 'validates_hostname', '~> 1.0.6'
72

73
# Browser detection
S
Stan Hu 已提交
74
gem 'browser', '~> 2.5'
75

K
Kevin O'Connor 已提交
76 77 78
# GPG
gem 'gpgme'

79
# LDAP Auth
Y
Yorick Peterse 已提交
80
# GitLab fork with several improvements to original library. For full list of changes
81
# see https://github.com/intridea/omniauth-ldap/compare/master...gitlabhq:master
82
gem 'gitlab_omniauth-ldap', '~> 2.0.4', require: 'omniauth-ldap'
83
gem 'net-ldap'
84

R
randx 已提交
85
# API
86
gem 'grape', '~> 1.1'
87
gem 'grape-entity', '~> 0.7.1'
88
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
R
randx 已提交
89

N
Nick Thomas 已提交
90
# GraphQL API
91
gem 'graphql', '~> 1.8.0'
N
Nick Thomas 已提交
92 93
gem 'graphiql-rails', '~> 1.4.10'

94 95 96
# Disable strong_params so that Mash does not respond to :permitted?
gem 'hashie-forbidden_attributes'

R
randx 已提交
97
# Pagination
98
gem 'kaminari', '~> 1.0'
R
randx 已提交
99 100

# HAML
101
gem 'hamlit', '~> 2.8.8'
R
randx 已提交
102 103

# Files attachments
104 105 106
# Locked until https://github.com/carrierwaveuploader/carrierwave/pull/2332/files is merged.
# config/initializers/carrierwave_patch.rb can be removed once that change is released.
gem 'carrierwave', '= 1.2.3'
107
gem 'mini_magick'
108

S
Stan Hu 已提交
109
# for backups
A
Alessio Caiazza 已提交
110
gem 'fog-aws', '~> 2.0.1'
111
gem 'fog-core', '~> 1.44'
112
gem 'fog-google', '~> 1.7.1'
S
Stan Hu 已提交
113 114
gem 'fog-local', '~> 0.3'
gem 'fog-openstack', '~> 0.1'
115
gem 'fog-rackspace', '~> 0.1.1'
116
gem 'fog-aliyun', '~> 0.2.0'
S
Stan Hu 已提交
117

118
# for Google storage
119
gem 'google-api-client', '~> 0.23'
120

121
# for aws storage
B
bogdanvlviv 已提交
122
gem 'unf', '~> 0.1.4'
R
randx 已提交
123 124

# Seed data
125
gem 'seed-fu', '~> 2.3.7'
R
randx 已提交
126

R
Robert Speicher 已提交
127
# Markdown and HTML processing
128
gem 'html-pipeline', '~> 2.8'
J
Jared Deckard 已提交
129
gem 'deckar01-task_list', '2.0.0'
130
gem 'gitlab-markup', '~> 1.6.5'
131
gem 'github-markup', '~> 1.7.0', require: 'github/markup'
M
Markus Koller 已提交
132
gem 'redcarpet', '~> 3.4'
B
blackst0ne 已提交
133
gem 'commonmarker', '~> 0.17'
M
Markus Koller 已提交
134
gem 'RedCloth', '~> 4.3.2'
T
Takuya Noguchi 已提交
135
gem 'rdoc', '~> 6.0'
M
Markus Koller 已提交
136 137 138
gem 'org-ruby', '~> 0.9.12'
gem 'creole', '~> 0.5.0'
gem 'wikicloth', '0.8.1'
T
Takuya Noguchi 已提交
139
gem 'asciidoctor', '~> 1.5.6'
140
gem 'asciidoctor-plantuml', '0.0.8'
141
gem 'rouge', '~> 3.1'
142
gem 'truncato', '~> 0.7.9'
N
Nick Thomas 已提交
143
gem 'bootstrap_form', '~> 2.7.0'
R
Rémy Coutable 已提交
144
gem 'nokogiri', '~> 1.8.2'
145
gem 'escape_utils', '~> 1.1'
146

147 148 149
# Calendar rendering
gem 'icalendar'

S
skv-headless 已提交
150
# Diffs
M
Manuel Rüger 已提交
151
gem 'diffy', '~> 3.1.0'
S
skv-headless 已提交
152

153
# Application server
J
Jacob Vosmaer 已提交
154
group :unicorn do
155 156
  gem 'unicorn', '~> 5.1.0'
  gem 'unicorn-worker-killer', '~> 0.4.4'
J
Jacob Vosmaer 已提交
157
end
R
randx 已提交
158

159 160 161 162 163
group :puma do
  gem 'puma', '~> 3.12', require: false
  gem 'puma_worker_killer', require: false
end

A
Andrew8xx8 已提交
164
# State machine
165
gem 'state_machines-activerecord', '~> 0.5.1'
A
Andrew8xx8 已提交
166

R
randx 已提交
167
# Issue tags
168
gem 'acts-as-taggable-on', '~> 5.0'
R
randx 已提交
169 170

# Background jobs
S
Stan Hu 已提交
171
gem 'sidekiq', '~> 5.2.1'
172
gem 'sidekiq-cron', '~> 0.6.0'
T
Takuya Noguchi 已提交
173
gem 'redis-namespace', '~> 1.6.0'
R
randx 已提交
174

S
Shinya Maeda 已提交
175
# Cron Parser
176
gem 'rufus-scheduler', '~> 3.4'
S
Shinya Maeda 已提交
177

R
randx 已提交
178
# HTTP requests
B
bogdanvlviv 已提交
179
gem 'httparty', '~> 0.13.3'
R
randx 已提交
180 181

# Colored output to console
182
gem 'rainbow', '~> 3.0'
R
randx 已提交
183

184 185
# Progress bar
gem 'ruby-progressbar'
R
randx 已提交
186

R
Riyad Preukschas 已提交
187
# GitLab settings
D
Douwe Maan 已提交
188
gem 'settingslogic', '~> 2.0.9'
A
Aleksei Kvitinskii 已提交
189

190
# Linear-time regex library for untrusted regular expressions
191
gem 're2', '~> 1.1.1'
192

R
randx 已提交
193
# Misc
D
Douwe Maan 已提交
194

195
gem 'version_sorter', '~> 2.1.0'
R
randx 已提交
196

197 198 199
# Export Ruby Regex to Javascript
gem 'js_regex', '~> 2.2.1'

200 201 202
# User agent parsing
gem 'device_detector'

203
# Cache
204
gem 'redis-rails', '~> 5.0.2'
205

206 207 208 209
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'

B
blackst0ne 已提交
210
# Discord integration
B
blackst0ne 已提交
211
gem 'discordrb-webhooks-blackst0ne', '~> 3.3', require: false
B
blackst0ne 已提交
212

R
Ronald van Eede 已提交
213
# HipChat integration
C
Chulki Lee 已提交
214
gem 'hipchat', '~> 1.5.0'
R
Ronald van Eede 已提交
215

D
Drew Blessing 已提交
216
# JIRA integration
217
gem 'jira-ruby', '~> 1.4'
D
Drew Blessing 已提交
218

219
# Flowdock integration
220
gem 'flowdock', '~> 0.7'
221

222
# Slack integration
223
gem 'slack-notifier', '~> 1.5.1'
224

225 226 227
# Hangouts Chat integration
gem 'hangouts-chat', '~> 0.0.5'

J
Jeremy 已提交
228
# Asana integration
D
Douglas Barbosa Alexandre 已提交
229
gem 'asana', '~> 0.6.0'
J
Jeremy 已提交
230

J
Jared Szechy 已提交
231
# FogBugz integration
J
Jared Szechy 已提交
232
gem 'ruby-fogbugz', '~> 0.2.1'
J
Jared Szechy 已提交
233

234
# Kubernetes integration
235
gem 'kubeclient', '~> 3.1.0'
236

237
# Sanitize user input
238
gem 'sanitize', '~> 4.6'
239
gem 'babosa', '~> 1.0.2'
240

S
Stan Hu 已提交
241
# Sanitizes SVG input
242
gem 'loofah', '~> 2.2'
S
Stan Hu 已提交
243

244
# Working with license
P
Pirate Praveen 已提交
245
gem 'licensee', '~> 8.9'
246

M
Marin Jankovski 已提交
247
# Protect against bruteforcing
M
Manuel Rüger 已提交
248
gem 'rack-attack', '~> 4.4.1'
M
Marin Jankovski 已提交
249

D
Dmitriy Zaporozhets 已提交
250
# Ace editor
251
gem 'ace-rails-ap', '~> 4.1.0'
D
Dmitriy Zaporozhets 已提交
252

253
# Detect and convert string character encoding
J
Jacob Vosmaer 已提交
254
gem 'charlock_holmes', '~> 0.7.5'
255

D
dosire 已提交
256 257 258
# Faster blank
gem 'fast_blank'

R
Rémy Coutable 已提交
259 260
# Parse time & duration
gem 'chronic', '~> 0.10.2'
261 262
gem 'chronic_duration', '~> 0.10.6'

M
Mike Greiling 已提交
263
gem 'webpack-rails', '~> 0.9.10'
264 265
gem 'rack-proxy', '~> 0.6.0'

266
gem 'sass-rails', '~> 5.0.6'
B
bogdanvlviv 已提交
267
gem 'uglifier', '~> 2.7.2'
268

269
gem 'addressable', '~> 2.5.2'
270
gem 'font-awesome-rails', '~> 4.7'
271
gem 'gemojione', '~> 3.3'
P
Pirate Praveen 已提交
272
gem 'gon', '~> 6.2'
273
gem 'jquery-atwho-rails', '~> 1.3.2'
M
Markus Koller 已提交
274 275 276 277
gem 'request_store', '~> 1.3'
gem 'select2-rails', '~> 3.5.9'
gem 'virtus', '~> 1.0.1'
gem 'base32', '~> 0.3.0'
G
gitlabhq 已提交
278

279
# Sentry integration
280
gem 'sentry-raven', '~> 2.7'
281

282
gem 'premailer-rails', '~> 1.9.7'
D
Douwe Maan 已提交
283

R
Ruben Davila 已提交
284
# I18n
285
gem 'ruby_parser', '~> 3.8', require: false
B
blackst0ne 已提交
286
gem 'rails-i18n', gem_versions['rails-i18n']
R
Ruben Davila 已提交
287
gem 'gettext_i18n_rails', '~> 1.8.0'
288
gem 'gettext_i18n_rails_js', '~> 1.3'
R
Ruben Davila 已提交
289 290
gem 'gettext', '~> 3.2.2', require: false, group: :development

291
gem 'batch-loader', '~> 1.2.1'
292

293 294 295 296
# Perf bar
gem 'peek', '~> 1.0.1'
gem 'peek-gc', '~> 0.0.2'
gem 'peek-mysql2', '~> 1.1.0', group: :mysql
297
gem 'peek-pg', '~> 1.3.0', group: :postgres
298 299
gem 'peek-rblineprof', '~> 0.2.0'
gem 'peek-redis', '~> 1.2.0'
V
Valery Sizov 已提交
300
gem 'gitlab-sidekiq-fetcher', require: 'sidekiq-reliable-fetch'
301

302 303
# Metrics
group :metrics do
304
  gem 'method_source', '~> 0.8', require: false
305
  gem 'influxdb', '~> 0.2', require: false
306

307
  # Prometheus
S
Stan Hu 已提交
308
  gem 'prometheus-client-mmap', '~> 0.9.4'
309
  gem 'raindrops', '~> 0.18'
310 311
end

N
Nihad Abbasov 已提交
312
group :development do
313
  gem 'foreman', '~> 0.84.0'
T
Takuya Noguchi 已提交
314
  gem 'brakeman', '~> 4.2', require: false
D
Douwe Maan 已提交
315

R
Robert Speicher 已提交
316
  gem 'letter_opener_web', '~> 1.3.0'
B
bogdanvlviv 已提交
317
  gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
D
Dmitriy Zaporozhets 已提交
318

319
  # Better errors handler
320
  gem 'better_errors', '~> 2.1.0'
321
  gem 'binding_of_caller', '~> 0.8.0'
322

323
  # thin instead webrick
C
Connor Shea 已提交
324
  gem 'thin', '~> 1.7.0'
G
gitlabhq 已提交
325 326 327
end

group :development, :test do
328
  gem 'bootsnap', '~> 1.3'
329
  gem 'bullet', '~> 5.5.0', require: !!ENV['ENABLE_BULLET']
S
Semyon Pupkov 已提交
330
  gem 'pry-byebug', '~> 3.4.1', platform: :mri
B
bogdanvlviv 已提交
331
  gem 'pry-rails', '~> 0.3.4'
R
Robert Speicher 已提交
332

333
  gem 'awesome_print', require: false
R
Robert Speicher 已提交
334
  gem 'fuubar', '~> 2.2.0'
D
Douwe Maan 已提交
335

M
Markus Koller 已提交
336
  gem 'database_cleaner', '~> 1.5.0'
337
  gem 'factory_bot_rails', '~> 4.8.2'
R
Robert Speicher 已提交
338
  gem 'rspec-rails', '~> 3.7.0'
M
Markus Koller 已提交
339 340
  gem 'rspec-retry', '~> 0.4.5'
  gem 'rspec_profiling', '~> 0.0.5'
341
  gem 'rspec-set', '~> 0.1.3'
342
  gem 'rspec-parameterized', require: false
R
randx 已提交
343

344
  # Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
D
Douwe Maan 已提交
345
  gem 'minitest', '~> 5.7.0'
346

347
  # Generate Fake data
T
Takuya Noguchi 已提交
348
  gem 'ffaker', '~> 2.10'
349

350
  gem 'capybara', '~> 2.15'
R
Robert Speicher 已提交
351
  gem 'capybara-screenshot', '~> 1.0.0'
352
  gem 'selenium-webdriver', '~> 3.12'
A
Andrew8xx8 已提交
353

R
Robert Speicher 已提交
354
  gem 'spring', '~> 2.0.0'
M
Markus Koller 已提交
355
  gem 'spring-commands-rspec', '~> 1.0.4'
D
Douwe Maan 已提交
356

357
  gem 'gitlab-styles', '~> 2.4', require: false
R
Rémy Coutable 已提交
358
  # Pin these dependencies, otherwise a new rule could break the CI pipelines
359
  gem 'rubocop', '~> 0.54.0'
360
  gem 'rubocop-rspec', '~> 1.22.1'
R
Rémy Coutable 已提交
361

T
Takuya Noguchi 已提交
362
  gem 'scss_lint', '~> 0.56.0', require: false
T
Takuya Noguchi 已提交
363
  gem 'haml_lint', '~> 0.28.0', require: false
364
  gem 'simplecov', '~> 0.14.0', require: false
B
bogdanvlviv 已提交
365
  gem 'bundler-audit', '~> 0.5.0', require: false
366

B
bogdanvlviv 已提交
367
  gem 'benchmark-ips', '~> 2.3.0', require: false
C
Connor Shea 已提交
368

369
  gem 'license_finder', '~> 5.4', require: false
370
  gem 'knapsack', '~> 1.17'
371

B
blackst0ne 已提交
372
  gem 'activerecord_sane_schema_dumper', gem_versions['activerecord_sane_schema_dumper']
373

374
  gem 'stackprof', '~> 0.2.10', require: false
B
Bob Van Landuyt 已提交
375 376

  gem 'simple_po_parser', '~> 1.1.2', require: false
377 378

  gem 'timecop', '~> 0.8.0'
G
gitlabhq 已提交
379 380 381
end

group :test do
382
  gem 'shoulda-matchers', '~> 3.1.2', require: false
T
Takuya Noguchi 已提交
383
  gem 'email_spec', '~> 2.2.0'
384
  gem 'json-schema', '~> 2.8.0'
385
  gem 'webmock', '~> 2.3.2'
386
  gem 'rails-controller-testing' if rails5? # Rails5 only gem.
387
  gem 'test_after_commit', '~> 1.1' unless rails5? # Remove this gem when migrated to rails 5.0. It's been integrated to rails 5.0.
B
bogdanvlviv 已提交
388
  gem 'sham_rack', '~> 1.3.6'
389
  gem 'concurrent-ruby', '~> 1.0.5'
R
Rémy Coutable 已提交
390
  gem 'test-prof', '~> 0.2.5'
391
  gem 'rspec_junit_formatter'
G
gitlabhq 已提交
392
end
393

A
Ash McKenzie 已提交
394
gem 'octokit', '~> 4.9'
D
Douwe Maan 已提交
395

396
gem 'mail_room', '~> 0.9.1'
D
Douwe Maan 已提交
397

398
gem 'email_reply_trimmer', '~> 0.1'
399
gem 'html2text'
D
Douwe Maan 已提交
400

401
gem 'ruby-prof', '~> 0.17.0'
S
Stan Hu 已提交
402
gem 'rbtrace', '~> 0.4', require: false
403

D
Douwe Maan 已提交
404
# OAuth
405
gem 'oauth2', '~> 1.4'
D
Douwe Maan 已提交
406

407
# Health check
408
gem 'health_check', '~> 2.6.0'
409 410

# System information
C
Chris Wilson 已提交
411
gem 'vmstat', '~> 2.3.0'
412
gem 'sys-filesystem', '~> 1.1.6'
413

414
# SSH host key support
415
gem 'net-ssh', '~> 5.0'
416
gem 'sshkey', '~> 1.9.0'
417 418 419

# Required for ED25519 SSH host key support
group :ed25519 do
420
  gem 'ed25519', '~> 1.2'
421 422 423
  gem 'bcrypt_pbkdf', '~> 1.0'
end

424
# Gitaly GRPC client
425
gem 'gitaly-proto', '~> 0.123.0', require: 'gitaly'
A
Alejandro Rodríguez 已提交
426
gem 'grpc', '~> 1.15.0'
Z
Zeger-Jan van de Weg 已提交
427

S
Stan Hu 已提交
428
gem 'google-protobuf', '~> 3.6'
429

K
Ken 已提交
430
gem 'toml-rb', '~> 1.0.0', require: false
431 432

# Feature toggles
P
Pirate Praveen 已提交
433 434 435
gem 'flipper', '~> 0.13.0'
gem 'flipper-active_record', '~> 0.13.0'
gem 'flipper-active_support_cache_store', '~> 0.13.0'
436 437 438

# Structured logging
gem 'lograge', '~> 0.5'
439
gem 'grape_logging', '~> 1.7'