Gemfile 10.4 KB
Newer Older
B
blackst0ne 已提交
1 2 3 4 5 6 7 8 9 10 11 12
# --- Special code for migrating to Rails 5.0 ---
def rails5?
  %w[1 true].include?(ENV["RAILS5"])
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'
gem_versions['rails']                           = rails5? ? '5.0.6'    : '4.2.10'
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

# Responders respond_to and respond_with
gem 'responders', '~> 2.0'
20

U
ubudzisz 已提交
21
gem 'sprockets', '~> 3.7.0'
22

D
Dmitriy Zaporozhets 已提交
23
# Default values for AR models
B
blackst0ne 已提交
24
gem 'default_value_for', gem_versions['default_value_for']
D
Dmitriy Zaporozhets 已提交
25

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

S
Stan Hu 已提交
30
gem 'rugged', '~> 0.27'
Z
Zeger-Jan van de Weg 已提交
31
gem 'grape-route-helpers', '~> 2.1.0'
R
Robert Speicher 已提交
32

33
gem 'faraday', '~> 0.12'
D
Douglas Barbosa Alexandre 已提交
34

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

57
# Spam and anti-bot protection
58
gem 'recaptcha', '~> 3.0', require: 'recaptcha/rails'
59
gem 'akismet', '~> 2.0'
60

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

67
# GitLab Pages
68
gem 'validates_hostname', '~> 1.0.6'
69

70
# Browser detection
B
bogdanvlviv 已提交
71
gem 'browser', '~> 2.2'
72

K
Kevin O'Connor 已提交
73 74 75
# GPG
gem 'gpgme'

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

82
# Git Wiki
83
# Required manually in config/initializers/gollum.rb to control load order
84
gem 'gitlab-gollum-lib', '~> 4.2', require: false
85 86

gem 'gitlab-gollum-rugged_adapter', '~> 0.4.4', require: false
87

V
Valeriy Sizov 已提交
88
# Language detection
89
gem 'github-linguist', '~> 5.3.3', require: 'linguist'
V
Valeriy Sizov 已提交
90

R
randx 已提交
91
# API
Z
Zeger-Jan van de Weg 已提交
92
gem 'grape', '~> 1.0'
Z
Z.J. van de Weg 已提交
93
gem 'grape-entity', '~> 0.6.0'
94
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
R
randx 已提交
95

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

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

# HAML
R
Robert Speicher 已提交
103
gem 'hamlit', '~> 2.6.1'
R
randx 已提交
104 105

# Files attachments
T
Takuya Noguchi 已提交
106
gem 'carrierwave', '~> 1.2'
107

108
# Drag and Drop UI
D
Douwe Maan 已提交
109
gem 'dropzonejs-rails', '~> 0.7.1'
110

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

120
# for Google storage
P
Pirate Praveen 已提交
121
gem 'google-api-client', '~> 0.19.8'
122

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

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

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

S
skv-headless 已提交
147
# Diffs
M
Manuel Rüger 已提交
148
gem 'diffy', '~> 3.1.0'
S
skv-headless 已提交
149

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

A
Andrew8xx8 已提交
156
# State machine
157
gem 'state_machines-activerecord', '~> 0.5.1'
A
Andrew8xx8 已提交
158

R
randx 已提交
159
# Issue tags
160
gem 'acts-as-taggable-on', '~> 5.0'
R
randx 已提交
161 162

# Background jobs
D
Douwe Maan 已提交
163
gem 'sidekiq', '~> 5.0'
164
gem 'sidekiq-cron', '~> 0.6.0'
B
bogdanvlviv 已提交
165
gem 'redis-namespace', '~> 1.5.2'
166
gem 'sidekiq-limit_fetch', '~> 3.4', require: false
R
randx 已提交
167

S
Shinya Maeda 已提交
168
# Cron Parser
169
gem 'rufus-scheduler', '~> 3.4'
S
Shinya Maeda 已提交
170

R
randx 已提交
171
# HTTP requests
B
bogdanvlviv 已提交
172
gem 'httparty', '~> 0.13.3'
R
randx 已提交
173 174

# Colored output to console
175
gem 'rainbow', '~> 2.2'
R
randx 已提交
176

R
Riyad Preukschas 已提交
177
# GitLab settings
D
Douwe Maan 已提交
178
gem 'settingslogic', '~> 2.0.9'
A
Aleksei Kvitinskii 已提交
179

