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
138 # Used to generate images for traces
141 # Use https://github.com/dark-panda/gd2-ffij/pull/28 for Docker/macOS compatibility
142 gem "gd2-ffij", :github => "rkoeze/gd2-ffij", :ref => "a203a8d5ef004a4198950e86329228fe3f331d06"
145 # Used for S3 object storage
148 # Used to resize user images
149 gem "image_processing"
152 # Used to manage svg files
155 # Used to validate widths
156 gem "unicode-display_width"
158 # Stop when running for too long
161 # To run the `file` command and read the output
164 # Cryptographic tools
170 # Gems useful for development
171 group :development do
173 gem "binding_of_caller"
175 gem "danger-auto_label"
176 gem "debug_inspector"
184 # Gems needed for running tests
188 gem "erb_lint", :require => false
191 gem "minitest-focus", :require => false
194 gem "rails-controller-testing"
196 gem "rubocop-capybara"
197 gem "rubocop-factory_bot"
198 gem "rubocop-minitest"
199 gem "rubocop-performance"
202 gem "selenium-webdriver"
203 gem "simplecov", :require => false
204 gem "simplecov-lcov", :require => false
208 group :development, :test do
210 gem "database_consistency"
211 gem "factory_bot_rails"
217 # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
218 gem "debug", :require => "debug/prelude"