From 7ef56d6e50d3bd6eb636152c7c2c5799c45de8b8 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 31 Oct 2023 11:21:23 -0400 Subject: [PATCH] Move json_ld context loaders to `config/initializers` (#27590) --- .rubocop.yml | 2 +- config/initializers/json_ld.rb | 4 ---- .../identity.rb => config/initializers/json_ld_identity.rb | 0 .../security.rb => config/initializers/json_ld_security.rb | 0 4 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 config/initializers/json_ld.rb rename lib/json_ld/identity.rb => config/initializers/json_ld_identity.rb (100%) rename lib/json_ld/security.rb => config/initializers/json_ld_security.rb (100%) diff --git a/.rubocop.yml b/.rubocop.yml index 64ec766b223..63de5e17c78 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -27,7 +27,7 @@ AllCops: - 'node_modules/**/*' - 'Vagrantfile' - 'vendor/**/*' - - 'lib/json_ld/*' # Generated files + - 'config/initializers/json_ld*' # Generated files - 'lib/mastodon/migration_helpers.rb' # Vendored from GitLab - 'lib/templates/**/*' diff --git a/config/initializers/json_ld.rb b/config/initializers/json_ld.rb deleted file mode 100644 index 3ed3c4b31a3..00000000000 --- a/config/initializers/json_ld.rb +++ /dev/null @@ -1,4 +0,0 @@ -# frozen_string_literal: true - -require_relative '../../lib/json_ld/security' -require_relative '../../lib/json_ld/identity' diff --git a/lib/json_ld/identity.rb b/config/initializers/json_ld_identity.rb similarity index 100% rename from lib/json_ld/identity.rb rename to config/initializers/json_ld_identity.rb diff --git a/lib/json_ld/security.rb b/config/initializers/json_ld_security.rb similarity index 100% rename from lib/json_ld/security.rb rename to config/initializers/json_ld_security.rb