Gemfile 10.3 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
end

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

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

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

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

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

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

D
Dmitriy Zaporozhets 已提交
25
# Default values for AR models
26 27 28 29 30
if rails5?
  gem 'gitlab-default_value_for', '~> 3.1.1', require: 'default_value_for'
else
  gem 'default_value_for', '~> 3.0.0'
end
D
Dmitriy Zaporozhets 已提交
31

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

S
Stan Hu 已提交
36
gem 'rugged', '~> 0.27'
37
gem 'grape-path-helpers', '~> 1.0'
R
Robert Speicher 已提交
38

39
gem 'faraday', '~> 0.12'
D
Douglas Barbosa Alexandre 已提交
40

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

63
# Spam and anti-bot protection
64
gem 'recaptcha', '~> 3.0', require: 'recaptcha/rails'
65
gem 'akismet', '~> 2.0'
66

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

73
# GitLab Pages
74
gem 'validates_hostname', '~> 1.0.6'
75

76
# Browser detection
S
Stan Hu 已提交
77
gem 'browser', '~> 2.5'
78

K
Kevin O'Connor 已提交
79 80 81
# GPG
gem 'gpgme'

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

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

N
Nick Thomas 已提交
93
# GraphQL API
94
gem 'graphql', '~> 1.8.0'
N
Nick Thomas 已提交
95 96
gem 'graphiql-rails', '~> 1.4.10'

97 98 99
# Disable strong_params so that Mash does not respond to :permitted?
gem 'hashie-forbidden_attributes'

R
randx 已提交
100
# Pagination
101
gem 'kaminari', '~> 1.0'
R
randx 已提交
102 103

# HAML
104
gem 'hamlit', '~> 2.8.8'
R
randx 已提交
105 106

# Files attachments
107 108 109
# 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'
110
gem 'mini_magick'
111

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

121
# for Google storage
122
gem 'google-api-client', '~> 0.23'
123

124
# for aws storage
B
bogdanvlviv 已提交
125
gem 'unf', '~> 0.1.4'
R
randx 已提交
126 127

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

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

150 151 152
# Calendar rendering
gem 'icalendar'

S
skv-headless 已提交
153
# Diffs
M
Manuel Rüger 已提交
154
gem 'diffy', '~> 3.1.0'
S
skv-headless 已提交
155

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

162 163 164 165 166
group :puma do
  gem 'puma', '~> 3.12', require: false
  gem 'puma_worker_killer', require: false
end

A
Andrew8xx8 已提交
167
# State machine
168
gem 'state_machines-activerecord', '~> 0.5.1'
A
Andrew8xx8 已提交
169

R
randx 已提交
170
# Issue tags
171
gem 'acts-as-taggable-on', '~> 5.0'
R
randx 已提交
172 173

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

S
Shinya Maeda 已提交
178
# Cron Parser
179
gem 'rufus-scheduler', '~> 3.4'
S
Shinya Maeda 已提交
180

R
randx 已提交
181
# HTTP requests
B
bogdanvlviv 已提交
182
gem 'httparty', '~> 0.13.3'
R
randx 已提交
183 184

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

187 188
# Progress bar
gem 'ruby-progressbar'
R
randx 已提交
189

R
Riyad Preukschas 已提交
190
# GitLab settings
D
Douwe Maan 已提交
191
gem 'settingslogic', '~> 2.0.9'
A
Aleksei Kvitinskii 已提交
192

193
# Linear-time regex library for untrusted regular expressions
194
gem 're2', '~> 1.1.1'
195

R
randx 已提交
196
# Misc
D
Douwe Maan 已提交
197

198
gem 'version_sorter', '~> 2.1.0'
R
randx 已提交
199

200 201 202
# Export Ruby Regex to Javascript
gem 'js_regex', '~> 2.2.1'

203 204 205
# User agent parsing
gem 'device_detector'

206
# Cache
207
gem 'redis-rails', '~> 5.0.2'
208

209 210 211 212
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'

B
blackst0ne 已提交
213
# Discord integration
B
blackst0ne 已提交
214
gem 'discordrb-webhooks-blackst0ne', '~> 3.3', require: false
B
blackst0ne 已提交
215

R
Ronald van Eede 已提交
216
# HipChat integration
C
Chulki Lee 已提交
217
gem 'hipchat', '~> 1.5.0'
R
Ronald van Eede 已提交
218

D
Drew Blessing 已提交
219
# JIRA integration
220
gem 'jira-ruby', '~> 1.4'
D
Drew Blessing 已提交
221

222
# Flowdock integration
223
gem 'flowdock', '~> 0.7'
224

225
# Slack integration
226
gem 'slack-notifier', '~> 1.5.1'
227

228 229 230
# Hangouts Chat integration
gem 'hangouts-chat', '~> 0.0.5'

J
Jeremy 已提交
231
# Asana integration
T
Takuya Noguchi 已提交
232
gem 'asana', '~> 0.8.1'
J
Jeremy 已提交
233

J
Jared Szechy 已提交
234
# FogBugz integration
J
Jared Szechy 已提交
235
gem 'ruby-fogbugz', '~> 0.2.1'
J
Jared Szechy 已提交
236

237
# Kubernetes integration
238
gem 'kubeclient', '~> 3.1.0'
239

240
# Sanitize user input
241
gem 'sanitize', '~> 4.6'
242
gem 'babosa', '~> 1.0.2'
243

S
Stan Hu 已提交
244
# Sanitizes SVG input
245
gem 'loofah', '~> 2.2'
S
Stan Hu 已提交
246

247
# Working with license
P
Pirate Praveen 已提交
248
gem 'licensee', '~> 8.9'
249

