Gemfile 10.2 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-path-helpers', '~> 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.4'
37
gem 'doorkeeper', '~> 4.3'
38
gem 'doorkeeper-openid_connect', '~> 1.5'
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.3.0'
51
gem 'omniauth-twitter', '~> 1.4'
52
gem 'omniauth_crowd', '~> 2.2.0'
53
gem 'omniauth-authentiq', '~> 0.3.3'
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
gem 'rubyzip', '~> 1.2.2'
70

71
# Browser detection
Stan Hu's avatar
Stan Hu committed
72
gem 'browser', '~> 2.5'
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

randx's avatar
randx committed
83
# API
84
gem 'grape', '~> 1.1'
85
gem 'grape-entity', '~> 0.7.1'
86
gem 'rack-cors', '~> 1.0.0', require: 'rack/cors'
randx's avatar
randx committed
87

Nick Thomas's avatar
Nick Thomas committed
88
# GraphQL API
89
gem 'graphql', '~> 1.8.0'
Nick Thomas's avatar
Nick Thomas committed
90 91
gem 'graphiql-rails', '~> 1.4.10'

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

randx's avatar
randx committed
95
# Pagination
96
gem 'kaminari', '~> 1.0'
randx's avatar
randx committed
97 98

# HAML
99
gem 'hamlit', '~> 2.8.8'
randx's avatar
randx committed
100 101

# Files attachments
102 103 104
# 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'
105
gem 'mini_magick'
106

107
# for backups
108
gem 'fog-aws', '~> 2.0.1'
109
gem 'fog-core', '~> 1.44'
110
gem 'fog-google', '~> 1.7.1'
111 112
gem 'fog-local', '~> 0.3'
gem 'fog-openstack', '~> 0.1'
113
gem 'fog-rackspace', '~> 0.1.1'
114
gem 'fog-aliyun', '~> 0.2.0'
115

116
# for Google storage
117
gem 'google-api-client', '~> 0.23'
118

119
# for aws storage
bogdanvlviv's avatar
bogdanvlviv committed
120
gem 'unf', '~> 0.1.4'
randx's avatar
randx committed
121 122

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

Robert Speicher's avatar
Robert Speicher committed
125
# Markdown and HTML processing
126
gem 'html-pipeline', '~> 2.8'
Jared Deckard's avatar
Jared Deckard committed
127
gem 'deckar01-task_list', '2.0.0'
128
gem 'gitlab-markup', '~> 1.6.4'
129
gem 'github-markup', '~> 1.7.0', require: 'github/markup'
130
gem 'redcarpet', '~> 3.4'
131
gem 'commonmarker', '~> 0.17'
132
gem 'RedCloth', '~> 4.3.2'
Takuya Noguchi's avatar
Takuya Noguchi committed
133
gem 'rdoc', '~> 6.0'
134 135 136
gem 'org-ruby', '~> 0.9.12'
gem 'creole', '~> 0.5.0'
gem 'wikicloth', '0.8.1'
137
gem 'asciidoctor', '~> 1.5.6'
138
gem 'asciidoctor-plantuml', '0.0.8'
139
gem 'rouge', '~> 3.1'
140
gem 'truncato', '~> 0.7.9'
Nick Thomas's avatar
Nick Thomas committed
141
gem 'bootstrap_form', '~> 2.7.0'
142
gem 'nokogiri', '~> 1.8.2'
143
gem 'escape_utils', '~> 1.1'
144

145 146 147
# Calendar rendering
gem 'icalendar'

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

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

Andrew8xx8's avatar
Andrew8xx8 committed
162
# State machine
163
gem 'state_machines-activerecord', '~> 0.5.1'
Andrew8xx8's avatar
Andrew8xx8 committed
164

randx's avatar
randx committed
165
# Issue tags
166
gem 'acts-as-taggable-on', '~> 5.0'
randx's avatar
randx committed
167 168

# Background jobs
Stan Hu's avatar
Stan Hu committed
169
gem 'sidekiq', '~> 5.2.1'
170
gem 'sidekiq-cron', '~> 0.6.0'
171
gem 'redis-namespace', '~> 1.6.0'
randx's avatar
randx committed
172

173
# Cron Parser
174
gem 'rufus-scheduler', '~> 3.4'
175

randx's avatar
randx committed
176
# HTTP requests
bogdanvlviv's avatar
bogdanvlviv committed
177
gem 'httparty', '~> 0.13.3'
randx's avatar
randx committed
178 179

# Colored output to console
180
gem 'rainbow', '~> 3.0'
randx's avatar
randx committed
181

182 183
# Progress bar
gem 'ruby-progressbar'
randx's avatar
randx committed
184

Riyad Preukschas's avatar
Riyad Preukschas committed
185
# GitLab settings
186
gem 'settingslogic', '~> 2.0.9'
187

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

