Gemfile 10.3 KB
Newer Older
blackst0ne's avatar
blackst0ne committed
1 2 3 4 5 6 7 8
# --- 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'
9
gem_versions['rails']                           = rails5? ? '5.0.7'    : '4.2.10'
blackst0ne's avatar
blackst0ne committed
10 11 12
gem_versions['rails-i18n']                      = rails5? ? '~> 5.1'   : '~> 4.0.9'
# --- The end of special code for migrating to Rails 5.0 ---

bogdanvlviv's avatar
bogdanvlviv committed
13
source 'https://rubygems.org'
gitlabhq's avatar
gitlabhq committed
14

blackst0ne's avatar
blackst0ne committed
15
gem 'rails', gem_versions['rails']
16
gem 'rails-deprecated_sanitizer', '~> 1.0.3'
Valery Sizov's avatar
Valery Sizov committed
17 18 19

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

ubudzisz's avatar
ubudzisz committed
21
gem 'sprockets', '~> 3.7.0'
22

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
23
# Default values for AR models
blackst0ne's avatar
blackst0ne committed
24
gem 'default_value_for', gem_versions['default_value_for']
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
25

26
# Supported DBs
27
gem 'mysql2', '~> 0.4.10', group: :mysql
bogdanvlviv's avatar
bogdanvlviv committed
28
gem 'pg', '~> 0.18.2', group: :postgres
29

Stan Hu's avatar
Stan Hu committed
30
gem 'rugged', '~> 0.27'
31
gem 'grape-route-helpers', '~> 2.1.0'
Robert Speicher's avatar
Robert Speicher committed
32

33
gem 'faraday', '~> 0.12'
34

karen Carias's avatar
karen Carias committed
35
# Authentication libraries
Pirate Praveen's avatar
Pirate Praveen committed
36
gem 'devise', '~> 4.4'
37 38
gem 'doorkeeper', '~> 4.3'
gem 'doorkeeper-openid_connect', '~> 1.3'
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'
43
gem 'omniauth-facebook', '~> 4.0.0'
44
gem 'omniauth-github', '~> 1.3'
45
gem 'omniauth-gitlab', '~> 1.0.2'
46
gem 'omniauth-google-oauth2', '~> 0.5.3'
47
gem 'omniauth-kerberos', '~> 0.3.0', group: :kerberos
48
gem 'omniauth-oauth2-generic', '~> 0.2.2'
Pirate Praveen's avatar
Pirate Praveen committed
49
gem 'omniauth-saml', '~> 1.10'
50
gem 'omniauth-shibboleth', '~> 1.2.0'
51
gem 'omniauth-twitter', '~> 1.4'
52
gem 'omniauth_crowd', '~> 2.2.0'
53
gem 'omniauth-authentiq', '~> 0.3.1'
54 55
gem 'rack-oauth2', '~> 1.2.1'
gem 'jwt', '~> 1.5.6'
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'
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
bogdanvlviv's avatar
bogdanvlviv committed
71
gem 'browser', '~> 2.2'
72

73 74 75
# GPG
gem 'gpgme'

76
# LDAP Auth
Yorick Peterse's avatar
Yorick Peterse committed
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

88
# Language detection
89
gem 'github-linguist', '~> 5.3.3', require: 'linguist'
90

randx's avatar
randx committed
91
# API
92
gem 'grape', '~> 1.0'
93
gem 'grape-entity', '~> 0.7.1'
94
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
randx's avatar
randx committed
95

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

randx's avatar
randx committed
99
# Pagination
100
gem 'kaminari', '~> 1.0'
randx's avatar
randx committed
101 102

# HAML
Robert Speicher's avatar
Robert Speicher committed
103
gem 'hamlit', '~> 2.6.1'
randx's avatar
randx committed
104 105

# Files attachments
Takuya Noguchi's avatar
Takuya Noguchi committed
106
gem 'carrierwave', '~> 1.2'
107

108
# Drag and Drop UI
109
gem 'dropzonejs-rails', '~> 0.7.1'
110

111
# for backups
112
gem 'fog-aws', '~> 2.0.1'
113
gem 'fog-core', '~> 1.44'
114
gem 'fog-google', '~> 1.3.3'
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'
119

120
# for Google storage
Pirate Praveen's avatar
Pirate Praveen committed
121
gem 'google-api-client', '~> 0.19.8'
122

123
# for aws storage
bogdanvlviv's avatar
bogdanvlviv committed
124
gem 'unf', '~> 0.1.4'
randx's avatar
randx committed
125 126

