Gemfile 10.4 KB
Newer Older
blackst0ne's avatar
blackst0ne committed
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 ---

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
36
gem 'devise', '~> 4.2'
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 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'
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
gem 'omniauth-jwt', '~> 0.0.2'
55 56
gem 'rack-oauth2', '~> 1.2.1'
gem 'jwt', '~> 1.5.6'
57

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

62
# Two-factor authentication
63
gem 'devise-two-factor', '~> 3.0.0'
64
gem 'rqrcode-rails3', '~> 0.1.7'
65
gem 'attr_encrypted', '~> 3.0.0'
66
gem 'u2f', '~> 0.2.1'
67

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

71
# Browser detection
bogdanvlviv's avatar
bogdanvlviv committed
72
gem 'browser', '~> 2.2'
73

74 75 76
# GPG
gem 'gpgme'

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

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

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

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

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

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

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

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

# Files attachments
107
gem 'carrierwave', '~> 1.2'
108

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

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

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

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

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

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

skv-headless's avatar
skv-headless committed
148
# Diffs
149
gem 'diffy', '~> 3.1.0'
skv-headless's avatar
skv-headless committed
150

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

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

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

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

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

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

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

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

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

randx's avatar
randx committed
184
# Misc
185

186
gem 'version_sorter', '~> 2.1.0'
randx's avatar
randx committed
187

188
# Cache
189
gem 'redis-rails', '~> 5.0.2'
190

191 192 193 194
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'

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

198
# JIRA integration
199
gem 'jira-ruby', '~> 1.4'
200

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

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

207
# Slack integration
208
gem 'slack-notifier', '~> 1.5.1'
209

Jeremy's avatar
Jeremy committed
210
# Asana integration
211
gem 'asana', '~> 0.6.0'
Jeremy's avatar
Jeremy committed
212

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

216
# Kubernetes integration
217
gem 'kubeclient', '~> 3.0'
218

219
# d3
220
gem 'd3_rails', '~> 3.5.0'
221

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

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

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

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

235
# Ace editor
236
gem 'ace-rails-ap', '~> 4.1.0'
237

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

241
# Detect and convert string character encoding
242
gem 'charlock_holmes', '~> 0.7.5'
243

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

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

251
gem 'webpack-rails', '~> 0.9.10'
252 253
gem 'rack-proxy', '~> 0.6.0'

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

257
gem 'addressable', '~> 2.5.2'
258
gem 'bootstrap-sass', '~> 3.3.0'
259
gem 'font-awesome-rails', '~> 4.7'
260
gem 'gemojione', '~> 3.3'
261
gem 'gon', '~> 6.1.0'
262
gem 'jquery-atwho-rails', '~> 1.3.2'
263 264 265 266
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
267

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

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

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

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

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

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

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

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

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

310
  # Better errors handler
311
  gem 'better_errors', '~> 2.1.0'
312
  gem 'binding_of_caller', '~> 0.7.2'
313

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

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

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

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

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

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

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

346
  gem 'spring', '~> 2.0.0'
347 348
  gem 'spring-commands-rspec', '~> 1.0.4'
  gem 'spring-commands-spinach', '~> 1.1.0'
349

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

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

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

363
  gem 'license_finder', '~> 3.1', require: false
364
  gem 'knapsack', '~> 1.16'
365

blackst0ne's avatar
blackst0ne committed
366
  gem 'activerecord_sane_schema_dumper', gem_versions['activerecord_sane_schema_dumper']
367

368
  gem 'stackprof', '~> 0.2.10', require: false
369 370

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

  gem 'timecop', '~> 0.8.0'
gitlabhq's avatar
gitlabhq committed
373 374 375
end

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

387
gem 'octokit', '~> 4.8'
Douwe Maan's avatar
Douwe Maan committed
388

389
gem 'mail_room', '~> 0.9.1'
Douwe Maan's avatar
Douwe Maan committed
390

391
gem 'email_reply_trimmer', '~> 0.1'
392
gem 'html2text'
393

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

396
# OAuth
397
gem 'oauth2', '~> 1.4'
398

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

# System information
403
gem 'vmstat', '~> 2.3.0'
404
gem 'sys-filesystem', '~> 1.1.6'
405

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

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

417
# Gitaly GRPC client
418
gem 'gitaly-proto', '~> 0.94.0', require: 'gitaly'
419
gem 'grpc', '~> 1.10.0'
420

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

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

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

# Structured logging
gem 'lograge', '~> 0.5'
433
gem 'grape_logging', '~> 1.7'
434 435 436

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

gem 'goldiloader', '~> 2.0'