randx's avatar
randx committed
191
# Misc
192

193
gem 'version_sorter', '~> 2.1.0'
randx's avatar
randx committed
194

195 196 197
# Export Ruby Regex to Javascript
gem 'js_regex', '~> 2.2.1'

198 199 200
# User agent parsing
gem 'device_detector'

201
# Cache
202
gem 'redis-rails', '~> 5.0.2'
203

204 205 206 207
# Redis
gem 'redis', '~> 3.2'
gem 'connection_pool', '~> 2.0'

208
# HipChat integration
Chulki Lee's avatar
Chulki Lee committed
209
gem 'hipchat', '~> 1.5.0'
210

211
# JIRA integration
212
gem 'jira-ruby', '~> 1.4'
213

214
# Flowdock integration
215
gem 'flowdock', '~> 0.7'
216

217
# Slack integration
218
gem 'slack-notifier', '~> 1.5.1'
219

220 221 222
# Hangouts Chat integration
gem 'hangouts-chat', '~> 0.0.5'

Jeremy's avatar
Jeremy committed
223
# Asana integration
224
gem 'asana', '~> 0.6.0'
Jeremy's avatar
Jeremy committed
225

Jared Szechy's avatar
Jared Szechy committed
226
# FogBugz integration
Jared Szechy's avatar
Jared Szechy committed
227
gem 'ruby-fogbugz', '~> 0.2.1'
Jared Szechy's avatar
Jared Szechy committed
228

229
# Kubernetes integration
230
gem 'kubeclient', '~> 3.1.0'
231

232
# Sanitize user input
233
gem 'sanitize', '~> 4.6'
234
gem 'babosa', '~> 1.0.2'
235

Stan Hu's avatar
Stan Hu committed
236
# Sanitizes SVG input
237
gem 'loofah', '~> 2.2'
Stan Hu's avatar
Stan Hu committed
238

239
# Working with license
240
gem 'licensee', '~> 8.9'
241

Marin Jankovski's avatar
Marin Jankovski committed
242
# Protect against bruteforcing
243
gem 'rack-attack', '~> 4.4.1'
Marin Jankovski's avatar
Marin Jankovski committed
244

245
# Ace editor
246
gem 'ace-rails-ap', '~> 4.1.0'
247

248
# Detect and convert string character encoding
249
gem 'charlock_holmes', '~> 0.7.5'
250

dosire's avatar
dosire committed
251 252 253
# Faster blank
gem 'fast_blank'

254 255
# Parse time & duration
gem 'chronic', '~> 0.10.2'
256 257
gem 'chronic_duration', '~> 0.10.6'

258
gem 'webpack-rails', '~> 0.9.10'
259 260
gem 'rack-proxy', '~> 0.6.0'

261
gem 'sass-rails', '~> 5.0.6'
bogdanvlviv's avatar
bogdanvlviv committed
262
gem 'uglifier', '~> 2.7.2'
263

264
gem 'addressable', '~> 2.5.2'
265
gem 'font-awesome-rails', '~> 4.7'
266
gem 'gemojione', '~> 3.3'
267
gem 'gon', '~> 6.2'
268
gem 'jquery-atwho-rails', '~> 1.3.2'
269 270 271 272
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
273

274
# Sentry integration
275
gem 'sentry-raven', '~> 2.7'
276

277
gem 'premailer-rails', '~> 1.9.7'
278

Ruben Davila's avatar
Ruben Davila committed
279
# I18n
280
gem 'ruby_parser', '~> 3.8', require: false
blackst0ne's avatar
blackst0ne committed
281
gem 'rails-i18n', gem_versions['rails-i18n']
Ruben Davila's avatar
Ruben Davila committed
282
gem 'gettext_i18n_rails', '~> 1.8.0'
283
gem 'gettext_i18n_rails_js', '~> 1.3'
Ruben Davila's avatar
Ruben Davila committed
284 285
gem 'gettext', '~> 3.2.2', require: false, group: :development

286
gem 'batch-loader', '~> 1.2.1'
287

288 289 290 291
# Perf bar
gem 'peek', '~> 1.0.1'
gem 'peek-gc', '~> 0.0.2'
gem 'peek-mysql2', '~> 1.1.0', group: :mysql
292
gem 'peek-pg', '~> 1.3.0', group: :postgres
293 294
gem 'peek-rblineprof', '~> 0.2.0'
gem 'peek-redis', '~> 1.2.0'
295
gem 'gitlab-sidekiq-fetcher', require: 'sidekiq-reliable-fetch'
296

297 298
# Metrics
group :metrics do
299
  gem 'method_source', '~> 0.8', require: false
300
  gem 'influxdb', '~> 0.2', require: false
301

302
  # Prometheus