# Seed data
127
gem 'seed-fu', '~> 2.3.7'
randx's avatar
randx committed
128

Robert Speicher's avatar
Robert Speicher committed
129
# Markdown and HTML processing
blackst0ne's avatar
blackst0ne committed
130
gem 'html-pipeline', '~> 2.7.1'
Jared Deckard's avatar
Jared Deckard committed
131
gem 'deckar01-task_list', '2.0.0'
Markus Koller's avatar
Markus Koller committed
132
gem 'gitlab-markup', '~> 1.6.2'
133
gem 'redcarpet', '~> 3.4'
134
gem 'commonmarker', '~> 0.17'
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'
140
gem 'asciidoctor', '~> 1.5.6'
141
gem 'asciidoctor-plantuml', '0.0.8'
142
gem 'rouge', '~> 3.1'
143
gem 'truncato', '~> 0.7.9'
Nick Thomas's avatar
Nick Thomas committed
144
gem 'bootstrap_form', '~> 2.7.0'
Rémy Coutable's avatar
Rémy Coutable committed
145
gem 'nokogiri', '~> 1.8.2'
146

skv-headless's avatar
skv-headless committed
147
# Diffs
Manuel Rüger's avatar
Manuel Rüger committed
148
gem 'diffy', '~> 3.1.0'
skv-headless's avatar
skv-headless committed
149

150
# Application server
151
group :unicorn do
152 153
  gem 'unicorn', '~> 5.1.0'
  gem 'unicorn-worker-killer', '~> 0.4.4'
154
end
randx's avatar
randx committed
155

Andrew8xx8's avatar
Andrew8xx8 committed
156
# State machine
157
gem 'state_machines-activerecord', '~> 0.5.1'
Andrew8xx8's avatar
Andrew8xx8 committed
158

randx's avatar
randx committed
159
# Issue tags
160
gem 'acts-as-taggable-on', '~> 5.0'
randx's avatar
randx committed
161 162

# Background jobs
Douwe Maan's avatar
Douwe Maan committed
163
gem 'sidekiq', '~> 5.0'
164
gem 'sidekiq-cron', '~> 0.6.0'
bogdanvlviv's avatar
bogdanvlviv committed
165
gem 'redis-namespace', '~> 1.5.2'
166
gem 'sidekiq-limit_fetch', '~> 3.4', require: false
randx's avatar
randx committed
167

168
# Cron Parser
169
gem 'rufus-scheduler', '~> 3.4'
170

randx's avatar
randx committed
171
# HTTP requests
bogdanvlviv's avatar
bogdanvlviv committed
172
gem 'httparty', '~> 0.13.3'
randx's avatar
randx committed
173 174

# Colored output to console
175
gem 'rainbow', '~> 2.2'
randx's avatar
randx committed
176

Riyad Preukschas's avatar
Riyad Preukschas committed
177
# GitLab settings
178
gem 'settingslogic', '~> 2.0.9'
Aleksei Kvitinskii's avatar
Aleksei Kvitinskii committed
179

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

randx's avatar
randx committed
183
# Misc
184

185
gem 'version_sorter', '~> 2.1.0'
randx's avatar
randx committed
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'

197
# HipChat integration
Chulki Lee's avatar
Chulki Lee committed
198
gem 'hipchat', '~> 1.5.0'
199

200
# JIRA integration
201
gem 'jira-ruby', '~> 1.4'
202

203
# Flowdock integration
bogdanvlviv's avatar
bogdanvlviv committed
204
gem 'gitlab-flowdock-git-hook', '~> 1.0.1'
205

206
# Gemnasium integration
bogdanvlviv's avatar
bogdanvlviv committed
207
gem 'gemnasium-gitlab-service', '~> 0.2'
208

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

Jeremy's avatar
Jeremy committed
212
# Asana integration
213
gem 'asana', '~> 0.6.0'
Jeremy's avatar
Jeremy committed
214

Jared Szechy's avatar
Jared Szechy committed
215
# FogBugz integration
Jared Szechy's avatar
Jared Szechy committed
216
gem 'ruby-fogbugz', '~> 0.2.1'
Jared Szechy's avatar
Jared Szechy committed
217

218
# Kubernetes integration
219
gem 'kubeclient', '~> 3.0'
220

221
# Sanitize user input
bogdanvlviv's avatar
bogdanvlviv committed
222
gem 'sanitize', '~> 2.0'
223
gem 'babosa', '~> 1.0.2'
224

Stan Hu's avatar
Stan Hu committed
225
# Sanitizes SVG input
226
gem 'loofah', '~> 2.2'
Stan Hu's avatar
Stan Hu committed
227