180
# Linear-time regex library for untrusted regular expressions
181
gem 're2', '~> 1.1.1'
182

R
randx 已提交
183
# Misc
D
Douwe Maan 已提交
184

185
gem 'version_sorter', '~> 2.1.0'
R
randx 已提交
186

187 188 189
# User agent parsing
gem 'device_detector'

190
# Cache
191
gem 'redis-rails', '~> 5.0.2'
192

193 194 195 196
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'

R
Ronald van Eede 已提交
197
# HipChat integration
C
Chulki Lee 已提交
198
gem 'hipchat', '~> 1.5.0'
R
Ronald van Eede 已提交
199

D
Drew Blessing 已提交
200
# JIRA integration
201
gem 'jira-ruby', '~> 1.4'
D
Drew Blessing 已提交
202

203
# Flowdock integration
B
bogdanvlviv 已提交
204
gem 'gitlab-flowdock-git-hook', '~> 1.0.1'
205

206
# Gemnasium integration
B
bogdanvlviv 已提交
207
gem 'gemnasium-gitlab-service', '~> 0.2'
208

209
# Slack integration
210
gem 'slack-notifier', '~> 1.5.1'
211

J
Jeremy 已提交
212
# Asana integration
D
Douglas Barbosa Alexandre 已提交
213
gem 'asana', '~> 0.6.0'
J
Jeremy 已提交
214

J
Jared Szechy 已提交
215
# FogBugz integration
J
Jared Szechy 已提交
216
gem 'ruby-fogbugz', '~> 0.2.1'
J
Jared Szechy 已提交
217

218
# Kubernetes integration
P
Pirate Praveen 已提交
219
gem 'kubeclient', '~> 3.0'
220

221
# d3
R
Robert Speicher 已提交
222
gem 'd3_rails', '~> 3.5.0'
223

224
# Sanitize user input
B
bogdanvlviv 已提交
225
gem 'sanitize', '~> 2.0'
226
gem 'babosa', '~> 1.0.2'
227

S
Stan Hu 已提交
228
# Sanitizes SVG input
229
gem 'loofah', '~> 2.2'
S
Stan Hu 已提交
230

231
# Working with license
P
Pirate Praveen 已提交
232
gem 'licensee', '~> 8.9'
233

M
Marin Jankovski 已提交
234
# Protect against bruteforcing
M
Manuel Rüger 已提交
235
gem 'rack-attack', '~> 4.4.1'
M
Marin Jankovski 已提交
236

D
Dmitriy Zaporozhets 已提交
237
# Ace editor
238
gem 'ace-rails-ap', '~> 4.1.0'
D
Dmitriy Zaporozhets 已提交
239

240
# Keyboard shortcuts
D
Douwe Maan 已提交
241
gem 'mousetrap-rails', '~> 1.4.6'
R
Robert Schilling 已提交
242

243
# Detect and convert string character encoding
J
Jacob Vosmaer 已提交
244
gem 'charlock_holmes', '~> 0.7.5'
245

D
dosire 已提交
246 247 248
# Faster blank
gem 'fast_blank'

R
Rémy Coutable 已提交
249 250
# Parse time & duration
gem 'chronic', '~> 0.10.2'
251 252
gem 'chronic_duration', '~> 0.10.6'

M
Mike Greiling 已提交
253
gem 'webpack-rails', '~> 0.9.10'
254 255
gem 'rack-proxy', '~> 0.6.0'

256
gem 'sass-rails', '~> 5.0.6'
B
bogdanvlviv 已提交
257
gem 'uglifier', '~> 2.7.2'
258

259
gem 'addressable', '~> 2.5.2'
M
Markus Koller 已提交
260
gem 'bootstrap-sass', '~> 3.3.0'
261
gem 'font-awesome-rails', '~> 4.7'
262
gem 'gemojione', '~> 3.3'
M
Markus Koller 已提交
263
gem 'gon', '~> 6.1.0'
264
gem 'jquery-atwho-rails', '~> 1.3.2'
M
Markus Koller 已提交
265 266 267 268
gem 'request_store', '~> 1.3'
gem 'select2-rails', '~> 3.5.9'
gem 'virtus', '~> 1.0.1'
gem 'base32', '~> 0.3.0'
G
gitlabhq 已提交
269