M
Marin Jankovski 已提交
250
# Protect against bruteforcing
M
Manuel Rüger 已提交
251
gem 'rack-attack', '~> 4.4.1'
M
Marin Jankovski 已提交
252

D
Dmitriy Zaporozhets 已提交
253
# Ace editor
254
gem 'ace-rails-ap', '~> 4.1.0'
D
Dmitriy Zaporozhets 已提交
255

256
# Detect and convert string character encoding
J
Jacob Vosmaer 已提交
257
gem 'charlock_holmes', '~> 0.7.5'
258

D
dosire 已提交
259 260 261
# Faster blank
gem 'fast_blank'

R
Rémy Coutable 已提交
262 263
# Parse time & duration
gem 'chronic', '~> 0.10.2'
264 265
gem 'chronic_duration', '~> 0.10.6'

M
Mike Greiling 已提交
266
gem 'webpack-rails', '~> 0.9.10'
267 268
gem 'rack-proxy', '~> 0.6.0'

269
gem 'sass-rails', '~> 5.0.6'
B
bogdanvlviv 已提交
270
gem 'uglifier', '~> 2.7.2'
271

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

282
# Sentry integration
283
gem 'sentry-raven', '~> 2.7'
284

285
gem 'premailer-rails', '~> 1.9.7'
D
Douwe Maan 已提交
286

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

294
gem 'batch-loader', '~> 1.2.1'
295

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

305 306
# Metrics
group :metrics do
307
  gem 'method_source', '~> 0.8', require: false
308
  gem 'influxdb', '~> 0.2', require: false
309

310
  # Prometheus
S
Stan Hu 已提交
311
  gem 'prometheus-client-mmap', '~> 0.9.4'
312
  gem 'raindrops', '~> 0.18'
313 314
end

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

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

322
  # Better errors handler
323
  gem 'better_errors', '~> 2.1.0'
324
  gem 'binding_of_caller', '~> 0.8.0'
325

326
  # thin instead webrick
C
Connor Shea 已提交
327
  gem 'thin', '~> 1.7.0'
G
gitlabhq 已提交
328 329 330
end

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

336
  gem 'awesome_print', require: false
R
Robert Speicher 已提交
337
  gem 'fuubar', '~> 2.2.0'
D
Douwe Maan 已提交
338

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

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

350
  # Generate Fake data
T
Takuya Noguchi 已提交
351
  gem 'ffaker', '~> 2.10'
352

353
  gem 'capybara', '~> 2.15'
R
Robert Speicher 已提交
354
  gem 'capybara-screenshot', '~> 1.0.0'
355
  gem 'selenium-webdriver', '~> 3.12'
A
Andrew8xx8 已提交
356

R
Robert Speicher 已提交
357
  gem 'spring', '~> 2.0.0'
M
Markus Koller 已提交
358
  gem 'spring-commands-rspec', '~> 1.0.4'
D
Douwe Maan 已提交
359

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

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

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

372
  gem 'license_finder', '~> 5.4', require: false
373
  gem 'knapsack', '~> 1.17'
374

B
blackst0ne 已提交
375
  gem 'activerecord_sane_schema_dumper', gem_versions['activerecord_sane_schema_dumper']
376

377
  gem 'stackprof', '~> 0.2.10', require: false
B
Bob Van Landuyt 已提交
378 379

  gem 'simple_po_parser', '~> 1.1.2', require: false
380 381

  gem 'timecop', '~> 0.8.0'
G
gitlabhq 已提交
382 383 384
end

group :test do
385
  gem 'shoulda-matchers', '~> 3.1.2', require: false
T
Takuya Noguchi 已提交
386
  gem 'email_spec', '~> 2.2.0'
387
  gem 'json-schema', '~> 2.8.0'
388
  gem 'webmock', '~> 2.3.2'
389
  gem 'rails-controller-testing' if rails5? # Rails5 only gem.
390
  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 已提交
391
  gem 'sham_rack', '~> 1.3.6'
392
  gem 'concurrent-ruby', '~> 1.0.5'
R
Rémy Coutable 已提交
393
  gem 'test-prof', '~> 0.2.5'
394
  gem 'rspec_junit_formatter'
G
gitlabhq 已提交
395
end
396

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

399
gem 'mail_room', '~> 0.9.1'
D
Douwe Maan 已提交
400

401
gem 'email_reply_trimmer', '~> 0.1'
402
gem 'html2text'
D
Douwe Maan 已提交
403

404
gem 'ruby-prof', '~> 0.17.0'
S
Stan Hu 已提交
405
gem 'rbtrace', '~> 0.4', require: false
406

D
Douwe Maan 已提交
407
# OAuth
408
gem 'oauth2', '~> 1.4'
D
Douwe Maan 已提交
409

410
# Health check
411
gem 'health_check', '~> 2.6.0'
412 413

# System information
C
Chris Wilson 已提交
414
gem 'vmstat', '~> 2.3.0'
415
gem 'sys-filesystem', '~> 1.1.6'
416

417
# SSH host key support
418
gem 'net-ssh', '~> 5.0'
419
gem 'sshkey', '~> 1.9.0'
420 421 422

# Required for ED25519 SSH host key support
group :ed25519 do
423
  gem 'ed25519', '~> 1.2'
424 425 426
  gem 'bcrypt_pbkdf', '~> 1.0'
end

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

S
Stan Hu 已提交
431
gem 'google-protobuf', '~> 3.6'
432

K
Ken 已提交
433
gem 'toml-rb', '~> 1.0.0', require: false
434 435

# Feature toggles
P
Pirate Praveen 已提交
436 437 438
gem 'flipper', '~> 0.13.0'
gem 'flipper-active_record', '~> 0.13.0'
gem 'flipper-active_support_cache_store', '~> 0.13.0'
439 440 441

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