228
# Working with license
229
gem 'licensee', '~> 8.9'
230

Marin Jankovski's avatar
Marin Jankovski committed
231
# Protect against bruteforcing
232
gem 'rack-attack', '~> 4.4.1'
Marin Jankovski's avatar
Marin Jankovski committed
233

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
234
# Ace editor
235
gem 'ace-rails-ap', '~> 4.1.0'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
236

237
# Keyboard shortcuts
238
gem 'mousetrap-rails', '~> 1.4.6'
239

240
# Detect and convert string character encoding
Jacob Vosmaer's avatar
Jacob Vosmaer committed
241
gem 'charlock_holmes', '~> 0.7.5'
242

dosire's avatar
dosire committed
243 244 245
# Faster blank
gem 'fast_blank'

246 247
# Parse time & duration
gem 'chronic', '~> 0.10.2'
248 249
gem 'chronic_duration', '~> 0.10.6'

Mike Greiling's avatar
Mike Greiling committed
250
gem 'webpack-rails', '~> 0.9.10'
251 252
gem 'rack-proxy', '~> 0.6.0'

253
gem 'sass-rails', '~> 5.0.6'
bogdanvlviv's avatar
bogdanvlviv committed
254
gem 'uglifier', '~> 2.7.2'
255

256
gem 'addressable', '~> 2.5.2'
257
gem 'bootstrap-sass', '~> 3.3.0'
258
gem 'font-awesome-rails', '~> 4.7'
259
gem 'gemojione', '~> 3.3'
260
gem 'gon', '~> 6.2'
261
gem 'jquery-atwho-rails', '~> 1.3.2'
262 263 264 265
gem 'request_store', '~> 1.3'
gem 'select2-rails', '~> 3.5.9'
gem 'virtus', '~> 1.0.1'
gem 'base32', '~> 0.3.0'
gitlabhq's avatar
gitlabhq committed
266

267
# Sentry integration
268
gem 'sentry-raven', '~> 2.7'
269

270
gem 'premailer-rails', '~> 1.9.7'
271

Ruben Davila's avatar
Ruben Davila committed
272
# I18n
273
gem 'ruby_parser', '~> 3.8', require: false
blackst0ne's avatar
blackst0ne committed
274
gem 'rails-i18n', gem_versions['rails-i18n']
Ruben Davila's avatar
Ruben Davila committed
275
gem 'gettext_i18n_rails', '~> 1.8.0'
276
gem 'gettext_i18n_rails_js', '~> 1.3'
Ruben Davila's avatar
Ruben Davila committed
277 278
gem 'gettext', '~> 3.2.2', require: false, group: :development

279
gem 'batch-loader', '~> 1.2.1'
280

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

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

296
  # Prometheus
297
  gem 'prometheus-client-mmap', '~> 0.9.2'
298
  gem 'raindrops', '~> 0.18'
299 300
end

Nihad Abbasov's avatar
Nihad Abbasov committed
301
group :development do
302
  gem 'foreman', '~> 0.84.0'
303
  gem 'brakeman', '~> 4.2', require: false
304

305
  gem 'letter_opener_web', '~> 1.3.0'
bogdanvlviv's avatar
bogdanvlviv committed
306
  gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
307

308
  # Better errors handler
309
  gem 'better_errors', '~> 2.1.0'
310
  gem 'binding_of_caller', '~> 0.7.2'
311

312
  # thin instead webrick
313
  gem 'thin', '~> 1.7.0'
gitlabhq's avatar
gitlabhq committed
314 315 316
end

group :development, :test do
317
  gem 'bullet', '~> 5.5.0', require: !!ENV['ENABLE_BULLET']
318
  gem 'pry-byebug', '~> 3.4.1', platform: :mri
bogdanvlviv's avatar
bogdanvlviv committed
319
  gem 'pry-rails', '~> 0.3.4'
Robert Speicher's avatar
Robert Speicher committed
320

321
  gem 'awesome_print', '~> 1.2.0', require: false
Robert Speicher's avatar
Robert Speicher committed
322
  gem 'fuubar', '~> 2.2.0'
323

324
  gem 'database_cleaner', '~> 1.5.0'
325
  gem 'factory_bot_rails', '~> 4.8.2'
Robert Speicher's avatar
Robert Speicher committed
326
  gem 'rspec-rails', '~> 3.6.0'
327 328
  gem 'rspec-retry', '~> 0.4.5'
  gem 'spinach-rails', '~> 0.2.1'
