-
Notifications
You must be signed in to change notification settings - Fork 9
/
Gemfile
254 lines (180 loc) · 5.68 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
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby file: '.ruby-version'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '7.2.2'
# Use PostgreSQL as the database for Active Record
gem 'pg'
# Authorisation
gem 'pundit'
# Use Puma as the app server
gem 'puma', '~> 6.4'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false
# Canonical meta tag
gem 'canonical-rails'
# Decorate logic to keep it out of the views and helper methods
gem 'draper'
# Custom attributes for endpoints
gem 'active_model_serializers'
# Pagination for frontend and API
gem 'pagy', '~> 9.2'
# JSON:API Ruby Client
gem 'jsonapi-rails', github: 'DFE-Digital/jsonapi-rails'
gem 'jsonapi-rb'
# Access jsonb attributes like normal ActiveRecord model attributes
gem 'jsonb_accessor'
# Sending exceptions to sentry
gem 'sentry-rails'
gem 'sentry-ruby'
gem 'sentry-sidekiq'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
# For encoding/decoding web token used for authentication
gem 'jwt'
# Formalise config settings with support for env vars
gem 'config'
# Build pretty tables in the terminal
# table_print handles ActiveRecord objects and collections really nicely
gem 'table_print'
# terminal-table is a bit more flexible allowing us to use a headers column
gem 'terminal-table'
# For querying third party APIs
gem 'faraday'
gem 'faraday-net_http_persistent', '~> 2.3'
# UK postcode parsing and validation for Ruby
gem 'uk_postcode'
# For change history on provider, courses, sites, etc
gem 'audited', '~> 5.4'
# State machine to track users through their onboarding journey
gem 'aasm'
# Allows writing of error full_messages for validations that don't start with the attribute name
gem 'custom_error_message', git: 'https://github.com/DFE-Digital/custom-err-msg.git', ref: '46a24a4'
# Soft delete
gem 'discard'
# Gov Notify
gem 'govuk_notify_rails'
# Run jobs in the background. Good enough until we know we need more firepower
# (i.e. SideKiq)
gem 'sidekiq'
gem 'sidekiq-cron'
# Semantic Logger makes logs pretty
gem 'rails_semantic_logger'
# Render nice markdown
gem 'redcarpet'
gem 'rubypants'
# Thread-safe global state
gem 'request_store'
# IoC Container
gem 'dry-container'
# For geocoding and geographic logic (e.g: filtering sites by ranges)
gem 'geokit-rails'
# Geocoding
gem 'geocoder'
gem 'open_api-rswag-api', '0.2.0', github: 'DFE-Digital/open-api-rswag', tag: 'v0.2.0'
gem 'open_api-rswag-specs', '0.2.0', github: 'DFE-Digital/open-api-rswag', tag: 'v0.2.0'
gem 'open_api-rswag-ui', '0.2.0', github: 'DFE-Digital/open-api-rswag', tag: 'v0.2.0'
gem 'pg_search'
# End-user application performance monitoring
gem 'skylight'
# govuk styling
gem 'govuk-components', '~> 5.7.1'
gem 'govuk_design_system_formbuilder', '~> 5.7'
# DfE Sign-In
gem 'omniauth', '~> 2.1'
gem 'omniauth_openid_connect', '~> 0.8'
gem 'omniauth-rails_csrf_protection', '~> 1.0'
# Data integration with BigQuery
gem 'google-cloud-bigquery'
# Faster JSON serialization
gem 'oj'
# Rails 7 CSS and JS Bundling
gem 'cssbundling-rails', '~> 1.4'
gem 'jsbundling-rails', '~> 1.3'
gem 'propshaft'
# for sending analytics data to the analytics platform
gem 'dfe-analytics', github: 'DFE-Digital/dfe-analytics', tag: 'v1.15.0'
# For running data migrations
gem 'data_migrate', '11.1.0'
# For outgoing http requests
gem 'http'
# For configuring domains and assets
gem 'rack-cors'
# Rails console colours
gem 'colorize'
# for running SQL queries
gem 'blazer'
gem 'dfe-wizard', require: 'dfe/wizard', github: 'DFE-Digital/dfe-wizard', tag: 'v0.1.1'
group :production, :qa, :sandbox, :staging do
gem 'cloudfront-rails'
end
group :development, :test do
# Prettyprint in console
gem 'awesome_print'
# Better colorized logs
gem 'amazing_print'
# Help eliminate N+1 queries
gem 'bullet'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: %i[mri mingw x64_mingw]
# Linters and formatting
gem 'erb_lint'
gem 'rubocop', require: false
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rails'
gem 'rubocop-rspec'
gem 'rubocop-rspec_rails'
# run specs in parallel
gem 'parallel_tests'
# A little extra console goodness
gem 'pry'
gem 'pry-byebug'
gem 'pry-rails'
gem 'rails-controller-testing'
gem 'rails-erd'
gem 'rb-readline'
# Enable shorter notation for rspec one-liners
gem 'rspec-its'
# Test framework
gem 'rspec-rails', '7.0.1'
# Make diffs of Ruby objects much more readable
gem 'super_diff'
# Allow us to freeze time in tests
gem 'timecop'
gem 'factory_bot_rails', '~> 6.4'
gem 'fakefs', require: 'fakefs/safe'
gem 'faker'
gem 'dotenv'
end
group :development do
# Static analysis
gem 'brakeman'
gem 'listen', '>= 3.0.5', '< 3.10'
# error handling
gem 'better_errors'
gem 'binding_of_caller'
# Output scaffold commands based on schema
gem 'schema_to_scaffold'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-commands-rspec'
gem 'spring-watcher-listen', '~> 2.1.0'
# Make HTTP requests fun again
gem 'httparty'
end
group :test do
gem 'database_cleaner'
gem 'jsonapi-rspec'
gem 'mock_redis'
gem 'rspec_junit_formatter'
gem 'shoulda-matchers', '~> 6.4'
gem 'simplecov', '< 0.23', require: false
# Page objects
gem 'site_prism', '~> 5.0'
gem 'webmock'
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'launchy'
end