270
# Sentry integration
271
gem 'sentry-raven', '~> 2.7'
272

273
gem 'premailer-rails', '~> 1.9.7'
D
Douwe Maan 已提交
274

R
Ruben Davila 已提交
275
# I18n
276
gem 'ruby_parser', '~> 3.8', require: false
B
blackst0ne 已提交
277
gem 'rails-i18n', gem_versions['rails-i18n']
R
Ruben Davila 已提交
278
gem 'gettext_i18n_rails', '~> 1.8.0'
279
gem 'gettext_i18n_rails_js', '~> 1.3'
R
Ruben Davila 已提交
280 281
gem 'gettext', '~> 3.2.2', require: false, group: :development

282
gem 'batch-loader', '~> 1.2.1'
283

284 285 286 287
# Perf bar
gem 'peek', '~> 1.0.1'
gem 'peek-gc', '~> 0.0.2'
gem 'peek-mysql2', '~> 1.1.0', group: :mysql
288
gem 'peek-pg', '~> 1.3.0', group: :postgres
289 290 291 292
gem 'peek-rblineprof', '~> 0.2.0'
gem 'peek-redis', '~> 1.2.0'
gem 'peek-sidekiq', '~> 1.0.3'

293 294
# Metrics
group :metrics do
295
  gem 'allocations', '~> 1.0', require: false, platform: :mri
296
  gem 'method_source', '~> 0.8', require: false
297
  gem 'influxdb', '~> 0.2', require: false
298

299
  # Prometheus
300
  gem 'prometheus-client-mmap', '~> 0.9.1'
301
  gem 'raindrops', '~> 0.18'
302 303
end

N
Nihad Abbasov 已提交
304
group :development do
305
  gem 'foreman', '~> 0.84.0'
T
Takuya Noguchi 已提交
306
  gem 'brakeman', '~> 4.2', require: false
D
Douwe Maan 已提交
307

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

311
  # Better errors handler
312
  gem 'better_errors', '~> 2.1.0'
D
Douwe Maan 已提交
313
  gem 'binding_of_caller', '~> 0.7.2'
314

315
  # thin instead webrick
C
Connor Shea 已提交
316
  gem 'thin', '~> 1.7.0'
G
gitlabhq 已提交
317 318 319
end

group :development, :test do
320
  gem 'bullet', '~> 5.5.0', require: !!ENV['ENABLE_BULLET']
S
Semyon Pupkov 已提交
321
  gem 'pry-byebug', '~> 3.4.1', platform: :mri
B
bogdanvlviv 已提交
322
  gem 'pry-rails', '~> 0.3.4'
R
Robert Speicher 已提交
323

324
  gem 'awesome_print', '~> 1.2.0', require: false
R
Robert Speicher 已提交
325
  gem 'fuubar', '~> 2.2.0'
D
Douwe Maan 已提交
326

M
Markus Koller 已提交
327
  gem 'database_cleaner', '~> 1.5.0'
328
  gem 'factory_bot_rails', '~> 4.8.2'
R
Robert Speicher 已提交
329
  gem 'rspec-rails', '~> 3.6.0'
M
Markus Koller 已提交
330 331
  gem 'rspec-retry', '~> 0.4.5'
  gem 'spinach-rails', '~> 0.2.1'
K
Kamil Trzcinski 已提交
332
  gem 'spinach-rerun-reporter', '~> 0.0.2'
M
Markus Koller 已提交
333
  gem 'rspec_profiling', '~> 0.0.5'
334
  gem 'rspec-set', '~> 0.1.3'
335
  gem 'rspec-parameterized', require: false
R
randx 已提交
336

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

340
  # Generate Fake data
341
  gem 'ffaker', '~> 2.4'
342

343
  gem 'capybara', '~> 2.15'
R
Robert Speicher 已提交
344
  gem 'capybara-screenshot', '~> 1.0.0'
345
  gem 'selenium-webdriver', '~> 3.5'
A
Andrew8xx8 已提交
346

R
Robert Speicher 已提交
347
  gem 'spring', '~> 2.0.0'
M
Markus Koller 已提交
348 349
  gem 'spring-commands-rspec', '~> 1.0.4'
  gem 'spring-commands-spinach', '~> 1.1.0'
D
Douwe Maan 已提交
350

351
  gem 'gitlab-styles', '~> 2.3', require: false
