forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
352 lines (267 loc) · 9.93 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
source 'https://rubygems.org'
ruby '~> 2.5'
# Force HTTPS for github-source gems.
# This is a temporary workaround - remove when bundler version is >=2.0
# @see https://github.com/bundler/bundler/issues/4978
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.7.2'
gem 'rails-controller-testing'
# Compile Sprockets assets concurrently in `assets:precompile`.
# Ref: https://github.com/rails/sprockets/pull/470
gem 'sprockets', github: 'wjordan/sprockets', ref: 'concurrent_asset_bundle_3.x'
gem 'sprockets-rails'
# provide `respond_to` methods
# (see: http://guides.rubyonrails.org/4_2_release_notes.html#respond-with-class-level-respond-to)
gem 'responders', '~> 2.0'
# Pinning sinatra to 2.0.2, since '~> 2.0.2' actually lands us on 2.0.5, which
# breaks some firebase URIs. See
# https://github.com/code-dot-org/code-dot-org/pull/31614
gem 'sinatra', '2.0.2', require: 'sinatra/base'
gem 'mysql2', '>= 0.4.1'
# Ref: https://github.com/bdurand/seamless_database_pool/issues/38
# Ref: https://github.com/bdurand/seamless_database_pool/pull/39
gem 'seamless_database_pool', github: 'wjordan/seamless_database_pool', ref: 'cdo'
gem 'dalli' # memcached
gem 'dalli-elasticache' # ElastiCache Auto Discovery memcached nodes
gem 'google_drive'
gem 'jumphash'
gem 'le', '~> 2.2'
gem 'os'
gem 'parallel'
gem 'redis', '~> 3.3.3'
# Using commit ref on fork until maintainer publishes a new version.
gem 'redis-slave-read', require: false, github: 'code-dot-org/redis-slave-read', ref: 'cfe1bd0f5cf65eee5b52560139cab133f22cb880'
gem 'xxhash'
gem 'aws-google' # use Google Accounts for AWS access
gem 'google-api-client', '~> 0.23'
# CSRF protection for Sinatra.
gem 'rack_csrf'
# Allow profiling in all environments (including production). It will only be enabled when
# CDO.rack_mini_profiler_enabled is set. See dashboard/config/initializers/mini_profiler.rb
gem 'memory_profiler'
gem 'rack-mini-profiler'
group :development do
gem 'annotate'
gem 'pry'
gem 'ruby-progressbar', require: false
gem 'web-console'
end
# Rack::Cache middleware used in development/test;
# Rack::Cache::Response used by Rack::Optimize in non-development environments.
gem 'rack-cache'
group :development, :test do
gem 'rerun'
# Ref: https://github.com/e2/ruby_dep/issues/24
# https://github.com/e2/ruby_dep/issues/25
# https://github.com/e2/ruby_dep/issues/30
gem 'ruby_dep', '~> 1.3.1'
gem 'shotgun'
gem 'thin'
# Use debugger
#gem 'debugger' unless ENV['RM_INFO']
gem 'active_record_query_trace'
gem 'benchmark-ips'
gem 'better_errors'
gem 'binding_of_caller'
gem 'brakeman'
gem 'haml-rails' # haml (instead of erb) generators
gem 'ruby-prof'
gem 'vcr', require: false
# For unit testing.
gem 'webmock', require: false
gem 'codecov', require: false
gem 'fakeredis', require: false
gem 'mocha', require: false
gem 'simplecov', '~> 0.9', require: false
gem 'sqlite3'
gem 'timecop'
# For UI testing.
gem 'cucumber'
gem 'eyes_selenium'
gem 'minitest', '~> 5.5'
gem 'minitest-around'
gem 'minitest-reporters', '~> 1.2.0.beta3'
gem 'net-http-persistent'
gem 'rinku'
gem 'rspec'
gem 'selenium-webdriver'
gem 'spring'
gem 'spring-commands-testunit'
gem 'webdrivers', '~> 3.0'
# For pegasus PDF generation / merging testing.
gem 'parallel_tests'
gem 'pdf-reader', require: false
end
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Needed for unit testing, and also for /rails/mailers email previews.
gem 'factory_girl_rails', group: [:development, :staging, :test, :adhoc]
# For pegasus PDF generation.
gem 'open_uri_redirections', require: false, group: [:development, :staging, :test]
# Ref: https://github.com/tmm1/gctools/pull/17
gem 'gctools', github: 'wjordan/gctools', ref: 'ruby-2.5'
# Optimizes copy-on-write memory usage with GC before web-application fork.
gem 'nakayoshi_fork'
# Ref: https://github.com/puma/puma/pull/1646
gem 'puma', github: 'wjordan/puma', branch: 'debugging'
gem 'puma_worker_killer'
gem 'unicorn', '~> 5.1.0'
gem 'chronic', '~> 0.10.2'
# Use SCSS for stylesheets.
# Ref: https://github.com/rails/sass-rails/pull/386
gem 'sass-rails', github: 'wjordan/sass-rails', ref: 'frozen-array-fix'
# Use Uglifier as compressor for JavaScript assets.
gem 'uglifier', '>= 1.3.0'
# Use jquery as the JavaScript library.
gem 'jquery-rails'
gem 'phantomjs', '~> 1.9.7.1'
# For emoji in utility output.
gem 'gemoji'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Authentication and permissions.
gem 'cancancan', '~> 1.15.0'
gem 'devise', '~> 4.4.0'
gem 'devise_invitable', '~> 1.6.0'
# Ref: https://github.com/instructure/ims-lti/pull/90
gem 'ims-lti', github: 'wjordan/ims-lti', ref: 'oauth_051'
# Ref: https://github.com/Clever/omniauth-clever/pull/7
gem 'omniauth-clever', '~> 1.2.1', github: 'Clever/omniauth-clever'
gem 'omniauth-facebook', '~> 4.0.0'
gem 'omniauth-google-oauth2', '~> 0.6.0'
gem 'omniauth-microsoft_v2_auth', github: 'dooly-ai/omniauth-microsoft_v2_auth'
# Ref: https://github.com/joel/omniauth-windowslive/pull/16
# Ref: https://github.com/joel/omniauth-windowslive/pull/17
gem 'omniauth-windowslive', '~> 0.0.11', github: 'wjordan/omniauth-windowslive', ref: 'cdo'
# Resolve CVE 2015 9284
# see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-9284
gem 'omniauth-rails_csrf_protection', '~> 0.1'
gem 'bootstrap-sass', '~> 2.3.2.2'
# Ref: https://github.com/haml/haml/issues/940
# https://github.com/haml/haml/issues/982
# https://github.com/haml/haml/issues/985
gem 'haml', github: 'wjordan/haml', ref: 'cdo'
gem 'jquery-ui-rails', '~> 6.0.1'
gem 'nokogiri', '>= 1.10.0'
gem 'highline', '~> 1.6.21'
gem 'honeybadger' # error monitoring
gem 'newrelic_rpm', group: [:staging, :development, :production] # perf/error/etc monitoring
gem 'redcarpet', '~> 3.3.4'
# Ref: https://github.com/alexreisner/geocoder/pull/1085 (pending new RubyGems release)
gem 'geocoder', github: 'wjordan/geocoder', ref: 'rack-request-fix'
gem 'mini_magick', ">=4.9.4"
gem 'rmagick'
gem 'acts_as_list'
gem 'kaminari' # pagination
gem 'stringex', '~> 2.5.2' # Provides String.to_ascii
gem 'naturally' # for sorting string naturally
gem 'retryable' # retry code blocks when they throw exceptions
# Used by a build script.
gem 'execjs'
gem 'therubyracer', '~> 0.12.2', platforms: :ruby
gem 'jwt' # single signon for zendesk
gem 'codemirror-rails' # edit code in textarea
gem 'twilio-ruby' # SMS API for send-to-phone feature
# We also serve a copy of one of these font files from the public directory
gem 'font-awesome-rails', '~> 4.6.3' # NOTE: apps/src/applab/Exporter.js depends on the font file names from this version!
gem 'sequel'
gem 'user_agent_parser'
gem 'paranoia'
gem 'petit', github: 'code-dot-org/petit' # For URL shortening
# JSON model serializer for REST APIs.
gem 'active_model_serializers', github: 'rails-api/active_model_serializers', ref: '2962f3f64e7c672bfb5a13a8f739b5db073e5473'
# AWS SDK and associated service APIs.
gem 'aws-sdk-acm'
gem 'aws-sdk-cloudformation'
gem 'aws-sdk-cloudfront'
gem 'aws-sdk-cloudwatch'
gem 'aws-sdk-cloudwatchlogs'
gem 'aws-sdk-core'
gem 'aws-sdk-databasemigrationservice'
gem 'aws-sdk-dynamodb'
gem 'aws-sdk-ec2'
gem 'aws-sdk-firehose'
gem 'aws-sdk-glue'
gem 'aws-sdk-rds'
gem 'aws-sdk-route53'
gem 'aws-sdk-s3'
gem 'aws-sdk-secretsmanager'
# Lint tools
group :development, :staging do
gem 'haml_lint', require: false
gem 'rubocop', '~> 0.52', require: false
gem 'scss_lint', require: false
end
# Reduce volume of production logs
# Ref: https://github.com/roidrage/lograge/pull/252
gem 'lograge', github: 'wjordan/lograge', ref: 'debug_exceptions'
# Enforce SSL
gem 'rack-ssl-enforcer'
# PubSub for NetSim
gem 'pusher', '~> 1.3.1', require: false
gem 'youtube-dl.rb', group: [:development, :staging, :levelbuilder]
gem 'daemons'
gem 'httparty'
gem 'net-scp'
gem 'net-ssh'
gem 'oj'
gem 'rest-client', '~> 2.0.1'
# A rest-client dependency
# This is the latest version that's installing successfully
gem 'unf_ext', '0.0.7.2'
# Generate SSL certificates.
gem 'acmesmith', '~> 2.3.1'
gem 'addressable'
gem 'bcrypt'
gem 'firebase'
gem 'firebase_token_generator'
gem 'sshkit'
gem 'validates_email_format_of'
gem 'composite_primary_keys'
# GitHub API; used by the DotD script to automatically create new
# releases on deploy
gem 'octokit'
# Used to create a prefix trie of student names within a section
gem 'full-name-splitter', github: 'pahanix/full-name-splitter'
gem 'rambling-trie'
gem 'omniauth-openid'
gem 'omniauth-openid-connect', github: 'wjordan/omniauth-openid-connect', ref: 'cdo'
# Ref: https://github.com/toy/image_optim/pull/145
# Also include sRGB color profile conversion.
gem 'image_optim', github: 'wjordan/image_optim', ref: 'cdo'
# Image-optimization tools and binaries.
gem 'image_optim_pack', '~> 0.5.0', github: 'wjordan/image_optim_pack', ref: 'guetzli'
# Ref: https://github.com/toy/image_optim_rails/pull/3
gem 'image_optim_rails', github: 'wjordan/image_optim_rails', ref: 'rails_root_config_path'
gem 'image_size', require: false
# Auto strip model attributes before validation (opt in)
gem 'auto_strip_attributes', '~> 2.1'
# Used to sort UTF8 strings properly
gem 'sort_alphabetical', github: 'grosser/sort_alphabetical'
gem 'StreetAddress', require: "street_address"
gem 'recaptcha', require: 'recaptcha/rails'
gem 'loofah', ' ~> 2.2.1'
# Install pg gem only on specific production hosts.
require_pg = -> do
require 'socket'
%w[production-daemon production-console].include?(Socket.gethostname)
end
install_if require_pg do
gem 'pg', require: false
end
gem 'active_record_union'
gem 'activerecord-import'
gem 'scenic'
gem 'scenic-mysql_adapter'
gem 'colorize'
gem 'gnista', github: 'wjordan/gnista', ref: 'embed', submodules: true
gem 'hammerspace'
gem 'require_all', require: false
gem 'dotiw'
gem 'datapackage'