1 # frozen_string_literal: true
3 source "https://rubygems.org"
6 gem "rails", "~> 8.1.0"
9 # Use postgres+postgis as the database
10 gem "activerecord-postgis"
13 # active_support does not support json 3.x yet
14 # https://github.com/rails/rails/pull/58601 (merged but not yet released)
17 # Use SCSS for stylesheets
18 gem "dartsass-sprockets"
19 # Pin the dependent sass-embedded to avoid deprecation warnings in bootstrap
20 gem "sass-embedded", "~> 1.64.0"
21 # Pin uri to avoid errors in dartsass-ruby
24 # Use Terser as compressor for JavaScript assets
27 # Use jquery as the JavaScript library
30 # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
33 # Reduces boot times through caching; required in config/boot.rb
34 gem "bootsnap", :require => false
36 # Use rtlcss for RTL conversion
39 # Use autoprefixer to generate CSS prefixes
40 gem "autoprefixer-rails"
42 # Use image_optim to optimise images
44 gem "image_optim_rails"
46 # Use argon2 for password hashing
49 # Support brotli compression for assets
50 gem "sprockets-exporters_pack"
52 # Needed for ruby 3.5.0 compatibility with delayed_job
53 # https://github.com/collectiveidea/delayed_job/issues/1239
57 gem "actionpack-page_caching"
58 gem "activerecord-import"
59 gem "active_record_union"
64 gem "delayed_job_active_record"
67 gem "http_accept_language"
69 gem "openstreetmap-deadlock_retry", :require => "deadlock_retry"
73 gem "rinku", :require => "rails_rinku"
74 gem "strong_migrations"
75 gem "validates_email_format_of"
77 # Native OSM extensions
82 gem "rack-uri_sanitizer"
86 gem "omniauth-facebook"
88 gem "omniauth-google-oauth2"
89 gem "omniauth-mediawiki"
90 gem "omniauth-microsoft_graph"
91 gem "omniauth-rails_csrf_protection"
93 # Doorkeeper for OAuth2
96 gem "doorkeeper-openid_connect"
98 # To parse complex referers for OAuth login
101 # Markdown formatting support
104 # For status transitions of Issues
107 # XML parsing and generation
111 # Use for HTML sanitisation
115 # Load faraday for mockable HTTP client
118 # Load maxminddb for querying Maxmind GeoIP database
121 # Load rotp to generate TOTP tokens
124 # Load memcache client in case we are using it
125 gem "connection_pool"
128 # Load canonical-rails to generate canonical URLs
129 gem "canonical-rails", :github => "commonlit/canonical-rails", :ref => "bump-rails-8-1"
131 # Use to generate telemetry
132 gem "opentelemetry-exporter-otlp", :require => false
133 gem "opentelemetry-instrumentation-all", :require => false
134 gem "opentelemetry-sdk", :require => false
135 gem "sentry-delayed_job"
139 # Used to generate images for traces
142 # Use https://github.com/dark-panda/gd2-ffij/pull/28 for Docker/macOS compatibility
143 gem "gd2-ffij", :github => "rkoeze/gd2-ffij", :ref => "a203a8d5ef004a4198950e86329228fe3f331d06"
146 # Used for S3 object storage
149 # Used to resize user images
150 gem "image_processing"
153 # Used to manage svg files
156 # Used to validate widths
157 gem "unicode-display_width"
159 # Stop when running for too long
162 # To run the `file` command and read the output
165 # Cryptographic tools
171 # Gems useful for development
172 group :development do
174 gem "binding_of_caller"
176 gem "danger-auto_label"
177 gem "debug_inspector"
185 # Gems needed for running tests
189 gem "erb_lint", :require => false
192 gem "minitest-focus", :require => false
195 gem "rails-controller-testing"
197 gem "rubocop-capybara"
198 gem "rubocop-factory_bot"
199 gem "rubocop-minitest"
200 gem "rubocop-performance"
203 gem "selenium-webdriver"
204 gem "simplecov", :require => false
205 gem "simplecov-lcov", :require => false
209 group :development, :test do
211 gem "database_consistency"
212 gem "factory_bot_rails"
218 # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
219 gem "debug", :require => "debug/prelude"