2016-11-16 00:56:29 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-21 06:53:20 +09:00
|
|
|
source 'https://rubygems.org'
|
2024-04-15 19:19:23 +09:00
|
|
|
ruby '>= 3.1.0'
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'propshaft'
|
2023-06-01 21:27:58 +09:00
|
|
|
gem 'puma', '~> 6.3'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'rack', '~> 2.2.7'
|
2023-10-24 02:58:29 +09:00
|
|
|
gem 'rails', '~> 7.1.1'
|
2022-01-19 11:07:37 +09:00
|
|
|
gem 'thor', '~> 1.2'
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2024-04-19 23:25:14 +09:00
|
|
|
gem 'dotenv'
|
2023-02-13 12:59:30 +09:00
|
|
|
gem 'haml-rails', '~>2.0'
|
2023-04-27 00:46:01 +09:00
|
|
|
gem 'pg', '~> 1.5'
|
2023-01-23 07:09:02 +09:00
|
|
|
gem 'pghero'
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2023-06-01 16:45:10 +09:00
|
|
|
gem 'aws-sdk-s3', '~> 1.123', require: false
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'blurhash', '~> 0.1'
|
2024-10-29 23:17:28 +09:00
|
|
|
gem 'fog-core', '<= 2.6.0'
|
2023-11-09 18:06:57 +09:00
|
|
|
gem 'fog-openstack', '~> 1.0', require: false
|
2023-06-05 21:40:35 +09:00
|
|
|
gem 'kt-paperclip', '~> 7.2'
|
2023-07-19 16:02:49 +09:00
|
|
|
gem 'md-paperclip-azure', '~> 2.2', require: false
|
2024-06-06 04:15:39 +09:00
|
|
|
gem 'ruby-vips', '~> 2.2', require: false
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2017-07-07 11:02:06 +09:00
|
|
|
gem 'active_model_serializers', '~> 0.10'
|
2021-07-08 14:35:20 +09:00
|
|
|
gem 'addressable', '~> 2.8'
|
2024-02-06 21:52:28 +09:00
|
|
|
gem 'bootsnap', '~> 1.18.0', require: false
|
2024-07-03 16:47:40 +09:00
|
|
|
gem 'browser', '< 6' # https://github.com/fnando/browser/issues/543
|
2019-11-27 11:53:50 +09:00
|
|
|
gem 'charlock_holmes', '~> 0.7.7'
|
2023-04-12 20:47:38 +09:00
|
|
|
gem 'chewy', '~> 7.3'
|
2023-02-21 18:41:28 +09:00
|
|
|
gem 'devise', '~> 4.9'
|
2024-05-02 18:31:41 +09:00
|
|
|
gem 'devise-two-factor'
|
2018-02-02 18:18:55 +09:00
|
|
|
|
2018-03-20 04:08:56 +09:00
|
|
|
group :pam_authentication, optional: true do
|
2018-09-15 00:42:45 +09:00
|
|
|
gem 'devise_pam_authenticatable2', '~> 9.2'
|
2018-03-20 04:08:56 +09:00
|
|
|
end
|
2018-04-08 04:36:58 +09:00
|
|
|
|
2023-04-11 19:53:13 +09:00
|
|
|
gem 'net-ldap', '~> 0.18'
|
2023-08-08 15:57:18 +09:00
|
|
|
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'omniauth', '~> 2.0'
|
2024-01-13 07:39:23 +09:00
|
|
|
gem 'omniauth-cas', '~> 3.0.0.beta.1'
|
2023-03-08 19:44:23 +09:00
|
|
|
gem 'omniauth_openid_connect', '~> 0.6.1'
|
2023-08-08 15:57:18 +09:00
|
|
|
gem 'omniauth-rails_csrf_protection', '~> 1.0'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'omniauth-saml', '~> 2.0'
|
2018-02-02 18:18:55 +09:00
|
|
|
|
2020-07-06 01:28:25 +09:00
|
|
|
gem 'color_diff', '~> 0.1'
|
2024-01-10 18:37:31 +09:00
|
|
|
gem 'csv', '~> 3.2'
|
2020-03-26 06:48:52 +09:00
|
|
|
gem 'discard', '~> 1.2'
|
2022-09-11 22:23:56 +09:00
|
|
|
gem 'doorkeeper', '~> 5.6'
|
2017-05-11 18:27:01 +09:00
|
|
|
gem 'fast_blank', '~> 1.0'
|
2018-02-21 11:40:12 +09:00
|
|
|
gem 'fastimage'
|
2017-05-11 18:27:01 +09:00
|
|
|
gem 'hiredis', '~> 0.6'
|
|
|
|
gem 'htmlentities', '~> 4.3'
|
2024-04-22 23:02:47 +09:00
|
|
|
gem 'http', '~> 5.2.0'
|
2017-05-11 18:27:01 +09:00
|
|
|
gem 'http_accept_language', '~> 2.1'
|
2024-06-10 23:04:44 +09:00
|
|
|
gem 'httplog', '~> 1.7.0'
|
2024-05-10 21:34:20 +09:00
|
|
|
gem 'i18n'
|
2017-07-16 00:24:35 +09:00
|
|
|
gem 'idn-ruby', require: 'idn'
|
2024-03-19 18:03:15 +09:00
|
|
|
gem 'inline_svg'
|
2024-06-18 21:20:23 +09:00
|
|
|
gem 'irb', '~> 1.8'
|
2020-05-04 20:53:42 +09:00
|
|
|
gem 'kaminari', '~> 1.2'
|
2017-05-11 18:27:01 +09:00
|
|
|
gem 'link_header', '~> 0.0'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
|
2024-10-21 17:24:42 +09:00
|
|
|
gem 'mime-types', '~> 3.6.0', require: 'mime/types/columnar'
|
2023-05-30 16:42:41 +09:00
|
|
|
gem 'nokogiri', '~> 1.15'
|
2023-02-18 14:21:10 +09:00
|
|
|
gem 'oj', '~> 3.14'
|
2020-12-30 00:08:06 +09:00
|
|
|
gem 'ox', '~> 2.14'
|
2019-07-27 11:42:08 +09:00
|
|
|
gem 'parslet'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'premailer-rails'
|
2024-06-22 04:37:22 +09:00
|
|
|
gem 'public_suffix', '~> 6.0'
|
2022-12-20 19:08:53 +09:00
|
|
|
gem 'pundit', '~> 2.3'
|
2022-03-12 17:23:53 +09:00
|
|
|
gem 'rack-attack', '~> 6.6'
|
2023-03-21 10:42:34 +09:00
|
|
|
gem 'rack-cors', '~> 2.0', require: 'rack/cors'
|
2023-07-13 16:36:07 +09:00
|
|
|
gem 'rails-i18n', '~> 7.0'
|
2023-02-01 19:19:30 +09:00
|
|
|
gem 'redcarpet', '~> 3.6'
|
2021-10-20 09:49:36 +09:00
|
|
|
gem 'redis', '~> 4.5', require: ['redis', 'redis/connection/hiredis']
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'redis-namespace', '~> 1.10'
|
2023-05-23 16:25:43 +09:00
|
|
|
gem 'rqrcode', '~> 2.2'
|
2023-04-25 02:07:45 +09:00
|
|
|
gem 'ruby-progressbar', '~> 1.13'
|
2021-08-10 03:46:57 +09:00
|
|
|
gem 'sanitize', '~> 6.0'
|
2022-12-20 19:10:09 +09:00
|
|
|
gem 'scenic', '~> 1.7'
|
2022-07-06 09:11:00 +09:00
|
|
|
gem 'sidekiq', '~> 6.5'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'sidekiq-bulk', '~> 0.2.0'
|
2023-02-13 21:31:42 +09:00
|
|
|
gem 'sidekiq-scheduler', '~> 5.0'
|
2021-07-01 00:45:49 +09:00
|
|
|
gem 'sidekiq-unique-jobs', '~> 7.1'
|
2023-02-01 19:07:16 +09:00
|
|
|
gem 'simple_form', '~> 5.2'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'simple-navigation', '~> 4.4'
|
2024-04-03 00:47:40 +09:00
|
|
|
gem 'stoplight', '~> 4.1'
|
2024-07-19 17:32:43 +09:00
|
|
|
gem 'strong_migrations'
|
2020-12-30 00:08:23 +09:00
|
|
|
gem 'tty-prompt', '~> 0.23', require: false
|
2021-03-02 20:02:56 +09:00
|
|
|
gem 'twitter-text', '~> 3.1.0'
|
2023-03-29 17:32:51 +09:00
|
|
|
gem 'tzinfo-data', '~> 1.2023'
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'webauthn', '~> 3.0'
|
2021-05-27 17:48:18 +09:00
|
|
|
gem 'webpacker', '~> 5.4'
|
2022-11-14 05:00:38 +09:00
|
|
|
gem 'webpush', github: 'ClearlyClaire/webpush', ref: 'f14a4d52e201128b1b00245d11b6de80d6cfdcd9'
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2020-01-14 03:01:43 +09:00
|
|
|
gem 'json-ld'
|
2022-01-25 21:23:42 +09:00
|
|
|
gem 'json-ld-preloaded', '~> 3.2'
|
2022-01-27 20:25:18 +09:00
|
|
|
gem 'rdf-normalize', '~> 0.5'
|
2017-08-26 20:47:38 +09:00
|
|
|
|
2024-08-29 17:18:41 +09:00
|
|
|
gem 'opentelemetry-api', '~> 1.4.0'
|
2024-05-24 22:13:23 +09:00
|
|
|
|
2024-05-10 21:40:20 +09:00
|
|
|
group :opentelemetry do
|
2024-08-29 17:18:41 +09:00
|
|
|
gem 'opentelemetry-exporter-otlp', '~> 0.29.0', require: false
|
2024-05-10 21:40:20 +09:00
|
|
|
gem 'opentelemetry-instrumentation-active_job', '~> 0.7.1', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-active_model_serializers', '~> 0.20.1', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.21.2', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-excon', '~> 0.22.0', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-faraday', '~> 0.24.1', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-http', '~> 0.23.2', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-http_client', '~> 0.22.3', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-net_http', '~> 0.22.4', require: false
|
2024-09-13 21:07:33 +09:00
|
|
|
gem 'opentelemetry-instrumentation-pg', '~> 0.29.0', require: false
|
2024-10-25 18:15:46 +09:00
|
|
|
gem 'opentelemetry-instrumentation-rack', '~> 0.25.0', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-rails', '~> 0.32.0', require: false
|
2024-05-10 21:40:20 +09:00
|
|
|
gem 'opentelemetry-instrumentation-redis', '~> 0.25.3', require: false
|
|
|
|
gem 'opentelemetry-instrumentation-sidekiq', '~> 0.25.2', require: false
|
|
|
|
gem 'opentelemetry-sdk', '~> 1.4', require: false
|
|
|
|
end
|
|
|
|
|
2023-05-20 00:48:15 +09:00
|
|
|
group :test do
|
2024-06-27 16:42:57 +09:00
|
|
|
# Enable usage of all available CPUs/cores during spec runs
|
|
|
|
gem 'flatware-rspec'
|
|
|
|
|
2023-10-18 01:28:09 +09:00
|
|
|
# Adds RSpec Error/Warning annotations to GitHub PRs on the Files tab
|
|
|
|
gem 'rspec-github', '~> 2.4', require: false
|
|
|
|
|
2023-11-17 18:50:19 +09:00
|
|
|
# RSpec helpers for email specs
|
|
|
|
gem 'email_spec'
|
|
|
|
|
2024-03-12 18:40:29 +09:00
|
|
|
# Extra RSpec extension methods and helpers for sidekiq
|
2024-05-16 16:43:31 +09:00
|
|
|
gem 'rspec-sidekiq', '~> 5.0'
|
2018-02-25 03:16:11 +09:00
|
|
|
|
2023-05-20 00:48:15 +09:00
|
|
|
# Browser integration testing
|
2023-04-05 20:29:14 +09:00
|
|
|
gem 'capybara', '~> 3.39'
|
2023-07-29 06:09:49 +09:00
|
|
|
gem 'selenium-webdriver'
|
|
|
|
|
|
|
|
# Used to reset the database between system tests
|
|
|
|
gem 'database_cleaner-active_record'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Used to mock environment variables
|
2024-01-26 00:18:15 +09:00
|
|
|
gem 'climate_control'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Add back helpers functions removed in Rails 5.1
|
|
|
|
gem 'rails-controller-testing', '~> 1.0'
|
|
|
|
|
|
|
|
# Validate schemas in specs
|
2024-09-03 18:53:44 +09:00
|
|
|
gem 'json-schema', '~> 5.0'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Test harness fo rack components
|
2023-03-16 10:33:26 +09:00
|
|
|
gem 'rack-test', '~> 2.1'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
2024-09-04 00:30:57 +09:00
|
|
|
gem 'shoulda-matchers'
|
|
|
|
|
2023-05-20 00:48:15 +09:00
|
|
|
# Coverage formatter for RSpec test if DISABLE_SIMPLECOV is false
|
2022-12-27 09:37:19 +09:00
|
|
|
gem 'simplecov', '~> 0.22', require: false
|
2023-11-15 01:53:38 +09:00
|
|
|
gem 'simplecov-lcov', '~> 0.8', require: false
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Stub web requests for specs
|
2022-08-19 09:27:53 +09:00
|
|
|
gem 'webmock', '~> 3.18'
|
2016-02-21 06:53:20 +09:00
|
|
|
end
|
|
|
|
|
|
|
|
group :development do
|
2023-05-20 00:48:15 +09:00
|
|
|
# Code linting CLI and plugins
|
|
|
|
gem 'rubocop', require: false
|
|
|
|
gem 'rubocop-capybara', require: false
|
|
|
|
gem 'rubocop-performance', require: false
|
|
|
|
gem 'rubocop-rails', require: false
|
|
|
|
gem 'rubocop-rspec', require: false
|
2024-06-12 21:59:32 +09:00
|
|
|
gem 'rubocop-rspec_rails', require: false
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Annotates modules with schema
|
2022-02-13 08:04:32 +09:00
|
|
|
gem 'annotate', '~> 3.2'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Enhanced error message pages for development
|
2023-05-04 12:22:50 +09:00
|
|
|
gem 'better_errors', '~> 2.9'
|
2021-01-07 14:10:49 +09:00
|
|
|
gem 'binding_of_caller', '~> 1.0'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Preview mail in the browser
|
2022-03-22 11:30:45 +09:00
|
|
|
gem 'letter_opener', '~> 1.8'
|
2024-05-15 17:34:50 +09:00
|
|
|
gem 'letter_opener_web', '~> 3.0'
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Security analysis CLI tools
|
2023-07-11 22:23:57 +09:00
|
|
|
gem 'brakeman', '~> 6.0', require: false
|
2021-09-19 14:44:27 +09:00
|
|
|
gem 'bundler-audit', '~> 0.9', require: false
|
2023-05-20 00:48:15 +09:00
|
|
|
|
|
|
|
# Linter CLI for HAML files
|
2023-03-15 12:15:36 +09:00
|
|
|
gem 'haml_lint', require: false
|
2017-01-31 04:03:17 +09:00
|
|
|
|
2023-05-20 00:48:15 +09:00
|
|
|
# Validate missing i18n keys
|
|
|
|
gem 'i18n-tasks', '~> 1.0', require: false
|
2023-07-29 06:16:23 +09:00
|
|
|
end
|
2023-05-20 00:48:15 +09:00
|
|
|
|
2023-07-29 06:16:23 +09:00
|
|
|
group :development, :test do
|
2023-11-22 01:41:04 +09:00
|
|
|
# Interactive Debugging tools
|
|
|
|
gem 'debug', '~> 1.8'
|
|
|
|
|
2024-01-31 21:52:51 +09:00
|
|
|
# Generate fake data values
|
|
|
|
gem 'faker', '~> 3.2'
|
|
|
|
|
|
|
|
# Generate factory objects
|
|
|
|
gem 'fabrication', '~> 2.30'
|
|
|
|
|
2023-05-20 00:48:15 +09:00
|
|
|
# Profiling tools
|
|
|
|
gem 'memory_profiler', require: false
|
2023-07-29 06:16:23 +09:00
|
|
|
gem 'ruby-prof', require: false
|
2023-05-20 00:48:15 +09:00
|
|
|
gem 'stackprof', require: false
|
2023-07-29 06:16:23 +09:00
|
|
|
gem 'test-prof'
|
2016-02-21 06:53:20 +09:00
|
|
|
|
2023-07-29 06:17:35 +09:00
|
|
|
# RSpec runner for rails
|
2024-09-03 17:00:52 +09:00
|
|
|
gem 'rspec-rails', '~> 7.0'
|
2023-07-29 06:17:35 +09:00
|
|
|
end
|
|
|
|
|
2016-02-21 06:53:20 +09:00
|
|
|
group :production do
|
2022-04-08 13:40:05 +09:00
|
|
|
gem 'lograge', '~> 0.12'
|
2016-02-21 06:53:20 +09:00
|
|
|
end
|
2019-01-15 17:24:35 +09:00
|
|
|
|
2024-04-19 01:24:22 +09:00
|
|
|
gem 'cocoon', '~> 1.2'
|
2019-01-15 17:24:35 +09:00
|
|
|
gem 'concurrent-ruby', require: false
|
2019-07-02 07:34:38 +09:00
|
|
|
gem 'connection_pool', require: false
|
Add follower synchronization mechanism (#14510)
* Add support for followers synchronization on the receiving end
Check the `collectionSynchronization` attribute on `Create` and `Announce`
activities and synchronize followers from provided collection if possible.
* Add tests for followers synchronization on the receiving end
* Add support for follower synchronization on the sender's end
* Add tests for the sending end
* Switch from AS attributes to HTTP header
Replace the custom `collectionSynchronization` ActivityStreams attribute by
an HTTP header (`X-AS-Collection-Synchronization`) with the same syntax as
the `Signature` header and the following fields:
- `collectionId` to specify which collection to synchronize
- `digest` for the SHA256 hex-digest of the list of followers known on the
receiving instance (where “receiving instance” is determined by accounts
sharing the same host name for their ActivityPub actor `id`)
- `url` of a collection that should be fetched by the instance actor
Internally, move away from the webfinger-based `domain` attribute and use
account `uri` prefix to group accounts.
* Add environment variable to disable followers synchronization
Since the whole mechanism relies on some new preconditions that, in some
extremely rare cases, might not be met, add an environment variable
(DISABLE_FOLLOWERS_SYNCHRONIZATION) to disable the mechanism altogether and
avoid followers being incorrectly removed.
The current conditions are:
1. all managed accounts' actor `id` and inbox URL have the same URI scheme and
netloc.
2. all accounts whose actor `id` or inbox URL share the same URI scheme and
netloc as a managed account must be managed by the same Mastodon instance
as well.
As far as Mastodon is concerned, breaking those preconditions require extensive
configuration changes in the reverse proxy and might also cause other issues.
Therefore, this environment variable provides a way out for people with highly
unusual configurations, and can be safely ignored for the overwhelming majority
of Mastodon administrators.
* Only set follower synchronization header on non-public statuses
This is to avoid unnecessary computations and allow Follow-related
activities to be handled by the usual codepath instead of going through
the synchronization mechanism (otherwise, any Follow/Undo/Accept activity
would trigger the synchronization mechanism even if processing the activity
itself would be enough to re-introduce synchronization)
* Change how ActivityPub::SynchronizeFollowersService handles follow requests
If the remote lists a local follower which we only know has sent a follow
request, consider the follow request as accepted instead of sending an Undo.
* Integrate review feeback
- rename X-AS-Collection-Synchronization to Collection-Synchronization
- various minor refactoring and code style changes
* Only select required fields when computing followers_hash
* Use actor URI rather than webfinger domain in synchronization endpoint
* Change hash computation to be a XOR of individual hashes
Makes it much easier to be memory-efficient, and avoid sorting discrepancy issues.
* Marginally improve followers_hash computation speed
* Further improve hash computation performances by using pluck_each
2020-10-22 01:04:09 +09:00
|
|
|
gem 'xorcist', '~> 1.1'
|
2023-02-13 22:36:07 +09:00
|
|
|
|
2023-11-08 07:07:12 +09:00
|
|
|
gem 'net-http', '~> 0.4.0'
|
2023-05-02 22:09:43 +09:00
|
|
|
gem 'rubyzip', '~> 2.3'
|
2023-05-17 06:27:35 +09:00
|
|
|
|
|
|
|
gem 'hcaptcha', '~> 7.1'
|
2024-04-05 16:48:45 +09:00
|
|
|
|
|
|
|
gem 'mail', '~> 2.8'
|