2016-11-15 10:56:29 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-20 16:53:20 -05:00
|
|
|
source 'https://rubygems.org'
|
2023-04-26 19:46:18 -04:00
|
|
|
ruby '>= 3.0.0'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2023-06-01 08:27:58 -04:00
|
|
|
gem 'puma', '~> 6.3'
|
2023-07-13 03:36:07 -04:00
|
|
|
gem 'rails', '~> 7.0'
|
2020-01-04 16:48:34 -05:00
|
|
|
gem 'sprockets', '~> 3.7.2'
|
2022-01-18 21:07:37 -05:00
|
|
|
gem 'thor', '~> 1.2'
|
2023-04-26 11:45:49 -04:00
|
|
|
gem 'rack', '~> 2.2.7'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2023-02-12 22:59:30 -05:00
|
|
|
gem 'haml-rails', '~>2.0'
|
2023-04-26 11:46:01 -04:00
|
|
|
gem 'pg', '~> 1.5'
|
2023-01-22 17:09:02 -05:00
|
|
|
gem 'pghero'
|
2022-07-29 12:39:38 -04:00
|
|
|
gem 'dotenv-rails', '~> 2.8'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2023-06-01 03:45:10 -04:00
|
|
|
gem 'aws-sdk-s3', '~> 1.123', require: false
|
2022-12-20 05:08:22 -05:00
|
|
|
gem 'fog-core', '<= 2.4.0'
|
2018-10-22 10:58:36 -04:00
|
|
|
gem 'fog-openstack', '~> 0.3', require: false
|
2023-06-05 08:40:35 -04:00
|
|
|
gem 'kt-paperclip', '~> 7.2'
|
2023-07-19 03:02:49 -04:00
|
|
|
gem 'md-paperclip-azure', '~> 2.2', require: false
|
2019-04-26 21:24:09 -04:00
|
|
|
gem 'blurhash', '~> 0.1'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2017-07-06 22:02:06 -04:00
|
|
|
gem 'active_model_serializers', '~> 0.10'
|
2021-07-08 01:35:20 -04:00
|
|
|
gem 'addressable', '~> 2.8'
|
2023-02-04 01:55:07 -05:00
|
|
|
gem 'bootsnap', '~> 1.16.0', require: false
|
2017-06-25 10:54:30 -04:00
|
|
|
gem 'browser'
|
2019-11-26 21:53:50 -05:00
|
|
|
gem 'charlock_holmes', '~> 0.7.7'
|
2023-04-12 07:47:38 -04:00
|
|
|
gem 'chewy', '~> 7.3'
|
2023-02-21 04:41:28 -05:00
|
|
|
gem 'devise', '~> 4.9'
|
2023-05-05 13:48:23 -04:00
|
|
|
gem 'devise-two-factor', '~> 4.1'
|
2018-02-02 04:18:55 -05:00
|
|
|
|
2018-03-19 15:08:56 -04:00
|
|
|
group :pam_authentication, optional: true do
|
2018-09-14 11:42:45 -04:00
|
|
|
gem 'devise_pam_authenticatable2', '~> 9.2'
|
2018-03-19 15:08:56 -04:00
|
|
|
end
|
2018-04-07 15:36:58 -04:00
|
|
|
|
2023-04-11 06:53:13 -04:00
|
|
|
gem 'net-ldap', '~> 0.18'
|
2023-08-08 02:57:18 -04:00
|
|
|
|
|
|
|
# TODO: Point back at released omniauth-cas gem when PR merged
|
|
|
|
# https://github.com/dlindahl/omniauth-cas/pull/68
|
|
|
|
gem 'omniauth-cas', github: 'stanhu/omniauth-cas', ref: '4211e6d05941b4a981f9a36b49ec166cecd0e271'
|
|
|
|
gem 'omniauth-saml', '~> 2.0'
|
2023-03-08 05:44:23 -05:00
|
|
|
gem 'omniauth_openid_connect', '~> 0.6.1'
|
2023-08-08 02:57:18 -04:00
|
|
|
gem 'omniauth', '~> 2.0'
|
|
|
|
gem 'omniauth-rails_csrf_protection', '~> 1.0'
|
2018-02-02 04:18:55 -05:00
|
|
|
|
2020-07-05 12:28:25 -04:00
|
|
|
gem 'color_diff', '~> 0.1'
|
2020-03-25 17:48:52 -04:00
|
|
|
gem 'discard', '~> 1.2'
|
2022-09-11 09:23:56 -04:00
|
|
|
gem 'doorkeeper', '~> 5.6'
|
2022-01-18 21:04:11 -05:00
|
|
|
gem 'ed25519', '~> 1.3'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'fast_blank', '~> 1.0'
|
2018-02-20 21:40:12 -05:00
|
|
|
gem 'fastimage'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'hiredis', '~> 0.6'
|
2022-12-26 19:52:15 -05:00
|
|
|
gem 'redis-namespace', '~> 1.10'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'htmlentities', '~> 4.3'
|
2022-06-27 07:54:46 -04:00
|
|
|
gem 'http', '~> 5.1'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'http_accept_language', '~> 2.1'
|
2022-11-22 09:08:20 -05:00
|
|
|
gem 'httplog', '~> 1.6.2'
|
2017-07-15 11:24:35 -04:00
|
|
|
gem 'idn-ruby', require: 'idn'
|
2020-05-04 07:53:42 -04:00
|
|
|
gem 'kaminari', '~> 1.2'
|
2017-05-11 05:27:01 -04:00
|
|
|
gem 'link_header', '~> 0.0'
|
2023-08-10 04:24:34 -04:00
|
|
|
gem 'mime-types', '~> 3.5.0', require: 'mime/types/columnar'
|
2023-05-30 03:42:41 -04:00
|
|
|
gem 'nokogiri', '~> 1.15'
|
2023-08-03 14:28:14 -04:00
|
|
|
gem 'nsa', github: 'jhawthorn/nsa', ref: 'e020fcc3a54d993ab45b7194d89ab720296c111b'
|
2023-02-18 00:21:10 -05:00
|
|
|
gem 'oj', '~> 3.14'
|
2020-12-29 10:08:06 -05:00
|
|
|
gem 'ox', '~> 2.14'
|
2019-07-26 22:42:08 -04:00
|
|
|
gem 'parslet'
|
2020-07-28 11:59:29 -04:00
|
|
|
gem 'posix-spawn'
|
2022-12-04 15:23:19 -05:00
|
|
|
gem 'public_suffix', '~> 5.0'
|
2022-12-20 05:08:53 -05:00
|
|
|
gem 'pundit', '~> 2.3'
|
2018-01-15 21:29:11 -05:00
|
|
|
gem 'premailer-rails'
|
2022-03-12 03:23:53 -05:00
|
|
|
gem 'rack-attack', '~> 6.6'
|
2023-03-20 21:42:34 -04:00
|
|
|
gem 'rack-cors', '~> 2.0', require: 'rack/cors'
|
2023-07-13 03:36:07 -04:00
|
|
|
gem 'rails-i18n', '~> 7.0'
|
2023-02-15 02:30:27 -05:00
|
|
|
gem 'rails-settings-cached', '~> 0.6', git: 'https://github.com/mastodon/rails-settings-cached.git', branch: 'v0.6.6-aliases-true'
|
2023-02-01 05:19:30 -05:00
|
|
|
gem 'redcarpet', '~> 3.6'
|
2021-10-19 20:49:36 -04:00
|
|
|
gem 'redis', '~> 4.5', require: ['redis', 'redis/connection/hiredis']
|
2017-07-19 08:44:04 -04:00
|
|
|
gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
|
2023-05-23 03:25:43 -04:00
|
|
|
gem 'rqrcode', '~> 2.2'
|
2023-04-24 13:07:45 -04:00
|
|
|
gem 'ruby-progressbar', '~> 1.13'
|
2021-08-09 14:46:57 -04:00
|
|
|
gem 'sanitize', '~> 6.0'
|
2022-12-20 05:10:09 -05:00
|
|
|
gem 'scenic', '~> 1.7'
|
2022-07-05 20:11:00 -04:00
|
|
|
gem 'sidekiq', '~> 6.5'
|
2023-02-13 07:31:42 -05:00
|
|
|
gem 'sidekiq-scheduler', '~> 5.0'
|
2021-06-30 11:45:49 -04:00
|
|
|
gem 'sidekiq-unique-jobs', '~> 7.1'
|
2022-05-18 17:29:14 -04:00
|
|
|
gem 'sidekiq-bulk', '~> 0.2.0'
|
2022-06-02 23:53:13 -04:00
|
|
|
gem 'simple-navigation', '~> 4.4'
|
2023-02-01 05:07:16 -05:00
|
|
|
gem 'simple_form', '~> 5.2'
|
2021-11-17 19:06:40 -05:00
|
|
|
gem 'sprockets-rails', '~> 3.4', require: 'sprockets/railtie'
|
2022-12-02 09:39:41 -05:00
|
|
|
gem 'stoplight', '~> 3.0.1'
|
2023-03-27 03:11:10 -04:00
|
|
|
gem 'strong_migrations', '~> 0.8'
|
2020-12-29 10:08:23 -05:00
|
|
|
gem 'tty-prompt', '~> 0.23', require: false
|
2021-03-02 06:02:56 -05:00
|
|
|
gem 'twitter-text', '~> 3.1.0'
|
2023-03-29 04:32:51 -04:00
|
|
|
gem 'tzinfo-data', '~> 1.2023'
|
2021-05-27 04:48:18 -04:00
|
|
|
gem 'webpacker', '~> 5.4'
|
2022-11-13 15:00:38 -05:00
|
|
|
gem 'webpush', github: 'ClearlyClaire/webpush', ref: 'f14a4d52e201128b1b00245d11b6de80d6cfdcd9'
|
2023-02-17 04:06:24 -05:00
|
|
|
gem 'webauthn', '~> 3.0'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2020-01-13 13:01:43 -05:00
|
|
|
gem 'json-ld'
|
2022-01-25 07:23:42 -05:00
|
|
|
gem 'json-ld-preloaded', '~> 3.2'
|
2022-01-27 06:25:18 -05:00
|
|
|
gem 'rdf-normalize', '~> 0.5'
|
2017-08-26 07:47:38 -04:00
|
|
|
|
2023-05-19 11:48:15 -04:00
|
|
|
gem 'private_address_check', '~> 0.5'
|
|
|
|
|
|
|
|
group :test do
|
|
|
|
# Used to split testing into chunks in CI
|
2023-03-06 22:49:43 -05:00
|
|
|
gem 'rspec_chunked', '~> 0.6'
|
2023-03-17 05:13:28 -04:00
|
|
|
|
2023-05-19 11:48:15 -04:00
|
|
|
# RSpec progress bar formatter
|
|
|
|
gem 'fuubar', '~> 2.5'
|
2016-02-24 18:17:01 -05:00
|
|
|
|
2023-05-19 11:48:15 -04:00
|
|
|
# Extra RSpec extenion methods and helpers for sidekiq
|
2023-08-24 03:03:40 -04:00
|
|
|
gem 'rspec-sidekiq', '~> 4.0'
|
2018-02-24 13:16:11 -05:00
|
|
|
|
2023-05-19 11:48:15 -04:00
|
|
|
# Browser integration testing
|
2023-04-05 07:29:14 -04:00
|
|
|
gem 'capybara', '~> 3.39'
|
2023-07-28 17:09:49 -04:00
|
|
|
gem 'selenium-webdriver'
|
|
|
|
|
|
|
|
# Used to reset the database between system tests
|
|
|
|
gem 'database_cleaner-active_record'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Used to mock environment variables
|
|
|
|
gem 'climate_control', '~> 0.2'
|
|
|
|
|
|
|
|
# Generating fake data for specs
|
2023-04-18 04:39:46 -04:00
|
|
|
gem 'faker', '~> 3.2'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Generate test objects for specs
|
|
|
|
gem 'fabrication', '~> 2.30'
|
|
|
|
|
|
|
|
# Add back helpers functions removed in Rails 5.1
|
|
|
|
gem 'rails-controller-testing', '~> 1.0'
|
|
|
|
|
|
|
|
# Validate schemas in specs
|
2023-04-26 08:57:08 -04:00
|
|
|
gem 'json-schema', '~> 4.0'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Test harness fo rack components
|
2023-03-15 21:33:26 -04:00
|
|
|
gem 'rack-test', '~> 2.1'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Coverage formatter for RSpec test if DISABLE_SIMPLECOV is false
|
2022-12-26 19:37:19 -05:00
|
|
|
gem 'simplecov', '~> 0.22', require: false
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Stub web requests for specs
|
2022-08-18 20:27:53 -04:00
|
|
|
gem 'webmock', '~> 3.18'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
group :development do
|
2023-05-19 11:48:15 -04: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
|
|
|
|
|
|
|
|
# Annotates modules with schema
|
2022-02-12 18:04:32 -05:00
|
|
|
gem 'annotate', '~> 3.2'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Enhanced error message pages for development
|
2020-11-10 09:11:15 -05:00
|
|
|
gem 'better_errors', '~> 2.9'
|
2021-01-07 00:10:49 -05:00
|
|
|
gem 'binding_of_caller', '~> 1.0'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Preview mail in the browser
|
2022-03-21 22:30:45 -04:00
|
|
|
gem 'letter_opener', '~> 1.8'
|
2021-11-17 19:20:31 -05:00
|
|
|
gem 'letter_opener_web', '~> 2.0'
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Security analysis CLI tools
|
2023-07-11 09:23:57 -04:00
|
|
|
gem 'brakeman', '~> 6.0', require: false
|
2021-09-19 01:44:27 -04:00
|
|
|
gem 'bundler-audit', '~> 0.9', require: false
|
2023-05-19 11:48:15 -04:00
|
|
|
|
|
|
|
# Linter CLI for HAML files
|
2023-03-14 23:15:36 -04:00
|
|
|
gem 'haml_lint', require: false
|
2017-01-30 14:03:17 -05:00
|
|
|
|
2023-05-19 11:48:15 -04:00
|
|
|
# Validate missing i18n keys
|
|
|
|
gem 'i18n-tasks', '~> 1.0', require: false
|
2023-07-28 17:16:23 -04:00
|
|
|
end
|
2023-05-19 11:48:15 -04:00
|
|
|
|
2023-07-28 17:16:23 -04:00
|
|
|
group :development, :test do
|
2023-05-19 11:48:15 -04:00
|
|
|
# Profiling tools
|
|
|
|
gem 'memory_profiler', require: false
|
2023-07-28 17:16:23 -04:00
|
|
|
gem 'ruby-prof', require: false
|
2023-05-19 11:48:15 -04:00
|
|
|
gem 'stackprof', require: false
|
2023-07-28 17:16:23 -04:00
|
|
|
gem 'test-prof'
|
2016-02-20 16:53:20 -05:00
|
|
|
|
2023-07-28 17:17:35 -04:00
|
|
|
# RSpec runner for rails
|
|
|
|
gem 'rspec-rails', '~> 6.0'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
group :production do
|
2022-04-08 00:40:05 -04:00
|
|
|
gem 'lograge', '~> 0.12'
|
2016-02-20 16:53:20 -05:00
|
|
|
end
|
2019-01-15 03:24:35 -05:00
|
|
|
|
|
|
|
gem 'concurrent-ruby', require: false
|
2019-07-01 18:34:38 -04: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-21 12:04:09 -04:00
|
|
|
gem 'xorcist', '~> 1.1'
|
2022-01-24 13:06:19 -05:00
|
|
|
|
Revamp post filtering system (#18058)
* Add model for custom filter keywords
* Use CustomFilterKeyword internally
Does not change the API
* Fix /filters/edit and /filters/new
* Add migration tests
* Remove whole_word column from custom_filters (covered by custom_filter_keywords)
* Redesign /filters
Instead of a list, present a card that displays more information and handles
multiple keywords per filter.
* Redesign /filters/new and /filters/edit to add and remove keywords
This adds a new gem dependency: cocoon, as well as a npm dependency:
cocoon-js-vanilla. Those are used to easily populate and remove form fields
from the user interface when manipulating multiple keyword filters at once.
* Add /api/v2/filters to edit filter with multiple keywords
Entities:
- `Filter`: `id`, `title`, `filter_action` (either `hide` or `warn`), `context`
`keywords`
- `FilterKeyword`: `id`, `keyword`, `whole_word`
API endpoits:
- `GET /api/v2/filters` to list filters (including keywords)
- `POST /api/v2/filters` to create a new filter
`keywords_attributes` can also be passed to create keywords in one request
- `GET /api/v2/filters/:id` to read a particular filter
- `PUT /api/v2/filters/:id` to update a new filter
`keywords_attributes` can also be passed to edit, delete or add keywords in
one request
- `DELETE /api/v2/filters/:id` to delete a particular filter
- `GET /api/v2/filters/:id/keywords` to list keywords for a filter
- `POST /api/v2/filters/:filter_id/keywords/:id` to add a new keyword to a
filter
- `GET /api/v2/filter_keywords/:id` to read a particular keyword
- `PUT /api/v2/filter_keywords/:id` to edit a particular keyword
- `DELETE /api/v2/filter_keywords/:id` to delete a particular keyword
* Change from `irreversible` boolean to `action` enum
* Remove irrelevent `irreversible_must_be_within_context` check
* Fix /filters/new and /filters/edit with update for filter_action
* Fix Rubocop/Codeclimate complaining about task names
* Refactor FeedManager#phrase_filtered?
This moves regexp building and filter caching to the `CustomFilter` class.
This does not change the functional behavior yet, but this changes how the
cache is built, doing per-custom_filter regexps so that filters can be matched
independently, while still offering caching.
* Perform server-side filtering and output result in REST API
* Fix numerous filters_changed events being sent when editing multiple keywords at once
* Add some tests
* Use the new API in the WebUI
- use client-side logic for filters we have fetched rules for.
This is so that filter changes can be retroactively applied without
reloading the UI.
- use server-side logic for filters we haven't fetched rules for yet
(e.g. network error, or initial timeline loading)
* Minor optimizations and refactoring
* Perform server-side filtering on the streaming server
* Change the wording of filter action labels
* Fix issues pointed out by linter
* Change design of “Show anyway” link in accordence to review comments
* Drop “irreversible” filtering behavior
* Move /api/v2/filter_keywords to /api/v1/filters/keywords
* Rename `filter_results` attribute to `filtered`
* Rename REST::LegacyFilterSerializer to REST::V1::FilterSerializer
* Fix systemChannelId value in streaming server
* Simplify code by removing client-side filtering code
The simplifcation comes at a cost though: filters aren't retroactively
applied anymore.
2022-06-28 03:42:13 -04:00
|
|
|
gem 'cocoon', '~> 1.2'
|
2023-02-13 08:36:07 -05:00
|
|
|
|
|
|
|
gem 'net-http', '~> 0.3.2'
|
2023-05-02 09:09:43 -04:00
|
|
|
gem 'rubyzip', '~> 2.3'
|
2023-05-16 17:27:35 -04:00
|
|
|
|
|
|
|
gem 'hcaptcha', '~> 7.1'
|