303
  gem 'prometheus-client-mmap', '~> 0.9.4'
304
  gem 'raindrops', '~> 0.18'
305 306
end

Nihad Abbasov's avatar
Nihad Abbasov committed
307
group :development do
308
  gem 'foreman', '~> 0.84.0'
309
  gem 'brakeman', '~> 4.2', require: false
310

311
  gem 'letter_opener_web', '~> 1.3.0'
bogdanvlviv's avatar
bogdanvlviv committed
312
  gem 'rblineprof', '~> 0.3.6', platform: :mri, require: false
313

314
  # Better errors handler
315
  gem 'better_errors', '~> 2.1.0'
316
  gem 'binding_of_caller', '~> 0.7.2'
317

318
  # thin instead webrick
319
  gem 'thin', '~> 1.7.0'
gitlabhq's avatar
gitlabhq committed
320 321 322
end

group :development, :test do
323
  gem 'bootsnap', '~> 1.3'
324
  gem 'bullet', '~> 5.5.0', require: !!ENV['ENABLE_BULLET']
325
  gem 'pry-byebug', '~> 3.4.1', platform: :mri
bogdanvlviv's avatar
bogdanvlviv committed
326
  gem 'pry-rails', '~> 0.3.4'
Robert Speicher's avatar
Robert Speicher committed
327

328
  gem 'awesome_print', require: false
Robert Speicher's avatar
Robert Speicher committed
329
  gem 'fuubar', '~> 2.2.0'
330

331
  gem 'database_cleaner', '~> 1.5.0'
332
  gem 'factory_bot_rails', '~> 4.8.2'
Robert Speicher's avatar
Robert Speicher committed
333
  gem 'rspec-rails', '~> 3.7.0'
334 335
  gem 'rspec-retry', '~> 0.4.5'
  gem 'rspec_profiling', '~> 0.0.5'
336
  gem 'rspec-set', '~> 0.1.3'
337
  gem 'rspec-parameterized', require: false
randx's avatar
randx committed
338

339
  # Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
340
  gem 'minitest', '~> 5.7.0'
341

342
  # Generate Fake data
343
  gem 'ffaker', '~> 2.4'
344

345
  gem 'capybara', '~> 2.15'
Robert Speicher's avatar
Robert Speicher committed
346
  gem 'capybara-screenshot', '~> 1.0.0'
347
  gem 'selenium-webdriver', '~> 3.12'
Andrew8xx8's avatar
Andrew8xx8 committed
348

349
  gem 'spring', '~> 2.0.0'
350
  gem 'spring-commands-rspec', '~> 1.0.4'
351

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

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

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

364
  gem 'license_finder', '~> 5.4', require: false
365
  gem 'knapsack', '~> 1.16'
366

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

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

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

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

group :test do
377
  gem 'shoulda-matchers', '~> 3.1.2', require: false
378
  gem 'email_spec', '~> 2.2.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.
bogdanvlviv's avatar
bogdanvlviv committed
383
  gem 'sham_rack', '~> 1.3.6'
384
  gem 'concurrent-ruby', '~> 1.0.5'
Rémy Coutable's avatar
Rémy Coutable committed
385
  gem 'test-prof', '~> 0.2.5'
386
  gem 'rspec_junit_formatter'
gitlabhq's avatar
gitlabhq committed
387
end
388

Ash McKenzie's avatar
Ash McKenzie committed
389
gem 'octokit', '~> 4.9'
Douwe Maan's avatar
Douwe Maan committed
390

391
gem 'mail_room', '~> 0.9.1'
Douwe Maan's avatar
Douwe Maan committed
392

393
gem 'email_reply_trimmer', '~> 0.1'
394
gem 'html2text'
395

396
gem 'ruby-prof', '~> 0.17.0'
Stan Hu's avatar
Stan Hu committed
397
gem 'rbtrace', '~> 0.4', require: false
398

399
# OAuth
400
gem 'oauth2', '~> 1.4'
401

402
# Health check
403
gem 'health_check', '~> 2.6.0'
404 405

# System information
406
gem 'vmstat', '~> 2.3.0'
407
gem 'sys-filesystem', '~> 1.1.6'
408

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

# Required for ED25519 SSH host key support
group :ed25519 do
415
  gem 'ed25519', '~> 1.2'
416 417 418
  gem 'bcrypt_pbkdf', '~> 1.0'
end

419
# Gitaly GRPC client
420
gem 'gitaly-proto', '~> 0.123.0', require: 'gitaly'
Alejandro Rodríguez's avatar
Alejandro Rodríguez committed
421
gem 'grpc', '~> 1.15.0'
422

Stan Hu's avatar
Stan Hu committed
423
gem 'google-protobuf', '~> 3.6'
424

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

# Feature toggles
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'