R
Rémy Coutable 已提交
352
  # Pin these dependencies, otherwise a new rule could break the CI pipelines
353 354
  gem 'rubocop', '~> 0.52.1'
  gem 'rubocop-rspec', '~> 1.22.1'
R
Rémy Coutable 已提交
355

T
Takuya Noguchi 已提交
356
  gem 'scss_lint', '~> 0.56.0', require: false
357
  gem 'haml_lint', '~> 0.26.0', require: false
358
  gem 'simplecov', '~> 0.14.0', require: false
359
  gem 'flay', '~> 2.10.0', require: false
B
bogdanvlviv 已提交
360
  gem 'bundler-audit', '~> 0.5.0', require: false
361

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

W
Winnie Hellmann 已提交
364
  gem 'license_finder', '~> 3.1', require: false
T
Takuya Noguchi 已提交
365
  gem 'knapsack', '~> 1.16'
366

B
blackst0ne 已提交
367
  gem 'activerecord_sane_schema_dumper', gem_versions['activerecord_sane_schema_dumper']
368

369
  gem 'stackprof', '~> 0.2.10', require: false
B
Bob Van Landuyt 已提交
370 371

  gem 'simple_po_parser', '~> 1.1.2', require: false
372 373

  gem 'timecop', '~> 0.8.0'
G
gitlabhq 已提交
374 375 376
end

group :test do
377
  gem 'shoulda-matchers', '~> 3.1.2', require: false
R
Robert Speicher 已提交
378
  gem 'email_spec', '~> 1.6.0'
379
  gem 'json-schema', '~> 2.8.0'
380
  gem 'webmock', '~> 2.3.2'
381
  gem 'rails-controller-testing' if rails5? # Rails5 only gem.
382
  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 已提交
383
  gem 'sham_rack', '~> 1.3.6'
384
  gem 'concurrent-ruby', '~> 1.0.5'
R
Rémy Coutable 已提交
385
  gem 'test-prof', '~> 0.2.5'
G
gitlabhq 已提交
386
end
387

P
Pirate Praveen 已提交
388
gem 'octokit', '~> 4.8'
D
Douwe Maan 已提交
389

390
gem 'mail_room', '~> 0.9.1'
D
Douwe Maan 已提交
391

392
gem 'email_reply_trimmer', '~> 0.1'
393
gem 'html2text'
D
Douwe Maan 已提交
394

395
gem 'ruby-prof', '~> 0.17.0'
396

D
Douwe Maan 已提交
397
# OAuth
398
gem 'oauth2', '~> 1.4'
D
Douwe Maan 已提交
399

400
# Health check
401
gem 'health_check', '~> 2.6.0'
402 403

# System information
C
Chris Wilson 已提交
404
gem 'vmstat', '~> 2.3.0'
405
gem 'sys-filesystem', '~> 1.1.6'
406

407
# SSH host key support
408
gem 'net-ssh', '~> 4.2.0'
409
gem 'sshkey', '~> 1.9.0'
410 411 412 413

# Required for ED25519 SSH host key support
group :ed25519 do
  gem 'rbnacl-libsodium'
N
Nick Thomas 已提交
414
  gem 'rbnacl', '~> 4.0'
415 416 417
  gem 'bcrypt_pbkdf', '~> 1.0'
end

418
# Gitaly GRPC client
419
gem 'gitaly-proto', '~> 0.97.0', require: 'gitaly'
J
Jacob Vosmaer 已提交
420
gem 'grpc', '~> 1.11.0'
Z
Zeger-Jan van de Weg 已提交
421

Z
Zeger-Jan van de Weg 已提交
422 423
# Locked until https://github.com/google/protobuf/issues/4210 is closed
gem 'google-protobuf', '= 3.5.1'
424

K
Ken 已提交
425
gem 'toml-rb', '~> 1.0.0', require: false
426 427

# Feature toggles
P
Pirate Praveen 已提交
428 429 430
gem 'flipper', '~> 0.13.0'
gem 'flipper-active_record', '~> 0.13.0'
gem 'flipper-active_support_cache_store', '~> 0.13.0'
431 432 433

# Structured logging
gem 'lograge', '~> 0.5'
434
gem 'grape_logging', '~> 1.7'
I
Ian Baum 已提交
435 436 437

# Asset synchronization
gem 'asset_sync', '~> 2.2.0'