Kamil Trzcinski's avatar
Kamil Trzcinski committed
329
  gem 'spinach-rerun-reporter', '~> 0.0.2'
330
  gem 'rspec_profiling', '~> 0.0.5'
331
  gem 'rspec-set', '~> 0.1.3'
332
  gem 'rspec-parameterized', require: false
randx's avatar
randx committed
333

334
  # Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
335
  gem 'minitest', '~> 5.7.0'
336

337
  # Generate Fake data
338
  gem 'ffaker', '~> 2.4'
339

340
  gem 'capybara', '~> 2.15'
Robert Speicher's avatar
Robert Speicher committed
341
  gem 'capybara-screenshot', '~> 1.0.0'
342
  gem 'selenium-webdriver', '~> 3.5'
Andrew8xx8's avatar
Andrew8xx8 committed
343

344
  gem 'spring', '~> 2.0.0'
345 346
  gem 'spring-commands-rspec', '~> 1.0.4'
  gem 'spring-commands-spinach', '~> 1.1.0'
347

348
  gem 'gitlab-styles', '~> 2.3', require: false
Rémy Coutable's avatar
Rémy Coutable committed
349
  # Pin these dependencies, otherwise a new rule could break the CI pipelines
350 351
  gem 'rubocop', '~> 0.52.1'
  gem 'rubocop-rspec', '~> 1.22.1'
Rémy Coutable's avatar
Rémy Coutable committed
352

353
  gem 'scss_lint', '~> 0.56.0', require: false
354
  gem 'haml_lint', '~> 0.26.0', require: false
355
  gem 'simplecov', '~> 0.14.0', require: false
356
  gem 'flay', '~> 2.10.0', require: false
bogdanvlviv's avatar
bogdanvlviv committed
357
  gem 'bundler-audit', '~> 0.5.0', require: false
358

bogdanvlviv's avatar
bogdanvlviv committed
359
  gem 'benchmark-ips', '~> 2.3.0', require: false
Connor Shea's avatar
Connor Shea committed
360

361
  gem 'license_finder', '~> 3.1', require: false
Takuya Noguchi's avatar
Takuya Noguchi committed
362
  gem 'knapsack', '~> 1.16'
363

blackst0ne's avatar
blackst0ne committed
364
  gem 'activerecord_sane_schema_dumper', gem_versions['activerecord_sane_schema_dumper']
365

366
  gem 'stackprof', '~> 0.2.10', require: false
367 368

  gem 'simple_po_parser', '~> 1.1.2', require: false
369 370

  gem 'timecop', '~> 0.8.0'
gitlabhq's avatar
gitlabhq committed
371 372 373
end

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

385
gem 'octokit', '~> 4.8'
Douwe Maan's avatar
Douwe Maan committed
386

387
gem 'mail_room', '~> 0.9.1'
Douwe Maan's avatar
Douwe Maan committed
388

389
gem 'email_reply_trimmer', '~> 0.1'
390
gem 'html2text'
391

392
gem 'ruby-prof', '~> 0.17.0'
393

394
# OAuth
395
gem 'oauth2', '~> 1.4'
396

397
# Health check
398
gem 'health_check', '~> 2.6.0'
399 400

# System information
401
gem 'vmstat', '~> 2.3.0'
402
gem 'sys-filesystem', '~> 1.1.6'
403

404
# SSH host key support
405
gem 'net-ssh', '~> 4.2.0'
406
gem 'sshkey', '~> 1.9.0'
407 408 409 410

# Required for ED25519 SSH host key support
group :ed25519 do
  gem 'rbnacl-libsodium'
411
  gem 'rbnacl', '~> 4.0'
412 413 414
  gem 'bcrypt_pbkdf', '~> 1.0'
end

415
# Gitaly GRPC client
416
gem 'gitaly-proto', '~> 0.99.0', require: 'gitaly'
Jacob Vosmaer's avatar
Jacob Vosmaer committed
417
gem 'grpc', '~> 1.11.0'
418

419 420
# Locked until https://github.com/google/protobuf/issues/4210 is closed
gem 'google-protobuf', '= 3.5.1'
421

Ken's avatar
Ken committed
422
gem 'toml-rb', '~> 1.0.0', require: false
423 424

# Feature toggles
425 426 427
gem 'flipper', '~> 0.13.0'
gem 'flipper-active_record', '~> 0.13.0'
gem 'flipper-active_support_cache_store', '~> 0.13.0'
428 429 430

# Structured logging
gem 'lograge', '~> 0.5'
431
gem 'grape_logging', '~> 1.7'
432 433

# Asset synchronization
434
gem 'asset_sync', '~> 2.4'