-
Notifications
You must be signed in to change notification settings - Fork 8
/
Gemfile
347 lines (239 loc) · 6.75 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
# Copyright 2011-2019 Rice University. Licensed under the Affero General Public
# License version 3 or later. See the COPYRIGHT file for details.
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
"https://github.com/#{repo_name}.git"
end
# Rails framework
gem 'rails', '~> 5.2.2'
# Bootstrap front-end framework
gem 'bootstrap-sass', '~> 3.3.7'
# SCSS stylesheets
gem 'sass-rails', '~> 5.0.7'
# Compass stylesheets
gem 'compass-rails', '~> 3.1.0'
# JavaScript asset compressor
gem 'uglifier', '>= 1.3.0'
# Detect browser being used in order to display a "Please upgrade" message
gem 'browser', '~> 2.5'
# CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.2.2'
# JavaScript asset compiler
gem 'mini_racer', '~> 0.6.2'
# jQuery library
gem 'jquery-rails'
gem 'jquery-ui-rails'
# Automatically ajaxify links
gem 'turbolinks'
# PostgreSQL database
gem 'pg'
gem 'ar-sequence'
# Support systemd Type=notify services for puma and delayed_job
gem 'sd_notify', require: false
# Use the puma webserver
gem 'puma'
# Prevent server memory from growing until OOM
gem 'puma_worker_killer'
# Rails 5 HTML sanitizer
gem 'rails-html-sanitizer', '~> 1.4'
# URI replacement
gem 'addressable'
# Utilities for OpenStax websites
gem 'openstax_utilities', '~> 4.4.1'
# Cron job scheduling
gem 'whenever'
# Talks to Accounts (latest version is broken)
gem 'omniauth-oauth2', '~> 1.3.1'
# OpenStax Accounts integration
gem 'openstax_accounts'
gem 'action_interceptor'
# Datetime parsing
gem 'chronic'
# API versioning and documentation
gem 'openstax_api', '< 9.4.0'
# Used to fetch and parse OpenStax book content
gem 'openstax_content'
gem 'apipie-rails'
gem 'maruku'
# LTI helper
gem 'simple_oauth', github: 'openstax/simple_oauth'
gem 'ims-lti', '~> 2.2.1'
# API JSON rendering/parsing
# Do not use Roar 1.0.4
# Also, do not use Roar::Hypermedia links
gem 'roar', '~> 1.1.0'
gem 'nokogiri'
# Background job status store
gem 'jobba', '~> 1.8.0'
# Retry failed database transactions
gem 'transaction_retry', github: 'openstax/transaction_retry'
# Lev framework
gem 'lev', '~> 10.1.0'
# Contract management
gem 'fine_print'
# Keyword search
gem 'keyword_search', github: 'openstax/keyword_search',
ref: '0ce23c42575129b74c14add9e5d069ef9fedebac'
# File uploads
gem 'remotipart'
gem 'carrierwave'
# code editing
gem 'codemirror-rails'
# Object cloning
gem 'deep_cloneable'
# Date validations
gem 'validates_timeliness'
# JSON schema validation
gem 'json-schema', '~> 2.8.0'
# Cooler hashes
gem 'hashie'
# For calling JSON APIs
gem 'httparty'
# Ordered models
gem 'sortability'
# Lorem Ipsum
gem 'faker'
# Key-value store for caching
gem 'redis-rails'
# Database-backed background jobs
gem 'delayed_job_active_record', '~> 4.1.4.beta1'
# Run delayed_job workers with a control process in the foreground
gem 'delayed_job_worker_pool'
# Ensure background jobs unlock if a delayed_job worker crashes
gem 'delayed_job_heartbeat_plugin'
# Type coercion for Representable
gem 'virtus'
# Create xlsx files
gem 'axlsx', github: 'randym/axlsx', ref: 'c8ac844572b25fda358cc01d2104720c4c42f450'
# Pagination library
gem 'will_paginate', '~> 3.1.7'
# Time travel
gem 'timecop'
# Efficient mass imports
gem 'activerecord-import'
# Notify developers of Exceptions in production
gem 'openstax_rescue_from'
# Sentry integration (the require disables automatic Rails integration since we use rescue_from)
gem 'sentry-raven', require: 'raven/base'
# Soft-deletion
gem 'paranoia', '~> 2.4.1'
# Salesforce
gem 'openstax_salesforce'
# Global settings
gem 'rails-settings-cached'
gem 'rails-settings-ui'
# Nicely-styled static error pages
gem 'error_page_assets'
gem 'render_anywhere', require: false
# Add P3P headers for IE
gem 'p3p'
# API throttling
gem 'rack-attack'
# Fast JSON parsing
gem 'oj'
# Replace JSON with Oj
gem 'oj_mimic_json'
# Per-request global storage
gem 'request_store'
# Use PostgreSQL cursors with ActiveRecord
gem 'postgresql_cursor', '~> 0.6.2'
# In place form editing on admin menu
gem 'best_in_place'
# Box integration
gem 'boxr'
# OAuth gem for generating and validating lti requests
gem 'oauth', '~> 0.5.5'
gem 'scout_apm'
# Respond to ELB healthchecks in /ping and /ping/
gem 'openstax_healthcheck'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '~> 1.4.0', require: false
# Get env variables from .env file
gem 'dotenv-rails'
# ActiveStorage S3 support
gem 'aws-sdk-s3'
# Bundle JS assets using webpack
gem 'webpacker'
group :development, :test do
# Allows 'ap' alternative to 'pp' and 'ai' alternative to 'inspect'
gem 'awesome_print'
# lint files
gem 'rubocop'
# Run specs in parallel
gem 'parallel_tests'
# Show failing parallel specs instantly
gem 'rspec-instafail'
# Call 'debugger' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Nail down n+1 queries and unused eager loading
gem 'bullet'
# Use RSpec for tests
gem 'rspec-rails'
gem 'rspec-collection_matchers'
gem 'pilfer'
# Fixture replacement
gem 'factory_bot_rails'
# Stubs HTTP requests
gem 'webmock'
# Records HTTP requests
gem 'vcr'
# Testing excel files
gem 'roo'
# Speedup rails commands and rspec
gem 'spring'
gem 'spring-commands-rspec'
# Run bundle install and specs when files change
gem 'guard-bundler'
gem 'guard-rspec'
# Trace AR queries
gem 'active_record_query_trace'
end
group :development do
# Automated security checks
gem 'brakeman'
# Command line reference
gem 'cheat'
# CoffeeScript source maps
gem 'coffee-rails-source-maps'
# Assorted generators
gem 'nifty-generators'
# Class diagrams
gem 'rails-erd'
gem 'railroady'
end
group :test do
gem 'shoulda-matchers'
gem 'rails-controller-testing'
gem 'launchy'
gem 'database_cleaner'
gem 'db-query-matchers'
# Fake in-memory Redis for testing
gem 'fakeredis'
gem 'whenever-test'
gem 'webdrivers'
gem 'capybara'
gem 'capybara-selenium'
gem 'capybara-screenshot', require: false
# Codecov integration
gem 'codecov', require: false
gem 'rspec-retry'
end
group :production, :test do
# Upload and manage AWS S3 files
gem 'fog-aws'
end
group :production do
# Used to backup the database before migrations
gem 'aws-sdk-rds', require: false
# Used to record a lifecycle action heartbeat after creating the RDS snapshot before migrating
gem 'aws-sdk-autoscaling', require: false
# Used to send custom delayed_job metrics to Cloudwatch
gem 'aws-sdk-cloudwatch', require: false
# Lograge for consistent logging
gem 'lograge'
end
group :'web-console', optional: true do
# Access an IRB console on exceptions page and /console in development
gem 'web-console'
end