From de04e98147b904b7e79020d5aa7b0f9c3057f040 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 27 Apr 2025 11:05:06 +0100 Subject: [PATCH] Add frozen_string_literal comments to ruby files --- .rubocop.yml | 4 ++++ .rubocop_todo.yml | 7 ------- Dangerfile | 2 ++ Gemfile | 2 ++ Rakefile | 2 ++ Vagrantfile | 2 ++ app/controllers/accounts/deletions_controller.rb | 2 ++ app/controllers/accounts/homes_controller.rb | 2 ++ app/controllers/accounts/pd_declarations_controller.rb | 2 ++ app/controllers/accounts/terms_controller.rb | 2 ++ app/controllers/accounts_controller.rb | 2 ++ app/controllers/api/capabilities_controller.rb | 2 ++ .../api/changeset_comments/visibilities_controller.rb | 2 ++ app/controllers/api/changeset_comments_controller.rb | 2 ++ app/controllers/api/changeset_subscriptions_controller.rb | 2 ++ app/controllers/api/changesets/closes_controller.rb | 2 ++ app/controllers/api/changesets/downloads_controller.rb | 2 ++ app/controllers/api/changesets/uploads_controller.rb | 2 ++ app/controllers/api/changesets_controller.rb | 2 ++ app/controllers/api/maps_controller.rb | 2 ++ app/controllers/api/messages/inboxes_controller.rb | 2 ++ app/controllers/api/messages/mailboxes_controller.rb | 2 ++ app/controllers/api/messages/outboxes_controller.rb | 2 ++ app/controllers/api/messages_controller.rb | 2 ++ app/controllers/api/nodes/relations_controller.rb | 2 ++ app/controllers/api/nodes/ways_controller.rb | 2 ++ app/controllers/api/nodes_controller.rb | 2 ++ app/controllers/api/note_subscriptions_controller.rb | 2 ++ app/controllers/api/notes_controller.rb | 2 ++ app/controllers/api/old_elements/redactions_controller.rb | 2 ++ app/controllers/api/old_elements_controller.rb | 2 ++ app/controllers/api/old_nodes/redactions_controller.rb | 2 ++ app/controllers/api/old_nodes_controller.rb | 2 ++ app/controllers/api/old_relations/redactions_controller.rb | 2 ++ app/controllers/api/old_relations_controller.rb | 2 ++ app/controllers/api/old_ways/redactions_controller.rb | 2 ++ app/controllers/api/old_ways_controller.rb | 2 ++ app/controllers/api/permissions_controller.rb | 2 ++ app/controllers/api/relations/relations_controller.rb | 2 ++ app/controllers/api/relations_controller.rb | 2 ++ app/controllers/api/tracepoints_controller.rb | 2 ++ app/controllers/api/traces/data_controller.rb | 2 ++ app/controllers/api/traces_controller.rb | 2 ++ app/controllers/api/user_blocks/active_lists_controller.rb | 2 ++ app/controllers/api/user_blocks_controller.rb | 2 ++ app/controllers/api/user_preferences_controller.rb | 2 ++ app/controllers/api/users/traces_controller.rb | 2 ++ app/controllers/api/users_controller.rb | 2 ++ app/controllers/api/versions_controller.rb | 2 ++ app/controllers/api/ways/relations_controller.rb | 2 ++ app/controllers/api/ways_controller.rb | 2 ++ app/controllers/api_controller.rb | 2 ++ app/controllers/application_controller.rb | 2 ++ app/controllers/changeset_comments/feeds_controller.rb | 2 ++ app/controllers/changeset_subscriptions_controller.rb | 2 ++ app/controllers/changesets_controller.rb | 2 ++ app/controllers/concerns/email_methods.rb | 2 ++ app/controllers/concerns/nominatim_methods.rb | 2 ++ app/controllers/concerns/pagination_methods.rb | 2 ++ app/controllers/concerns/query_methods.rb | 2 ++ app/controllers/concerns/session_methods.rb | 2 ++ app/controllers/concerns/user_methods.rb | 2 ++ app/controllers/confirmations_controller.rb | 2 ++ app/controllers/dashboards_controller.rb | 2 ++ app/controllers/diary_comments_controller.rb | 2 ++ app/controllers/diary_entries_controller.rb | 2 ++ app/controllers/directions_controller.rb | 2 ++ app/controllers/elements_controller.rb | 2 ++ app/controllers/errors_controller.rb | 2 ++ app/controllers/export_controller.rb | 2 ++ app/controllers/feature_queries_controller.rb | 2 ++ app/controllers/follows_controller.rb | 2 ++ app/controllers/issue_comments_controller.rb | 2 ++ app/controllers/issues/reporters_controller.rb | 2 ++ app/controllers/issues_controller.rb | 2 ++ app/controllers/layers_panes_controller.rb | 2 ++ app/controllers/legend_panes_controller.rb | 2 ++ app/controllers/messages/inboxes_controller.rb | 2 ++ app/controllers/messages/mailboxes_controller.rb | 2 ++ app/controllers/messages/muted_inboxes_controller.rb | 2 ++ app/controllers/messages/mutes_controller.rb | 2 ++ app/controllers/messages/outboxes_controller.rb | 2 ++ app/controllers/messages/read_marks_controller.rb | 2 ++ app/controllers/messages/replies_controller.rb | 2 ++ app/controllers/messages_controller.rb | 2 ++ app/controllers/nodes_controller.rb | 2 ++ app/controllers/notes_controller.rb | 2 ++ app/controllers/oauth2_applications_controller.rb | 2 ++ app/controllers/oauth2_authorizations_controller.rb | 2 ++ .../oauth2_authorized_applications_controller.rb | 2 ++ app/controllers/old_elements_controller.rb | 2 ++ app/controllers/old_nodes_controller.rb | 2 ++ app/controllers/old_relation_members_controller.rb | 2 ++ app/controllers/old_relations_controller.rb | 2 ++ app/controllers/old_ways_controller.rb | 2 ++ app/controllers/passwords_controller.rb | 2 ++ .../preferences/advanced_preferences_controller.rb | 2 ++ .../preferences/basic_preferences_controller.rb | 2 ++ app/controllers/preferences/preferences_controller.rb | 2 ++ app/controllers/profiles/companies_controller.rb | 2 ++ app/controllers/profiles/descriptions_controller.rb | 2 ++ app/controllers/profiles/images_controller.rb | 2 ++ app/controllers/profiles/links_controller.rb | 2 ++ app/controllers/profiles/locations_controller.rb | 2 ++ app/controllers/profiles/profile_sections_controller.rb | 2 ++ app/controllers/redactions_controller.rb | 2 ++ app/controllers/relation_members_controller.rb | 2 ++ app/controllers/relations_controller.rb | 2 ++ app/controllers/reports_controller.rb | 2 ++ app/controllers/searches/latlon_queries_controller.rb | 2 ++ app/controllers/searches/nominatim_queries_controller.rb | 2 ++ .../searches/nominatim_reverse_queries_controller.rb | 2 ++ app/controllers/searches/queries_controller.rb | 2 ++ app/controllers/searches_controller.rb | 2 ++ app/controllers/sessions_controller.rb | 2 ++ app/controllers/share_panes_controller.rb | 2 ++ app/controllers/site_controller.rb | 2 ++ app/controllers/traces/data_controller.rb | 2 ++ app/controllers/traces/feeds_controller.rb | 2 ++ app/controllers/traces/icons_controller.rb | 2 ++ app/controllers/traces/pictures_controller.rb | 2 ++ app/controllers/traces_controller.rb | 2 ++ app/controllers/user_blocks_controller.rb | 2 ++ app/controllers/user_mutes_controller.rb | 2 ++ app/controllers/user_roles_controller.rb | 2 ++ app/controllers/users/changeset_comments_controller.rb | 2 ++ app/controllers/users/comments_controller.rb | 2 ++ app/controllers/users/diary_comments_controller.rb | 2 ++ app/controllers/users/heatmaps_controller.rb | 2 ++ app/controllers/users/issued_blocks_controller.rb | 2 ++ app/controllers/users/lists_controller.rb | 2 ++ app/controllers/users/received_blocks_controller.rb | 2 ++ app/controllers/users/statuses_controller.rb | 2 ++ app/controllers/users_controller.rb | 2 ++ app/controllers/ways_controller.rb | 2 ++ app/helpers/application_helper.rb | 2 ++ app/helpers/asset_helper.rb | 2 ++ app/helpers/authorization_helper.rb | 2 ++ app/helpers/banner_helper.rb | 2 ++ app/helpers/browse_helper.rb | 2 ++ app/helpers/browse_tags_helper.rb | 4 +++- app/helpers/changesets_helper.rb | 2 ++ app/helpers/copyright_helper.rb | 2 ++ app/helpers/geocoder_helper.rb | 2 ++ app/helpers/heatmap_helper.rb | 2 ++ app/helpers/issues_helper.rb | 2 ++ app/helpers/note_helper.rb | 2 ++ app/helpers/numbered_pagination_helper.rb | 2 ++ app/helpers/open_graph_helper.rb | 2 ++ app/helpers/pagination_helper.rb | 2 ++ app/helpers/reports_helper.rb | 2 ++ app/helpers/share_buttons_helper.rb | 2 ++ app/helpers/svg_helper.rb | 2 ++ app/helpers/title_helper.rb | 2 ++ app/helpers/trace_helper.rb | 2 ++ app/helpers/user_blocks_helper.rb | 2 ++ app/helpers/user_helper.rb | 2 ++ app/helpers/user_mailer_helper.rb | 2 ++ app/jobs/application_job.rb | 2 ++ app/jobs/trace_destroyer_job.rb | 2 ++ app/jobs/trace_importer_job.rb | 2 ++ app/mailers/application_mailer.rb | 2 ++ app/mailers/user_mailer.rb | 2 ++ app/models/acl.rb | 2 ++ app/models/application_record.rb | 2 ++ app/models/changeset.rb | 2 ++ app/models/changeset_comment.rb | 2 ++ app/models/changeset_subscription.rb | 2 ++ app/models/changeset_tag.rb | 2 ++ app/models/community.rb | 2 ++ app/models/concerns/consistency_validations.rb | 2 ++ app/models/concerns/geo_record.rb | 2 ++ app/models/concerns/not_redactable.rb | 2 ++ app/models/concerns/redactable.rb | 2 ++ app/models/diary_comment.rb | 2 ++ app/models/diary_entry.rb | 2 ++ app/models/diary_entry_subscription.rb | 2 ++ app/models/follow.rb | 2 ++ app/models/issue.rb | 2 ++ app/models/issue_comment.rb | 2 ++ app/models/language.rb | 2 ++ app/models/message.rb | 2 ++ app/models/node.rb | 2 ++ app/models/node_tag.rb | 2 ++ app/models/note.rb | 2 ++ app/models/note_comment.rb | 2 ++ app/models/note_subscription.rb | 2 ++ app/models/oauth2_application.rb | 2 ++ app/models/old_node.rb | 2 ++ app/models/old_node_tag.rb | 2 ++ app/models/old_relation.rb | 2 ++ app/models/old_relation_member.rb | 2 ++ app/models/old_relation_tag.rb | 2 ++ app/models/old_way.rb | 2 ++ app/models/old_way_node.rb | 2 ++ app/models/old_way_tag.rb | 2 ++ app/models/redaction.rb | 2 ++ app/models/relation.rb | 2 ++ app/models/relation_member.rb | 2 ++ app/models/relation_tag.rb | 2 ++ app/models/report.rb | 2 ++ app/models/social_link.rb | 2 ++ app/models/trace.rb | 2 ++ app/models/tracepoint.rb | 2 ++ app/models/tracetag.rb | 2 ++ app/models/user.rb | 2 ++ app/models/user_block.rb | 2 ++ app/models/user_mute.rb | 2 ++ app/models/user_preference.rb | 2 ++ app/models/user_role.rb | 2 ++ app/models/way.rb | 2 ++ app/models/way_node.rb | 2 ++ app/models/way_tag.rb | 2 ++ app/validators/characters_validator.rb | 6 ++++-- app/validators/image_validator.rb | 2 ++ app/validators/normalized_uniqueness_validator.rb | 2 ++ app/validators/utf8_validator.rb | 2 ++ app/validators/whitespace_validator.rb | 2 ++ app/validators/width_validator.rb | 2 ++ app/views/api/_root_attributes.json.jbuilder | 2 ++ app/views/api/capabilities/show.builder | 2 ++ app/views/api/capabilities/show.json.jbuilder | 2 ++ .../changeset_comments/_changeset_comment.json.jbuilder | 2 ++ .../api/changeset_comments/_changeset_comment.xml.builder | 2 ++ app/views/api/changeset_comments/index.json.jbuilder | 2 ++ app/views/api/changeset_comments/index.xml.builder | 2 ++ .../changeset_comments/visibilities/create.json.jbuilder | 2 ++ .../api/changeset_comments/visibilities/create.xml.builder | 2 ++ .../changeset_comments/visibilities/destroy.json.jbuilder | 2 ++ .../changeset_comments/visibilities/destroy.xml.builder | 2 ++ app/views/api/changeset_subscriptions/create.json.jbuilder | 2 ++ app/views/api/changeset_subscriptions/create.xml.builder | 2 ++ .../api/changeset_subscriptions/destroy.json.jbuilder | 2 ++ app/views/api/changeset_subscriptions/destroy.xml.builder | 2 ++ app/views/api/changesets/_changeset.json.jbuilder | 2 ++ app/views/api/changesets/_changeset.xml.builder | 2 ++ app/views/api/changesets/downloads/show.xml.builder | 2 ++ app/views/api/changesets/index.json.jbuilder | 2 ++ app/views/api/changesets/index.xml.builder | 2 ++ app/views/api/changesets/show.json.jbuilder | 2 ++ app/views/api/changesets/show.xml.builder | 2 ++ app/views/api/maps/_bounds.json.jbuilder | 2 ++ app/views/api/maps/_bounds.xml.builder | 2 ++ app/views/api/maps/show.json.jbuilder | 2 ++ app/views/api/maps/show.xml.builder | 2 ++ app/views/api/messages/_message.json.jbuilder | 2 ++ app/views/api/messages/_message.xml.builder | 2 ++ app/views/api/messages/mailboxes/show.json.jbuilder | 2 ++ app/views/api/messages/mailboxes/show.xml.builder | 2 ++ app/views/api/messages/show.json.jbuilder | 2 ++ app/views/api/messages/show.xml.builder | 2 ++ app/views/api/nodes/_node.json.jbuilder | 2 ++ app/views/api/nodes/_node.xml.builder | 2 ++ app/views/api/nodes/index.json.jbuilder | 2 ++ app/views/api/nodes/index.xml.builder | 2 ++ app/views/api/nodes/relations/index.json.jbuilder | 2 ++ app/views/api/nodes/relations/index.xml.builder | 2 ++ app/views/api/nodes/show.json.jbuilder | 2 ++ app/views/api/nodes/show.xml.builder | 2 ++ app/views/api/nodes/ways/index.json.jbuilder | 2 ++ app/views/api/nodes/ways/index.xml.builder | 2 ++ app/views/api/notes/_note.gpx.builder | 2 ++ app/views/api/notes/_note.json.jbuilder | 2 ++ app/views/api/notes/_note.rss.builder | 2 ++ app/views/api/notes/_note.xml.builder | 2 ++ app/views/api/notes/feed.rss.builder | 2 ++ app/views/api/notes/index.gpx.builder | 2 ++ app/views/api/notes/index.json.jbuilder | 2 ++ app/views/api/notes/index.rss.builder | 2 ++ app/views/api/notes/index.xml.builder | 2 ++ app/views/api/notes/show.gpx.builder | 2 ++ app/views/api/notes/show.json.jbuilder | 2 ++ app/views/api/notes/show.rss.builder | 2 ++ app/views/api/notes/show.xml.builder | 2 ++ app/views/api/old_nodes/_old_node.json.jbuilder | 2 ++ app/views/api/old_nodes/_old_node.xml.builder | 2 ++ app/views/api/old_nodes/index.json.jbuilder | 2 ++ app/views/api/old_nodes/index.xml.builder | 2 ++ app/views/api/old_nodes/show.json.jbuilder | 2 ++ app/views/api/old_nodes/show.xml.builder | 2 ++ app/views/api/old_relations/_old_relation.json.jbuilder | 2 ++ app/views/api/old_relations/_old_relation.xml.builder | 2 ++ app/views/api/old_relations/index.json.jbuilder | 2 ++ app/views/api/old_relations/index.xml.builder | 2 ++ app/views/api/old_relations/show.json.jbuilder | 2 ++ app/views/api/old_relations/show.xml.builder | 2 ++ app/views/api/old_ways/_old_way.json.jbuilder | 2 ++ app/views/api/old_ways/_old_way.xml.builder | 2 ++ app/views/api/old_ways/index.json.jbuilder | 2 ++ app/views/api/old_ways/index.xml.builder | 2 ++ app/views/api/old_ways/show.json.jbuilder | 2 ++ app/views/api/old_ways/show.xml.builder | 2 ++ app/views/api/permissions/show.json.jbuilder | 2 ++ app/views/api/permissions/show.xml.builder | 2 ++ app/views/api/relations/_relation.json.jbuilder | 2 ++ app/views/api/relations/_relation.xml.builder | 2 ++ app/views/api/relations/index.json.jbuilder | 2 ++ app/views/api/relations/index.xml.builder | 2 ++ app/views/api/relations/relations/index.json.jbuilder | 2 ++ app/views/api/relations/relations/index.xml.builder | 2 ++ app/views/api/relations/show.json.jbuilder | 2 ++ app/views/api/relations/show.xml.builder | 2 ++ app/views/api/tracepoints/index.gpx.builder | 2 ++ app/views/api/traces/_trace.builder | 2 ++ app/views/api/traces/_trace.json.jbuilder | 2 ++ app/views/api/traces/show.builder | 2 ++ app/views/api/traces/show.json.jbuilder | 2 ++ app/views/api/user_blocks/_user_block.json.jbuilder | 2 ++ app/views/api/user_blocks/_user_block.xml.builder | 2 ++ app/views/api/user_blocks/active_lists/show.json.jbuilder | 2 ++ app/views/api/user_blocks/active_lists/show.xml.builder | 2 ++ app/views/api/user_blocks/show.json.jbuilder | 2 ++ app/views/api/user_blocks/show.xml.builder | 2 ++ .../api/user_preferences/_user_preference.xml.builder | 2 ++ app/views/api/user_preferences/index.json.jbuilder | 2 ++ app/views/api/user_preferences/index.xml.builder | 2 ++ app/views/api/users/_user.json.jbuilder | 2 ++ app/views/api/users/_user.xml.builder | 2 ++ app/views/api/users/index.json.jbuilder | 2 ++ app/views/api/users/index.xml.builder | 2 ++ app/views/api/users/show.json.jbuilder | 2 ++ app/views/api/users/show.xml.builder | 2 ++ app/views/api/users/traces/index.builder | 2 ++ app/views/api/users/traces/index.json.jbuilder | 2 ++ app/views/api/versions/show.builder | 2 ++ app/views/api/versions/show.json.jbuilder | 2 ++ app/views/api/ways/_way.json.jbuilder | 2 ++ app/views/api/ways/_way.xml.builder | 2 ++ app/views/api/ways/index.json.jbuilder | 2 ++ app/views/api/ways/index.xml.builder | 2 ++ app/views/api/ways/relations/index.json.jbuilder | 2 ++ app/views/api/ways/relations/index.xml.builder | 2 ++ app/views/api/ways/show.json.jbuilder | 2 ++ app/views/api/ways/show.xml.builder | 2 ++ app/views/changeset_comments/feeds/_comment.rss.builder | 2 ++ app/views/changeset_comments/feeds/show.rss.builder | 2 ++ app/views/changeset_comments/feeds/timeout.rss.builder | 2 ++ app/views/changesets/index.atom.builder | 2 ++ app/views/changesets/timeout.atom.builder | 2 ++ app/views/diary_entries/rss.rss.builder | 2 ++ app/views/traces/feeds/show.rss.builder | 2 ++ bin/brakeman | 2 ++ bin/bundle | 2 ++ bin/dev | 2 ++ bin/rails | 2 ++ bin/rake | 2 ++ bin/rubocop | 2 ++ bin/setup | 2 ++ bin/thrust | 2 ++ bin/update | 2 ++ bin/yarn | 2 ++ config.ru | 2 ++ config/application.rb | 2 ++ config/boot.rb | 2 ++ config/environment.rb | 2 ++ config/environments/development.rb | 2 ++ config/environments/production.rb | 2 ++ config/environments/test.rb | 2 ++ config/initializers/abstract_adapter.rb | 2 ++ config/initializers/action_mailer.rb | 2 ++ config/initializers/active_storage.rb | 2 ++ config/initializers/application_controller_renderer.rb | 2 ++ config/initializers/assets.rb | 2 ++ config/initializers/backtrace_silencers.rb | 2 ++ config/initializers/banners.rb | 2 ++ config/initializers/better_errors.rb | 2 ++ config/initializers/bootstrap_form.rb | 2 ++ config/initializers/brotli.rb | 2 ++ config/initializers/browse_icons.rb | 2 ++ config/initializers/canonical_rails.rb | 2 ++ config/initializers/compressed_requests.rb | 2 ++ config/initializers/config.rb | 2 ++ config/initializers/content_security_policy.rb | 2 ++ config/initializers/cookies_serializer.rb | 2 ++ config/initializers/cors.rb | 2 ++ config/initializers/errors.rb | 2 ++ config/initializers/filter_parameter_logging.rb | 2 ++ config/initializers/gd2.rb | 2 ++ config/initializers/i18n.rb | 2 ++ config/initializers/inflections.rb | 2 ++ config/initializers/inline_svg.rb | 2 ++ config/initializers/libxml.rb | 2 ++ config/initializers/mail_delivery_job.rb | 2 ++ config/initializers/migrate.rb | 2 ++ config/initializers/mime_types.rb | 2 ++ config/initializers/oauth.rb | 2 ++ config/initializers/omniauth.rb | 2 ++ config/initializers/omniauth_oauth2.rb | 2 ++ config/initializers/osm_community_index.rb | 2 ++ config/initializers/permissions_policy.rb | 2 ++ config/initializers/policy_headers.rb | 4 +++- config/initializers/rate_limits.rb | 2 ++ config/initializers/router.rb | 2 ++ config/initializers/rtlcss.rb | 2 ++ config/initializers/sanitize.rb | 2 ++ config/initializers/session_store.rb | 2 ++ config/initializers/strong_migrations.rb | 2 ++ config/initializers/tag2link.rb | 2 ++ config/initializers/uri.rb | 2 ++ config/initializers/uri_sanitizer.rb | 2 ++ config/initializers/wiki_pages.rb | 2 ++ config/initializers/wrap_parameters.rb | 2 ++ config/initializers/zeitwerk.rb | 2 ++ config/puma.rb | 2 ++ config/routes.rb | 2 ++ config/spring.rb | 2 ++ db/migrate/001_create_osm_db.rb | 2 ++ db/migrate/002_cleanup_osm_db.rb | 2 ++ db/migrate/003_sql_session_store_setup.rb | 2 ++ db/migrate/004_user_enhancements.rb | 2 ++ db/migrate/005_tile_tracepoints.rb | 2 ++ db/migrate/006_tile_nodes.rb | 2 ++ db/migrate/007_add_relations.rb | 2 ++ db/migrate/008_remove_segments.rb | 2 ++ db/migrate/009_way_nodes_node_idx.rb | 2 ++ db/migrate/010_diary_comments.rb | 2 ++ db/migrate/011_add_user_image.rb | 2 ++ db/migrate/012_add_admin_flag.rb | 2 ++ db/migrate/013_add_email_valid.rb | 2 ++ db/migrate/014_add_new_email.rb | 2 ++ db/migrate/015_add_user_visible.rb | 2 ++ db/migrate/016_add_creation_ip.rb | 2 ++ db/migrate/017_add_gpx_indexes.rb | 2 ++ db/migrate/018_create_acls.rb | 2 ++ db/migrate/019_add_timestamp_indexes.rb | 2 ++ db/migrate/020_populate_node_tags_and_remove.rb | 2 ++ db/migrate/021_move_to_innodb.rb | 2 ++ db/migrate/022_key_constraints.rb | 2 ++ db/migrate/023_add_changesets.rb | 2 ++ db/migrate/024_order_relation_members.rb | 2 ++ db/migrate/025_add_end_time_to_changesets.rb | 2 ++ db/migrate/026_add_changeset_user_index.rb | 2 ++ db/migrate/027_add_changeset_indexes.rb | 2 ++ db/migrate/028_add_more_changeset_indexes.rb | 2 ++ db/migrate/029_add_user_foreign_keys.rb | 2 ++ db/migrate/030_add_foreign_keys.rb | 2 ++ db/migrate/031_create_countries.rb | 2 ++ db/migrate/032_add_user_locale.rb | 2 ++ db/migrate/033_change_diary_entries_language.rb | 2 ++ db/migrate/034_create_languages.rb | 2 ++ db/migrate/035_change_user_locale.rb | 2 ++ db/migrate/036_add_visible_to_message.rb | 2 ++ db/migrate/037_add_sender_visible_to_message.rb | 2 ++ db/migrate/038_add_message_sender_index.rb | 2 ++ db/migrate/039_add_more_controls_to_gpx_files.rb | 2 ++ db/migrate/040_create_oauth_tables.rb | 2 ++ db/migrate/041_add_fine_o_auth_permissions.rb | 2 ++ db/migrate/042_add_foreign_keys_to_oauth_tables.rb | 2 ++ db/migrate/043_add_referer_to_user_token.rb | 2 ++ db/migrate/044_create_user_roles.rb | 2 ++ db/migrate/045_create_user_blocks.rb | 2 ++ db/migrate/046_alter_user_roles_and_blocks.rb | 2 ++ db/migrate/047_add_visible_to_diaries.rb | 2 ++ db/migrate/048_add_diary_creation_indexes.rb | 2 ++ db/migrate/049_improve_changeset_user_index.rb | 2 ++ db/migrate/050_add_user_index_to_diary_comments.rb | 2 ++ db/migrate/051_add_status_to_user.rb | 2 ++ db/migrate/052_add_contributor_terms_to_user.rb | 2 ++ db/migrate/053_add_map_bug_tables.rb | 2 ++ db/migrate/054_refactor_map_bug_tables.rb | 2 ++ db/migrate/055_change_map_bug_comment_type.rb | 2 ++ db/migrate/056_add_date_closed.rb | 2 ++ db/migrate/057_add_map_bug_comment_event.rb | 2 ++ .../20100513171259_add_user_date_index_to_changeset.rb | 2 ++ db/migrate/20100516124737_add_open_id.rb | 2 ++ db/migrate/20100910084426_add_callback_to_oauth_tokens.rb | 2 ++ db/migrate/20101114011429_add_editor_preference_to_user.rb | 2 ++ db/migrate/20110322001319_add_terms_seen_to_user.rb | 2 ++ db/migrate/20110508145337_cleanup_bug_tables.rb | 2 ++ db/migrate/20110521142405_rename_bugs_to_notes.rb | 2 ++ db/migrate/20110925112722_rename_ids.rb | 2 ++ db/migrate/20111116184519_update_oauth.rb | 2 ++ db/migrate/20111212183945_add_lowercase_user_indexes.rb | 2 ++ db/migrate/20120123184321_switch_to_paperclip.rb | 2 ++ db/migrate/20120208122334_merge_acl_address_and_mask.rb | 2 ++ db/migrate/20120208194454_add_domain_to_acl.rb | 2 ++ db/migrate/20120214210114_add_text_format.rb | 2 ++ db/migrate/20120219161649_add_user_image_fingerprint.rb | 2 ++ db/migrate/20120318201948_create_redactions.rb | 2 ++ db/migrate/20120328090602_drop_session_table.rb | 2 ++ ...20120404205604_add_user_and_description_to_redaction.rb | 2 ++ db/migrate/20120808231205_add_counter_caches.rb | 2 ++ .../20121005195010_add_diary_entry_counter_caches.rb | 2 ++ .../20121012044047_add_image_use_gravatar_to_users.rb | 2 ++ db/migrate/20121119165817_drop_nearby_place_from_notes.rb | 2 ++ .../20121202155309_remove_author_name_from_note_comment.rb | 2 ++ db/migrate/20121203124841_change_note_address_to_inet.rb | 2 ++ db/migrate/20130328184137_add_write_notes_permission.rb | 2 ++ ...20131212124700_add_created_at_index_to_note_comments.rb | 2 ++ .../20140115192822_add_text_index_to_note_comments.rb | 2 ++ db/migrate/20140117185510_drop_countries.rb | 2 ++ db/migrate/20140210003018_add_user_image_content_type.rb | 2 ++ db/migrate/20140507110937_create_changeset_comments.rb | 2 ++ ...19141742_add_join_table_between_users_and_changesets.rb | 2 ++ db/migrate/20150110152606_change_default_formats.rb | 2 ++ db/migrate/20150111192335_subscribe_old_changesets.rb | 2 ++ db/migrate/20150222101847_rename_openid_url.rb | 2 ++ ...0818224516_set_default_gravatar_to_false_for_privacy.rb | 2 ++ db/migrate/20160822153055_create_issues_and_reports.rb | 2 ++ ...53425_add_join_table_between_users_and_diary_entries.rb | 2 ++ .../20161011010929_subscribe_authors_to_diary_entries.rb | 2 ++ db/migrate/20170222134109_add_user_indexes.rb | 2 ++ db/migrate/20180204153242_tile_users.rb | 2 ++ db/migrate/20181020114000_add_user_tou_agreed.rb | 2 ++ db/migrate/20181031113522_create_delayed_jobs.rb | 2 ++ db/migrate/20190518115041_add_acl_indexes.rb | 2 ++ db/migrate/20190623093642_add_mx_acls.rb | 2 ++ db/migrate/20190702193519_create_active_storage_tables.rb | 2 ++ db/migrate/20190716173946_remove_user_images.rb | 2 ++ db/migrate/20191120140058_remove_nearby_from_users.rb | 2 ++ ...0201006213836_add_author_index_to_changeset_comments.rb | 2 ++ ...1006220807_add_changeset_index_to_changeset_comments.rb | 2 ++ db/migrate/20201214144017_expand_nonce_id.rb | 2 ++ ..._service_name_to_active_storage_blobs.active_storage.rb | 2 ++ ...create_active_storage_variant_records.active_storage.rb | 2 ++ db/migrate/20210511104518_add_time_to_friendships.rb | 2 ++ ...null_on_active_storage_blobs_checksum.active_storage.rb | 2 ++ .../20220201183346_add_author_index_to_note_comments.rb | 2 ++ db/migrate/20220223140543_remove_id_defaults.rb | 2 ++ db/migrate/20230816135800_use_microsoft_graph.rb | 2 ++ ...825162137_restore_author_index_to_changeset_comments.rb | 2 ++ ...230830115219_create_doorkeeper_openid_connect_tables.rb | 2 ++ ...220_validate_create_doorkeeper_openid_connect_tables.rb | 2 ++ .../20231007141103_add_primary_key_to_changeset_tags.rb | 2 ++ .../20231010194809_correct_relation_members_primary_key.rb | 2 ++ db/migrate/20231010201451_create_user_mutes.rb | 2 ++ db/migrate/20231010203028_add_muted_flag_to_messages.rb | 2 ++ db/migrate/20231029151516_add_importer_role.rb | 2 ++ db/migrate/20231101222146_api_rate_limit.rb | 2 ++ .../20231117170422_add_closed_at_index_to_changesets.rb | 2 ++ db/migrate/20231206141457_alter_sequences_bigint.rb | 2 ++ db/migrate/20231213182102_add_canonical_user_index.rb | 2 ++ db/migrate/20240117185445_drop_lowercase_user_index.rb | 2 ++ db/migrate/20240228205723_drop_user_tokens.rb | 2 ++ ..._check_constraint_to_redaction_title_and_description.rb | 2 ++ ..._validate_and_modify_redaction_title_and_description.rb | 2 ++ .../20240405083825_add_creator_index_to_user_blocks.rb | 2 ++ ...05134916_add_notes_and_diary_comments_counter_caches.rb | 2 ++ db/migrate/20240618193051_api_size_limit.rb | 2 ++ db/migrate/20240724194738_drop_oauth1_tables.rb | 2 ++ .../20240813070506_add_deactivates_at_to_user_blocks.rb | 2 ++ ...0240822121603_backfill_deactivates_at_in_user_blocks.rb | 2 ++ db/migrate/20240910175616_add_user_creation_address.rb | 2 ++ .../20240912181413_backfill_user_creation_address.rb | 2 ++ db/migrate/20240913171951_drop_user_creation_ip.rb | 2 ++ db/migrate/20241022141247_create_note_subscriptions.rb | 2 ++ db/migrate/20241023004427_backfill_note_subscriptions.rb | 2 ++ db/migrate/20241030090336_add_user_location_name.rb | 2 ++ db/migrate/20250104140952_add_description_to_notes.rb | 2 ++ db/migrate/20250105154621_validate_foreign_key_on_notes.rb | 2 ++ db/migrate/20250121191749_add_user_comment_indexes.rb | 2 ++ db/migrate/20250206202905_add_text_index_to_notes.rb | 2 ++ db/migrate/20250212160355_backfill_note_descriptions.rb | 2 ++ db/migrate/20250217140049_create_social_links.rb | 2 ++ .../20250304172758_add_gpx_files_user_id_id_index.rb | 2 ++ .../20250304172798_add_notes_user_id_created_at_index.rb | 2 ++ db/migrate/20250506052030_add_company_to_users.rb | 2 ++ ...51_add_created_modified_deleted_counts_to_changesets.rb | 2 ++ db/seeds.rb | 2 ++ lib/auth.rb | 2 ++ lib/bounding_box.rb | 2 ++ lib/country.rb | 2 ++ lib/database_functions.rb | 2 ++ lib/diff_reader.rb | 2 ++ lib/editors.rb | 2 ++ lib/gpx.rb | 2 ++ lib/id.rb | 2 ++ lib/locale.rb | 2 ++ lib/map_layers.rb | 2 ++ lib/nominatim.rb | 2 ++ lib/oauth.rb | 2 ++ lib/osm.rb | 2 ++ lib/osm_community_index.rb | 2 ++ lib/osm_community_index/resource_backend.rb | 2 ++ lib/password_hash.rb | 2 ++ lib/rate_limiter.rb | 2 ++ lib/session_persistence.rb | 2 ++ lib/tasks/annotate_rb.rake | 2 ++ lib/tasks/backfill_changeset_stats.rake | 2 ++ lib/tasks/cleanup.rake | 2 ++ lib/tasks/eslint.rake | 2 ++ lib/tasks/register_oauth_apps.rake | 2 ++ lib/tasks/subscribe_diary_authors.rake | 2 ++ lib/tasks/subscribe_old_changesets.rake | 2 ++ lib/tasks/update_functions.rake | 2 ++ lib/utf8.rb | 2 ++ script/deliver-message | 1 + script/statistics | 1 + script/update-spam-blocks | 1 + test/application_system_test_case.rb | 2 ++ .../accounts/pd_declarations_controller_test.rb | 2 ++ test/controllers/accounts/terms_controller_test.rb | 2 ++ test/controllers/accounts_controller_test.rb | 2 ++ test/controllers/api/capabilities_controller_test.rb | 2 ++ .../api/changeset_comments/visibilities_controller_test.rb | 2 ++ test/controllers/api/changeset_comments_controller_test.rb | 2 ++ .../api/changeset_subscriptions_controller_test.rb | 2 ++ test/controllers/api/changesets/closes_controller_test.rb | 2 ++ .../api/changesets/downloads_controller_test.rb | 2 ++ test/controllers/api/changesets/uploads_controller_test.rb | 2 ++ test/controllers/api/changesets_controller_test.rb | 2 ++ test/controllers/api/elements_test_helper.rb | 2 ++ test/controllers/api/maps_controller_test.rb | 2 ++ test/controllers/api/messages/inboxes_controller_test.rb | 2 ++ test/controllers/api/messages/outboxes_controller_test.rb | 2 ++ test/controllers/api/messages_controller_test.rb | 2 ++ test/controllers/api/nodes/relations_controller_test.rb | 2 ++ test/controllers/api/nodes/ways_controller_test.rb | 2 ++ test/controllers/api/nodes_controller_test.rb | 2 ++ test/controllers/api/note_subscriptions_controller_test.rb | 2 ++ test/controllers/api/notes_controller_test.rb | 2 ++ .../api/old_nodes/redactions_controller_test.rb | 2 ++ test/controllers/api/old_nodes_controller_test.rb | 2 ++ .../api/old_redactions/redactions_controller_test.rb | 2 ++ test/controllers/api/old_relations_controller_test.rb | 2 ++ .../controllers/api/old_ways/redactions_controller_test.rb | 2 ++ test/controllers/api/old_ways_controller_test.rb | 2 ++ test/controllers/api/permissions_controller_test.rb | 2 ++ .../controllers/api/relations/relations_controller_test.rb | 2 ++ test/controllers/api/relations_controller_test.rb | 2 ++ test/controllers/api/tracepoints_controller_test.rb | 2 ++ test/controllers/api/traces/data_controller_test.rb | 2 ++ test/controllers/api/traces_controller_test.rb | 2 ++ .../api/user_blocks/active_lists_controller_test.rb | 2 ++ test/controllers/api/user_blocks_controller_test.rb | 2 ++ test/controllers/api/user_preferences_controller_test.rb | 2 ++ test/controllers/api/users/traces_controller_test.rb | 2 ++ test/controllers/api/users_controller_test.rb | 2 ++ test/controllers/api/versions_controller_test.rb | 2 ++ test/controllers/api/ways/relations_controller_test.rb | 2 ++ test/controllers/api/ways_controller_test.rb | 2 ++ .../changeset_comments/feeds_controller_test.rb | 2 ++ .../controllers/changeset_subscriptions_controller_test.rb | 2 ++ test/controllers/changesets_controller_test.rb | 2 ++ test/controllers/confirmations_controller_test.rb | 2 ++ test/controllers/dashboards_controller_test.rb | 2 ++ test/controllers/diary_comments_controller_test.rb | 2 ++ test/controllers/diary_entries_controller_test.rb | 2 ++ test/controllers/directions_controller_test.rb | 2 ++ test/controllers/errors_controller_test.rb | 2 ++ test/controllers/export_controller_test.rb | 2 ++ test/controllers/feature_queries_controller_test.rb | 2 ++ test/controllers/follows_controller_test.rb | 2 ++ test/controllers/issue_comments_controller_test.rb | 2 ++ test/controllers/issues/reporters_controller_test.rb | 2 ++ test/controllers/issues_controller_test.rb | 2 ++ test/controllers/layers_panes_controller_test.rb | 2 ++ test/controllers/legend_panes_controller_test.rb | 2 ++ test/controllers/messages/inboxes_controller_test.rb | 2 ++ test/controllers/messages/muted_inboxes_controller_test.rb | 2 ++ test/controllers/messages/mutes_controller_test.rb | 2 ++ test/controllers/messages/outboxes_controller_test.rb | 2 ++ test/controllers/messages/read_marks_controller_test.rb | 2 ++ test/controllers/messages/replies_controller_test.rb | 2 ++ test/controllers/messages_controller_test.rb | 2 ++ test/controllers/nodes_controller_test.rb | 2 ++ test/controllers/notes_controller_test.rb | 2 ++ test/controllers/oauth2_applications_controller_test.rb | 2 ++ test/controllers/oauth2_authorizations_controller_test.rb | 2 ++ .../oauth2_authorized_applications_controller_test.rb | 2 ++ test/controllers/old_nodes_controller_test.rb | 2 ++ test/controllers/old_relation_members_controller_test.rb | 2 ++ test/controllers/old_relations_controller_test.rb | 2 ++ test/controllers/old_ways_controller_test.rb | 2 ++ test/controllers/passwords_controller_test.rb | 2 ++ .../preferences/advanced_preferences_controller_test.rb | 2 ++ .../preferences/basic_preferences_controller_test.rb | 2 ++ test/controllers/profiles/companies_controller_test.rb | 2 ++ test/controllers/profiles/descriptions_controller_test.rb | 2 ++ test/controllers/profiles/images_controller_test.rb | 2 ++ test/controllers/profiles/links_controller_test.rb | 2 ++ test/controllers/profiles/locations_controller_test.rb | 2 ++ test/controllers/redactions_controller_test.rb | 2 ++ test/controllers/relation_members_controller_test.rb | 2 ++ test/controllers/relations_controller_test.rb | 2 ++ test/controllers/reports_controller_test.rb | 2 ++ .../controllers/searches/latlon_queries_controller_test.rb | 2 ++ .../searches/nominatim_queries_controller_test.rb | 2 ++ .../searches/nominatim_reverse_queries_controller_test.rb | 2 ++ test/controllers/searches/queries_controller_test.rb | 2 ++ test/controllers/searches_controller_test.rb | 2 ++ test/controllers/sessions_controller_test.rb | 2 ++ test/controllers/share_panes_controller_test.rb | 2 ++ test/controllers/site_controller_test.rb | 2 ++ test/controllers/traces/data_controller_test.rb | 2 ++ test/controllers/traces/feeds_controller_test.rb | 2 ++ test/controllers/traces/icons_controller_test.rb | 2 ++ test/controllers/traces/pictures_controller_test.rb | 2 ++ test/controllers/traces_controller_test.rb | 2 ++ test/controllers/user_blocks/table_test_helper.rb | 2 ++ test/controllers/user_blocks_controller_test.rb | 2 ++ test/controllers/user_mutes_controller_test.rb | 2 ++ test/controllers/user_roles_controller_test.rb | 2 ++ .../users/changeset_comments_controller_test.rb | 2 ++ test/controllers/users/diary_comments_controller_test.rb | 2 ++ test/controllers/users/heatmaps_controller_test.rb | 2 ++ test/controllers/users/issued_blocks_controller_test.rb | 2 ++ test/controllers/users/lists_controller_test.rb | 2 ++ test/controllers/users/received_blocks_controller_test.rb | 2 ++ test/controllers/users/statuses_controller_test.rb | 2 ++ test/controllers/users_controller_test.rb | 2 ++ test/controllers/ways_controller_test.rb | 2 ++ test/factories/access_tokens.rb | 2 ++ test/factories/acls.rb | 2 ++ test/factories/changeset_comments.rb | 2 ++ test/factories/changeset_tags.rb | 2 ++ test/factories/changesets.rb | 2 ++ test/factories/diary_comments.rb | 2 ++ test/factories/diary_entries.rb | 2 ++ test/factories/diary_entry_subscriptions.rb | 2 ++ test/factories/follows.rb | 2 ++ test/factories/issue_comment.rb | 2 ++ test/factories/issues.rb | 2 ++ test/factories/languages.rb | 2 ++ test/factories/messages.rb | 2 ++ test/factories/node.rb | 2 ++ test/factories/node_tags.rb | 2 ++ test/factories/note_comments.rb | 2 ++ test/factories/note_subscriptions.rb | 2 ++ test/factories/notes.rb | 2 ++ test/factories/oauth_access_grant.rb | 2 ++ test/factories/oauth_access_token.rb | 2 ++ test/factories/oauth_applications.rb | 2 ++ test/factories/old_node.rb | 2 ++ test/factories/old_node_tags.rb | 2 ++ test/factories/old_relation.rb | 2 ++ test/factories/old_relation_member.rb | 2 ++ test/factories/old_relation_tags.rb | 2 ++ test/factories/old_way.rb | 2 ++ test/factories/old_way_node.rb | 2 ++ test/factories/old_way_tags.rb | 2 ++ test/factories/redaction.rb | 2 ++ test/factories/relation.rb | 2 ++ test/factories/relation_member.rb | 2 ++ test/factories/relation_tags.rb | 2 ++ test/factories/reports.rb | 2 ++ test/factories/social_link.rb | 2 ++ test/factories/tracepoints.rb | 2 ++ test/factories/traces.rb | 2 ++ test/factories/tracetags.rb | 2 ++ test/factories/user.rb | 2 ++ test/factories/user_blocks.rb | 2 ++ test/factories/user_mute.rb | 2 ++ test/factories/user_preferences.rb | 2 ++ test/factories/user_role.rb | 2 ++ test/factories/way.rb | 2 ++ test/factories/way_node.rb | 2 ++ test/factories/way_tags.rb | 2 ++ test/helpers/application_helper_test.rb | 2 ++ test/helpers/asset_helper_test.rb | 2 ++ test/helpers/browse_helper_test.rb | 2 ++ test/helpers/browse_tags_helper_test.rb | 2 ++ test/helpers/changesets_helper_test.rb | 2 ++ test/helpers/geocoder_helper_test.rb | 2 ++ test/helpers/issues_helper_test.rb | 2 ++ test/helpers/note_helper_test.rb | 2 ++ test/helpers/numbered_pagination_helper_test.rb | 2 ++ test/helpers/share_buttons_helper_test.rb | 2 ++ test/helpers/svg_helper_test.rb | 2 ++ test/helpers/title_helper_test.rb | 2 ++ test/helpers/user_blocks_helper_test.rb | 2 ++ test/helpers/user_helper_test.rb | 2 ++ test/integration/changeset_bbox_test.rb | 2 ++ test/integration/changeset_upload_download_test.rb | 2 ++ test/integration/compressed_requests_test.rb | 2 ++ test/integration/cors_test.rb | 2 ++ test/integration/login_test.rb | 2 ++ test/integration/node_versions_test.rb | 2 ++ test/integration/oauth2_test.rb | 2 ++ test/integration/page_locale_test.rb | 2 ++ test/integration/redirect_test.rb | 2 ++ test/integration/relation_versions_test.rb | 2 ++ test/integration/short_links_test.rb | 2 ++ test/integration/user_blocks_test.rb | 2 ++ test/integration/user_creation_test.rb | 2 ++ test/integration/user_diaries_test.rb | 2 ++ test/integration/user_terms_seen_test.rb | 2 ++ test/integration/way_versions_test.rb | 2 ++ test/jobs/trace_destroyer_job_test.rb | 2 ++ test/jobs/trace_importer_job_test.rb | 2 ++ test/lib/bounding_box_test.rb | 2 ++ test/lib/country_test.rb | 2 ++ test/lib/i18n_test.rb | 2 ++ test/lib/locale_test.rb | 2 ++ test/lib/nominatim_test.rb | 2 ++ test/lib/osm_community_index/resource_backend_test.rb | 2 ++ test/lib/osm_community_index_test.rb | 2 ++ test/lib/osm_test.rb | 2 ++ test/lib/password_hash_test.rb | 2 ++ test/lib/rich_text_test.rb | 2 ++ test/lib/short_link_test.rb | 2 ++ test/lib/utf8_test.rb | 2 ++ test/mailers/user_mailer_test.rb | 2 ++ test/models/acl_test.rb | 2 ++ test/models/changeset_comment_test.rb | 2 ++ test/models/changeset_tag_test.rb | 2 ++ test/models/changeset_test.rb | 2 ++ test/models/diary_comment_test.rb | 2 ++ test/models/diary_entry_test.rb | 2 ++ test/models/friend_test.rb | 2 ++ test/models/issue_comment_test.rb | 2 ++ test/models/issue_test.rb | 2 ++ test/models/language_test.rb | 2 ++ test/models/message_test.rb | 4 +++- test/models/node_tag_test.rb | 2 ++ test/models/node_test.rb | 2 ++ test/models/note_comment_test.rb | 2 ++ test/models/note_test.rb | 2 ++ test/models/old_node_tag_test.rb | 2 ++ test/models/old_node_test.rb | 2 ++ test/models/old_relation_tag_test.rb | 2 ++ test/models/old_relation_test.rb | 2 ++ test/models/old_way_tag_test.rb | 2 ++ test/models/old_way_test.rb | 2 ++ test/models/redaction_test.rb | 2 ++ test/models/relation_member_test.rb | 2 ++ test/models/relation_tag_test.rb | 2 ++ test/models/relation_test.rb | 2 ++ test/models/report_test.rb | 2 ++ test/models/social_link_test.rb | 2 ++ test/models/trace_test.rb | 2 ++ test/models/tracepoint_test.rb | 2 ++ test/models/tracetag_test.rb | 2 ++ test/models/user_mute_test.rb | 2 ++ test/models/user_preference_test.rb | 2 ++ test/models/user_test.rb | 2 ++ test/models/way_node_test.rb | 2 ++ test/models/way_tag_test.rb | 2 ++ test/models/way_test.rb | 2 ++ test/system/account_deletion_test.rb | 2 ++ test/system/account_home_test.rb | 2 ++ test/system/account_pd_declaration_test.rb | 2 ++ test/system/account_rename_test.rb | 2 ++ test/system/account_terms_test.rb | 2 ++ test/system/browse_comment_links_test.rb | 2 ++ test/system/changeset_comments_test.rb | 2 ++ test/system/changeset_elements_test.rb | 2 ++ test/system/changeset_test.rb | 2 ++ test/system/create_note_test.rb | 2 ++ test/system/dashboard_test.rb | 2 ++ test/system/diary_entry_test.rb | 2 ++ test/system/directions_test.rb | 2 ++ test/system/element_current_version_test.rb | 2 ++ test/system/element_history_test.rb | 2 ++ test/system/element_old_version_test.rb | 2 ++ test/system/embed_test.rb | 2 ++ test/system/fixthemap_test.rb | 2 ++ test/system/follows_test.rb | 2 ++ test/system/history_test.rb | 2 ++ test/system/index_test.rb | 2 ++ test/system/issues_test.rb | 2 ++ test/system/messages_test.rb | 2 ++ test/system/note_comments_test.rb | 2 ++ test/system/note_layer_test.rb | 2 ++ test/system/oauth2_test.rb | 2 ++ test/system/preferences_test.rb | 2 ++ test/system/profile_company_change_test.rb | 2 ++ test/system/profile_description_change_test.rb | 2 ++ test/system/profile_image_change_test.rb | 2 ++ test/system/profile_links_change_test.rb | 2 ++ test/system/profile_location_change_test.rb | 2 ++ test/system/query_features_test.rb | 2 ++ test/system/redaction_destroy_test.rb | 2 ++ test/system/report_diary_comment_test.rb | 2 ++ test/system/report_diary_entry_test.rb | 2 ++ test/system/report_note_test.rb | 2 ++ test/system/report_user_test.rb | 2 ++ test/system/resolve_note_test.rb | 2 ++ test/system/rich_text_test.rb | 2 ++ test/system/search_test.rb | 2 ++ test/system/select_language_test.rb | 2 ++ test/system/site_test.rb | 2 ++ test/system/user_blocks_test.rb | 2 ++ test/system/user_email_change_test.rb | 2 ++ test/system/user_login_test.rb | 2 ++ test/system/user_logout_test.rb | 2 ++ test/system/user_muting_test.rb | 2 ++ test/system/user_notes_test.rb | 2 ++ test/system/user_signup_test.rb | 2 ++ test/system/user_status_change_test.rb | 2 ++ test/system/user_suspension_test.rb | 2 ++ test/system/users_test.rb | 2 ++ test/system/view_communities_test.rb | 2 ++ test/teaspoon_env.rb | 2 ++ test/test_helper.rb | 2 ++ test/validators/characters_validator_test.rb | 2 ++ test/validators/whitespace_validator_test.rb | 2 ++ 887 files changed, 1776 insertions(+), 12 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2fec0839e..2319b5f3a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -79,6 +79,10 @@ Style/CollectionQuerying: Style/Documentation: Enabled: false +Style/FrozenStringLiteralComment: + Enabled: true + EnforcedStyle: always_true + Style/IfInsideElse: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 908734509..cb8570586 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -170,13 +170,6 @@ Rake/Desc: - 'lib/tasks/subscribe_diary_authors.rake' - 'lib/tasks/subscribe_old_changesets.rake' -# Offense count: 712 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: always, always_true, never -Style/FrozenStringLiteralComment: - Enabled: false - # Offense count: 78 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns. diff --git a/Dangerfile b/Dangerfile index 6e2aeced8..8249b561a 100644 --- a/Dangerfile +++ b/Dangerfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Get PR number pr_number = github.pr_json["number"] diff --git a/Gemfile b/Gemfile index 7286f4ed6..fd88da4ca 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" # Require rails diff --git a/Rakefile b/Rakefile index 9a5ea7383..d2a78aa25 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. diff --git a/Vagrantfile b/Vagrantfile index 617bd7b4d..f5abc66b2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # -*- mode: ruby -*- # vi: set ft=ruby : diff --git a/app/controllers/accounts/deletions_controller.rb b/app/controllers/accounts/deletions_controller.rb index 4d579d399..da73b0093 100644 --- a/app/controllers/accounts/deletions_controller.rb +++ b/app/controllers/accounts/deletions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Accounts class DeletionsController < ApplicationController layout :site_layout diff --git a/app/controllers/accounts/homes_controller.rb b/app/controllers/accounts/homes_controller.rb index e31cce746..f455cc77b 100644 --- a/app/controllers/accounts/homes_controller.rb +++ b/app/controllers/accounts/homes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Accounts class HomesController < ApplicationController layout :map_layout diff --git a/app/controllers/accounts/pd_declarations_controller.rb b/app/controllers/accounts/pd_declarations_controller.rb index 52ec4241e..0718f52cb 100644 --- a/app/controllers/accounts/pd_declarations_controller.rb +++ b/app/controllers/accounts/pd_declarations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Accounts class PdDeclarationsController < ApplicationController layout :site_layout diff --git a/app/controllers/accounts/terms_controller.rb b/app/controllers/accounts/terms_controller.rb index f4eed06c5..2a2961a99 100644 --- a/app/controllers/accounts/terms_controller.rb +++ b/app/controllers/accounts/terms_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Accounts class TermsController < ApplicationController include SessionMethods diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index cdf102ff8..63bafd5c5 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AccountsController < ApplicationController include SessionMethods include UserMethods diff --git a/app/controllers/api/capabilities_controller.rb b/app/controllers/api/capabilities_controller.rb index b0600ca33..bff84770a 100644 --- a/app/controllers/api/capabilities_controller.rb +++ b/app/controllers/api/capabilities_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class CapabilitiesController < ApiController skip_before_action :check_api_readable diff --git a/app/controllers/api/changeset_comments/visibilities_controller.rb b/app/controllers/api/changeset_comments/visibilities_controller.rb index 397872c11..5ffbf6434 100644 --- a/app/controllers/api/changeset_comments/visibilities_controller.rb +++ b/app/controllers/api/changeset_comments/visibilities_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module ChangesetComments class VisibilitiesController < ApiController diff --git a/app/controllers/api/changeset_comments_controller.rb b/app/controllers/api/changeset_comments_controller.rb index a8e9c8d1c..a4ec6b3d8 100644 --- a/app/controllers/api/changeset_comments_controller.rb +++ b/app/controllers/api/changeset_comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class ChangesetCommentsController < ApiController include QueryMethods diff --git a/app/controllers/api/changeset_subscriptions_controller.rb b/app/controllers/api/changeset_subscriptions_controller.rb index ccfe3f937..01156ab00 100644 --- a/app/controllers/api/changeset_subscriptions_controller.rb +++ b/app/controllers/api/changeset_subscriptions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class ChangesetSubscriptionsController < ApiController before_action :check_api_writable diff --git a/app/controllers/api/changesets/closes_controller.rb b/app/controllers/api/changesets/closes_controller.rb index e3a6f9319..01bf31851 100644 --- a/app/controllers/api/changesets/closes_controller.rb +++ b/app/controllers/api/changesets/closes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Changesets class ClosesController < ApiController diff --git a/app/controllers/api/changesets/downloads_controller.rb b/app/controllers/api/changesets/downloads_controller.rb index 1abc9e459..7e579a8b7 100644 --- a/app/controllers/api/changesets/downloads_controller.rb +++ b/app/controllers/api/changesets/downloads_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Changesets class DownloadsController < ApiController diff --git a/app/controllers/api/changesets/uploads_controller.rb b/app/controllers/api/changesets/uploads_controller.rb index ee9406d91..d9d16e25f 100644 --- a/app/controllers/api/changesets/uploads_controller.rb +++ b/app/controllers/api/changesets/uploads_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Changesets class UploadsController < ApiController diff --git a/app/controllers/api/changesets_controller.rb b/app/controllers/api/changesets_controller.rb index cadd4ac33..ec073fea1 100644 --- a/app/controllers/api/changesets_controller.rb +++ b/app/controllers/api/changesets_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The ChangesetController is the RESTful interface to Changeset objects module Api diff --git a/app/controllers/api/maps_controller.rb b/app/controllers/api/maps_controller.rb index 6dfd13034..ca3f478e1 100644 --- a/app/controllers/api/maps_controller.rb +++ b/app/controllers/api/maps_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class MapsController < ApiController authorize_resource :class => false diff --git a/app/controllers/api/messages/inboxes_controller.rb b/app/controllers/api/messages/inboxes_controller.rb index d2d2af785..ee0f06083 100644 --- a/app/controllers/api/messages/inboxes_controller.rb +++ b/app/controllers/api/messages/inboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Messages class InboxesController < MailboxesController diff --git a/app/controllers/api/messages/mailboxes_controller.rb b/app/controllers/api/messages/mailboxes_controller.rb index 1a8e1439f..7c89efba5 100644 --- a/app/controllers/api/messages/mailboxes_controller.rb +++ b/app/controllers/api/messages/mailboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Messages class MailboxesController < ApiController diff --git a/app/controllers/api/messages/outboxes_controller.rb b/app/controllers/api/messages/outboxes_controller.rb index d36264856..78600fadd 100644 --- a/app/controllers/api/messages/outboxes_controller.rb +++ b/app/controllers/api/messages/outboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Messages class OutboxesController < MailboxesController diff --git a/app/controllers/api/messages_controller.rb b/app/controllers/api/messages_controller.rb index 0864b503f..4c30cc706 100644 --- a/app/controllers/api/messages_controller.rb +++ b/app/controllers/api/messages_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The MessagesController is the RESTful interface to Message objects module Api diff --git a/app/controllers/api/nodes/relations_controller.rb b/app/controllers/api/nodes/relations_controller.rb index c6b33eab8..fb281778e 100644 --- a/app/controllers/api/nodes/relations_controller.rb +++ b/app/controllers/api/nodes/relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Nodes class RelationsController < ApiController diff --git a/app/controllers/api/nodes/ways_controller.rb b/app/controllers/api/nodes/ways_controller.rb index cdbdc07d0..3a758ed81 100644 --- a/app/controllers/api/nodes/ways_controller.rb +++ b/app/controllers/api/nodes/ways_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Nodes class WaysController < ApiController diff --git a/app/controllers/api/nodes_controller.rb b/app/controllers/api/nodes_controller.rb index 164f70f8d..f450deea0 100644 --- a/app/controllers/api/nodes_controller.rb +++ b/app/controllers/api/nodes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The NodeController is the RESTful interface to Node objects module Api diff --git a/app/controllers/api/note_subscriptions_controller.rb b/app/controllers/api/note_subscriptions_controller.rb index c416dd803..5ecf12b0b 100644 --- a/app/controllers/api/note_subscriptions_controller.rb +++ b/app/controllers/api/note_subscriptions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class NoteSubscriptionsController < ApiController before_action :check_api_writable diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index 750a7c44d..372262dc9 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class NotesController < ApiController include QueryMethods diff --git a/app/controllers/api/old_elements/redactions_controller.rb b/app/controllers/api/old_elements/redactions_controller.rb index 021315807..60a6f7fc4 100644 --- a/app/controllers/api/old_elements/redactions_controller.rb +++ b/app/controllers/api/old_elements/redactions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module OldElements class RedactionsController < ApiController diff --git a/app/controllers/api/old_elements_controller.rb b/app/controllers/api/old_elements_controller.rb index 433eec085..98a303a97 100644 --- a/app/controllers/api/old_elements_controller.rb +++ b/app/controllers/api/old_elements_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # this class pulls together the logic for all the old_* controllers # into one place. as it turns out, the API methods for historical # nodes, ways and relations are basically identical. diff --git a/app/controllers/api/old_nodes/redactions_controller.rb b/app/controllers/api/old_nodes/redactions_controller.rb index 037c3ae45..c388eaef5 100644 --- a/app/controllers/api/old_nodes/redactions_controller.rb +++ b/app/controllers/api/old_nodes/redactions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module OldNodes class RedactionsController < OldElements::RedactionsController diff --git a/app/controllers/api/old_nodes_controller.rb b/app/controllers/api/old_nodes_controller.rb index 0350cb6d0..12684a8f2 100644 --- a/app/controllers/api/old_nodes_controller.rb +++ b/app/controllers/api/old_nodes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class OldNodesController < OldElementsController private diff --git a/app/controllers/api/old_relations/redactions_controller.rb b/app/controllers/api/old_relations/redactions_controller.rb index bfdf66ff5..6c82c0c4d 100644 --- a/app/controllers/api/old_relations/redactions_controller.rb +++ b/app/controllers/api/old_relations/redactions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module OldRelations class RedactionsController < OldElements::RedactionsController diff --git a/app/controllers/api/old_relations_controller.rb b/app/controllers/api/old_relations_controller.rb index 9cd1413df..24aad815d 100644 --- a/app/controllers/api/old_relations_controller.rb +++ b/app/controllers/api/old_relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class OldRelationsController < OldElementsController private diff --git a/app/controllers/api/old_ways/redactions_controller.rb b/app/controllers/api/old_ways/redactions_controller.rb index 781d6ad98..129e1023b 100644 --- a/app/controllers/api/old_ways/redactions_controller.rb +++ b/app/controllers/api/old_ways/redactions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module OldWays class RedactionsController < OldElements::RedactionsController diff --git a/app/controllers/api/old_ways_controller.rb b/app/controllers/api/old_ways_controller.rb index ce6475b18..cb2551448 100644 --- a/app/controllers/api/old_ways_controller.rb +++ b/app/controllers/api/old_ways_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class OldWaysController < OldElementsController private diff --git a/app/controllers/api/permissions_controller.rb b/app/controllers/api/permissions_controller.rb index 75bfe6b10..43a14f1ea 100644 --- a/app/controllers/api/permissions_controller.rb +++ b/app/controllers/api/permissions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class PermissionsController < ApiController authorize_resource :class => false diff --git a/app/controllers/api/relations/relations_controller.rb b/app/controllers/api/relations/relations_controller.rb index 9b8292526..b36bc6977 100644 --- a/app/controllers/api/relations/relations_controller.rb +++ b/app/controllers/api/relations/relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Relations class RelationsController < ApiController diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index 3059cfae3..9c82a41fc 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class RelationsController < ApiController before_action :check_api_writable, :only => [:create, :update, :destroy] diff --git a/app/controllers/api/tracepoints_controller.rb b/app/controllers/api/tracepoints_controller.rb index ee57a00fb..7e5a4a8dc 100644 --- a/app/controllers/api/tracepoints_controller.rb +++ b/app/controllers/api/tracepoints_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class TracepointsController < ApiController authorize_resource diff --git a/app/controllers/api/traces/data_controller.rb b/app/controllers/api/traces/data_controller.rb index e04931cfb..c5ab1eb4c 100644 --- a/app/controllers/api/traces/data_controller.rb +++ b/app/controllers/api/traces/data_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Traces class DataController < ApiController diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 00540a120..79f3b9772 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class TracesController < ApiController before_action :check_api_writable, :only => [:create, :update, :destroy] diff --git a/app/controllers/api/user_blocks/active_lists_controller.rb b/app/controllers/api/user_blocks/active_lists_controller.rb index 535d7393a..5032436d6 100644 --- a/app/controllers/api/user_blocks/active_lists_controller.rb +++ b/app/controllers/api/user_blocks/active_lists_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module UserBlocks class ActiveListsController < ApiController diff --git a/app/controllers/api/user_blocks_controller.rb b/app/controllers/api/user_blocks_controller.rb index e1fb70a65..d07e294bf 100644 --- a/app/controllers/api/user_blocks_controller.rb +++ b/app/controllers/api/user_blocks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class UserBlocksController < ApiController before_action :check_api_writable, :only => :create diff --git a/app/controllers/api/user_preferences_controller.rb b/app/controllers/api/user_preferences_controller.rb index d1bd6d624..9451f849c 100644 --- a/app/controllers/api/user_preferences_controller.rb +++ b/app/controllers/api/user_preferences_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Update and read user preferences, which are arbitrary key/val pairs module Api class UserPreferencesController < ApiController diff --git a/app/controllers/api/users/traces_controller.rb b/app/controllers/api/users/traces_controller.rb index 769aca34d..abe190f7d 100644 --- a/app/controllers/api/users/traces_controller.rb +++ b/app/controllers/api/users/traces_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Users class TracesController < ApiController diff --git a/app/controllers/api/users_controller.rb b/app/controllers/api/users_controller.rb index 58b02a489..c6b710177 100644 --- a/app/controllers/api/users_controller.rb +++ b/app/controllers/api/users_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class UsersController < ApiController before_action :setup_user_auth, :only => [:show, :index] diff --git a/app/controllers/api/versions_controller.rb b/app/controllers/api/versions_controller.rb index 15cde9d6d..625cd34ad 100644 --- a/app/controllers/api/versions_controller.rb +++ b/app/controllers/api/versions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class VersionsController < ApiController skip_before_action :check_api_readable diff --git a/app/controllers/api/ways/relations_controller.rb b/app/controllers/api/ways/relations_controller.rb index 4188dfe4e..a888f393c 100644 --- a/app/controllers/api/ways/relations_controller.rb +++ b/app/controllers/api/ways/relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module Ways class RelationsController < ApiController diff --git a/app/controllers/api/ways_controller.rb b/app/controllers/api/ways_controller.rb index 6941bcfb8..162b2ca92 100644 --- a/app/controllers/api/ways_controller.rb +++ b/app/controllers/api/ways_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api class WaysController < ApiController before_action :check_api_writable, :only => [:create, :update, :destroy] diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index e99d0ffac..ee7441bfd 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApiController < ApplicationController skip_before_action :verify_authenticity_token diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ae52ff8f0..9340d3b9b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApplicationController < ActionController::Base require "timeout" diff --git a/app/controllers/changeset_comments/feeds_controller.rb b/app/controllers/changeset_comments/feeds_controller.rb index 4aa065858..e4475a24a 100644 --- a/app/controllers/changeset_comments/feeds_controller.rb +++ b/app/controllers/changeset_comments/feeds_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ChangesetComments class FeedsController < ApplicationController include QueryMethods diff --git a/app/controllers/changeset_subscriptions_controller.rb b/app/controllers/changeset_subscriptions_controller.rb index 8a496168f..47af2cd7e 100644 --- a/app/controllers/changeset_subscriptions_controller.rb +++ b/app/controllers/changeset_subscriptions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangesetSubscriptionsController < ApplicationController layout :site_layout diff --git a/app/controllers/changesets_controller.rb b/app/controllers/changesets_controller.rb index caaed2c38..9c156d62a 100644 --- a/app/controllers/changesets_controller.rb +++ b/app/controllers/changesets_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The ChangesetController is the RESTful interface to Changeset objects class ChangesetsController < ApplicationController diff --git a/app/controllers/concerns/email_methods.rb b/app/controllers/concerns/email_methods.rb index f25b7917e..effbdfd81 100644 --- a/app/controllers/concerns/email_methods.rb +++ b/app/controllers/concerns/email_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module EmailMethods extend ActiveSupport::Concern diff --git a/app/controllers/concerns/nominatim_methods.rb b/app/controllers/concerns/nominatim_methods.rb index c1e7e44f5..c40888f20 100644 --- a/app/controllers/concerns/nominatim_methods.rb +++ b/app/controllers/concerns/nominatim_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module NominatimMethods extend ActiveSupport::Concern diff --git a/app/controllers/concerns/pagination_methods.rb b/app/controllers/concerns/pagination_methods.rb index 28a1bf7b9..60754764c 100644 --- a/app/controllers/concerns/pagination_methods.rb +++ b/app/controllers/concerns/pagination_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module PaginationMethods extend ActiveSupport::Concern diff --git a/app/controllers/concerns/query_methods.rb b/app/controllers/concerns/query_methods.rb index eb0684283..2efe93f26 100644 --- a/app/controllers/concerns/query_methods.rb +++ b/app/controllers/concerns/query_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module QueryMethods extend ActiveSupport::Concern diff --git a/app/controllers/concerns/session_methods.rb b/app/controllers/concerns/session_methods.rb index b2ab53aff..3e6747bf5 100644 --- a/app/controllers/concerns/session_methods.rb +++ b/app/controllers/concerns/session_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SessionMethods extend ActiveSupport::Concern diff --git a/app/controllers/concerns/user_methods.rb b/app/controllers/concerns/user_methods.rb index 447aea3fc..0179bb738 100644 --- a/app/controllers/concerns/user_methods.rb +++ b/app/controllers/concerns/user_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UserMethods extend ActiveSupport::Concern diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 1cdfe058d..a4019983e 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ConfirmationsController < ApplicationController include SessionMethods include UserMethods diff --git a/app/controllers/dashboards_controller.rb b/app/controllers/dashboards_controller.rb index 39b156735..bf4ea63ff 100644 --- a/app/controllers/dashboards_controller.rb +++ b/app/controllers/dashboards_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DashboardsController < ApplicationController layout :site_layout diff --git a/app/controllers/diary_comments_controller.rb b/app/controllers/diary_comments_controller.rb index 324bfb43e..e98d93a09 100644 --- a/app/controllers/diary_comments_controller.rb +++ b/app/controllers/diary_comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DiaryCommentsController < ApplicationController layout :site_layout diff --git a/app/controllers/diary_entries_controller.rb b/app/controllers/diary_entries_controller.rb index ca8d38e32..48db4cba5 100644 --- a/app/controllers/diary_entries_controller.rb +++ b/app/controllers/diary_entries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DiaryEntriesController < ApplicationController include UserMethods include PaginationMethods diff --git a/app/controllers/directions_controller.rb b/app/controllers/directions_controller.rb index 2fcae04f6..487f6f1ec 100644 --- a/app/controllers/directions_controller.rb +++ b/app/controllers/directions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DirectionsController < ApplicationController layout :map_layout diff --git a/app/controllers/elements_controller.rb b/app/controllers/elements_controller.rb index 99c8afe3b..3d3ebb3c2 100644 --- a/app/controllers/elements_controller.rb +++ b/app/controllers/elements_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ElementsController < ApplicationController layout :map_layout diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 605403348..40bef84d1 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ErrorsController < ApplicationController layout "error" diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index fea8155a6..19d8294c6 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ExportController < ApplicationController before_action :authorize_web before_action :set_locale diff --git a/app/controllers/feature_queries_controller.rb b/app/controllers/feature_queries_controller.rb index f0f238c7a..3bc80eed0 100644 --- a/app/controllers/feature_queries_controller.rb +++ b/app/controllers/feature_queries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class FeatureQueriesController < ApplicationController layout :map_layout diff --git a/app/controllers/follows_controller.rb b/app/controllers/follows_controller.rb index a89ee4fd1..d1603a604 100644 --- a/app/controllers/follows_controller.rb +++ b/app/controllers/follows_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class FollowsController < ApplicationController include UserMethods diff --git a/app/controllers/issue_comments_controller.rb b/app/controllers/issue_comments_controller.rb index 57e186490..0ba5ed8da 100644 --- a/app/controllers/issue_comments_controller.rb +++ b/app/controllers/issue_comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class IssueCommentsController < ApplicationController layout :site_layout diff --git a/app/controllers/issues/reporters_controller.rb b/app/controllers/issues/reporters_controller.rb index c99d2e56b..2a93ba823 100644 --- a/app/controllers/issues/reporters_controller.rb +++ b/app/controllers/issues/reporters_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Issues class ReportersController < ApplicationController layout :site_layout diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index f2054b9a6..389a30cc6 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class IssuesController < ApplicationController include PaginationMethods diff --git a/app/controllers/layers_panes_controller.rb b/app/controllers/layers_panes_controller.rb index c203d26eb..840324362 100644 --- a/app/controllers/layers_panes_controller.rb +++ b/app/controllers/layers_panes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class LayersPanesController < ApplicationController before_action :authorize_web before_action :set_locale diff --git a/app/controllers/legend_panes_controller.rb b/app/controllers/legend_panes_controller.rb index 28bba2eb1..a1fd0fecd 100644 --- a/app/controllers/legend_panes_controller.rb +++ b/app/controllers/legend_panes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class LegendPanesController < ApplicationController before_action :authorize_web before_action :set_locale diff --git a/app/controllers/messages/inboxes_controller.rb b/app/controllers/messages/inboxes_controller.rb index 96ec27c26..8e5331a38 100644 --- a/app/controllers/messages/inboxes_controller.rb +++ b/app/controllers/messages/inboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class InboxesController < MailboxesController # Display the list of messages that have been sent to the user. diff --git a/app/controllers/messages/mailboxes_controller.rb b/app/controllers/messages/mailboxes_controller.rb index a519f6bd3..3f41402b9 100644 --- a/app/controllers/messages/mailboxes_controller.rb +++ b/app/controllers/messages/mailboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class MailboxesController < ApplicationController layout :site_layout diff --git a/app/controllers/messages/muted_inboxes_controller.rb b/app/controllers/messages/muted_inboxes_controller.rb index 2d025cc9a..b327fd2e9 100644 --- a/app/controllers/messages/muted_inboxes_controller.rb +++ b/app/controllers/messages/muted_inboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class MutedInboxesController < MailboxesController # Display the list of muted messages received by the user. diff --git a/app/controllers/messages/mutes_controller.rb b/app/controllers/messages/mutes_controller.rb index 2b0739a4a..470eac445 100644 --- a/app/controllers/messages/mutes_controller.rb +++ b/app/controllers/messages/mutes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class MutesController < ApplicationController layout :site_layout diff --git a/app/controllers/messages/outboxes_controller.rb b/app/controllers/messages/outboxes_controller.rb index f4d0a509c..8215a5b26 100644 --- a/app/controllers/messages/outboxes_controller.rb +++ b/app/controllers/messages/outboxes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class OutboxesController < MailboxesController # Display the list of messages that the user has sent to other users. diff --git a/app/controllers/messages/read_marks_controller.rb b/app/controllers/messages/read_marks_controller.rb index ae8b1e4ae..38acc1ebd 100644 --- a/app/controllers/messages/read_marks_controller.rb +++ b/app/controllers/messages/read_marks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class ReadMarksController < ApplicationController layout :site_layout diff --git a/app/controllers/messages/replies_controller.rb b/app/controllers/messages/replies_controller.rb index eb6ac0b7f..f7e98fb2a 100644 --- a/app/controllers/messages/replies_controller.rb +++ b/app/controllers/messages/replies_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Messages class RepliesController < ApplicationController layout :site_layout diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index bcefc6bb1..381e18eab 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class MessagesController < ApplicationController include UserMethods diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index f5fbb200d..beefe8108 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class NodesController < ElementsController def show @type = "node" diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 44d5748f0..cefa89a00 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class NotesController < ApplicationController include UserMethods diff --git a/app/controllers/oauth2_applications_controller.rb b/app/controllers/oauth2_applications_controller.rb index 2d1f13af9..533845616 100644 --- a/app/controllers/oauth2_applications_controller.rb +++ b/app/controllers/oauth2_applications_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Oauth2ApplicationsController < Doorkeeper::ApplicationsController layout :site_layout diff --git a/app/controllers/oauth2_authorizations_controller.rb b/app/controllers/oauth2_authorizations_controller.rb index e4b61b9ce..322b1366f 100644 --- a/app/controllers/oauth2_authorizations_controller.rb +++ b/app/controllers/oauth2_authorizations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Oauth2AuthorizationsController < Doorkeeper::AuthorizationsController layout :site_layout diff --git a/app/controllers/oauth2_authorized_applications_controller.rb b/app/controllers/oauth2_authorized_applications_controller.rb index 3d07cd089..10a08fc19 100644 --- a/app/controllers/oauth2_authorized_applications_controller.rb +++ b/app/controllers/oauth2_authorized_applications_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Oauth2AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController layout :site_layout diff --git a/app/controllers/old_elements_controller.rb b/app/controllers/old_elements_controller.rb index c19ad23af..d1438d53d 100644 --- a/app/controllers/old_elements_controller.rb +++ b/app/controllers/old_elements_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OldElementsController < ApplicationController include PaginationMethods diff --git a/app/controllers/old_nodes_controller.rb b/app/controllers/old_nodes_controller.rb index 8db5068ac..45695c86f 100644 --- a/app/controllers/old_nodes_controller.rb +++ b/app/controllers/old_nodes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OldNodesController < OldElementsController def index @type = "node" diff --git a/app/controllers/old_relation_members_controller.rb b/app/controllers/old_relation_members_controller.rb index e7cc65e0b..3d85ff07f 100644 --- a/app/controllers/old_relation_members_controller.rb +++ b/app/controllers/old_relation_members_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OldRelationMembersController < OldElementsController def show @type = "relation" diff --git a/app/controllers/old_relations_controller.rb b/app/controllers/old_relations_controller.rb index 194dc8c42..4c2f6e049 100644 --- a/app/controllers/old_relations_controller.rb +++ b/app/controllers/old_relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OldRelationsController < OldElementsController def index @type = "relation" diff --git a/app/controllers/old_ways_controller.rb b/app/controllers/old_ways_controller.rb index 817458ff8..92c7345a4 100644 --- a/app/controllers/old_ways_controller.rb +++ b/app/controllers/old_ways_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OldWaysController < OldElementsController def index @type = "way" diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index de9985389..0c9570b5a 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class PasswordsController < ApplicationController include SessionMethods diff --git a/app/controllers/preferences/advanced_preferences_controller.rb b/app/controllers/preferences/advanced_preferences_controller.rb index eae9949fc..37af667c9 100644 --- a/app/controllers/preferences/advanced_preferences_controller.rb +++ b/app/controllers/preferences/advanced_preferences_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Preferences class AdvancedPreferencesController < PreferencesController private diff --git a/app/controllers/preferences/basic_preferences_controller.rb b/app/controllers/preferences/basic_preferences_controller.rb index d21d6649d..10026fa73 100644 --- a/app/controllers/preferences/basic_preferences_controller.rb +++ b/app/controllers/preferences/basic_preferences_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Preferences class BasicPreferencesController < PreferencesController private diff --git a/app/controllers/preferences/preferences_controller.rb b/app/controllers/preferences/preferences_controller.rb index 93add68bb..03b81fba5 100644 --- a/app/controllers/preferences/preferences_controller.rb +++ b/app/controllers/preferences/preferences_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Preferences class PreferencesController < ApplicationController layout :site_layout diff --git a/app/controllers/profiles/companies_controller.rb b/app/controllers/profiles/companies_controller.rb index de9a3d189..2416e6a93 100644 --- a/app/controllers/profiles/companies_controller.rb +++ b/app/controllers/profiles/companies_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class CompaniesController < ProfileSectionsController private diff --git a/app/controllers/profiles/descriptions_controller.rb b/app/controllers/profiles/descriptions_controller.rb index 02ee17cc2..bde01cb3c 100644 --- a/app/controllers/profiles/descriptions_controller.rb +++ b/app/controllers/profiles/descriptions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class DescriptionsController < ProfileSectionsController private diff --git a/app/controllers/profiles/images_controller.rb b/app/controllers/profiles/images_controller.rb index c3cba5aba..4fdb48bed 100644 --- a/app/controllers/profiles/images_controller.rb +++ b/app/controllers/profiles/images_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class ImagesController < ProfileSectionsController private diff --git a/app/controllers/profiles/links_controller.rb b/app/controllers/profiles/links_controller.rb index d5d03196e..ee95df48e 100644 --- a/app/controllers/profiles/links_controller.rb +++ b/app/controllers/profiles/links_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class LinksController < ProfileSectionsController private diff --git a/app/controllers/profiles/locations_controller.rb b/app/controllers/profiles/locations_controller.rb index 7e971ecd1..be60ea668 100644 --- a/app/controllers/profiles/locations_controller.rb +++ b/app/controllers/profiles/locations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class LocationsController < ProfileSectionsController private diff --git a/app/controllers/profiles/profile_sections_controller.rb b/app/controllers/profiles/profile_sections_controller.rb index a85d5c8af..2cb8ab1cd 100644 --- a/app/controllers/profiles/profile_sections_controller.rb +++ b/app/controllers/profiles/profile_sections_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Profiles class ProfileSectionsController < ApplicationController layout :site_layout diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index e10dd03fa..0c06dbf22 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RedactionsController < ApplicationController layout :site_layout diff --git a/app/controllers/relation_members_controller.rb b/app/controllers/relation_members_controller.rb index e37652e98..17e5b11fc 100644 --- a/app/controllers/relation_members_controller.rb +++ b/app/controllers/relation_members_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RelationMembersController < ElementsController def show @type = "relation" diff --git a/app/controllers/relations_controller.rb b/app/controllers/relations_controller.rb index 5541e4a32..0e2fec988 100644 --- a/app/controllers/relations_controller.rb +++ b/app/controllers/relations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RelationsController < ElementsController def show @type = "relation" diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index f299c4cb1..650a6e13b 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ReportsController < ApplicationController layout :site_layout diff --git a/app/controllers/searches/latlon_queries_controller.rb b/app/controllers/searches/latlon_queries_controller.rb index 6bf221184..0ff5b5ee2 100644 --- a/app/controllers/searches/latlon_queries_controller.rb +++ b/app/controllers/searches/latlon_queries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Searches class LatlonQueriesController < QueriesController def create diff --git a/app/controllers/searches/nominatim_queries_controller.rb b/app/controllers/searches/nominatim_queries_controller.rb index f5d27ad82..ad8bcd8a1 100644 --- a/app/controllers/searches/nominatim_queries_controller.rb +++ b/app/controllers/searches/nominatim_queries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Searches class NominatimQueriesController < QueriesController include NominatimMethods diff --git a/app/controllers/searches/nominatim_reverse_queries_controller.rb b/app/controllers/searches/nominatim_reverse_queries_controller.rb index c2eced4e5..5987dd6fc 100644 --- a/app/controllers/searches/nominatim_reverse_queries_controller.rb +++ b/app/controllers/searches/nominatim_reverse_queries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Searches class NominatimReverseQueriesController < QueriesController include NominatimMethods diff --git a/app/controllers/searches/queries_controller.rb b/app/controllers/searches/queries_controller.rb index 82745082c..26665e19c 100644 --- a/app/controllers/searches/queries_controller.rb +++ b/app/controllers/searches/queries_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Searches class QueriesController < ApplicationController before_action :authorize_web diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 0176f7508..ca6de87d1 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SearchesController < ApplicationController include NominatimMethods diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index d89ff0d5b..6e28093c6 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SessionsController < ApplicationController include SessionMethods diff --git a/app/controllers/share_panes_controller.rb b/app/controllers/share_panes_controller.rb index 1df9c1597..7fc5d7464 100644 --- a/app/controllers/share_panes_controller.rb +++ b/app/controllers/share_panes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SharePanesController < ApplicationController before_action :authorize_web before_action :set_locale diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index b475ee8ce..af9db032a 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SiteController < ApplicationController layout :site_layout layout :map_layout, :only => [:index, :export] diff --git a/app/controllers/traces/data_controller.rb b/app/controllers/traces/data_controller.rb index 12225c1f1..efb9b65b2 100644 --- a/app/controllers/traces/data_controller.rb +++ b/app/controllers/traces/data_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Traces class DataController < ApplicationController layout :site_layout diff --git a/app/controllers/traces/feeds_controller.rb b/app/controllers/traces/feeds_controller.rb index c5384ac0e..d41fc7685 100644 --- a/app/controllers/traces/feeds_controller.rb +++ b/app/controllers/traces/feeds_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Traces class FeedsController < ApplicationController before_action :authorize_web diff --git a/app/controllers/traces/icons_controller.rb b/app/controllers/traces/icons_controller.rb index a62e6af86..80cfb8c18 100644 --- a/app/controllers/traces/icons_controller.rb +++ b/app/controllers/traces/icons_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Traces class IconsController < ApplicationController before_action :authorize_web diff --git a/app/controllers/traces/pictures_controller.rb b/app/controllers/traces/pictures_controller.rb index 0b26ed884..03336f7d9 100644 --- a/app/controllers/traces/pictures_controller.rb +++ b/app/controllers/traces/pictures_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Traces class PicturesController < ApplicationController before_action :authorize_web diff --git a/app/controllers/traces_controller.rb b/app/controllers/traces_controller.rb index aefcb3704..e54e1c954 100644 --- a/app/controllers/traces_controller.rb +++ b/app/controllers/traces_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TracesController < ApplicationController include UserMethods include PaginationMethods diff --git a/app/controllers/user_blocks_controller.rb b/app/controllers/user_blocks_controller.rb index 264d379be..3e929b63d 100644 --- a/app/controllers/user_blocks_controller.rb +++ b/app/controllers/user_blocks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UserBlocksController < ApplicationController include UserMethods include PaginationMethods diff --git a/app/controllers/user_mutes_controller.rb b/app/controllers/user_mutes_controller.rb index 30561080d..3784eb7f1 100644 --- a/app/controllers/user_mutes_controller.rb +++ b/app/controllers/user_mutes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UserMutesController < ApplicationController include UserMethods diff --git a/app/controllers/user_roles_controller.rb b/app/controllers/user_roles_controller.rb index 683427d3a..2caa10bc9 100644 --- a/app/controllers/user_roles_controller.rb +++ b/app/controllers/user_roles_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UserRolesController < ApplicationController include UserMethods diff --git a/app/controllers/users/changeset_comments_controller.rb b/app/controllers/users/changeset_comments_controller.rb index a690e7c4a..9378c4750 100644 --- a/app/controllers/users/changeset_comments_controller.rb +++ b/app/controllers/users/changeset_comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class ChangesetCommentsController < CommentsController def index diff --git a/app/controllers/users/comments_controller.rb b/app/controllers/users/comments_controller.rb index 0a0499a32..91fdbcabe 100644 --- a/app/controllers/users/comments_controller.rb +++ b/app/controllers/users/comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class CommentsController < ApplicationController include UserMethods diff --git a/app/controllers/users/diary_comments_controller.rb b/app/controllers/users/diary_comments_controller.rb index c97ff8ec6..5ec606bcf 100644 --- a/app/controllers/users/diary_comments_controller.rb +++ b/app/controllers/users/diary_comments_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class DiaryCommentsController < CommentsController def index diff --git a/app/controllers/users/heatmaps_controller.rb b/app/controllers/users/heatmaps_controller.rb index a69a406a1..e7840a465 100644 --- a/app/controllers/users/heatmaps_controller.rb +++ b/app/controllers/users/heatmaps_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class HeatmapsController < ApplicationController layout false diff --git a/app/controllers/users/issued_blocks_controller.rb b/app/controllers/users/issued_blocks_controller.rb index 537ac7d62..e098d63ed 100644 --- a/app/controllers/users/issued_blocks_controller.rb +++ b/app/controllers/users/issued_blocks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class IssuedBlocksController < ApplicationController include UserMethods diff --git a/app/controllers/users/lists_controller.rb b/app/controllers/users/lists_controller.rb index 1e926f8a2..da495ef4f 100644 --- a/app/controllers/users/lists_controller.rb +++ b/app/controllers/users/lists_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class ListsController < ApplicationController include PaginationMethods diff --git a/app/controllers/users/received_blocks_controller.rb b/app/controllers/users/received_blocks_controller.rb index fbb411aff..5945d4d7b 100644 --- a/app/controllers/users/received_blocks_controller.rb +++ b/app/controllers/users/received_blocks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class ReceivedBlocksController < ApplicationController include UserMethods diff --git a/app/controllers/users/statuses_controller.rb b/app/controllers/users/statuses_controller.rb index 393acb355..ccd87a08b 100644 --- a/app/controllers/users/statuses_controller.rb +++ b/app/controllers/users/statuses_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Users class StatusesController < ApplicationController layout :site_layout diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 605f6dc03..dccff0fc6 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UsersController < ApplicationController include EmailMethods include SessionMethods diff --git a/app/controllers/ways_controller.rb b/app/controllers/ways_controller.rb index 2e0c9e39b..b5a946ac2 100644 --- a/app/controllers/ways_controller.rb +++ b/app/controllers/ways_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WaysController < ElementsController def show @type = "way" diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1b04b78ed..7450650dc 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ApplicationHelper require "rexml/document" diff --git a/app/helpers/asset_helper.rb b/app/helpers/asset_helper.rb index 40782fbcf..2a233a802 100644 --- a/app/helpers/asset_helper.rb +++ b/app/helpers/asset_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AssetHelper def assets(directory) Rails.application.assets_manifest.assets.keys.each_with_object({}) do |asset, assets| diff --git a/app/helpers/authorization_helper.rb b/app/helpers/authorization_helper.rb index ebe4500fb..9138c8222 100644 --- a/app/helpers/authorization_helper.rb +++ b/app/helpers/authorization_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module AuthorizationHelper include ActionView::Helpers::TranslationHelper diff --git a/app/helpers/banner_helper.rb b/app/helpers/banner_helper.rb index 9048d4840..f22eed361 100644 --- a/app/helpers/banner_helper.rb +++ b/app/helpers/banner_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BannerHelper def active_banners BANNERS.reject do |_k, v| diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index 061741546..c056c8f62 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BrowseHelper def element_icon(type, object) selected_icon_data = { :filename => "#{type}.svg", :priority => 1 } diff --git a/app/helpers/browse_tags_helper.rb b/app/helpers/browse_tags_helper.rb index 39e14e554..fcd331f49 100644 --- a/app/helpers/browse_tags_helper.rb +++ b/app/helpers/browse_tags_helper.rb @@ -1,7 +1,9 @@ +# frozen_string_literal: true + module BrowseTagsHelper # https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links # https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links - SECONDARY_WIKI_PREFIXES = "architect|artist|brand|buried|flag|genus|manufacturer|model|name:etymology|network|operator|species|subject".freeze + SECONDARY_WIKI_PREFIXES = "architect|artist|brand|buried|flag|genus|manufacturer|model|name:etymology|network|operator|species|subject" def format_key(key) if url = wiki_link("key", key) diff --git a/app/helpers/changesets_helper.rb b/app/helpers/changesets_helper.rb index d3bc5ed9a..59fec4776 100644 --- a/app/helpers/changesets_helper.rb +++ b/app/helpers/changesets_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ChangesetsHelper def changeset_user_link(changeset) if changeset.user.status == "deleted" diff --git a/app/helpers/copyright_helper.rb b/app/helpers/copyright_helper.rb index 615868e5d..9d484509d 100644 --- a/app/helpers/copyright_helper.rb +++ b/app/helpers/copyright_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module CopyrightHelper def legal_babble_paragraph(name, links: [], local_links: {}, **) link_options = {} diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index a58beded2..3edf0a7c2 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module GeocoderHelper def result_to_html(result) html_options = { :class => "set_position stretched-link", :data => {} } diff --git a/app/helpers/heatmap_helper.rb b/app/helpers/heatmap_helper.rb index 8dfdbf5d3..f50d91f43 100644 --- a/app/helpers/heatmap_helper.rb +++ b/app/helpers/heatmap_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module HeatmapHelper def prepare_heatmap(data, from, to) # Pad the start by one week to ensure the heatmap can start on the first day of the week diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index e972c78ff..2da280d95 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module IssuesHelper def reportable_url(reportable) case reportable diff --git a/app/helpers/note_helper.rb b/app/helpers/note_helper.rb index 7a75a4ff5..3632e1d03 100644 --- a/app/helpers/note_helper.rb +++ b/app/helpers/note_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module NoteHelper include ActionView::Helpers::TranslationHelper diff --git a/app/helpers/numbered_pagination_helper.rb b/app/helpers/numbered_pagination_helper.rb index 6ef3700a3..2c4fddf0e 100644 --- a/app/helpers/numbered_pagination_helper.rb +++ b/app/helpers/numbered_pagination_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module NumberedPaginationHelper def numbered_pagination(top_page, active_id, active_page: top_page + 1, window_half_size: 50, step_size: 50, &) lists = [] diff --git a/app/helpers/open_graph_helper.rb b/app/helpers/open_graph_helper.rb index a496268e4..30d460e27 100644 --- a/app/helpers/open_graph_helper.rb +++ b/app/helpers/open_graph_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenGraphHelper require "addressable/uri" diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index ad19be38e..03feb2af9 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module PaginationHelper def pagination_item(params, title, &) link_class = "page-link icon-link text-center" diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb index 57b786792..a8a07add3 100644 --- a/app/helpers/reports_helper.rb +++ b/app/helpers/reports_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ostruct" module ReportsHelper diff --git a/app/helpers/share_buttons_helper.rb b/app/helpers/share_buttons_helper.rb index 74bec7d27..50da5881b 100644 --- a/app/helpers/share_buttons_helper.rb +++ b/app/helpers/share_buttons_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ShareButtonsHelper require "uri" diff --git a/app/helpers/svg_helper.rb b/app/helpers/svg_helper.rb index 5daa176f7..e532949f4 100644 --- a/app/helpers/svg_helper.rb +++ b/app/helpers/svg_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SvgHelper def previous_page_svg_tag(**) adjacent_page_svg_tag(dir == "rtl" ? 1 : -1, **) diff --git a/app/helpers/title_helper.rb b/app/helpers/title_helper.rb index 93f1b9ea5..43683c0fb 100644 --- a/app/helpers/title_helper.rb +++ b/app/helpers/title_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module TitleHelper def self.coder @coder ||= HTMLEntities.new diff --git a/app/helpers/trace_helper.rb b/app/helpers/trace_helper.rb index fbbeb3dff..3d0704e66 100644 --- a/app/helpers/trace_helper.rb +++ b/app/helpers/trace_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module TraceHelper def link_to_tag(tag) link_to(tag, :tag => tag, :page => nil) diff --git a/app/helpers/user_blocks_helper.rb b/app/helpers/user_blocks_helper.rb index f18a6250c..842cfaddd 100644 --- a/app/helpers/user_blocks_helper.rb +++ b/app/helpers/user_blocks_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UserBlocksHelper include ActionView::Helpers::TranslationHelper diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 24626238c..f27772892 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UserHelper # User images diff --git a/app/helpers/user_mailer_helper.rb b/app/helpers/user_mailer_helper.rb index be756c212..abfd7b792 100644 --- a/app/helpers/user_mailer_helper.rb +++ b/app/helpers/user_mailer_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UserMailerHelper def fp(text) format_paragraph(text, 72, 0) diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index d394c3d10..bef395997 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked diff --git a/app/jobs/trace_destroyer_job.rb b/app/jobs/trace_destroyer_job.rb index 66b777b2c..8ff7ddbba 100644 --- a/app/jobs/trace_destroyer_job.rb +++ b/app/jobs/trace_destroyer_job.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TraceDestroyerJob < ApplicationJob queue_as :traces diff --git a/app/jobs/trace_importer_job.rb b/app/jobs/trace_importer_job.rb index 48285cbc1..3c8097933 100644 --- a/app/jobs/trace_importer_job.rb +++ b/app/jobs/trace_importer_job.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TraceImporterJob < ApplicationJob queue_as :traces diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index ead50cd96..26148f2d6 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + class ApplicationMailer < ActionMailer::Base end diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index e466b694a..d54e69fca 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UserMailer < ApplicationMailer include ActionView::Helpers::AssetUrlHelper diff --git a/app/models/acl.rb b/app/models/acl.rb index e3695ce1d..e3079718d 100644 --- a/app/models/acl.rb +++ b/app/models/acl.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: acls diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 10a4cba84..71fbba5b3 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end diff --git a/app/models/changeset.rb b/app/models/changeset.rb index d276538dc..742e76c7b 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: changesets diff --git a/app/models/changeset_comment.rb b/app/models/changeset_comment.rb index 09eabe893..5ffe7616c 100644 --- a/app/models/changeset_comment.rb +++ b/app/models/changeset_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: changeset_comments diff --git a/app/models/changeset_subscription.rb b/app/models/changeset_subscription.rb index 5a686f04f..4dbda3c1a 100644 --- a/app/models/changeset_subscription.rb +++ b/app/models/changeset_subscription.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: changesets_subscribers diff --git a/app/models/changeset_tag.rb b/app/models/changeset_tag.rb index 6b848e1c9..0c436b6ea 100644 --- a/app/models/changeset_tag.rb +++ b/app/models/changeset_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: changeset_tags diff --git a/app/models/community.rb b/app/models/community.rb index 8544ec470..3112993b0 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Community < FrozenRecord::Base self.base_path = Rails.root.join("node_modules/osm-community-index/dist/") self.backend = OsmCommunityIndex::ResourceBackend diff --git a/app/models/concerns/consistency_validations.rb b/app/models/concerns/consistency_validations.rb index 2df85f2ac..e137e5786 100644 --- a/app/models/concerns/consistency_validations.rb +++ b/app/models/concerns/consistency_validations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ConsistencyValidations extend ActiveSupport::Concern diff --git a/app/models/concerns/geo_record.rb b/app/models/concerns/geo_record.rb index bd96e0ff3..79400d098 100644 --- a/app/models/concerns/geo_record.rb +++ b/app/models/concerns/geo_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module GeoRecord extend ActiveSupport::Concern diff --git a/app/models/concerns/not_redactable.rb b/app/models/concerns/not_redactable.rb index 2d721530f..4f2c0349a 100644 --- a/app/models/concerns/not_redactable.rb +++ b/app/models/concerns/not_redactable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module NotRedactable extend ActiveSupport::Concern diff --git a/app/models/concerns/redactable.rb b/app/models/concerns/redactable.rb index 3a1ccf8b7..fc0106927 100644 --- a/app/models/concerns/redactable.rb +++ b/app/models/concerns/redactable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Redactable extend ActiveSupport::Concern diff --git a/app/models/diary_comment.rb b/app/models/diary_comment.rb index 582554892..5a7ddeb22 100644 --- a/app/models/diary_comment.rb +++ b/app/models/diary_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: diary_comments diff --git a/app/models/diary_entry.rb b/app/models/diary_entry.rb index d5d48521f..ae0f8e6c3 100644 --- a/app/models/diary_entry.rb +++ b/app/models/diary_entry.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: diary_entries diff --git a/app/models/diary_entry_subscription.rb b/app/models/diary_entry_subscription.rb index 31a5806eb..277e0c500 100644 --- a/app/models/diary_entry_subscription.rb +++ b/app/models/diary_entry_subscription.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: diary_entry_subscriptions diff --git a/app/models/follow.rb b/app/models/follow.rb index 6dd1bfe03..8d910a57e 100644 --- a/app/models/follow.rb +++ b/app/models/follow.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: friends diff --git a/app/models/issue.rb b/app/models/issue.rb index 99efbd4fa..f03d360a0 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: issues diff --git a/app/models/issue_comment.rb b/app/models/issue_comment.rb index 8d150a02f..ea1b9d2f8 100644 --- a/app/models/issue_comment.rb +++ b/app/models/issue_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: issue_comments diff --git a/app/models/language.rb b/app/models/language.rb index f1d40feea..cee0530ef 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: languages diff --git a/app/models/message.rb b/app/models/message.rb index 28320af78..f88b4a950 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: messages diff --git a/app/models/node.rb b/app/models/node.rb index 502898629..82e619a2d 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_nodes diff --git a/app/models/node_tag.rb b/app/models/node_tag.rb index fa82b6a3c..1323f0a76 100644 --- a/app/models/node_tag.rb +++ b/app/models/node_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_node_tags diff --git a/app/models/note.rb b/app/models/note.rb index 6a83b6b01..c1b93a2e8 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: notes diff --git a/app/models/note_comment.rb b/app/models/note_comment.rb index 3f34368fa..972d25de0 100644 --- a/app/models/note_comment.rb +++ b/app/models/note_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: note_comments diff --git a/app/models/note_subscription.rb b/app/models/note_subscription.rb index 2532738bc..d3fdf944c 100644 --- a/app/models/note_subscription.rb +++ b/app/models/note_subscription.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: note_subscriptions diff --git a/app/models/oauth2_application.rb b/app/models/oauth2_application.rb index 9a099e304..7edbdf1ee 100644 --- a/app/models/oauth2_application.rb +++ b/app/models/oauth2_application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: oauth_applications diff --git a/app/models/old_node.rb b/app/models/old_node.rb index bb4022ba3..1c4ba2e93 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: nodes diff --git a/app/models/old_node_tag.rb b/app/models/old_node_tag.rb index cae61a2c5..1686dc1e5 100644 --- a/app/models/old_node_tag.rb +++ b/app/models/old_node_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: node_tags diff --git a/app/models/old_relation.rb b/app/models/old_relation.rb index 42f363f0e..bf591b3b5 100644 --- a/app/models/old_relation.rb +++ b/app/models/old_relation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: relations diff --git a/app/models/old_relation_member.rb b/app/models/old_relation_member.rb index 2e723c5bd..744930583 100644 --- a/app/models/old_relation_member.rb +++ b/app/models/old_relation_member.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: relation_members diff --git a/app/models/old_relation_tag.rb b/app/models/old_relation_tag.rb index 081745412..988aa3985 100644 --- a/app/models/old_relation_tag.rb +++ b/app/models/old_relation_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: relation_tags diff --git a/app/models/old_way.rb b/app/models/old_way.rb index a9c55cf30..18ad78272 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: ways diff --git a/app/models/old_way_node.rb b/app/models/old_way_node.rb index 714b38648..85a3691a5 100644 --- a/app/models/old_way_node.rb +++ b/app/models/old_way_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: way_nodes diff --git a/app/models/old_way_tag.rb b/app/models/old_way_tag.rb index 32aea5b15..5f15910b6 100644 --- a/app/models/old_way_tag.rb +++ b/app/models/old_way_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: way_tags diff --git a/app/models/redaction.rb b/app/models/redaction.rb index 7b25c6323..01d615bc5 100644 --- a/app/models/redaction.rb +++ b/app/models/redaction.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: redactions diff --git a/app/models/relation.rb b/app/models/relation.rb index ab89409a3..105946add 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_relations diff --git a/app/models/relation_member.rb b/app/models/relation_member.rb index c9723e48b..5c092141d 100644 --- a/app/models/relation_member.rb +++ b/app/models/relation_member.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_relation_members diff --git a/app/models/relation_tag.rb b/app/models/relation_tag.rb index d23192b8e..398926899 100644 --- a/app/models/relation_tag.rb +++ b/app/models/relation_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_relation_tags diff --git a/app/models/report.rb b/app/models/report.rb index 1475197fe..6e9c10466 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: reports diff --git a/app/models/social_link.rb b/app/models/social_link.rb index b35779864..8b640364f 100644 --- a/app/models/social_link.rb +++ b/app/models/social_link.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: social_links diff --git a/app/models/trace.rb b/app/models/trace.rb index 749a8bfb9..bb6b2dd56 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: gpx_files diff --git a/app/models/tracepoint.rb b/app/models/tracepoint.rb index 198d8cd3e..5fe3629b6 100644 --- a/app/models/tracepoint.rb +++ b/app/models/tracepoint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: gps_points diff --git a/app/models/tracetag.rb b/app/models/tracetag.rb index 0e9fe126d..2d26df21b 100644 --- a/app/models/tracetag.rb +++ b/app/models/tracetag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: gpx_file_tags diff --git a/app/models/user.rb b/app/models/user.rb index d19d1c10a..d5bea8be2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: users diff --git a/app/models/user_block.rb b/app/models/user_block.rb index f25bd47b8..ab851cfdd 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: user_blocks diff --git a/app/models/user_mute.rb b/app/models/user_mute.rb index 68f3bb679..49aab5eae 100644 --- a/app/models/user_mute.rb +++ b/app/models/user_mute.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: user_mutes diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 35412c9e7..2bdf5f58a 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: user_preferences diff --git a/app/models/user_role.rb b/app/models/user_role.rb index d374b4084..d3414ad5f 100644 --- a/app/models/user_role.rb +++ b/app/models/user_role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: user_roles diff --git a/app/models/way.rb b/app/models/way.rb index 266f7b6e7..331b1b823 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_ways diff --git a/app/models/way_node.rb b/app/models/way_node.rb index b77827ada..8d2a0373b 100644 --- a/app/models/way_node.rb +++ b/app/models/way_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_way_nodes diff --git a/app/models/way_tag.rb b/app/models/way_tag.rb index 2bf7fa887..d75052b3d 100644 --- a/app/models/way_tag.rb +++ b/app/models/way_tag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # == Schema Information # # Table name: current_way_tags diff --git a/app/validators/characters_validator.rb b/app/validators/characters_validator.rb index 13d08ca55..5317ff371 100644 --- a/app/validators/characters_validator.rb +++ b/app/validators/characters_validator.rb @@ -1,6 +1,8 @@ +# frozen_string_literal: true + class CharactersValidator < ActiveModel::EachValidator - INVALID_CHARS = "\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff".freeze - INVALID_URL_CHARS = "/;.,?%#".freeze + INVALID_CHARS = "\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\ufffe\uffff" + INVALID_URL_CHARS = "/;.,?%#" def validate_each(record, attribute, value) record.errors.add(attribute, options[:message] || I18n.t("validations.invalid_characters")) if /[#{INVALID_CHARS}]/o.match?(value) diff --git a/app/validators/image_validator.rb b/app/validators/image_validator.rb index 5aad717f8..ee137557a 100644 --- a/app/validators/image_validator.rb +++ b/app/validators/image_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ImageValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) record.errors.add(attribute, " must be an image") unless value.image? diff --git a/app/validators/normalized_uniqueness_validator.rb b/app/validators/normalized_uniqueness_validator.rb index eb3600c7b..09dfe9351 100644 --- a/app/validators/normalized_uniqueness_validator.rb +++ b/app/validators/normalized_uniqueness_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class NormalizedUniquenessValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) relation = if options.fetch(:case_sensitive, true) diff --git a/app/validators/utf8_validator.rb b/app/validators/utf8_validator.rb index 0c6b3f594..9a7d11c7a 100644 --- a/app/validators/utf8_validator.rb +++ b/app/validators/utf8_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ## # validation method to be included like any other validations methods # in the models definitions. this one checks that the named attribute diff --git a/app/validators/whitespace_validator.rb b/app/validators/whitespace_validator.rb index 6453742c2..b6369cfae 100644 --- a/app/validators/whitespace_validator.rb +++ b/app/validators/whitespace_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WhitespaceValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) record.errors.add(attribute, options[:message] || I18n.t("validations.leading_whitespace")) if !options.fetch(:leading, true) && /\A\s/.match?(value) diff --git a/app/validators/width_validator.rb b/app/validators/width_validator.rb index a3a4d414c..a38a109e6 100644 --- a/app/validators/width_validator.rb +++ b/app/validators/width_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WidthValidator < ActiveModel::Validations::LengthValidator module WidthAsLength def length diff --git a/app/views/api/_root_attributes.json.jbuilder b/app/views/api/_root_attributes.json.jbuilder index d8fbef9fd..180616c83 100644 --- a/app/views/api/_root_attributes.json.jbuilder +++ b/app/views/api/_root_attributes.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.version Settings.api_version json.generator Settings.generator json.copyright Settings.copyright_owner diff --git a/app/views/api/capabilities/show.builder b/app/views/api/capabilities/show.builder index bd90b2a6a..511ec7b64 100644 --- a/app/views/api/capabilities/show.builder +++ b/app/views/api/capabilities/show.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| osm.api do |api| diff --git a/app/views/api/capabilities/show.json.jbuilder b/app/views/api/capabilities/show.json.jbuilder index b9e3a20c7..5aae376fd 100644 --- a/app/views/api/capabilities/show.json.jbuilder +++ b/app/views/api/capabilities/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.api do diff --git a/app/views/api/changeset_comments/_changeset_comment.json.jbuilder b/app/views/api/changeset_comments/_changeset_comment.json.jbuilder index 73b1ec908..dffbf9ca6 100644 --- a/app/views/api/changeset_comments/_changeset_comment.json.jbuilder +++ b/app/views/api/changeset_comments/_changeset_comment.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.id changeset_comment.id json.visible changeset_comment.visible json.date changeset_comment.created_at.xmlschema diff --git a/app/views/api/changeset_comments/_changeset_comment.xml.builder b/app/views/api/changeset_comments/_changeset_comment.xml.builder index 951556fc2..3914016b9 100644 --- a/app/views/api/changeset_comments/_changeset_comment.xml.builder +++ b/app/views/api/changeset_comments/_changeset_comment.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + cattrs = { "id" => changeset_comment.id, "date" => changeset_comment.created_at.xmlschema, diff --git a/app/views/api/changeset_comments/index.json.jbuilder b/app/views/api/changeset_comments/index.json.jbuilder index 0286b1a87..02320bce1 100644 --- a/app/views/api/changeset_comments/index.json.jbuilder +++ b/app/views/api/changeset_comments/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.comments(@comments) do |comment| diff --git a/app/views/api/changeset_comments/index.xml.builder b/app/views/api/changeset_comments/index.xml.builder index cfa59c914..1a0371ea6 100644 --- a/app/views/api/changeset_comments/index.xml.builder +++ b/app/views/api/changeset_comments/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changeset_comments/visibilities/create.json.jbuilder b/app/views/api/changeset_comments/visibilities/create.json.jbuilder index c245cd15c..c2202a589 100644 --- a/app/views/api/changeset_comments/visibilities/create.json.jbuilder +++ b/app/views/api/changeset_comments/visibilities/create.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changeset do diff --git a/app/views/api/changeset_comments/visibilities/create.xml.builder b/app/views/api/changeset_comments/visibilities/create.xml.builder index 84892f767..6e589b783 100644 --- a/app/views/api/changeset_comments/visibilities/create.xml.builder +++ b/app/views/api/changeset_comments/visibilities/create.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changeset_comments/visibilities/destroy.json.jbuilder b/app/views/api/changeset_comments/visibilities/destroy.json.jbuilder index c245cd15c..c2202a589 100644 --- a/app/views/api/changeset_comments/visibilities/destroy.json.jbuilder +++ b/app/views/api/changeset_comments/visibilities/destroy.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changeset do diff --git a/app/views/api/changeset_comments/visibilities/destroy.xml.builder b/app/views/api/changeset_comments/visibilities/destroy.xml.builder index 84892f767..6e589b783 100644 --- a/app/views/api/changeset_comments/visibilities/destroy.xml.builder +++ b/app/views/api/changeset_comments/visibilities/destroy.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changeset_subscriptions/create.json.jbuilder b/app/views/api/changeset_subscriptions/create.json.jbuilder index 7a840c12f..137f88ac7 100644 --- a/app/views/api/changeset_subscriptions/create.json.jbuilder +++ b/app/views/api/changeset_subscriptions/create.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changeset do diff --git a/app/views/api/changeset_subscriptions/create.xml.builder b/app/views/api/changeset_subscriptions/create.xml.builder index b53061d4c..b489b1b0c 100644 --- a/app/views/api/changeset_subscriptions/create.xml.builder +++ b/app/views/api/changeset_subscriptions/create.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changeset_subscriptions/destroy.json.jbuilder b/app/views/api/changeset_subscriptions/destroy.json.jbuilder index 7a840c12f..137f88ac7 100644 --- a/app/views/api/changeset_subscriptions/destroy.json.jbuilder +++ b/app/views/api/changeset_subscriptions/destroy.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changeset do diff --git a/app/views/api/changeset_subscriptions/destroy.xml.builder b/app/views/api/changeset_subscriptions/destroy.xml.builder index b53061d4c..b489b1b0c 100644 --- a/app/views/api/changeset_subscriptions/destroy.xml.builder +++ b/app/views/api/changeset_subscriptions/destroy.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changesets/_changeset.json.jbuilder b/app/views/api/changesets/_changeset.json.jbuilder index 7001a95e8..71f423169 100644 --- a/app/views/api/changesets/_changeset.json.jbuilder +++ b/app/views/api/changesets/_changeset.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # basic attributes json.id changeset.id json.created_at changeset.created_at.xmlschema diff --git a/app/views/api/changesets/_changeset.xml.builder b/app/views/api/changesets/_changeset.xml.builder index 072f8fc5d..37d2942d2 100644 --- a/app/views/api/changesets/_changeset.xml.builder +++ b/app/views/api/changesets/_changeset.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # basic attributes attrs = { diff --git a/app/views/api/changesets/downloads/show.xml.builder b/app/views/api/changesets/downloads/show.xml.builder index 88e05b587..8346d09d3 100644 --- a/app/views/api/changesets/downloads/show.xml.builder +++ b/app/views/api/changesets/downloads/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osmChange(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/changesets/index.json.jbuilder b/app/views/api/changesets/index.json.jbuilder index ce094fa34..e46f2838b 100644 --- a/app/views/api/changesets/index.json.jbuilder +++ b/app/views/api/changesets/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changesets do diff --git a/app/views/api/changesets/index.xml.builder b/app/views/api/changesets/index.xml.builder index 286f50c35..761d9eabf 100644 --- a/app/views/api/changesets/index.xml.builder +++ b/app/views/api/changesets/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| osm << (render(@changesets) || "") diff --git a/app/views/api/changesets/show.json.jbuilder b/app/views/api/changesets/show.json.jbuilder index 7a840c12f..137f88ac7 100644 --- a/app/views/api/changesets/show.json.jbuilder +++ b/app/views/api/changesets/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.changeset do diff --git a/app/views/api/changesets/show.xml.builder b/app/views/api/changesets/show.xml.builder index b53061d4c..b489b1b0c 100644 --- a/app/views/api/changesets/show.xml.builder +++ b/app/views/api/changesets/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/maps/_bounds.json.jbuilder b/app/views/api/maps/_bounds.json.jbuilder index 16fdbeb0f..c64101856 100644 --- a/app/views/api/maps/_bounds.json.jbuilder +++ b/app/views/api/maps/_bounds.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.bounds do json.minlat GeoRecord::Coord.new(@bounds.min_lat) json.minlon GeoRecord::Coord.new(@bounds.min_lon) diff --git a/app/views/api/maps/_bounds.xml.builder b/app/views/api/maps/_bounds.xml.builder index 0a4181c37..62254944a 100644 --- a/app/views/api/maps/_bounds.xml.builder +++ b/app/views/api/maps/_bounds.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "minlat" => format("%.7f", :lat => bounds.min_lat), "minlon" => format("%.7f", :lon => bounds.min_lon), diff --git a/app/views/api/maps/show.json.jbuilder b/app/views/api/maps/show.json.jbuilder index 756884539..f9ae045bc 100644 --- a/app/views/api/maps/show.json.jbuilder +++ b/app/views/api/maps/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "root_attributes" json.partial! "bounds" diff --git a/app/views/api/maps/show.xml.builder b/app/views/api/maps/show.xml.builder index d7fb7e7fc..641b12579 100644 --- a/app/views/api/maps/show.xml.builder +++ b/app/views/api/maps/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/messages/_message.json.jbuilder b/app/views/api/messages/_message.json.jbuilder index 840ad19d0..609e4232b 100644 --- a/app/views/api/messages/_message.json.jbuilder +++ b/app/views/api/messages/_message.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.id message.id json.from_user_id message.from_user_id json.from_display_name message.sender.display_name diff --git a/app/views/api/messages/_message.xml.builder b/app/views/api/messages/_message.xml.builder index 2ab307f1a..50aec44f0 100644 --- a/app/views/api/messages/_message.xml.builder +++ b/app/views/api/messages/_message.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => message.id, "from_user_id" => message.from_user_id, diff --git a/app/views/api/messages/mailboxes/show.json.jbuilder b/app/views/api/messages/mailboxes/show.json.jbuilder index c96e710d4..5fa593ee2 100644 --- a/app/views/api/messages/mailboxes/show.json.jbuilder +++ b/app/views/api/messages/mailboxes/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.messages do diff --git a/app/views/api/messages/mailboxes/show.xml.builder b/app/views/api/messages/mailboxes/show.xml.builder index 94aa32fc7..bce88b189 100644 --- a/app/views/api/messages/mailboxes/show.xml.builder +++ b/app/views/api/messages/mailboxes/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/messages/show.json.jbuilder b/app/views/api/messages/show.json.jbuilder index d8f24e958..7b5f6974e 100644 --- a/app/views/api/messages/show.json.jbuilder +++ b/app/views/api/messages/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.message do diff --git a/app/views/api/messages/show.xml.builder b/app/views/api/messages/show.xml.builder index 008d59249..f1ba5345a 100644 --- a/app/views/api/messages/show.xml.builder +++ b/app/views/api/messages/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/nodes/_node.json.jbuilder b/app/views/api/nodes/_node.json.jbuilder index e48d5f17c..90974dd72 100644 --- a/app/views/api/nodes/_node.json.jbuilder +++ b/app/views/api/nodes/_node.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "node" json.id node.id if node.visible diff --git a/app/views/api/nodes/_node.xml.builder b/app/views/api/nodes/_node.xml.builder index 4ced227f0..392dae5e8 100644 --- a/app/views/api/nodes/_node.xml.builder +++ b/app/views/api/nodes/_node.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => node.id, "visible" => node.visible, diff --git a/app/views/api/nodes/index.json.jbuilder b/app/views/api/nodes/index.json.jbuilder index 7708a3498..e4afab597 100644 --- a/app/views/api/nodes/index.json.jbuilder +++ b/app/views/api/nodes/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/nodes/index.xml.builder b/app/views/api/nodes/index.xml.builder index 1968de97a..d43a76de3 100644 --- a/app/views/api/nodes/index.xml.builder +++ b/app/views/api/nodes/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/nodes/relations/index.json.jbuilder b/app/views/api/nodes/relations/index.json.jbuilder index 1d8b9f2cd..0eca8a586 100644 --- a/app/views/api/nodes/relations/index.json.jbuilder +++ b/app/views/api/nodes/relations/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/nodes/relations/index.xml.builder b/app/views/api/nodes/relations/index.xml.builder index efe64f159..3eac7aee8 100644 --- a/app/views/api/nodes/relations/index.xml.builder +++ b/app/views/api/nodes/relations/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/nodes/show.json.jbuilder b/app/views/api/nodes/show.json.jbuilder index bcbd29b5e..33500898c 100644 --- a/app/views/api/nodes/show.json.jbuilder +++ b/app/views/api/nodes/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/nodes/show.xml.builder b/app/views/api/nodes/show.xml.builder index 48f7e314a..e1c780dc8 100644 --- a/app/views/api/nodes/show.xml.builder +++ b/app/views/api/nodes/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/nodes/ways/index.json.jbuilder b/app/views/api/nodes/ways/index.json.jbuilder index 27119cad5..efa509529 100644 --- a/app/views/api/nodes/ways/index.json.jbuilder +++ b/app/views/api/nodes/ways/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/nodes/ways/index.xml.builder b/app/views/api/nodes/ways/index.xml.builder index 7872d7d52..7453795d8 100644 --- a/app/views/api/nodes/ways/index.xml.builder +++ b/app/views/api/nodes/ways/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/notes/_note.gpx.builder b/app/views/api/notes/_note.gpx.builder index bb5cac1c9..2bab42e21 100644 --- a/app/views/api/notes/_note.gpx.builder +++ b/app/views/api/notes/_note.gpx.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.wpt("lon" => note.lon, "lat" => note.lat) do xml.time note.created_at.to_fs(:iso8601) xml.name t("notes.show.title", :id => note.id) diff --git a/app/views/api/notes/_note.json.jbuilder b/app/views/api/notes/_note.json.jbuilder index 0884c4426..e4b510f12 100644 --- a/app/views/api/notes/_note.json.jbuilder +++ b/app/views/api/notes/_note.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "Feature" json.geometry do diff --git a/app/views/api/notes/_note.rss.builder b/app/views/api/notes/_note.rss.builder index 0bfdb385d..0d4eb9adb 100644 --- a/app/views/api/notes/_note.rss.builder +++ b/app/views/api/notes/_note.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.item do location = describe_location(note.lat, note.lon, 14, locale) diff --git a/app/views/api/notes/_note.xml.builder b/app/views/api/notes/_note.xml.builder index 0e5ad0007..e48b60153 100644 --- a/app/views/api/notes/_note.xml.builder +++ b/app/views/api/notes/_note.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.note("lon" => note.lon, "lat" => note.lat) do xml.id note.id xml.url api_note_url(note, :format => params[:format]) diff --git a/app/views/api/notes/feed.rss.builder b/app/views/api/notes/feed.rss.builder index 4103a2092..9df3fda3d 100644 --- a/app/views/api/notes/feed.rss.builder +++ b/app/views/api/notes/feed.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.rss("version" => "2.0", diff --git a/app/views/api/notes/index.gpx.builder b/app/views/api/notes/index.gpx.builder index d737752bf..7bbdfc38b 100644 --- a/app/views/api/notes/index.gpx.builder +++ b/app/views/api/notes/index.gpx.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.gpx("version" => "1.1", diff --git a/app/views/api/notes/index.json.jbuilder b/app/views/api/notes/index.json.jbuilder index 5660a8ad5..df7900033 100644 --- a/app/views/api/notes/index.json.jbuilder +++ b/app/views/api/notes/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "FeatureCollection" json.features do diff --git a/app/views/api/notes/index.rss.builder b/app/views/api/notes/index.rss.builder index 95ea0b3b1..8636fcc1f 100644 --- a/app/views/api/notes/index.rss.builder +++ b/app/views/api/notes/index.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.rss("version" => "2.0", diff --git a/app/views/api/notes/index.xml.builder b/app/views/api/notes/index.xml.builder index ebb026e65..82b6e6e17 100644 --- a/app/views/api/notes/index.xml.builder +++ b/app/views/api/notes/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/notes/show.gpx.builder b/app/views/api/notes/show.gpx.builder index 750d01f56..51c1b630e 100644 --- a/app/views/api/notes/show.gpx.builder +++ b/app/views/api/notes/show.gpx.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.gpx("version" => "1.1", diff --git a/app/views/api/notes/show.json.jbuilder b/app/views/api/notes/show.json.jbuilder index 71d9408c2..3c1794445 100644 --- a/app/views/api/notes/show.json.jbuilder +++ b/app/views/api/notes/show.json.jbuilder @@ -1 +1,3 @@ +# frozen_string_literal: true + json.partial! @note diff --git a/app/views/api/notes/show.rss.builder b/app/views/api/notes/show.rss.builder index d5de8abb4..a115b2951 100644 --- a/app/views/api/notes/show.rss.builder +++ b/app/views/api/notes/show.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.rss("version" => "2.0", diff --git a/app/views/api/notes/show.xml.builder b/app/views/api/notes/show.xml.builder index bb87fe762..5265a525a 100644 --- a/app/views/api/notes/show.xml.builder +++ b/app/views/api/notes/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_nodes/_old_node.json.jbuilder b/app/views/api/old_nodes/_old_node.json.jbuilder index 211d50332..9393fee85 100644 --- a/app/views/api/old_nodes/_old_node.json.jbuilder +++ b/app/views/api/old_nodes/_old_node.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "node" json.id old_node.node_id if old_node.visible diff --git a/app/views/api/old_nodes/_old_node.xml.builder b/app/views/api/old_nodes/_old_node.xml.builder index 2a8412af1..d2d210a64 100644 --- a/app/views/api/old_nodes/_old_node.xml.builder +++ b/app/views/api/old_nodes/_old_node.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => old_node.node_id, "visible" => old_node.visible, diff --git a/app/views/api/old_nodes/index.json.jbuilder b/app/views/api/old_nodes/index.json.jbuilder index c59fad402..db5028cea 100644 --- a/app/views/api/old_nodes/index.json.jbuilder +++ b/app/views/api/old_nodes/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_nodes/index.xml.builder b/app/views/api/old_nodes/index.xml.builder index 433f93349..c9a7e236b 100644 --- a/app/views/api/old_nodes/index.xml.builder +++ b/app/views/api/old_nodes/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_nodes/show.json.jbuilder b/app/views/api/old_nodes/show.json.jbuilder index c6929ea82..b8b23568c 100644 --- a/app/views/api/old_nodes/show.json.jbuilder +++ b/app/views/api/old_nodes/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_nodes/show.xml.builder b/app/views/api/old_nodes/show.xml.builder index c7b630d3a..74c9b9c60 100644 --- a/app/views/api/old_nodes/show.xml.builder +++ b/app/views/api/old_nodes/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_relations/_old_relation.json.jbuilder b/app/views/api/old_relations/_old_relation.json.jbuilder index c52ca20de..59d63fee5 100644 --- a/app/views/api/old_relations/_old_relation.json.jbuilder +++ b/app/views/api/old_relations/_old_relation.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "relation" json.id old_relation.relation_id json.timestamp old_relation.timestamp.xmlschema diff --git a/app/views/api/old_relations/_old_relation.xml.builder b/app/views/api/old_relations/_old_relation.xml.builder index 448569899..9ae515779 100644 --- a/app/views/api/old_relations/_old_relation.xml.builder +++ b/app/views/api/old_relations/_old_relation.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => old_relation.relation_id, "visible" => old_relation.visible, diff --git a/app/views/api/old_relations/index.json.jbuilder b/app/views/api/old_relations/index.json.jbuilder index 9925943f8..1156d0ae7 100644 --- a/app/views/api/old_relations/index.json.jbuilder +++ b/app/views/api/old_relations/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_relations/index.xml.builder b/app/views/api/old_relations/index.xml.builder index 433f93349..c9a7e236b 100644 --- a/app/views/api/old_relations/index.xml.builder +++ b/app/views/api/old_relations/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_relations/show.json.jbuilder b/app/views/api/old_relations/show.json.jbuilder index bd767b3df..5863cbe83 100644 --- a/app/views/api/old_relations/show.json.jbuilder +++ b/app/views/api/old_relations/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_relations/show.xml.builder b/app/views/api/old_relations/show.xml.builder index c7b630d3a..74c9b9c60 100644 --- a/app/views/api/old_relations/show.xml.builder +++ b/app/views/api/old_relations/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_ways/_old_way.json.jbuilder b/app/views/api/old_ways/_old_way.json.jbuilder index b2e79f879..d62d252d2 100644 --- a/app/views/api/old_ways/_old_way.json.jbuilder +++ b/app/views/api/old_ways/_old_way.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "way" json.id old_way.way_id json.timestamp old_way.timestamp.xmlschema diff --git a/app/views/api/old_ways/_old_way.xml.builder b/app/views/api/old_ways/_old_way.xml.builder index 246aea659..b54aac871 100644 --- a/app/views/api/old_ways/_old_way.xml.builder +++ b/app/views/api/old_ways/_old_way.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => old_way.way_id, "visible" => old_way.visible, diff --git a/app/views/api/old_ways/index.json.jbuilder b/app/views/api/old_ways/index.json.jbuilder index 90d96320c..f144b440e 100644 --- a/app/views/api/old_ways/index.json.jbuilder +++ b/app/views/api/old_ways/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_ways/index.xml.builder b/app/views/api/old_ways/index.xml.builder index 433f93349..c9a7e236b 100644 --- a/app/views/api/old_ways/index.xml.builder +++ b/app/views/api/old_ways/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/old_ways/show.json.jbuilder b/app/views/api/old_ways/show.json.jbuilder index ee21d0f41..2c12544d9 100644 --- a/app/views/api/old_ways/show.json.jbuilder +++ b/app/views/api/old_ways/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/old_ways/show.xml.builder b/app/views/api/old_ways/show.xml.builder index c7b630d3a..74c9b9c60 100644 --- a/app/views/api/old_ways/show.xml.builder +++ b/app/views/api/old_ways/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/permissions/show.json.jbuilder b/app/views/api/permissions/show.json.jbuilder index ae048bf22..d6323bbc6 100644 --- a/app/views/api/permissions/show.json.jbuilder +++ b/app/views/api/permissions/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.permissions @permissions diff --git a/app/views/api/permissions/show.xml.builder b/app/views/api/permissions/show.xml.builder index f97dd55f8..05385fb67 100644 --- a/app/views/api/permissions/show.xml.builder +++ b/app/views/api/permissions/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # create list of permissions xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do diff --git a/app/views/api/relations/_relation.json.jbuilder b/app/views/api/relations/_relation.json.jbuilder index 52263ce37..dbb9f4623 100644 --- a/app/views/api/relations/_relation.json.jbuilder +++ b/app/views/api/relations/_relation.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "relation" json.id relation.id json.timestamp relation.timestamp.xmlschema diff --git a/app/views/api/relations/_relation.xml.builder b/app/views/api/relations/_relation.xml.builder index f6059c048..dce99c841 100644 --- a/app/views/api/relations/_relation.xml.builder +++ b/app/views/api/relations/_relation.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => relation.id, "visible" => relation.visible, diff --git a/app/views/api/relations/index.json.jbuilder b/app/views/api/relations/index.json.jbuilder index 9b0f65bf1..08271656c 100644 --- a/app/views/api/relations/index.json.jbuilder +++ b/app/views/api/relations/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/relations/index.xml.builder b/app/views/api/relations/index.xml.builder index f39a20bb9..78564ad6e 100644 --- a/app/views/api/relations/index.xml.builder +++ b/app/views/api/relations/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/relations/relations/index.json.jbuilder b/app/views/api/relations/relations/index.json.jbuilder index 1d8b9f2cd..0eca8a586 100644 --- a/app/views/api/relations/relations/index.json.jbuilder +++ b/app/views/api/relations/relations/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/relations/relations/index.xml.builder b/app/views/api/relations/relations/index.xml.builder index efe64f159..3eac7aee8 100644 --- a/app/views/api/relations/relations/index.xml.builder +++ b/app/views/api/relations/relations/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/relations/show.json.jbuilder b/app/views/api/relations/show.json.jbuilder index 16331a89e..b2be849cd 100644 --- a/app/views/api/relations/show.json.jbuilder +++ b/app/views/api/relations/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/relations/show.xml.builder b/app/views/api/relations/show.xml.builder index e23061727..3e9de70b5 100644 --- a/app/views/api/relations/show.xml.builder +++ b/app/views/api/relations/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/tracepoints/index.gpx.builder b/app/views/api/tracepoints/index.gpx.builder index 291ef0d45..b48a8ba5c 100644 --- a/app/views/api/tracepoints/index.gpx.builder +++ b/app/views/api/tracepoints/index.gpx.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.gpx("version" => "1.0", diff --git a/app/views/api/traces/_trace.builder b/app/views/api/traces/_trace.builder index b56c902cd..5208b78ec 100644 --- a/app/views/api/traces/_trace.builder +++ b/app/views/api/traces/_trace.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # basic attributes attrs = { diff --git a/app/views/api/traces/_trace.json.jbuilder b/app/views/api/traces/_trace.json.jbuilder index 6d84ce4b8..c59b73943 100644 --- a/app/views/api/traces/_trace.json.jbuilder +++ b/app/views/api/traces/_trace.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.id trace.id json.name trace.name json.uid trace.user_id diff --git a/app/views/api/traces/show.builder b/app/views/api/traces/show.builder index f4a4e4d2e..f5bbc59a4 100644 --- a/app/views/api/traces/show.builder +++ b/app/views/api/traces/show.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/traces/show.json.jbuilder b/app/views/api/traces/show.json.jbuilder index f750a2f85..e90c9b022 100644 --- a/app/views/api/traces/show.json.jbuilder +++ b/app/views/api/traces/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.trace do diff --git a/app/views/api/user_blocks/_user_block.json.jbuilder b/app/views/api/user_blocks/_user_block.json.jbuilder index 2e65b52da..1c8744ed0 100644 --- a/app/views/api/user_blocks/_user_block.json.jbuilder +++ b/app/views/api/user_blocks/_user_block.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.id user_block.id json.created_at user_block.created_at.xmlschema json.updated_at user_block.updated_at.xmlschema diff --git a/app/views/api/user_blocks/_user_block.xml.builder b/app/views/api/user_blocks/_user_block.xml.builder index 288e89663..0b9d7a7f5 100644 --- a/app/views/api/user_blocks/_user_block.xml.builder +++ b/app/views/api/user_blocks/_user_block.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => user_block.id, "created_at" => user_block.created_at.xmlschema, diff --git a/app/views/api/user_blocks/active_lists/show.json.jbuilder b/app/views/api/user_blocks/active_lists/show.json.jbuilder index aaf1c2119..5733a0a26 100644 --- a/app/views/api/user_blocks/active_lists/show.json.jbuilder +++ b/app/views/api/user_blocks/active_lists/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.user_blocks do diff --git a/app/views/api/user_blocks/active_lists/show.xml.builder b/app/views/api/user_blocks/active_lists/show.xml.builder index 907392646..d2f32ee57 100644 --- a/app/views/api/user_blocks/active_lists/show.xml.builder +++ b/app/views/api/user_blocks/active_lists/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/user_blocks/show.json.jbuilder b/app/views/api/user_blocks/show.json.jbuilder index a90b7cd19..9bb5dc9b3 100644 --- a/app/views/api/user_blocks/show.json.jbuilder +++ b/app/views/api/user_blocks/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.user_block do diff --git a/app/views/api/user_blocks/show.xml.builder b/app/views/api/user_blocks/show.xml.builder index eff666ba7..282b30cad 100644 --- a/app/views/api/user_blocks/show.xml.builder +++ b/app/views/api/user_blocks/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/user_preferences/_user_preference.xml.builder b/app/views/api/user_preferences/_user_preference.xml.builder index ae830bed3..7d03b6d2d 100644 --- a/app/views/api/user_preferences/_user_preference.xml.builder +++ b/app/views/api/user_preferences/_user_preference.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "k" => user_preference.k, "v" => user_preference.v diff --git a/app/views/api/user_preferences/index.json.jbuilder b/app/views/api/user_preferences/index.json.jbuilder index f4f0d284f..744fc68cb 100644 --- a/app/views/api/user_preferences/index.json.jbuilder +++ b/app/views/api/user_preferences/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.preferences(@user_preferences.to_h { |pref| [pref.k, pref.v] }) diff --git a/app/views/api/user_preferences/index.xml.builder b/app/views/api/user_preferences/index.xml.builder index 0a852b269..f54e1074e 100644 --- a/app/views/api/user_preferences/index.xml.builder +++ b/app/views/api/user_preferences/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/users/_user.json.jbuilder b/app/views/api/users/_user.json.jbuilder index 1a339f628..d54c5602b 100644 --- a/app/views/api/users/_user.json.jbuilder +++ b/app/views/api/users/_user.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.user do json.id user.id json.display_name user.display_name diff --git a/app/views/api/users/_user.xml.builder b/app/views/api/users/_user.xml.builder index 9fb74826a..6c2e272d7 100644 --- a/app/views/api/users/_user.xml.builder +++ b/app/views/api/users/_user.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.tag! "user", :id => user.id, :display_name => user.display_name, :account_created => user.created_at.xmlschema do diff --git a/app/views/api/users/index.json.jbuilder b/app/views/api/users/index.json.jbuilder index d2dbd4d4f..f3418ee5a 100644 --- a/app/views/api/users/index.json.jbuilder +++ b/app/views/api/users/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.users do diff --git a/app/views/api/users/index.xml.builder b/app/views/api/users/index.xml.builder index 1b284ef5e..370169c1e 100644 --- a/app/views/api/users/index.xml.builder +++ b/app/views/api/users/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| osm << (render(@users) || "") diff --git a/app/views/api/users/show.json.jbuilder b/app/views/api/users/show.json.jbuilder index b3a86a892..d1ff96da7 100644 --- a/app/views/api/users/show.json.jbuilder +++ b/app/views/api/users/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.partial! @user diff --git a/app/views/api/users/show.xml.builder b/app/views/api/users/show.xml.builder index 96bfdd3fa..04fedb67a 100644 --- a/app/views/api/users/show.xml.builder +++ b/app/views/api/users/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| osm << render(@user) diff --git a/app/views/api/users/traces/index.builder b/app/views/api/users/traces/index.builder index d5287ffbd..f99d747e5 100644 --- a/app/views/api/users/traces/index.builder +++ b/app/views/api/users/traces/index.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/users/traces/index.json.jbuilder b/app/views/api/users/traces/index.json.jbuilder index 0d9c12a1c..1701994e4 100644 --- a/app/views/api/users/traces/index.json.jbuilder +++ b/app/views/api/users/traces/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.traces @traces do |trace| diff --git a/app/views/api/versions/show.builder b/app/views/api/versions/show.builder index ed20915ee..6d6841049 100644 --- a/app/views/api/versions/show.builder +++ b/app/views/api/versions/show.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! :xml, :version => "1.0" xml.osm(OSM::API.new.xml_root_attributes.except("version")) do |osm| osm.api do |api| diff --git a/app/views/api/versions/show.json.jbuilder b/app/views/api/versions/show.json.jbuilder index 7336902bd..1ddb0315f 100644 --- a/app/views/api/versions/show.json.jbuilder +++ b/app/views/api/versions/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.api do diff --git a/app/views/api/ways/_way.json.jbuilder b/app/views/api/ways/_way.json.jbuilder index 11e796bc8..27813f769 100644 --- a/app/views/api/ways/_way.json.jbuilder +++ b/app/views/api/ways/_way.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.type "way" json.id way.id json.timestamp way.timestamp.xmlschema diff --git a/app/views/api/ways/_way.xml.builder b/app/views/api/ways/_way.xml.builder index 9f2e7721c..73e4cf9a0 100644 --- a/app/views/api/ways/_way.xml.builder +++ b/app/views/api/ways/_way.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + attrs = { "id" => way.id, "visible" => way.visible, diff --git a/app/views/api/ways/index.json.jbuilder b/app/views/api/ways/index.json.jbuilder index 7b8de5f1c..2db84e57c 100644 --- a/app/views/api/ways/index.json.jbuilder +++ b/app/views/api/ways/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/ways/index.xml.builder b/app/views/api/ways/index.xml.builder index bcb89cdc6..d450a4e0f 100644 --- a/app/views/api/ways/index.xml.builder +++ b/app/views/api/ways/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/ways/relations/index.json.jbuilder b/app/views/api/ways/relations/index.json.jbuilder index 1d8b9f2cd..0eca8a586 100644 --- a/app/views/api/ways/relations/index.json.jbuilder +++ b/app/views/api/ways/relations/index.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/ways/relations/index.xml.builder b/app/views/api/ways/relations/index.xml.builder index efe64f159..3eac7aee8 100644 --- a/app/views/api/ways/relations/index.xml.builder +++ b/app/views/api/ways/relations/index.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/api/ways/show.json.jbuilder b/app/views/api/ways/show.json.jbuilder index adf8beab2..bce3be5c8 100644 --- a/app/views/api/ways/show.json.jbuilder +++ b/app/views/api/ways/show.json.jbuilder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + json.partial! "api/root_attributes" json.elements do diff --git a/app/views/api/ways/show.xml.builder b/app/views/api/ways/show.xml.builder index 72b22e737..63f98c4b1 100644 --- a/app/views/api/ways/show.xml.builder +++ b/app/views/api/ways/show.xml.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.osm(OSM::API.new.xml_root_attributes) do |osm| diff --git a/app/views/changeset_comments/feeds/_comment.rss.builder b/app/views/changeset_comments/feeds/_comment.rss.builder index 83dfadda8..5cf1918c6 100644 --- a/app/views/changeset_comments/feeds/_comment.rss.builder +++ b/app/views/changeset_comments/feeds/_comment.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.item do xml.title t(".comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s) diff --git a/app/views/changeset_comments/feeds/show.rss.builder b/app/views/changeset_comments/feeds/show.rss.builder index c86b938f7..f886e188f 100644 --- a/app/views/changeset_comments/feeds/show.rss.builder +++ b/app/views/changeset_comments/feeds/show.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do xml.channel do diff --git a/app/views/changeset_comments/feeds/timeout.rss.builder b/app/views/changeset_comments/feeds/timeout.rss.builder index c56ebb879..b336896ae 100644 --- a/app/views/changeset_comments/feeds/timeout.rss.builder +++ b/app/views/changeset_comments/feeds/timeout.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do xml.channel do diff --git a/app/views/changesets/index.atom.builder b/app/views/changesets/index.atom.builder index cd437c637..139a6a6ea 100644 --- a/app/views/changesets/index.atom.builder +++ b/app/views/changesets/index.atom.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + atom_feed(:language => I18n.locale, :schema_date => 2009, :id => url_for(@params.merge(:only_path => false)), :root_url => url_for(@params.merge(:action => :index, :format => nil, :only_path => false)), diff --git a/app/views/changesets/timeout.atom.builder b/app/views/changesets/timeout.atom.builder index b5eeeed4a..47b0fcca9 100644 --- a/app/views/changesets/timeout.atom.builder +++ b/app/views/changesets/timeout.atom.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + atom_feed(:language => I18n.locale, :schema_date => 2009, :id => url_for(params.merge(:only_path => false)), :root_url => url_for(params.merge(:only_path => false, :format => nil)), diff --git a/app/views/diary_entries/rss.rss.builder b/app/views/diary_entries/rss.rss.builder index 2fec0e5e5..4e49c6628 100644 --- a/app/views/diary_entries/rss.rss.builder +++ b/app/views/diary_entries/rss.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.rss("version" => "2.0", diff --git a/app/views/traces/feeds/show.rss.builder b/app/views/traces/feeds/show.rss.builder index dc10a12d6..f510fea35 100644 --- a/app/views/traces/feeds/show.rss.builder +++ b/app/views/traces/feeds/show.rss.builder @@ -1,3 +1,5 @@ +# frozen_string_literal: true + xml.instruct! xml.rss("version" => "2.0", diff --git a/bin/brakeman b/bin/brakeman index ace1c9ba0..48d085099 100755 --- a/bin/brakeman +++ b/bin/brakeman @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "rubygems" require "bundler/setup" diff --git a/bin/bundle b/bin/bundle index 67efc37fb..5015ba6f8 100755 --- a/bin/bundle +++ b/bin/bundle @@ -1,3 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) load Gem.bin_path("bundler", "bundle") diff --git a/bin/dev b/bin/dev index 5f91c2054..6981d9176 100755 --- a/bin/dev +++ b/bin/dev @@ -1,2 +1,4 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + exec "./bin/rails", "server", *ARGV diff --git a/bin/rails b/bin/rails index efc037749..22f2d8dee 100755 --- a/bin/rails +++ b/bin/rails @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + APP_PATH = File.expand_path("../config/application", __dir__) require_relative "../config/boot" require "rails/commands" diff --git a/bin/rake b/bin/rake index 4fbf10b96..e436ea54a 100755 --- a/bin/rake +++ b/bin/rake @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require_relative "../config/boot" require "rake" Rake.application.run diff --git a/bin/rubocop b/bin/rubocop index 40330c0ff..25406fe04 100755 --- a/bin/rubocop +++ b/bin/rubocop @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "rubygems" require "bundler/setup" diff --git a/bin/setup b/bin/setup index b91b090ef..584186c4a 100755 --- a/bin/setup +++ b/bin/setup @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "fileutils" APP_ROOT = File.expand_path("..", __dir__) diff --git a/bin/thrust b/bin/thrust index 36bde2d83..4b1980888 100755 --- a/bin/thrust +++ b/bin/thrust @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "rubygems" require "bundler/setup" diff --git a/bin/update b/bin/update index 7bf318b63..b1c17f472 100755 --- a/bin/update +++ b/bin/update @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "fileutils" include FileUtils diff --git a/bin/yarn b/bin/yarn index 72c7b5d97..35477d30e 100755 --- a/bin/yarn +++ b/bin/yarn @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + APP_ROOT = File.expand_path("..", __dir__) Dir.chdir(APP_ROOT) do yarn = ENV["PATH"].split(File::PATH_SEPARATOR) diff --git a/config.ru b/config.ru index 4a3c09a68..2e0308469 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file is used by Rack-based servers to start the application. require_relative "config/environment" diff --git a/config/application.rb b/config/application.rb index d60ad4c1b..ed33ea990 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "boot" require "rails/all" diff --git a/config/boot.rb b/config/boot.rb index 988a5ddc4..aef6d031e 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. diff --git a/config/environment.rb b/config/environment.rb index cac531577..7df99e89c 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Load the Rails application. require_relative "application" diff --git a/config/environments/development.rb b/config/environments/development.rb index 1836069d1..d9583123c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/config/environments/production.rb b/config/environments/production.rb index 9fc2f1800..ec786b354 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/config/environments/test.rb b/config/environments/test.rb index dc53e144a..0de9b60f4 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb index 9d59656c7..0ba1053f0 100644 --- a/config/initializers/abstract_adapter.rb +++ b/config/initializers/abstract_adapter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter) module OpenStreetMap module AbstractAdapter diff --git a/config/initializers/action_mailer.rb b/config/initializers/action_mailer.rb index 392191259..94c2f2d8d 100644 --- a/config/initializers/action_mailer.rb +++ b/config/initializers/action_mailer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Configure queue to use for ActionMailer deliveries ActionMailer::Base.deliver_later_queue_name = :mailers diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index 6bcaf895f..aad4a2362 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.config.active_storage.queues.analysis = :storage Rails.application.config.active_storage.queues.purge = :storage diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb index 89d2efab2..6d56e4390 100644 --- a/config/initializers/application_controller_renderer.rb +++ b/config/initializers/application_controller_renderer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # ActiveSupport::Reloader.to_prepare do diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index 85ce74f15..7ccee0cbe 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index 33699c309..74f30e887 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/config/initializers/banners.rb b/config/initializers/banners.rb index c7ff281f3..26e6e9982 100644 --- a/config/initializers/banners.rb +++ b/config/initializers/banners.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin BANNERS = YAML.load_file(Rails.root.join("config/banners.yml")).deep_symbolize_keys rescue StandardError diff --git a/config/initializers/better_errors.rb b/config/initializers/better_errors.rb index 50f278c2d..dca8743e2 100644 --- a/config/initializers/better_errors.rb +++ b/config/initializers/better_errors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ENV.fetch("TRUSTED_IPS", "").split.each do |ip| BetterErrors::Middleware.allow_ip! ip end diff --git a/config/initializers/bootstrap_form.rb b/config/initializers/bootstrap_form.rb index 6c8cf4116..a3bc2fa9b 100644 --- a/config/initializers/bootstrap_form.rb +++ b/config/initializers/bootstrap_form.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Include our custom RichtextField input method for `f.richtext_field` in forms Rails.application.reloader.to_prepare do BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField diff --git a/config/initializers/brotli.rb b/config/initializers/brotli.rb index 9e8125b14..408c44e7c 100644 --- a/config/initializers/brotli.rb +++ b/config/initializers/brotli.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.config.assets.configure do |env| env.register_exporter %w[text/* application/javascript application/json application/xml image/x-icon image/svg+xml], Sprockets::ExportersPack::BrotliExporter end diff --git a/config/initializers/browse_icons.rb b/config/initializers/browse_icons.rb index a55df97b6..a4ab97ab4 100644 --- a/config/initializers/browse_icons.rb +++ b/config/initializers/browse_icons.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin BROWSE_ICONS = YAML.load_file(Rails.root.join("config/browse_icons.yml")).transform_values do |tag_key_data| transformed_tag_key_data = {} diff --git a/config/initializers/canonical_rails.rb b/config/initializers/canonical_rails.rb index c2c844047..7a2d675c1 100644 --- a/config/initializers/canonical_rails.rb +++ b/config/initializers/canonical_rails.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + CanonicalRails.setup do |config| # Force the protocol. If you do not specify, the protocol will be based on the incoming request's protocol. diff --git a/config/initializers/compressed_requests.rb b/config/initializers/compressed_requests.rb index 70cde70f8..72bbdcfed 100644 --- a/config/initializers/compressed_requests.rb +++ b/config/initializers/compressed_requests.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenStreetMap class CompressedRequests def initialize(app) diff --git a/config/initializers/config.rb b/config/initializers/config.rb index f36e6ac1a..970dc4875 100644 --- a/config/initializers/config.rb +++ b/config/initializers/config.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Guard against deployments with old-style application.yml configurations # Otherwise, admins might not be aware that they are now silently ignored # and major problems could occur diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 850d973cb..cfa3a5ec7 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy. diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb index 5a6a32d37..ee8dff9c9 100644 --- a/config/initializers/cookies_serializer.rb +++ b/config/initializers/cookies_serializer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 75fe503e3..ddcfd655f 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Allow any and all cross-origin requests to the API. Allow any origin, and diff --git a/config/initializers/errors.rb b/config/initializers/errors.rb index 226c6b9b6..c38c434fe 100644 --- a/config/initializers/errors.rb +++ b/config/initializers/errors.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Rails.application.config.exceptions_app = Rails.application.routes diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index 460804ff0..748af7405 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. diff --git a/config/initializers/gd2.rb b/config/initializers/gd2.rb index 0005bd8be..de2881db8 100644 --- a/config/initializers/gd2.rb +++ b/config/initializers/gd2.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenStreetMap module GD2 module AnimatedGif diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index 839a85a18..daec88bcb 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module I18n module Backend module PluralizationFallback diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 3860f659e..9e049dcc9 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/config/initializers/inline_svg.rb b/config/initializers/inline_svg.rb index 9a117b13e..945c89a4f 100644 --- a/config/initializers/inline_svg.rb +++ b/config/initializers/inline_svg.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenStreetMap class SvgToSymbolTransform < InlineSvg::CustomTransformation def transform(doc) diff --git a/config/initializers/libxml.rb b/config/initializers/libxml.rb index 07f79660f..b7b28dfbe 100644 --- a/config/initializers/libxml.rb +++ b/config/initializers/libxml.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This is required otherwise libxml writes out memory errors to # the standard output and exits uncleanly LibXML::XML::Error.set_handler do |message| diff --git a/config/initializers/mail_delivery_job.rb b/config/initializers/mail_delivery_job.rb index 30b23d2dd..2138ac36c 100644 --- a/config/initializers/mail_delivery_job.rb +++ b/config/initializers/mail_delivery_job.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenStreetMap module ActionMailer module MailDeliveryJob diff --git a/config/initializers/migrate.rb b/config/initializers/migrate.rb index 1af67dd10..7e7ba6c74 100644 --- a/config/initializers/migrate.rb +++ b/config/initializers/migrate.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + if defined?(ActiveRecord::ConnectionAdapters::AbstractAdapter) module OpenStreetMap module PostgreSQL diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 7e10da4fb..dfe8a4014 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/config/initializers/oauth.rb b/config/initializers/oauth.rb index b0b993e90..c1a6da101 100644 --- a/config/initializers/oauth.rb +++ b/config/initializers/oauth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "oauth/helper" module OAuth diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index fbadc13f7..c87fbc02c 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + OmniAuth.config.logger = Rails.logger OmniAuth.config.failure_raise_out_environments = [] OmniAuth.config.allowed_request_methods = [:post, :patch] diff --git a/config/initializers/omniauth_oauth2.rb b/config/initializers/omniauth_oauth2.rb index 238fcbbe5..5df69b2d2 100644 --- a/config/initializers/omniauth_oauth2.rb +++ b/config/initializers/omniauth_oauth2.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OpenStreetMap module OmniAuth module Strategies diff --git a/config/initializers/osm_community_index.rb b/config/initializers/osm_community_index.rb index 0a32bf2eb..468949e17 100644 --- a/config/initializers/osm_community_index.rb +++ b/config/initializers/osm_community_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.configuration.after_initialize do OsmCommunityIndex.add_to_i18n end diff --git a/config/initializers/permissions_policy.rb b/config/initializers/permissions_policy.rb index 7db3b9577..e8d0b2ae8 100644 --- a/config/initializers/permissions_policy.rb +++ b/config/initializers/permissions_policy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Define an application-wide HTTP permissions policy. For further diff --git a/config/initializers/policy_headers.rb b/config/initializers/policy_headers.rb index bfe8bc755..c2894996e 100644 --- a/config/initializers/policy_headers.rb +++ b/config/initializers/policy_headers.rb @@ -1,7 +1,9 @@ +# frozen_string_literal: true + module OpenStreetMap module Rack class PolicyHeaders - COOP_HEADER = "Cross-Origin-Opener-Policy".freeze + COOP_HEADER = "Cross-Origin-Opener-Policy" def initialize(app) @app = app diff --git a/config/initializers/rate_limits.rb b/config/initializers/rate_limits.rb index 5caa3007f..acf46db56 100644 --- a/config/initializers/rate_limits.rb +++ b/config/initializers/rate_limits.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rate_limiter" SIGNUP_IP_LIMITER = if Settings.memcache_servers && Settings.signup_ip_per_day && Settings.signup_ip_max_burst diff --git a/config/initializers/router.rb b/config/initializers/router.rb index 849aba2ad..824fcec02 100644 --- a/config/initializers/router.rb +++ b/config/initializers/router.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Some versions of ruby seem to accidentally force the encoding # as part of normalize_path and some don't diff --git a/config/initializers/rtlcss.rb b/config/initializers/rtlcss.rb index 793c484fc..b8cf1d12f 100644 --- a/config/initializers/rtlcss.rb +++ b/config/initializers/rtlcss.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rtlcss" class RtlcssSCSSProcessor < SassC::Rails::ScssTemplate diff --git a/config/initializers/sanitize.rb b/config/initializers/sanitize.rb index f8f2b784d..1a7a4f487 100644 --- a/config/initializers/sanitize.rb +++ b/config/initializers/sanitize.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Sanitize::Config::OSM = Sanitize::Config.merge( Sanitize::Config::RELAXED, :elements => Sanitize::Config::RELAXED[:elements] - %w[div style], diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 4119064c3..561e01c8e 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. if Settings.key?(:memcache_servers) diff --git a/config/initializers/strong_migrations.rb b/config/initializers/strong_migrations.rb index a2a56074f..0a31bad26 100644 --- a/config/initializers/strong_migrations.rb +++ b/config/initializers/strong_migrations.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + StrongMigrations.start_after = 20190518115041 diff --git a/config/initializers/tag2link.rb b/config/initializers/tag2link.rb index 418cc2a54..771411e3e 100644 --- a/config/initializers/tag2link.rb +++ b/config/initializers/tag2link.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # A map of each OSM key to its formatter URL. For example: # { "ref:vatin" => "https://example.com/$1" } # The JSON data is an array with duplicate entries, which is not efficient for lookups. diff --git a/config/initializers/uri.rb b/config/initializers/uri.rb index 235ed6305..77b138fc2 100644 --- a/config/initializers/uri.rb +++ b/config/initializers/uri.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Allow generic URIs to use the registry format silence_warnings do URI::Generic::USE_REGISTRY = true diff --git a/config/initializers/uri_sanitizer.rb b/config/initializers/uri_sanitizer.rb index 7f3f3d06a..d6fc66d70 100644 --- a/config/initializers/uri_sanitizer.rb +++ b/config/initializers/uri_sanitizer.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + # Add URI sanitizer to rack middleware Rails.configuration.middleware.insert_before Rack::Runtime, Rack::URISanitizer diff --git a/config/initializers/wiki_pages.rb b/config/initializers/wiki_pages.rb index 6720ee778..5582a8bd8 100644 --- a/config/initializers/wiki_pages.rb +++ b/config/initializers/wiki_pages.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + WIKI_PAGES = YAML.load_file(Rails.root.join("config/wiki_pages.yml")) diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb index a02804043..a8f14889d 100644 --- a/config/initializers/wrap_parameters.rb +++ b/config/initializers/wrap_parameters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/config/initializers/zeitwerk.rb b/config/initializers/zeitwerk.rb index 49bd78d8e..228c79e83 100644 --- a/config/initializers/zeitwerk.rb +++ b/config/initializers/zeitwerk.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.autoloaders.each do |autoloader| autoloader.inflector.inflect( "gpx" => "GPX", diff --git a/config/puma.rb b/config/puma.rb index a248513b2..d40e8eb17 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. diff --git a/config/routes.rb b/config/routes.rb index bfbc1477b..3ecd1ec10 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + OpenStreetMap::Application.routes.draw do use_doorkeeper :scope => "oauth2" do controllers :authorizations => "oauth2_authorizations", diff --git a/config/spring.rb b/config/spring.rb index 9fa7863f9..c5933e491 100644 --- a/config/spring.rb +++ b/config/spring.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + %w[ .ruby-version .rbenv-vars diff --git a/db/migrate/001_create_osm_db.rb b/db/migrate/001_create_osm_db.rb index 43e4bf4b2..bdfc7e586 100644 --- a/db/migrate/001_create_osm_db.rb +++ b/db/migrate/001_create_osm_db.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateOsmDb < ActiveRecord::Migration[4.2] def self.up create_table "current_nodes", :id => false do |t| diff --git a/db/migrate/002_cleanup_osm_db.rb b/db/migrate/002_cleanup_osm_db.rb index 23f988dc1..64dcb1a99 100644 --- a/db/migrate/002_cleanup_osm_db.rb +++ b/db/migrate/002_cleanup_osm_db.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CleanupOsmDb < ActiveRecord::Migration[4.2] def self.up change_column "current_nodes", "latitude", :float, :limit => 53, :null => false diff --git a/db/migrate/003_sql_session_store_setup.rb b/db/migrate/003_sql_session_store_setup.rb index 1be5daf7a..4869d0abc 100644 --- a/db/migrate/003_sql_session_store_setup.rb +++ b/db/migrate/003_sql_session_store_setup.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SqlSessionStoreSetup < ActiveRecord::Migration[4.2] def self.up create_table "sessions" do |t| diff --git a/db/migrate/004_user_enhancements.rb b/db/migrate/004_user_enhancements.rb index 5d3bc4858..6607f78a7 100644 --- a/db/migrate/004_user_enhancements.rb +++ b/db/migrate/004_user_enhancements.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UserEnhancements < ActiveRecord::Migration[4.2] def self.up add_column "diary_entries", "latitude", :float, :limit => 53 diff --git a/db/migrate/005_tile_tracepoints.rb b/db/migrate/005_tile_tracepoints.rb index 293b235c6..965b24826 100644 --- a/db/migrate/005_tile_tracepoints.rb +++ b/db/migrate/005_tile_tracepoints.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TileTracepoints < ActiveRecord::Migration[4.2] class Tracepoint < ApplicationRecord self.table_name = "gps_points" diff --git a/db/migrate/006_tile_nodes.rb b/db/migrate/006_tile_nodes.rb index a7f9b1af0..572cc4a62 100644 --- a/db/migrate/006_tile_nodes.rb +++ b/db/migrate/006_tile_nodes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TileNodes < ActiveRecord::Migration[4.2] class Node < ApplicationRecord self.table_name = "current_nodes" diff --git a/db/migrate/007_add_relations.rb b/db/migrate/007_add_relations.rb index 29ba7ee38..917d09250 100644 --- a/db/migrate/007_add_relations.rb +++ b/db/migrate/007_add_relations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddRelations < ActiveRecord::Migration[4.2] def self.up # enums work like strings but are more efficient diff --git a/db/migrate/008_remove_segments.rb b/db/migrate/008_remove_segments.rb index 504528e4c..661386669 100644 --- a/db/migrate/008_remove_segments.rb +++ b/db/migrate/008_remove_segments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RemoveSegments < ActiveRecord::Migration[4.2] def self.up have_segs = select_value("SELECT count(*) FROM current_segments").to_i.nonzero? diff --git a/db/migrate/009_way_nodes_node_idx.rb b/db/migrate/009_way_nodes_node_idx.rb index 0a760c7c6..a14b5b041 100644 --- a/db/migrate/009_way_nodes_node_idx.rb +++ b/db/migrate/009_way_nodes_node_idx.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class WayNodesNodeIdx < ActiveRecord::Migration[4.2] def self.up add_index "way_nodes", ["node_id"], :name => "way_nodes_node_idx" diff --git a/db/migrate/010_diary_comments.rb b/db/migrate/010_diary_comments.rb index 15730bd8e..2e1b50409 100644 --- a/db/migrate/010_diary_comments.rb +++ b/db/migrate/010_diary_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DiaryComments < ActiveRecord::Migration[4.2] def self.up create_table "diary_comments", :id => false do |t| diff --git a/db/migrate/011_add_user_image.rb b/db/migrate/011_add_user_image.rb index 2f53c65fc..3d512274f 100644 --- a/db/migrate/011_add_user_image.rb +++ b/db/migrate/011_add_user_image.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserImage < ActiveRecord::Migration[4.2] def self.up add_column "users", "image", :text diff --git a/db/migrate/012_add_admin_flag.rb b/db/migrate/012_add_admin_flag.rb index 5b28ed9c1..928ef35df 100644 --- a/db/migrate/012_add_admin_flag.rb +++ b/db/migrate/012_add_admin_flag.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddAdminFlag < ActiveRecord::Migration[4.2] def self.up add_column "users", "administrator", :boolean, :default => false, :null => false diff --git a/db/migrate/013_add_email_valid.rb b/db/migrate/013_add_email_valid.rb index e4725b643..5dd235023 100644 --- a/db/migrate/013_add_email_valid.rb +++ b/db/migrate/013_add_email_valid.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddEmailValid < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/014_add_new_email.rb b/db/migrate/014_add_new_email.rb index be41f1fa5..73bec9dd8 100644 --- a/db/migrate/014_add_new_email.rb +++ b/db/migrate/014_add_new_email.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddNewEmail < ActiveRecord::Migration[4.2] def self.up add_column "users", "new_email", :string diff --git a/db/migrate/015_add_user_visible.rb b/db/migrate/015_add_user_visible.rb index 0c7184ada..7b916a94f 100644 --- a/db/migrate/015_add_user_visible.rb +++ b/db/migrate/015_add_user_visible.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserVisible < ActiveRecord::Migration[4.2] def self.up add_column "users", "visible", :boolean, :default => true, :null => false diff --git a/db/migrate/016_add_creation_ip.rb b/db/migrate/016_add_creation_ip.rb index 205fffe8c..dda013f99 100644 --- a/db/migrate/016_add_creation_ip.rb +++ b/db/migrate/016_add_creation_ip.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCreationIp < ActiveRecord::Migration[4.2] def self.up add_column "users", "creation_ip", :string diff --git a/db/migrate/017_add_gpx_indexes.rb b/db/migrate/017_add_gpx_indexes.rb index f24803871..726189cfd 100644 --- a/db/migrate/017_add_gpx_indexes.rb +++ b/db/migrate/017_add_gpx_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddGpxIndexes < ActiveRecord::Migration[4.2] def self.up add_index "gpx_files", ["user_id"], :name => "gpx_files_user_id_idx" diff --git a/db/migrate/018_create_acls.rb b/db/migrate/018_create_acls.rb index ce5b6d4ca..bcca1daa9 100644 --- a/db/migrate/018_create_acls.rb +++ b/db/migrate/018_create_acls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateAcls < ActiveRecord::Migration[4.2] def self.up create_table "acls", :id => false do |t| diff --git a/db/migrate/019_add_timestamp_indexes.rb b/db/migrate/019_add_timestamp_indexes.rb index d7d182f2b..e565311c8 100644 --- a/db/migrate/019_add_timestamp_indexes.rb +++ b/db/migrate/019_add_timestamp_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTimestampIndexes < ActiveRecord::Migration[4.2] def self.up add_index :current_ways, :timestamp, :name => :current_ways_timestamp_idx diff --git a/db/migrate/020_populate_node_tags_and_remove.rb b/db/migrate/020_populate_node_tags_and_remove.rb index 16eafd89d..550dbf459 100644 --- a/db/migrate/020_populate_node_tags_and_remove.rb +++ b/db/migrate/020_populate_node_tags_and_remove.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class PopulateNodeTagsAndRemove < ActiveRecord::Migration[4.2] def self.up have_nodes = select_value("SELECT count(*) FROM current_nodes").to_i.nonzero? diff --git a/db/migrate/021_move_to_innodb.rb b/db/migrate/021_move_to_innodb.rb index 1e09384db..37394c267 100644 --- a/db/migrate/021_move_to_innodb.rb +++ b/db/migrate/021_move_to_innodb.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class MoveToInnodb < ActiveRecord::Migration[4.2] @conv_tables = %w[nodes ways way_tags way_nodes current_way_tags relation_members relations relation_tags current_relation_tags] diff --git a/db/migrate/022_key_constraints.rb b/db/migrate/022_key_constraints.rb index e7840b414..8e0cf3dfa 100644 --- a/db/migrate/022_key_constraints.rb +++ b/db/migrate/022_key_constraints.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class KeyConstraints < ActiveRecord::Migration[4.2] def self.up # Primary keys diff --git a/db/migrate/023_add_changesets.rb b/db/migrate/023_add_changesets.rb index ff6ce2bb4..5c4ab88b1 100644 --- a/db/migrate/023_add_changesets.rb +++ b/db/migrate/023_add_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddChangesets < ActiveRecord::Migration[4.2] @conv_user_tables = %w[current_nodes current_relations current_ways nodes relations ways] diff --git a/db/migrate/024_order_relation_members.rb b/db/migrate/024_order_relation_members.rb index 77ef3a559..b187f88cd 100644 --- a/db/migrate/024_order_relation_members.rb +++ b/db/migrate/024_order_relation_members.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OrderRelationMembers < ActiveRecord::Migration[4.2] def self.up # add sequence column. rails won't let us define an ordering here, diff --git a/db/migrate/025_add_end_time_to_changesets.rb b/db/migrate/025_add_end_time_to_changesets.rb index c25701088..0e33109e7 100644 --- a/db/migrate/025_add_end_time_to_changesets.rb +++ b/db/migrate/025_add_end_time_to_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddEndTimeToChangesets < ActiveRecord::Migration[4.2] def self.up # swap the boolean closed-or-not for a time when the changeset will diff --git a/db/migrate/026_add_changeset_user_index.rb b/db/migrate/026_add_changeset_user_index.rb index 71037560e..326ddc97c 100644 --- a/db/migrate/026_add_changeset_user_index.rb +++ b/db/migrate/026_add_changeset_user_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddChangesetUserIndex < ActiveRecord::Migration[4.2] def self.up add_index "changesets", ["user_id"], :name => "changesets_user_id_idx" diff --git a/db/migrate/027_add_changeset_indexes.rb b/db/migrate/027_add_changeset_indexes.rb index 67866902b..f9bebe593 100644 --- a/db/migrate/027_add_changeset_indexes.rb +++ b/db/migrate/027_add_changeset_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddChangesetIndexes < ActiveRecord::Migration[4.2] def self.up add_index "nodes", ["changeset_id"], :name => "nodes_changeset_id_idx" diff --git a/db/migrate/028_add_more_changeset_indexes.rb b/db/migrate/028_add_more_changeset_indexes.rb index fcbc24ed7..444d07f28 100644 --- a/db/migrate/028_add_more_changeset_indexes.rb +++ b/db/migrate/028_add_more_changeset_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMoreChangesetIndexes < ActiveRecord::Migration[4.2] def self.up enable_extension "btree_gist" diff --git a/db/migrate/029_add_user_foreign_keys.rb b/db/migrate/029_add_user_foreign_keys.rb index 33ba25721..e32310da9 100644 --- a/db/migrate/029_add_user_foreign_keys.rb +++ b/db/migrate/029_add_user_foreign_keys.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserForeignKeys < ActiveRecord::Migration[4.2] def change add_foreign_key :changesets, :users, :name => "changesets_user_id_fkey" diff --git a/db/migrate/030_add_foreign_keys.rb b/db/migrate/030_add_foreign_keys.rb index ded44d772..7481fad40 100644 --- a/db/migrate/030_add_foreign_keys.rb +++ b/db/migrate/030_add_foreign_keys.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddForeignKeys < ActiveRecord::Migration[4.2] def self.up add_foreign_key :changeset_tags, :changesets, :column => :id, :name => "changeset_tags_id_fkey" diff --git a/db/migrate/031_create_countries.rb b/db/migrate/031_create_countries.rb index c26bdd08c..ed74dbd33 100644 --- a/db/migrate/031_create_countries.rb +++ b/db/migrate/031_create_countries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rexml/document" class CreateCountries < ActiveRecord::Migration[4.2] diff --git a/db/migrate/032_add_user_locale.rb b/db/migrate/032_add_user_locale.rb index 54c2eb258..cef24d7f1 100644 --- a/db/migrate/032_add_user_locale.rb +++ b/db/migrate/032_add_user_locale.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserLocale < ActiveRecord::Migration[4.2] def self.up add_column "users", "locale", :string diff --git a/db/migrate/033_change_diary_entries_language.rb b/db/migrate/033_change_diary_entries_language.rb index 6c3ae7de2..654b46af7 100644 --- a/db/migrate/033_change_diary_entries_language.rb +++ b/db/migrate/033_change_diary_entries_language.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangeDiaryEntriesLanguage < ActiveRecord::Migration[4.2] def self.up remove_column "diary_entries", "language" diff --git a/db/migrate/034_create_languages.rb b/db/migrate/034_create_languages.rb index 245903551..ec1c6a88f 100644 --- a/db/migrate/034_create_languages.rb +++ b/db/migrate/034_create_languages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateLanguages < ActiveRecord::Migration[4.2] def change create_table :languages, :id => false do |t| diff --git a/db/migrate/035_change_user_locale.rb b/db/migrate/035_change_user_locale.rb index d1315fa06..9f6477486 100644 --- a/db/migrate/035_change_user_locale.rb +++ b/db/migrate/035_change_user_locale.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangeUserLocale < ActiveRecord::Migration[4.2] def self.up remove_foreign_key :users, :column => :locale, :name => "users_locale_fkey" diff --git a/db/migrate/036_add_visible_to_message.rb b/db/migrate/036_add_visible_to_message.rb index 2cdabd781..f32cf1109 100644 --- a/db/migrate/036_add_visible_to_message.rb +++ b/db/migrate/036_add_visible_to_message.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddVisibleToMessage < ActiveRecord::Migration[4.2] def self.up add_column :messages, :visible, :boolean, :default => true, :null => false diff --git a/db/migrate/037_add_sender_visible_to_message.rb b/db/migrate/037_add_sender_visible_to_message.rb index 05ef2e085..1e48c168d 100644 --- a/db/migrate/037_add_sender_visible_to_message.rb +++ b/db/migrate/037_add_sender_visible_to_message.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddSenderVisibleToMessage < ActiveRecord::Migration[4.2] def self.up rename_column :messages, :visible, :to_user_visible diff --git a/db/migrate/038_add_message_sender_index.rb b/db/migrate/038_add_message_sender_index.rb index b862b1cc4..befad2785 100644 --- a/db/migrate/038_add_message_sender_index.rb +++ b/db/migrate/038_add_message_sender_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMessageSenderIndex < ActiveRecord::Migration[4.2] def self.up add_index :messages, [:from_user_id], :name => "messages_from_user_id_idx" diff --git a/db/migrate/039_add_more_controls_to_gpx_files.rb b/db/migrate/039_add_more_controls_to_gpx_files.rb index 9f6d62148..5b089799c 100644 --- a/db/migrate/039_add_more_controls_to_gpx_files.rb +++ b/db/migrate/039_add_more_controls_to_gpx_files.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMoreControlsToGpxFiles < ActiveRecord::Migration[4.2] class Trace < ApplicationRecord self.table_name = "gpx_files" diff --git a/db/migrate/040_create_oauth_tables.rb b/db/migrate/040_create_oauth_tables.rb index 5306b173e..feb898cb2 100644 --- a/db/migrate/040_create_oauth_tables.rb +++ b/db/migrate/040_create_oauth_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateOauthTables < ActiveRecord::Migration[4.2] def self.up create_table :client_applications do |t| diff --git a/db/migrate/041_add_fine_o_auth_permissions.rb b/db/migrate/041_add_fine_o_auth_permissions.rb index 59172fed9..325e28aa1 100644 --- a/db/migrate/041_add_fine_o_auth_permissions.rb +++ b/db/migrate/041_add_fine_o_auth_permissions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddFineOAuthPermissions < ActiveRecord::Migration[4.2] PERMISSIONS = [:allow_read_prefs, :allow_write_prefs, :allow_write_diary, :allow_write_api, :allow_read_gpx, :allow_write_gpx].freeze diff --git a/db/migrate/042_add_foreign_keys_to_oauth_tables.rb b/db/migrate/042_add_foreign_keys_to_oauth_tables.rb index a57fe9885..27b2c9c9a 100644 --- a/db/migrate/042_add_foreign_keys_to_oauth_tables.rb +++ b/db/migrate/042_add_foreign_keys_to_oauth_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddForeignKeysToOauthTables < ActiveRecord::Migration[4.2] def change add_foreign_key :oauth_tokens, :users, :name => "oauth_tokens_user_id_fkey" diff --git a/db/migrate/043_add_referer_to_user_token.rb b/db/migrate/043_add_referer_to_user_token.rb index 143ac758b..a2d6c9c28 100644 --- a/db/migrate/043_add_referer_to_user_token.rb +++ b/db/migrate/043_add_referer_to_user_token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddRefererToUserToken < ActiveRecord::Migration[4.2] def self.up add_column :user_tokens, :referer, :text diff --git a/db/migrate/044_create_user_roles.rb b/db/migrate/044_create_user_roles.rb index ca00d15d4..ca87c41df 100644 --- a/db/migrate/044_create_user_roles.rb +++ b/db/migrate/044_create_user_roles.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateUserRoles < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/045_create_user_blocks.rb b/db/migrate/045_create_user_blocks.rb index 4328e0b97..ec174fa7c 100644 --- a/db/migrate/045_create_user_blocks.rb +++ b/db/migrate/045_create_user_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateUserBlocks < ActiveRecord::Migration[4.2] def change create_table :user_blocks do |t| diff --git a/db/migrate/046_alter_user_roles_and_blocks.rb b/db/migrate/046_alter_user_roles_and_blocks.rb index c1d3cd987..8fce0029b 100644 --- a/db/migrate/046_alter_user_roles_and_blocks.rb +++ b/db/migrate/046_alter_user_roles_and_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AlterUserRolesAndBlocks < ActiveRecord::Migration[4.2] class UserRole < ApplicationRecord end diff --git a/db/migrate/047_add_visible_to_diaries.rb b/db/migrate/047_add_visible_to_diaries.rb index 86a491da7..90692ba4b 100644 --- a/db/migrate/047_add_visible_to_diaries.rb +++ b/db/migrate/047_add_visible_to_diaries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddVisibleToDiaries < ActiveRecord::Migration[4.2] def self.up add_column :diary_entries, :visible, :boolean, :null => false, :default => true diff --git a/db/migrate/048_add_diary_creation_indexes.rb b/db/migrate/048_add_diary_creation_indexes.rb index 36390255b..127f6b26c 100644 --- a/db/migrate/048_add_diary_creation_indexes.rb +++ b/db/migrate/048_add_diary_creation_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDiaryCreationIndexes < ActiveRecord::Migration[4.2] def self.up add_index :diary_entries, [:created_at], :name => "diary_entry_created_at_index" diff --git a/db/migrate/049_improve_changeset_user_index.rb b/db/migrate/049_improve_changeset_user_index.rb index b58860d60..07ce33bcf 100644 --- a/db/migrate/049_improve_changeset_user_index.rb +++ b/db/migrate/049_improve_changeset_user_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ImproveChangesetUserIndex < ActiveRecord::Migration[4.2] def self.up add_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx" diff --git a/db/migrate/050_add_user_index_to_diary_comments.rb b/db/migrate/050_add_user_index_to_diary_comments.rb index 70eb88b00..075a97b23 100644 --- a/db/migrate/050_add_user_index_to_diary_comments.rb +++ b/db/migrate/050_add_user_index_to_diary_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserIndexToDiaryComments < ActiveRecord::Migration[4.2] def self.up add_index :diary_comments, [:user_id, :created_at], :name => "diary_comment_user_id_created_at_index" diff --git a/db/migrate/051_add_status_to_user.rb b/db/migrate/051_add_status_to_user.rb index bea9f125f..f3a0dd69a 100644 --- a/db/migrate/051_add_status_to_user.rb +++ b/db/migrate/051_add_status_to_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddStatusToUser < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/052_add_contributor_terms_to_user.rb b/db/migrate/052_add_contributor_terms_to_user.rb index 2169b9126..049da3007 100644 --- a/db/migrate/052_add_contributor_terms_to_user.rb +++ b/db/migrate/052_add_contributor_terms_to_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddContributorTermsToUser < ActiveRecord::Migration[4.2] def self.up add_column :users, :terms_agreed, :datetime diff --git a/db/migrate/053_add_map_bug_tables.rb b/db/migrate/053_add_map_bug_tables.rb index 682a736d0..6cb686b57 100644 --- a/db/migrate/053_add_map_bug_tables.rb +++ b/db/migrate/053_add_map_bug_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMapBugTables < ActiveRecord::Migration[4.2] def self.up create_enum :map_bug_status_enum, %w[open closed hidden] diff --git a/db/migrate/054_refactor_map_bug_tables.rb b/db/migrate/054_refactor_map_bug_tables.rb index 23221c7b1..409d8d566 100644 --- a/db/migrate/054_refactor_map_bug_tables.rb +++ b/db/migrate/054_refactor_map_bug_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RefactorMapBugTables < ActiveRecord::Migration[4.2] def self.up create_table :map_bug_comment do |t| diff --git a/db/migrate/055_change_map_bug_comment_type.rb b/db/migrate/055_change_map_bug_comment_type.rb index 1fab93b44..cf71d3eb7 100644 --- a/db/migrate/055_change_map_bug_comment_type.rb +++ b/db/migrate/055_change_map_bug_comment_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangeMapBugCommentType < ActiveRecord::Migration[4.2] def self.up change_column :map_bug_comment, :comment, :text diff --git a/db/migrate/056_add_date_closed.rb b/db/migrate/056_add_date_closed.rb index b6da41466..3ea5ce813 100644 --- a/db/migrate/056_add_date_closed.rb +++ b/db/migrate/056_add_date_closed.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDateClosed < ActiveRecord::Migration[4.2] def self.up add_column :map_bugs, :date_closed, :timestamp diff --git a/db/migrate/057_add_map_bug_comment_event.rb b/db/migrate/057_add_map_bug_comment_event.rb index 087d0f692..6e2d0b26c 100644 --- a/db/migrate/057_add_map_bug_comment_event.rb +++ b/db/migrate/057_add_map_bug_comment_event.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMapBugCommentEvent < ActiveRecord::Migration[4.2] def self.up create_enum :map_bug_event_enum, %w[opened closed reopened commented hidden] diff --git a/db/migrate/20100513171259_add_user_date_index_to_changeset.rb b/db/migrate/20100513171259_add_user_date_index_to_changeset.rb index d15cad5ed..1bb26f44e 100644 --- a/db/migrate/20100513171259_add_user_date_index_to_changeset.rb +++ b/db/migrate/20100513171259_add_user_date_index_to_changeset.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserDateIndexToChangeset < ActiveRecord::Migration[4.2] def self.up add_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx" diff --git a/db/migrate/20100516124737_add_open_id.rb b/db/migrate/20100516124737_add_open_id.rb index 4b686beb4..6845f6e6b 100644 --- a/db/migrate/20100516124737_add_open_id.rb +++ b/db/migrate/20100516124737_add_open_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddOpenId < ActiveRecord::Migration[4.2] def self.up add_column :users, :openid_url, :string diff --git a/db/migrate/20100910084426_add_callback_to_oauth_tokens.rb b/db/migrate/20100910084426_add_callback_to_oauth_tokens.rb index 65e42eab7..ad47c79c7 100644 --- a/db/migrate/20100910084426_add_callback_to_oauth_tokens.rb +++ b/db/migrate/20100910084426_add_callback_to_oauth_tokens.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCallbackToOauthTokens < ActiveRecord::Migration[4.2] def self.up add_column :oauth_tokens, :callback_url, :string diff --git a/db/migrate/20101114011429_add_editor_preference_to_user.rb b/db/migrate/20101114011429_add_editor_preference_to_user.rb index 85d9a9399..2ce8d87b5 100644 --- a/db/migrate/20101114011429_add_editor_preference_to_user.rb +++ b/db/migrate/20101114011429_add_editor_preference_to_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddEditorPreferenceToUser < ActiveRecord::Migration[4.2] def self.up add_column :users, :preferred_editor, :string diff --git a/db/migrate/20110322001319_add_terms_seen_to_user.rb b/db/migrate/20110322001319_add_terms_seen_to_user.rb index 824eaceb0..0a4e3ad6d 100644 --- a/db/migrate/20110322001319_add_terms_seen_to_user.rb +++ b/db/migrate/20110322001319_add_terms_seen_to_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTermsSeenToUser < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/20110508145337_cleanup_bug_tables.rb b/db/migrate/20110508145337_cleanup_bug_tables.rb index 763b456a9..0b91c78c5 100644 --- a/db/migrate/20110508145337_cleanup_bug_tables.rb +++ b/db/migrate/20110508145337_cleanup_bug_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CleanupBugTables < ActiveRecord::Migration[4.2] def self.up rename_column :map_bugs, :date_created, :created_at diff --git a/db/migrate/20110521142405_rename_bugs_to_notes.rb b/db/migrate/20110521142405_rename_bugs_to_notes.rb index 2e90b5ce8..f472d0deb 100644 --- a/db/migrate/20110521142405_rename_bugs_to_notes.rb +++ b/db/migrate/20110521142405_rename_bugs_to_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RenameBugsToNotes < ActiveRecord::Migration[4.2] def self.up rename_enum "map_bug_status_enum", :to => "note_status_enum" diff --git a/db/migrate/20110925112722_rename_ids.rb b/db/migrate/20110925112722_rename_ids.rb index 661e405af..7f6fe6525 100644 --- a/db/migrate/20110925112722_rename_ids.rb +++ b/db/migrate/20110925112722_rename_ids.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RenameIds < ActiveRecord::Migration[4.2] def change rename_column :changeset_tags, :id, :changeset_id diff --git a/db/migrate/20111116184519_update_oauth.rb b/db/migrate/20111116184519_update_oauth.rb index 07b17c05a..aaec0e386 100644 --- a/db/migrate/20111116184519_update_oauth.rb +++ b/db/migrate/20111116184519_update_oauth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UpdateOauth < ActiveRecord::Migration[4.2] def up add_column :oauth_tokens, :scope, :string diff --git a/db/migrate/20111212183945_add_lowercase_user_indexes.rb b/db/migrate/20111212183945_add_lowercase_user_indexes.rb index b2c7f6fb1..8984bda43 100644 --- a/db/migrate/20111212183945_add_lowercase_user_indexes.rb +++ b/db/migrate/20111212183945_add_lowercase_user_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddLowercaseUserIndexes < ActiveRecord::Migration[4.2] def up add_index :users, "LOWER(display_name)", :name => "users_display_name_lower_idx" diff --git a/db/migrate/20120123184321_switch_to_paperclip.rb b/db/migrate/20120123184321_switch_to_paperclip.rb index d5d8908c1..b47633d48 100644 --- a/db/migrate/20120123184321_switch_to_paperclip.rb +++ b/db/migrate/20120123184321_switch_to_paperclip.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SwitchToPaperclip < ActiveRecord::Migration[4.2] def up rename_column :users, :image, :image_file_name diff --git a/db/migrate/20120208122334_merge_acl_address_and_mask.rb b/db/migrate/20120208122334_merge_acl_address_and_mask.rb index 5cac10740..8a9eded66 100644 --- a/db/migrate/20120208122334_merge_acl_address_and_mask.rb +++ b/db/migrate/20120208122334_merge_acl_address_and_mask.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "ipaddr" class IPAddr diff --git a/db/migrate/20120208194454_add_domain_to_acl.rb b/db/migrate/20120208194454_add_domain_to_acl.rb index 51f114758..dbe491b6a 100644 --- a/db/migrate/20120208194454_add_domain_to_acl.rb +++ b/db/migrate/20120208194454_add_domain_to_acl.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDomainToAcl < ActiveRecord::Migration[4.2] def up add_column :acls, :domain, :string diff --git a/db/migrate/20120214210114_add_text_format.rb b/db/migrate/20120214210114_add_text_format.rb index 2fcb77d46..b48bcc994 100644 --- a/db/migrate/20120214210114_add_text_format.rb +++ b/db/migrate/20120214210114_add_text_format.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTextFormat < ActiveRecord::Migration[4.2] def up create_enum :format_enum, %w[html markdown text] diff --git a/db/migrate/20120219161649_add_user_image_fingerprint.rb b/db/migrate/20120219161649_add_user_image_fingerprint.rb index 3610281bc..292d4b580 100644 --- a/db/migrate/20120219161649_add_user_image_fingerprint.rb +++ b/db/migrate/20120219161649_add_user_image_fingerprint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserImageFingerprint < ActiveRecord::Migration[4.2] def up add_column :users, :image_fingerprint, :string, :null => true diff --git a/db/migrate/20120318201948_create_redactions.rb b/db/migrate/20120318201948_create_redactions.rb index 3f6eec613..9ba6993b5 100644 --- a/db/migrate/20120318201948_create_redactions.rb +++ b/db/migrate/20120318201948_create_redactions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateRedactions < ActiveRecord::Migration[4.2] def change create_table :redactions do |t| diff --git a/db/migrate/20120328090602_drop_session_table.rb b/db/migrate/20120328090602_drop_session_table.rb index 7046281df..c5c4896b7 100644 --- a/db/migrate/20120328090602_drop_session_table.rb +++ b/db/migrate/20120328090602_drop_session_table.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropSessionTable < ActiveRecord::Migration[4.2] def up drop_table "sessions" diff --git a/db/migrate/20120404205604_add_user_and_description_to_redaction.rb b/db/migrate/20120404205604_add_user_and_description_to_redaction.rb index 56ef05253..62cd7ed75 100644 --- a/db/migrate/20120404205604_add_user_and_description_to_redaction.rb +++ b/db/migrate/20120404205604_add_user_and_description_to_redaction.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserAndDescriptionToRedaction < ActiveRecord::Migration[4.2] def change add_column :redactions, :user_id, :bigint, :null => false diff --git a/db/migrate/20120808231205_add_counter_caches.rb b/db/migrate/20120808231205_add_counter_caches.rb index f29bfbb0e..5e75e98ce 100644 --- a/db/migrate/20120808231205_add_counter_caches.rb +++ b/db/migrate/20120808231205_add_counter_caches.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCounterCaches < ActiveRecord::Migration[4.2] class Changeset < ApplicationRecord end diff --git a/db/migrate/20121005195010_add_diary_entry_counter_caches.rb b/db/migrate/20121005195010_add_diary_entry_counter_caches.rb index ec05f3464..ab4afa4e9 100644 --- a/db/migrate/20121005195010_add_diary_entry_counter_caches.rb +++ b/db/migrate/20121005195010_add_diary_entry_counter_caches.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDiaryEntryCounterCaches < ActiveRecord::Migration[4.2] class DiaryEntry < ApplicationRecord end diff --git a/db/migrate/20121012044047_add_image_use_gravatar_to_users.rb b/db/migrate/20121012044047_add_image_use_gravatar_to_users.rb index dd18b068d..8f3daff55 100644 --- a/db/migrate/20121012044047_add_image_use_gravatar_to_users.rb +++ b/db/migrate/20121012044047_add_image_use_gravatar_to_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddImageUseGravatarToUsers < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/20121119165817_drop_nearby_place_from_notes.rb b/db/migrate/20121119165817_drop_nearby_place_from_notes.rb index 7e6f27f99..9a86d26ee 100644 --- a/db/migrate/20121119165817_drop_nearby_place_from_notes.rb +++ b/db/migrate/20121119165817_drop_nearby_place_from_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropNearbyPlaceFromNotes < ActiveRecord::Migration[4.2] def up remove_column :notes, :nearby_place diff --git a/db/migrate/20121202155309_remove_author_name_from_note_comment.rb b/db/migrate/20121202155309_remove_author_name_from_note_comment.rb index 758df5c37..f47c51d14 100644 --- a/db/migrate/20121202155309_remove_author_name_from_note_comment.rb +++ b/db/migrate/20121202155309_remove_author_name_from_note_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RemoveAuthorNameFromNoteComment < ActiveRecord::Migration[4.2] def up remove_column :note_comments, :author_name diff --git a/db/migrate/20121203124841_change_note_address_to_inet.rb b/db/migrate/20121203124841_change_note_address_to_inet.rb index e2956daf9..a0ef1b8f1 100644 --- a/db/migrate/20121203124841_change_note_address_to_inet.rb +++ b/db/migrate/20121203124841_change_note_address_to_inet.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangeNoteAddressToInet < ActiveRecord::Migration[4.2] def up execute "ALTER TABLE note_comments ALTER COLUMN author_ip TYPE inet USING CAST(author_ip AS inet)" diff --git a/db/migrate/20130328184137_add_write_notes_permission.rb b/db/migrate/20130328184137_add_write_notes_permission.rb index 254b5a0ee..567702128 100644 --- a/db/migrate/20130328184137_add_write_notes_permission.rb +++ b/db/migrate/20130328184137_add_write_notes_permission.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddWriteNotesPermission < ActiveRecord::Migration[4.2] def up add_column :oauth_tokens, :allow_write_notes, :boolean, :null => false, :default => false diff --git a/db/migrate/20131212124700_add_created_at_index_to_note_comments.rb b/db/migrate/20131212124700_add_created_at_index_to_note_comments.rb index 309af1d26..b2266d429 100644 --- a/db/migrate/20131212124700_add_created_at_index_to_note_comments.rb +++ b/db/migrate/20131212124700_add_created_at_index_to_note_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCreatedAtIndexToNoteComments < ActiveRecord::Migration[4.2] def change add_index :note_comments, :created_at diff --git a/db/migrate/20140115192822_add_text_index_to_note_comments.rb b/db/migrate/20140115192822_add_text_index_to_note_comments.rb index 2dadfee98..48a7557f2 100644 --- a/db/migrate/20140115192822_add_text_index_to_note_comments.rb +++ b/db/migrate/20140115192822_add_text_index_to_note_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTextIndexToNoteComments < ActiveRecord::Migration[4.2] def up add_index :note_comments, "to_tsvector('english', body)", :using => "GIN", :name => "index_note_comments_on_body" diff --git a/db/migrate/20140117185510_drop_countries.rb b/db/migrate/20140117185510_drop_countries.rb index 1102cbc88..4d3def16e 100644 --- a/db/migrate/20140117185510_drop_countries.rb +++ b/db/migrate/20140117185510_drop_countries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropCountries < ActiveRecord::Migration[4.2] def up drop_table :countries diff --git a/db/migrate/20140210003018_add_user_image_content_type.rb b/db/migrate/20140210003018_add_user_image_content_type.rb index cfad48d96..7b88cdf27 100644 --- a/db/migrate/20140210003018_add_user_image_content_type.rb +++ b/db/migrate/20140210003018_add_user_image_content_type.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserImageContentType < ActiveRecord::Migration[4.2] def change add_column :users, :image_content_type, :string diff --git a/db/migrate/20140507110937_create_changeset_comments.rb b/db/migrate/20140507110937_create_changeset_comments.rb index 796919c51..c01bd0e47 100644 --- a/db/migrate/20140507110937_create_changeset_comments.rb +++ b/db/migrate/20140507110937_create_changeset_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateChangesetComments < ActiveRecord::Migration[4.2] def change create_table :changeset_comments do |t| diff --git a/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb b/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb index 221a740c5..77d3c6a5c 100644 --- a/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb +++ b/db/migrate/20140519141742_add_join_table_between_users_and_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration[4.2] def change create_table :changesets_subscribers, :id => false do |t| diff --git a/db/migrate/20150110152606_change_default_formats.rb b/db/migrate/20150110152606_change_default_formats.rb index 33de9b9c3..d37210980 100644 --- a/db/migrate/20150110152606_change_default_formats.rb +++ b/db/migrate/20150110152606_change_default_formats.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ChangeDefaultFormats < ActiveRecord::Migration[4.2] def up change_column_default :diary_entries, :body_format, "markdown" diff --git a/db/migrate/20150111192335_subscribe_old_changesets.rb b/db/migrate/20150111192335_subscribe_old_changesets.rb index 41d139ca4..9a27f5adc 100644 --- a/db/migrate/20150111192335_subscribe_old_changesets.rb +++ b/db/migrate/20150111192335_subscribe_old_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SubscribeOldChangesets < ActiveRecord::Migration[4.2] def up; end diff --git a/db/migrate/20150222101847_rename_openid_url.rb b/db/migrate/20150222101847_rename_openid_url.rb index 06b399615..de89b9dc1 100644 --- a/db/migrate/20150222101847_rename_openid_url.rb +++ b/db/migrate/20150222101847_rename_openid_url.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RenameOpenidUrl < ActiveRecord::Migration[4.2] class User < ApplicationRecord end diff --git a/db/migrate/20150818224516_set_default_gravatar_to_false_for_privacy.rb b/db/migrate/20150818224516_set_default_gravatar_to_false_for_privacy.rb index 4d4ef0296..11a9236b2 100644 --- a/db/migrate/20150818224516_set_default_gravatar_to_false_for_privacy.rb +++ b/db/migrate/20150818224516_set_default_gravatar_to_false_for_privacy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SetDefaultGravatarToFalseForPrivacy < ActiveRecord::Migration[4.2] def up change_column :users, :image_use_gravatar, :boolean, :default => false diff --git a/db/migrate/20160822153055_create_issues_and_reports.rb b/db/migrate/20160822153055_create_issues_and_reports.rb index 83a9d9171..e427426e7 100644 --- a/db/migrate/20160822153055_create_issues_and_reports.rb +++ b/db/migrate/20160822153055_create_issues_and_reports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateIssuesAndReports < ActiveRecord::Migration[5.0] def up create_enum :issue_status_enum, %w[open ignored resolved] diff --git a/db/migrate/20161002153425_add_join_table_between_users_and_diary_entries.rb b/db/migrate/20161002153425_add_join_table_between_users_and_diary_entries.rb index 4151d19a3..73c4295df 100644 --- a/db/migrate/20161002153425_add_join_table_between_users_and_diary_entries.rb +++ b/db/migrate/20161002153425_add_join_table_between_users_and_diary_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddJoinTableBetweenUsersAndDiaryEntries < ActiveRecord::Migration[4.2] def self.up create_table :diary_entry_subscriptions, :id => false do |t| diff --git a/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb b/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb index 996d2c9b2..ca65c6ac6 100644 --- a/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb +++ b/db/migrate/20161011010929_subscribe_authors_to_diary_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class SubscribeAuthorsToDiaryEntries < ActiveRecord::Migration[4.2] def up; end diff --git a/db/migrate/20170222134109_add_user_indexes.rb b/db/migrate/20170222134109_add_user_indexes.rb index 97ae11f78..e3b9c5afe 100644 --- a/db/migrate/20170222134109_add_user_indexes.rb +++ b/db/migrate/20170222134109_add_user_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserIndexes < ActiveRecord::Migration[4.2] def change add_index :oauth_tokens, [:user_id] diff --git a/db/migrate/20180204153242_tile_users.rb b/db/migrate/20180204153242_tile_users.rb index 53cea91cf..9084d2130 100644 --- a/db/migrate/20180204153242_tile_users.rb +++ b/db/migrate/20180204153242_tile_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class TileUsers < ActiveRecord::Migration[5.1] class User < ApplicationRecord end diff --git a/db/migrate/20181020114000_add_user_tou_agreed.rb b/db/migrate/20181020114000_add_user_tou_agreed.rb index ea89c6c09..94824d9de 100644 --- a/db/migrate/20181020114000_add_user_tou_agreed.rb +++ b/db/migrate/20181020114000_add_user_tou_agreed.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserTouAgreed < ActiveRecord::Migration[5.1] def change add_column :users, :tou_agreed, :datetime diff --git a/db/migrate/20181031113522_create_delayed_jobs.rb b/db/migrate/20181031113522_create_delayed_jobs.rb index 69c6f1b04..f10b0b278 100644 --- a/db/migrate/20181031113522_create_delayed_jobs.rb +++ b/db/migrate/20181031113522_create_delayed_jobs.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateDelayedJobs < ActiveRecord::Migration[5.2] def self.up create_table :delayed_jobs, :force => true do |table| diff --git a/db/migrate/20190518115041_add_acl_indexes.rb b/db/migrate/20190518115041_add_acl_indexes.rb index a66d820bc..a4afd82aa 100644 --- a/db/migrate/20190518115041_add_acl_indexes.rb +++ b/db/migrate/20190518115041_add_acl_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddAclIndexes < ActiveRecord::Migration[5.2] def change add_index :acls, :domain diff --git a/db/migrate/20190623093642_add_mx_acls.rb b/db/migrate/20190623093642_add_mx_acls.rb index 754e2ee99..35aa77198 100644 --- a/db/migrate/20190623093642_add_mx_acls.rb +++ b/db/migrate/20190623093642_add_mx_acls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMxAcls < ActiveRecord::Migration[5.2] def change add_column :acls, :mx, :string diff --git a/db/migrate/20190702193519_create_active_storage_tables.rb b/db/migrate/20190702193519_create_active_storage_tables.rb index 1968b7b8a..1d0d46adf 100644 --- a/db/migrate/20190702193519_create_active_storage_tables.rb +++ b/db/migrate/20190702193519_create_active_storage_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from active_storage (originally 20170806125915) class CreateActiveStorageTables < ActiveRecord::Migration[5.2] def change diff --git a/db/migrate/20190716173946_remove_user_images.rb b/db/migrate/20190716173946_remove_user_images.rb index 9c68bede6..bfb7be3d8 100644 --- a/db/migrate/20190716173946_remove_user_images.rb +++ b/db/migrate/20190716173946_remove_user_images.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RemoveUserImages < ActiveRecord::Migration[5.2] def change safety_assured do diff --git a/db/migrate/20191120140058_remove_nearby_from_users.rb b/db/migrate/20191120140058_remove_nearby_from_users.rb index 7d9383dc6..8702e0d85 100644 --- a/db/migrate/20191120140058_remove_nearby_from_users.rb +++ b/db/migrate/20191120140058_remove_nearby_from_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RemoveNearbyFromUsers < ActiveRecord::Migration[5.2] def change # We've already ignored this column in the model, so it is safe to remove diff --git a/db/migrate/20201006213836_add_author_index_to_changeset_comments.rb b/db/migrate/20201006213836_add_author_index_to_changeset_comments.rb index fd2af3399..f87ce2fb0 100644 --- a/db/migrate/20201006213836_add_author_index_to_changeset_comments.rb +++ b/db/migrate/20201006213836_add_author_index_to_changeset_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddAuthorIndexToChangesetComments < ActiveRecord::Migration[6.0] disable_ddl_transaction! diff --git a/db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb b/db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb index 9a285e6a8..4e4dbb5cd 100644 --- a/db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb +++ b/db/migrate/20201006220807_add_changeset_index_to_changeset_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddChangesetIndexToChangesetComments < ActiveRecord::Migration[6.0] disable_ddl_transaction! diff --git a/db/migrate/20201214144017_expand_nonce_id.rb b/db/migrate/20201214144017_expand_nonce_id.rb index 1baa286fb..86df633ff 100644 --- a/db/migrate/20201214144017_expand_nonce_id.rb +++ b/db/migrate/20201214144017_expand_nonce_id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ExpandNonceId < ActiveRecord::Migration[6.0] def up safety_assured do diff --git a/db/migrate/20210510083027_add_service_name_to_active_storage_blobs.active_storage.rb b/db/migrate/20210510083027_add_service_name_to_active_storage_blobs.active_storage.rb index 97a1ff2b6..763a5e7ee 100644 --- a/db/migrate/20210510083027_add_service_name_to_active_storage_blobs.active_storage.rb +++ b/db/migrate/20210510083027_add_service_name_to_active_storage_blobs.active_storage.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from active_storage (originally 20190112182829) class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] def up diff --git a/db/migrate/20210510083028_create_active_storage_variant_records.active_storage.rb b/db/migrate/20210510083028_create_active_storage_variant_records.active_storage.rb index 1b013386a..91dec88c1 100644 --- a/db/migrate/20210510083028_create_active_storage_variant_records.active_storage.rb +++ b/db/migrate/20210510083028_create_active_storage_variant_records.active_storage.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from active_storage (originally 20191206030411) class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0] def change diff --git a/db/migrate/20210511104518_add_time_to_friendships.rb b/db/migrate/20210511104518_add_time_to_friendships.rb index 4f426a63f..1d6eb2066 100644 --- a/db/migrate/20210511104518_add_time_to_friendships.rb +++ b/db/migrate/20210511104518_add_time_to_friendships.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTimeToFriendships < ActiveRecord::Migration[6.0] disable_ddl_transaction! diff --git a/db/migrate/20211216185316_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb b/db/migrate/20211216185316_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb index da8f3f14e..a6bfd4450 100644 --- a/db/migrate/20211216185316_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb +++ b/db/migrate/20211216185316_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This migration comes from active_storage (originally 20211119233751) class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0] def change diff --git a/db/migrate/20220201183346_add_author_index_to_note_comments.rb b/db/migrate/20220201183346_add_author_index_to_note_comments.rb index 57f1f064b..888bc0300 100644 --- a/db/migrate/20220201183346_add_author_index_to_note_comments.rb +++ b/db/migrate/20220201183346_add_author_index_to_note_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddAuthorIndexToNoteComments < ActiveRecord::Migration[6.1] disable_ddl_transaction! diff --git a/db/migrate/20220223140543_remove_id_defaults.rb b/db/migrate/20220223140543_remove_id_defaults.rb index 5ce01f9a4..cfcc330e2 100644 --- a/db/migrate/20220223140543_remove_id_defaults.rb +++ b/db/migrate/20220223140543_remove_id_defaults.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RemoveIdDefaults < ActiveRecord::Migration[7.0] def change # Remove defaults from foreign key references diff --git a/db/migrate/20230816135800_use_microsoft_graph.rb b/db/migrate/20230816135800_use_microsoft_graph.rb index 6c37a238b..28cb37f91 100644 --- a/db/migrate/20230816135800_use_microsoft_graph.rb +++ b/db/migrate/20230816135800_use_microsoft_graph.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UseMicrosoftGraph < ActiveRecord::Migration[7.0] def self.up User.where(:auth_provider => "windowslive").update_all(:auth_provider => "microsoft") diff --git a/db/migrate/20230825162137_restore_author_index_to_changeset_comments.rb b/db/migrate/20230825162137_restore_author_index_to_changeset_comments.rb index 81741322e..1e360f24e 100644 --- a/db/migrate/20230825162137_restore_author_index_to_changeset_comments.rb +++ b/db/migrate/20230825162137_restore_author_index_to_changeset_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RestoreAuthorIndexToChangesetComments < ActiveRecord::Migration[7.0] disable_ddl_transaction! diff --git a/db/migrate/20230830115219_create_doorkeeper_openid_connect_tables.rb b/db/migrate/20230830115219_create_doorkeeper_openid_connect_tables.rb index 4924e158d..a91b19250 100644 --- a/db/migrate/20230830115219_create_doorkeeper_openid_connect_tables.rb +++ b/db/migrate/20230830115219_create_doorkeeper_openid_connect_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateDoorkeeperOpenidConnectTables < ActiveRecord::Migration[7.0] def change create_table :oauth_openid_requests do |t| diff --git a/db/migrate/20230830115220_validate_create_doorkeeper_openid_connect_tables.rb b/db/migrate/20230830115220_validate_create_doorkeeper_openid_connect_tables.rb index 0596cbeb1..b46685538 100644 --- a/db/migrate/20230830115220_validate_create_doorkeeper_openid_connect_tables.rb +++ b/db/migrate/20230830115220_validate_create_doorkeeper_openid_connect_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ValidateCreateDoorkeeperOpenidConnectTables < ActiveRecord::Migration[7.0] # Validate foreign key created by CreateDoorkeeperOpenidConnectTables def change diff --git a/db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb b/db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb index 6f0186576..ad244637a 100644 --- a/db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb +++ b/db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddPrimaryKeyToChangesetTags < ActiveRecord::Migration[7.0] disable_ddl_transaction! diff --git a/db/migrate/20231010194809_correct_relation_members_primary_key.rb b/db/migrate/20231010194809_correct_relation_members_primary_key.rb index 84388063e..2e72bbf10 100644 --- a/db/migrate/20231010194809_correct_relation_members_primary_key.rb +++ b/db/migrate/20231010194809_correct_relation_members_primary_key.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CorrectRelationMembersPrimaryKey < ActiveRecord::Migration[7.0] disable_ddl_transaction! diff --git a/db/migrate/20231010201451_create_user_mutes.rb b/db/migrate/20231010201451_create_user_mutes.rb index 8cb6ff87e..a08045e7e 100644 --- a/db/migrate/20231010201451_create_user_mutes.rb +++ b/db/migrate/20231010201451_create_user_mutes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateUserMutes < ActiveRecord::Migration[7.0] def change create_table :user_mutes do |t| diff --git a/db/migrate/20231010203028_add_muted_flag_to_messages.rb b/db/migrate/20231010203028_add_muted_flag_to_messages.rb index e517aea86..bb8d4201c 100644 --- a/db/migrate/20231010203028_add_muted_flag_to_messages.rb +++ b/db/migrate/20231010203028_add_muted_flag_to_messages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddMutedFlagToMessages < ActiveRecord::Migration[7.0] def change add_column :messages, :muted, :boolean, :default => false, :null => false diff --git a/db/migrate/20231029151516_add_importer_role.rb b/db/migrate/20231029151516_add_importer_role.rb index 9eaab1c05..f5bcfe189 100644 --- a/db/migrate/20231029151516_add_importer_role.rb +++ b/db/migrate/20231029151516_add_importer_role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddImporterRole < ActiveRecord::Migration[7.1] def change add_enum_value :user_role_enum, "importer" diff --git a/db/migrate/20231101222146_api_rate_limit.rb b/db/migrate/20231101222146_api_rate_limit.rb index 9790629ee..52951fa22 100644 --- a/db/migrate/20231101222146_api_rate_limit.rb +++ b/db/migrate/20231101222146_api_rate_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApiRateLimit < ActiveRecord::Migration[7.1] def up safety_assured do diff --git a/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb b/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb index e9d7e62f7..74146fc8a 100644 --- a/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb +++ b/db/migrate/20231117170422_add_closed_at_index_to_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddClosedAtIndexToChangesets < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20231206141457_alter_sequences_bigint.rb b/db/migrate/20231206141457_alter_sequences_bigint.rb index 9920fc863..ad0f35465 100644 --- a/db/migrate/20231206141457_alter_sequences_bigint.rb +++ b/db/migrate/20231206141457_alter_sequences_bigint.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AlterSequencesBigint < ActiveRecord::Migration[7.1] def up safety_assured do diff --git a/db/migrate/20231213182102_add_canonical_user_index.rb b/db/migrate/20231213182102_add_canonical_user_index.rb index 905fb3248..2530e323b 100644 --- a/db/migrate/20231213182102_add_canonical_user_index.rb +++ b/db/migrate/20231213182102_add_canonical_user_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCanonicalUserIndex < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20240117185445_drop_lowercase_user_index.rb b/db/migrate/20240117185445_drop_lowercase_user_index.rb index 82bd5ece7..d78115893 100644 --- a/db/migrate/20240117185445_drop_lowercase_user_index.rb +++ b/db/migrate/20240117185445_drop_lowercase_user_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropLowercaseUserIndex < ActiveRecord::Migration[7.1] def change remove_index :users, "LOWER(display_name)", :name => "users_display_name_lower_idx" diff --git a/db/migrate/20240228205723_drop_user_tokens.rb b/db/migrate/20240228205723_drop_user_tokens.rb index a6c885a1a..7c65f4af3 100644 --- a/db/migrate/20240228205723_drop_user_tokens.rb +++ b/db/migrate/20240228205723_drop_user_tokens.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropUserTokens < ActiveRecord::Migration[7.1] def up drop_table :user_tokens diff --git a/db/migrate/20240307180830_add_check_constraint_to_redaction_title_and_description.rb b/db/migrate/20240307180830_add_check_constraint_to_redaction_title_and_description.rb index 46de9e1fd..f1f4989a9 100644 --- a/db/migrate/20240307180830_add_check_constraint_to_redaction_title_and_description.rb +++ b/db/migrate/20240307180830_add_check_constraint_to_redaction_title_and_description.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCheckConstraintToRedactionTitleAndDescription < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20240307181018_validate_and_modify_redaction_title_and_description.rb b/db/migrate/20240307181018_validate_and_modify_redaction_title_and_description.rb index 9df70165d..cc5df56a8 100644 --- a/db/migrate/20240307181018_validate_and_modify_redaction_title_and_description.rb +++ b/db/migrate/20240307181018_validate_and_modify_redaction_title_and_description.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ValidateAndModifyRedactionTitleAndDescription < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20240405083825_add_creator_index_to_user_blocks.rb b/db/migrate/20240405083825_add_creator_index_to_user_blocks.rb index 542a1020d..9d08caccb 100644 --- a/db/migrate/20240405083825_add_creator_index_to_user_blocks.rb +++ b/db/migrate/20240405083825_add_creator_index_to_user_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCreatorIndexToUserBlocks < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb b/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb index d90521595..3b3f73fdc 100644 --- a/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb +++ b/db/migrate/20240605134916_add_notes_and_diary_comments_counter_caches.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddNotesAndDiaryCommentsCounterCaches < ActiveRecord::Migration[7.1] def self.up add_column :users, :diary_comments_count, :integer, :default => 0 diff --git a/db/migrate/20240618193051_api_size_limit.rb b/db/migrate/20240618193051_api_size_limit.rb index ce97a9f0e..1f8141d4d 100644 --- a/db/migrate/20240618193051_api_size_limit.rb +++ b/db/migrate/20240618193051_api_size_limit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApiSizeLimit < ActiveRecord::Migration[7.1] def up safety_assured do diff --git a/db/migrate/20240724194738_drop_oauth1_tables.rb b/db/migrate/20240724194738_drop_oauth1_tables.rb index ace4c82e7..a3e9bf4eb 100644 --- a/db/migrate/20240724194738_drop_oauth1_tables.rb +++ b/db/migrate/20240724194738_drop_oauth1_tables.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropOauth1Tables < ActiveRecord::Migration[7.1] def change remove_index :oauth_nonces, [:nonce, :timestamp], :unique => true diff --git a/db/migrate/20240813070506_add_deactivates_at_to_user_blocks.rb b/db/migrate/20240813070506_add_deactivates_at_to_user_blocks.rb index a1b0fd7ec..c7bde0271 100644 --- a/db/migrate/20240813070506_add_deactivates_at_to_user_blocks.rb +++ b/db/migrate/20240813070506_add_deactivates_at_to_user_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDeactivatesAtToUserBlocks < ActiveRecord::Migration[7.1] def change add_column :user_blocks, :deactivates_at, :timestamp diff --git a/db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb b/db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb index 38c010c44..a4d4997ef 100644 --- a/db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb +++ b/db/migrate/20240822121603_backfill_deactivates_at_in_user_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class BackfillDeactivatesAtInUserBlocks < ActiveRecord::Migration[7.1] class UserBlock < ApplicationRecord; end diff --git a/db/migrate/20240910175616_add_user_creation_address.rb b/db/migrate/20240910175616_add_user_creation_address.rb index 4d9ba4094..97a27cc6f 100644 --- a/db/migrate/20240910175616_add_user_creation_address.rb +++ b/db/migrate/20240910175616_add_user_creation_address.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserCreationAddress < ActiveRecord::Migration[7.1] disable_ddl_transaction! diff --git a/db/migrate/20240912181413_backfill_user_creation_address.rb b/db/migrate/20240912181413_backfill_user_creation_address.rb index 3cc14f238..caa5d6e49 100644 --- a/db/migrate/20240912181413_backfill_user_creation_address.rb +++ b/db/migrate/20240912181413_backfill_user_creation_address.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class BackfillUserCreationAddress < ActiveRecord::Migration[7.1] class User < ApplicationRecord end diff --git a/db/migrate/20240913171951_drop_user_creation_ip.rb b/db/migrate/20240913171951_drop_user_creation_ip.rb index 7915f6ec7..e97fcbe3e 100644 --- a/db/migrate/20240913171951_drop_user_creation_ip.rb +++ b/db/migrate/20240913171951_drop_user_creation_ip.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DropUserCreationIp < ActiveRecord::Migration[7.1] def change safety_assured { remove_column :users, :creation_ip, :string } diff --git a/db/migrate/20241022141247_create_note_subscriptions.rb b/db/migrate/20241022141247_create_note_subscriptions.rb index 9a2a28ae4..b89bae604 100644 --- a/db/migrate/20241022141247_create_note_subscriptions.rb +++ b/db/migrate/20241022141247_create_note_subscriptions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateNoteSubscriptions < ActiveRecord::Migration[7.2] def change create_table :note_subscriptions, :primary_key => [:user_id, :note_id] do |t| diff --git a/db/migrate/20241023004427_backfill_note_subscriptions.rb b/db/migrate/20241023004427_backfill_note_subscriptions.rb index 3c9a2ef9b..c558d1e5f 100644 --- a/db/migrate/20241023004427_backfill_note_subscriptions.rb +++ b/db/migrate/20241023004427_backfill_note_subscriptions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class BackfillNoteSubscriptions < ActiveRecord::Migration[7.2] class NoteComment < ApplicationRecord; end class NoteSubscription < ApplicationRecord; end diff --git a/db/migrate/20241030090336_add_user_location_name.rb b/db/migrate/20241030090336_add_user_location_name.rb index a1874a469..cc977da8f 100644 --- a/db/migrate/20241030090336_add_user_location_name.rb +++ b/db/migrate/20241030090336_add_user_location_name.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserLocationName < ActiveRecord::Migration[7.2] def change add_column :users, :home_location_name, :string diff --git a/db/migrate/20250104140952_add_description_to_notes.rb b/db/migrate/20250104140952_add_description_to_notes.rb index 4e0ceec21..afc4a2cbd 100644 --- a/db/migrate/20250104140952_add_description_to_notes.rb +++ b/db/migrate/20250104140952_add_description_to_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddDescriptionToNotes < ActiveRecord::Migration[7.2] def change add_column :notes, :description, :text, :null => false, :default => "" diff --git a/db/migrate/20250105154621_validate_foreign_key_on_notes.rb b/db/migrate/20250105154621_validate_foreign_key_on_notes.rb index 8ff7df9e9..b0ee3c7f6 100644 --- a/db/migrate/20250105154621_validate_foreign_key_on_notes.rb +++ b/db/migrate/20250105154621_validate_foreign_key_on_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ValidateForeignKeyOnNotes < ActiveRecord::Migration[7.2] def change validate_foreign_key :notes, :users diff --git a/db/migrate/20250121191749_add_user_comment_indexes.rb b/db/migrate/20250121191749_add_user_comment_indexes.rb index 10af4e455..e1c144d4e 100644 --- a/db/migrate/20250121191749_add_user_comment_indexes.rb +++ b/db/migrate/20250121191749_add_user_comment_indexes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddUserCommentIndexes < ActiveRecord::Migration[7.2] disable_ddl_transaction! diff --git a/db/migrate/20250206202905_add_text_index_to_notes.rb b/db/migrate/20250206202905_add_text_index_to_notes.rb index 7798f2287..f3d99779f 100644 --- a/db/migrate/20250206202905_add_text_index_to_notes.rb +++ b/db/migrate/20250206202905_add_text_index_to_notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddTextIndexToNotes < ActiveRecord::Migration[7.2] disable_ddl_transaction! diff --git a/db/migrate/20250212160355_backfill_note_descriptions.rb b/db/migrate/20250212160355_backfill_note_descriptions.rb index 63568592e..87086f950 100644 --- a/db/migrate/20250212160355_backfill_note_descriptions.rb +++ b/db/migrate/20250212160355_backfill_note_descriptions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class BackfillNoteDescriptions < ActiveRecord::Migration[7.2] class Note < ApplicationRecord; end class NoteComment < ApplicationRecord; end diff --git a/db/migrate/20250217140049_create_social_links.rb b/db/migrate/20250217140049_create_social_links.rb index 65a527aae..aa8cc8e1d 100644 --- a/db/migrate/20250217140049_create_social_links.rb +++ b/db/migrate/20250217140049_create_social_links.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class CreateSocialLinks < ActiveRecord::Migration[7.2] def change create_table :social_links do |t| diff --git a/db/migrate/20250304172758_add_gpx_files_user_id_id_index.rb b/db/migrate/20250304172758_add_gpx_files_user_id_id_index.rb index e40b5155d..325d92df2 100644 --- a/db/migrate/20250304172758_add_gpx_files_user_id_id_index.rb +++ b/db/migrate/20250304172758_add_gpx_files_user_id_id_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddGpxFilesUserIdIdIndex < ActiveRecord::Migration[7.2] disable_ddl_transaction! diff --git a/db/migrate/20250304172798_add_notes_user_id_created_at_index.rb b/db/migrate/20250304172798_add_notes_user_id_created_at_index.rb index 52ee20f1d..bbabf2846 100644 --- a/db/migrate/20250304172798_add_notes_user_id_created_at_index.rb +++ b/db/migrate/20250304172798_add_notes_user_id_created_at_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddNotesUserIdCreatedAtIndex < ActiveRecord::Migration[7.2] disable_ddl_transaction! diff --git a/db/migrate/20250506052030_add_company_to_users.rb b/db/migrate/20250506052030_add_company_to_users.rb index d62a7aeca..411d1e5fb 100644 --- a/db/migrate/20250506052030_add_company_to_users.rb +++ b/db/migrate/20250506052030_add_company_to_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCompanyToUsers < ActiveRecord::Migration[8.0] def change add_column :users, :company, :string diff --git a/db/migrate/20250704143751_add_created_modified_deleted_counts_to_changesets.rb b/db/migrate/20250704143751_add_created_modified_deleted_counts_to_changesets.rb index b02c64a20..cd15ebab5 100644 --- a/db/migrate/20250704143751_add_created_modified_deleted_counts_to_changesets.rb +++ b/db/migrate/20250704143751_add_created_modified_deleted_counts_to_changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddCreatedModifiedDeletedCountsToChangesets < ActiveRecord::Migration[8.0] def change add_column :changesets, :num_created_nodes, :integer, :default => 0, :null => false diff --git a/db/seeds.rb b/db/seeds.rb index 742704b51..3dcaa9a84 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). # diff --git a/lib/auth.rb b/lib/auth.rb index 16efe6d85..64b37317c 100644 --- a/lib/auth.rb +++ b/lib/auth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Auth @providers = [] @providers << "google" if Settings.key?(:google_auth_id) diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index fbc109c39..65c4e9def 100644 --- a/lib/bounding_box.rb +++ b/lib/bounding_box.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class BoundingBox attr_reader :min_lon, :min_lat, :max_lon, :max_lat diff --git a/lib/country.rb b/lib/country.rb index ca547a972..1aa16b99e 100644 --- a/lib/country.rb +++ b/lib/country.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Country attr_reader :code, :min_lat, :max_lat, :min_lon, :max_lon diff --git a/lib/database_functions.rb b/lib/database_functions.rb index d58736fdf..056bc8da8 100644 --- a/lib/database_functions.rb +++ b/lib/database_functions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DatabaseFunctions API_RATE_LIMIT = %( CREATE OR REPLACE FUNCTION api_rate_limit(user_id int8) diff --git a/lib/diff_reader.rb b/lib/diff_reader.rb index 2784646af..ad3c64a86 100644 --- a/lib/diff_reader.rb +++ b/lib/diff_reader.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + ## # DiffReader reads OSM diffs and applies them to the database. # diff --git a/lib/editors.rb b/lib/editors.rb index e1c4054f3..ad070eceb 100644 --- a/lib/editors.rb +++ b/lib/editors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Editors ALL_EDITORS = %w[potlatch potlatch2 id remote].freeze AVAILABLE_EDITORS = %w[id remote].freeze diff --git a/lib/gpx.rb b/lib/gpx.rb index 921dce12c..058c1d990 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module GPX class File require "libxml" diff --git a/lib/id.rb b/lib/id.rb index dc6ae8d90..c2850b042 100644 --- a/lib/id.rb +++ b/lib/id.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ID LOCALES = Locale.list(Rails.root.join("vendor/assets/iD/iD/locales").entries.filter_map { |p| p.basename.to_s[/(.*)\.min\.json/] && Regexp.last_match(1) }) end diff --git a/lib/locale.rb b/lib/locale.rb index ed89d08eb..bb5040405 100644 --- a/lib/locale.rb +++ b/lib/locale.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Locale < I18n::Locale::Tag::Rfc4646 class List < Array attr_reader :locales diff --git a/lib/map_layers.rb b/lib/map_layers.rb index f0727ed92..df779548b 100644 --- a/lib/map_layers.rb +++ b/lib/map_layers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module MapLayers def self.full_definitions(layers_filename, legends: nil) legended_layers = YAML.load_file(Rails.root.join(legends)).keys if legends diff --git a/lib/nominatim.rb b/lib/nominatim.rb index 5e4a18b51..678c96222 100644 --- a/lib/nominatim.rb +++ b/lib/nominatim.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Nominatim require "timeout" diff --git a/lib/oauth.rb b/lib/oauth.rb index 47edba500..28ebf7109 100644 --- a/lib/oauth.rb +++ b/lib/oauth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Oauth SCOPES = %w[ read_prefs write_prefs write_diary diff --git a/lib/osm.rb b/lib/osm.rb index 350b4b001..9054a6490 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The OSM module provides support functions for OSM. module OSM require "time" diff --git a/lib/osm_community_index.rb b/lib/osm_community_index.rb index c395a3768..1d5e3c801 100644 --- a/lib/osm_community_index.rb +++ b/lib/osm_community_index.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module OsmCommunityIndex def self.add_to_i18n # Filter the communities here to avoid loading excessive numbers of translations diff --git a/lib/osm_community_index/resource_backend.rb b/lib/osm_community_index/resource_backend.rb index 3ed14e6de..26195b0c7 100644 --- a/lib/osm_community_index/resource_backend.rb +++ b/lib/osm_community_index/resource_backend.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # A backend for FrozenRecord module OsmCommunityIndex diff --git a/lib/password_hash.rb b/lib/password_hash.rb index 325955cf1..5e8441793 100644 --- a/lib/password_hash.rb +++ b/lib/password_hash.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "argon2" require "base64" require "digest/md5" diff --git a/lib/rate_limiter.rb b/lib/rate_limiter.rb index 438f5a1e2..f7c482354 100644 --- a/lib/rate_limiter.rb +++ b/lib/rate_limiter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class RateLimiter def initialize(cache, interval, limit, max_burst) @cache = cache diff --git a/lib/session_persistence.rb b/lib/session_persistence.rb index 0a9f1d2f1..2756b5081 100644 --- a/lib/session_persistence.rb +++ b/lib/session_persistence.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Copyright (c) 2010 August Lilleaas # # Permission is hereby granted, free of charge, to any person obtaining diff --git a/lib/tasks/annotate_rb.rake b/lib/tasks/annotate_rb.rake index 1ad0ec39e..611cfe9ed 100644 --- a/lib/tasks/annotate_rb.rake +++ b/lib/tasks/annotate_rb.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # This rake task was added by annotate_rb gem. # Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this diff --git a/lib/tasks/backfill_changeset_stats.rake b/lib/tasks/backfill_changeset_stats.rake index 2e8f1caa0..8618facb1 100644 --- a/lib/tasks/backfill_changeset_stats.rake +++ b/lib/tasks/backfill_changeset_stats.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # rubocop:disable Metrics/BlockLength namespace :db do desc "Backfill enhanced changeset stats" diff --git a/lib/tasks/cleanup.rake b/lib/tasks/cleanup.rake index 2cfc7e46d..4d5aafa96 100644 --- a/lib/tasks/cleanup.rake +++ b/lib/tasks/cleanup.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + namespace :db do desc "Expire old tokens" task :expire_tokens => :environment do diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake index 8a8d7c8a4..d10d19f79 100644 --- a/lib/tasks/eslint.rake +++ b/lib/tasks/eslint.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + task "eslint" => "eslint:check" def yarn_path diff --git a/lib/tasks/register_oauth_apps.rake b/lib/tasks/register_oauth_apps.rake index 8be6c9b4d..18fb42a95 100644 --- a/lib/tasks/register_oauth_apps.rake +++ b/lib/tasks/register_oauth_apps.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + namespace :oauth do desc "Register the built-in apps with specified user as owner; append necessary changes to settings file" task :register_apps, [:display_name] => :environment do |task, args| diff --git a/lib/tasks/subscribe_diary_authors.rake b/lib/tasks/subscribe_diary_authors.rake index 107fcc53e..4c77daec9 100644 --- a/lib/tasks/subscribe_diary_authors.rake +++ b/lib/tasks/subscribe_diary_authors.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + namespace :db do task :subscribe_diary_authors => :environment do DiaryEntry.find_each do |diary_entry| diff --git a/lib/tasks/subscribe_old_changesets.rake b/lib/tasks/subscribe_old_changesets.rake index 6fdd4c4e6..9ce0616fe 100644 --- a/lib/tasks/subscribe_old_changesets.rake +++ b/lib/tasks/subscribe_old_changesets.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + namespace :db do task :subscribe_old_changesets => :environment do Changeset.find_each do |changeset| diff --git a/lib/tasks/update_functions.rake b/lib/tasks/update_functions.rake index f10257215..2bfc4ab9f 100644 --- a/lib/tasks/update_functions.rake +++ b/lib/tasks/update_functions.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + namespace :db do desc "Update database function definitions" task :update_functions => :environment do diff --git a/lib/utf8.rb b/lib/utf8.rb index 613e3005e..cdc74c0d0 100644 --- a/lib/utf8.rb +++ b/lib/utf8.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UTF8 ## # Checks that a string is valid UTF-8 by trying to convert it to UTF-8 diff --git a/script/deliver-message b/script/deliver-message index 0a00f968f..ff4542b92 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require_relative File.join("..", "config", "environment") diff --git a/script/statistics b/script/statistics index 37eb36941..5ca364bcd 100755 --- a/script/statistics +++ b/script/statistics @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require_relative File.join("..", "config", "environment") diff --git a/script/update-spam-blocks b/script/update-spam-blocks index 7526ed0a3..6890d59f2 100755 --- a/script/update-spam-blocks +++ b/script/update-spam-blocks @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# frozen_string_literal: true require_relative File.join("..", "config", "environment") require "generator" diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 3e7de58b3..fed9ee924 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" ENV.delete("http_proxy") diff --git a/test/controllers/accounts/pd_declarations_controller_test.rb b/test/controllers/accounts/pd_declarations_controller_test.rb index fe3c8bad2..b7da3b31e 100644 --- a/test/controllers/accounts/pd_declarations_controller_test.rb +++ b/test/controllers/accounts/pd_declarations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Accounts diff --git a/test/controllers/accounts/terms_controller_test.rb b/test/controllers/accounts/terms_controller_test.rb index 854179ad3..9bef0d53a 100644 --- a/test/controllers/accounts/terms_controller_test.rb +++ b/test/controllers/accounts/terms_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Accounts diff --git a/test/controllers/accounts_controller_test.rb b/test/controllers/accounts_controller_test.rb index 199bf4aab..669dab3e9 100644 --- a/test/controllers/accounts_controller_test.rb +++ b/test/controllers/accounts_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class AccountsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/api/capabilities_controller_test.rb b/test/controllers/api/capabilities_controller_test.rb index fe5fbf0b7..9a6d285c2 100644 --- a/test/controllers/api/capabilities_controller_test.rb +++ b/test/controllers/api/capabilities_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changeset_comments/visibilities_controller_test.rb b/test/controllers/api/changeset_comments/visibilities_controller_test.rb index 1e8b562de..a4edc3806 100644 --- a/test/controllers/api/changeset_comments/visibilities_controller_test.rb +++ b/test/controllers/api/changeset_comments/visibilities_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changeset_comments_controller_test.rb b/test/controllers/api/changeset_comments_controller_test.rb index b16ea4502..f13bf36e7 100644 --- a/test/controllers/api/changeset_comments_controller_test.rb +++ b/test/controllers/api/changeset_comments_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changeset_subscriptions_controller_test.rb b/test/controllers/api/changeset_subscriptions_controller_test.rb index bf3588f23..0bf24b8e4 100644 --- a/test/controllers/api/changeset_subscriptions_controller_test.rb +++ b/test/controllers/api/changeset_subscriptions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changesets/closes_controller_test.rb b/test/controllers/api/changesets/closes_controller_test.rb index ca735469a..7189df700 100644 --- a/test/controllers/api/changesets/closes_controller_test.rb +++ b/test/controllers/api/changesets/closes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changesets/downloads_controller_test.rb b/test/controllers/api/changesets/downloads_controller_test.rb index 9eda6ec1d..de91c36ca 100644 --- a/test/controllers/api/changesets/downloads_controller_test.rb +++ b/test/controllers/api/changesets/downloads_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changesets/uploads_controller_test.rb b/test/controllers/api/changesets/uploads_controller_test.rb index 7018ed79b..3c2a2c1f3 100644 --- a/test/controllers/api/changesets/uploads_controller_test.rb +++ b/test/controllers/api/changesets/uploads_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/changesets_controller_test.rb b/test/controllers/api/changesets_controller_test.rb index ee3f1dd4c..aa1702488 100644 --- a/test/controllers/api/changesets_controller_test.rb +++ b/test/controllers/api/changesets_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/elements_test_helper.rb b/test/controllers/api/elements_test_helper.rb index 0e5683f9e..00f35314e 100644 --- a/test/controllers/api/elements_test_helper.rb +++ b/test/controllers/api/elements_test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Api module ElementsTestHelper private diff --git a/test/controllers/api/maps_controller_test.rb b/test/controllers/api/maps_controller_test.rb index 1c1b9b6a3..3d8695735 100644 --- a/test/controllers/api/maps_controller_test.rb +++ b/test/controllers/api/maps_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/messages/inboxes_controller_test.rb b/test/controllers/api/messages/inboxes_controller_test.rb index 1f6c51878..5c2f04a02 100644 --- a/test/controllers/api/messages/inboxes_controller_test.rb +++ b/test/controllers/api/messages/inboxes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/messages/outboxes_controller_test.rb b/test/controllers/api/messages/outboxes_controller_test.rb index bc3683bce..fb1b78a26 100644 --- a/test/controllers/api/messages/outboxes_controller_test.rb +++ b/test/controllers/api/messages/outboxes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/messages_controller_test.rb b/test/controllers/api/messages_controller_test.rb index 0857d0e10..30a891ac8 100644 --- a/test/controllers/api/messages_controller_test.rb +++ b/test/controllers/api/messages_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/nodes/relations_controller_test.rb b/test/controllers/api/nodes/relations_controller_test.rb index 168fd7153..9d7b55dc4 100644 --- a/test/controllers/api/nodes/relations_controller_test.rb +++ b/test/controllers/api/nodes/relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/nodes/ways_controller_test.rb b/test/controllers/api/nodes/ways_controller_test.rb index 0a728cf9a..79ee2c158 100644 --- a/test/controllers/api/nodes/ways_controller_test.rb +++ b/test/controllers/api/nodes/ways_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/nodes_controller_test.rb b/test/controllers/api/nodes_controller_test.rb index 3e91d8cee..de2445f02 100644 --- a/test/controllers/api/nodes_controller_test.rb +++ b/test/controllers/api/nodes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "elements_test_helper" diff --git a/test/controllers/api/note_subscriptions_controller_test.rb b/test/controllers/api/note_subscriptions_controller_test.rb index 0e388697c..f79f7cbd6 100644 --- a/test/controllers/api/note_subscriptions_controller_test.rb +++ b/test/controllers/api/note_subscriptions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/notes_controller_test.rb b/test/controllers/api/notes_controller_test.rb index ab05dda9e..3e51d9ba3 100644 --- a/test/controllers/api/notes_controller_test.rb +++ b/test/controllers/api/notes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_nodes/redactions_controller_test.rb b/test/controllers/api/old_nodes/redactions_controller_test.rb index 8a4ab79ba..7b772a036 100644 --- a/test/controllers/api/old_nodes/redactions_controller_test.rb +++ b/test/controllers/api/old_nodes/redactions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_nodes_controller_test.rb b/test/controllers/api/old_nodes_controller_test.rb index 312bae5dd..190a9f590 100644 --- a/test/controllers/api/old_nodes_controller_test.rb +++ b/test/controllers/api/old_nodes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_redactions/redactions_controller_test.rb b/test/controllers/api/old_redactions/redactions_controller_test.rb index 05fc846c4..bc29e92f4 100644 --- a/test/controllers/api/old_redactions/redactions_controller_test.rb +++ b/test/controllers/api/old_redactions/redactions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_relations_controller_test.rb b/test/controllers/api/old_relations_controller_test.rb index 50730c378..cc0c6b44a 100644 --- a/test/controllers/api/old_relations_controller_test.rb +++ b/test/controllers/api/old_relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_ways/redactions_controller_test.rb b/test/controllers/api/old_ways/redactions_controller_test.rb index f791d096b..8bfd74db2 100644 --- a/test/controllers/api/old_ways/redactions_controller_test.rb +++ b/test/controllers/api/old_ways/redactions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/old_ways_controller_test.rb b/test/controllers/api/old_ways_controller_test.rb index 31b66ae8b..bc16c2e4b 100644 --- a/test/controllers/api/old_ways_controller_test.rb +++ b/test/controllers/api/old_ways_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/permissions_controller_test.rb b/test/controllers/api/permissions_controller_test.rb index 26543f741..22b6c4b05 100644 --- a/test/controllers/api/permissions_controller_test.rb +++ b/test/controllers/api/permissions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/relations/relations_controller_test.rb b/test/controllers/api/relations/relations_controller_test.rb index f3009b9bf..91594e537 100644 --- a/test/controllers/api/relations/relations_controller_test.rb +++ b/test/controllers/api/relations/relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/relations_controller_test.rb b/test/controllers/api/relations_controller_test.rb index 8aa29d887..f17913cba 100644 --- a/test/controllers/api/relations_controller_test.rb +++ b/test/controllers/api/relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "elements_test_helper" diff --git a/test/controllers/api/tracepoints_controller_test.rb b/test/controllers/api/tracepoints_controller_test.rb index 83c03af6c..0db576933 100644 --- a/test/controllers/api/tracepoints_controller_test.rb +++ b/test/controllers/api/tracepoints_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/traces/data_controller_test.rb b/test/controllers/api/traces/data_controller_test.rb index b4aa399be..ed681c644 100644 --- a/test/controllers/api/traces/data_controller_test.rb +++ b/test/controllers/api/traces/data_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/traces_controller_test.rb b/test/controllers/api/traces_controller_test.rb index ecb92d03b..2ed3c8721 100644 --- a/test/controllers/api/traces_controller_test.rb +++ b/test/controllers/api/traces_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/user_blocks/active_lists_controller_test.rb b/test/controllers/api/user_blocks/active_lists_controller_test.rb index 6856dca8d..cbd4e0f3a 100644 --- a/test/controllers/api/user_blocks/active_lists_controller_test.rb +++ b/test/controllers/api/user_blocks/active_lists_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/user_blocks_controller_test.rb b/test/controllers/api/user_blocks_controller_test.rb index 2705e332d..306bf481a 100644 --- a/test/controllers/api/user_blocks_controller_test.rb +++ b/test/controllers/api/user_blocks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/user_preferences_controller_test.rb b/test/controllers/api/user_preferences_controller_test.rb index b1e058f58..e92d3b048 100644 --- a/test/controllers/api/user_preferences_controller_test.rb +++ b/test/controllers/api/user_preferences_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/users/traces_controller_test.rb b/test/controllers/api/users/traces_controller_test.rb index 0123cd3f2..fd22cbc75 100644 --- a/test/controllers/api/users/traces_controller_test.rb +++ b/test/controllers/api/users/traces_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/users_controller_test.rb b/test/controllers/api/users_controller_test.rb index 90ef1999d..c0a5d1729 100644 --- a/test/controllers/api/users_controller_test.rb +++ b/test/controllers/api/users_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/versions_controller_test.rb b/test/controllers/api/versions_controller_test.rb index d2b353a8e..6b23c96ce 100644 --- a/test/controllers/api/versions_controller_test.rb +++ b/test/controllers/api/versions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/ways/relations_controller_test.rb b/test/controllers/api/ways/relations_controller_test.rb index ded9ba3e9..a74a83f0a 100644 --- a/test/controllers/api/ways/relations_controller_test.rb +++ b/test/controllers/api/ways/relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Api diff --git a/test/controllers/api/ways_controller_test.rb b/test/controllers/api/ways_controller_test.rb index 015f14ab9..04881b683 100644 --- a/test/controllers/api/ways_controller_test.rb +++ b/test/controllers/api/ways_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "elements_test_helper" diff --git a/test/controllers/changeset_comments/feeds_controller_test.rb b/test/controllers/changeset_comments/feeds_controller_test.rb index 4858eb085..d83d4c873 100644 --- a/test/controllers/changeset_comments/feeds_controller_test.rb +++ b/test/controllers/changeset_comments/feeds_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module ChangesetComments diff --git a/test/controllers/changeset_subscriptions_controller_test.rb b/test/controllers/changeset_subscriptions_controller_test.rb index d6696cc29..13db0f02f 100644 --- a/test/controllers/changeset_subscriptions_controller_test.rb +++ b/test/controllers/changeset_subscriptions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetSubscriptionsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/changesets_controller_test.rb b/test/controllers/changesets_controller_test.rb index f2f3ab665..150b0480f 100644 --- a/test/controllers/changesets_controller_test.rb +++ b/test/controllers/changesets_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/confirmations_controller_test.rb b/test/controllers/confirmations_controller_test.rb index 562e2811d..ebe2e12ce 100644 --- a/test/controllers/confirmations_controller_test.rb +++ b/test/controllers/confirmations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ConfirmationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/dashboards_controller_test.rb b/test/controllers/dashboards_controller_test.rb index c55636585..3daa15f2f 100644 --- a/test/controllers/dashboards_controller_test.rb +++ b/test/controllers/dashboards_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DashboardsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/diary_comments_controller_test.rb b/test/controllers/diary_comments_controller_test.rb index 0a2ea5953..5344d052d 100644 --- a/test/controllers/diary_comments_controller_test.rb +++ b/test/controllers/diary_comments_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DiaryCommentsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/diary_entries_controller_test.rb b/test/controllers/diary_entries_controller_test.rb index 2ab5e9257..efdc59a68 100644 --- a/test/controllers/diary_entries_controller_test.rb +++ b/test/controllers/diary_entries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/directions_controller_test.rb b/test/controllers/directions_controller_test.rb index 8db9da356..f9f444074 100644 --- a/test/controllers/directions_controller_test.rb +++ b/test/controllers/directions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DirectionsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/errors_controller_test.rb b/test/controllers/errors_controller_test.rb index 253cbbdc0..cee8ee813 100644 --- a/test/controllers/errors_controller_test.rb +++ b/test/controllers/errors_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ErrorsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/export_controller_test.rb b/test/controllers/export_controller_test.rb index e4c8bb1f9..467ecb4a0 100644 --- a/test/controllers/export_controller_test.rb +++ b/test/controllers/export_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ExportControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/feature_queries_controller_test.rb b/test/controllers/feature_queries_controller_test.rb index ad2b5ad4d..c232876fa 100644 --- a/test/controllers/feature_queries_controller_test.rb +++ b/test/controllers/feature_queries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class BrowseControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/follows_controller_test.rb b/test/controllers/follows_controller_test.rb index 33712031f..86551bec7 100644 --- a/test/controllers/follows_controller_test.rb +++ b/test/controllers/follows_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class FollowsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/issue_comments_controller_test.rb b/test/controllers/issue_comments_controller_test.rb index 823d07776..ff7b5fcfa 100644 --- a/test/controllers/issue_comments_controller_test.rb +++ b/test/controllers/issue_comments_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class IssueCommentsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/issues/reporters_controller_test.rb b/test/controllers/issues/reporters_controller_test.rb index 06cfba3c1..807321df0 100644 --- a/test/controllers/issues/reporters_controller_test.rb +++ b/test/controllers/issues/reporters_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Issues diff --git a/test/controllers/issues_controller_test.rb b/test/controllers/issues_controller_test.rb index d15423605..ce3b24592 100644 --- a/test/controllers/issues_controller_test.rb +++ b/test/controllers/issues_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class IssuesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/layers_panes_controller_test.rb b/test/controllers/layers_panes_controller_test.rb index 21f6f74ce..841c18fce 100644 --- a/test/controllers/layers_panes_controller_test.rb +++ b/test/controllers/layers_panes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LayersPanesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/legend_panes_controller_test.rb b/test/controllers/legend_panes_controller_test.rb index b96273350..42868b269 100644 --- a/test/controllers/legend_panes_controller_test.rb +++ b/test/controllers/legend_panes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LegendPanesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/messages/inboxes_controller_test.rb b/test/controllers/messages/inboxes_controller_test.rb index b5cc8691f..bf9d60864 100644 --- a/test/controllers/messages/inboxes_controller_test.rb +++ b/test/controllers/messages/inboxes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages/muted_inboxes_controller_test.rb b/test/controllers/messages/muted_inboxes_controller_test.rb index ce84b65fe..7d4c13904 100644 --- a/test/controllers/messages/muted_inboxes_controller_test.rb +++ b/test/controllers/messages/muted_inboxes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages/mutes_controller_test.rb b/test/controllers/messages/mutes_controller_test.rb index f405c0650..37ad85da9 100644 --- a/test/controllers/messages/mutes_controller_test.rb +++ b/test/controllers/messages/mutes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages/outboxes_controller_test.rb b/test/controllers/messages/outboxes_controller_test.rb index befb81077..1c6b1853f 100644 --- a/test/controllers/messages/outboxes_controller_test.rb +++ b/test/controllers/messages/outboxes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages/read_marks_controller_test.rb b/test/controllers/messages/read_marks_controller_test.rb index e02e46b72..4b297a579 100644 --- a/test/controllers/messages/read_marks_controller_test.rb +++ b/test/controllers/messages/read_marks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages/replies_controller_test.rb b/test/controllers/messages/replies_controller_test.rb index a839a4458..f8ab91b39 100644 --- a/test/controllers/messages/replies_controller_test.rb +++ b/test/controllers/messages/replies_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Messages diff --git a/test/controllers/messages_controller_test.rb b/test/controllers/messages_controller_test.rb index 5168128ff..0c16bb548 100644 --- a/test/controllers/messages_controller_test.rb +++ b/test/controllers/messages_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class MessagesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/nodes_controller_test.rb b/test/controllers/nodes_controller_test.rb index b3005c0dc..c1686b558 100644 --- a/test/controllers/nodes_controller_test.rb +++ b/test/controllers/nodes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NodesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 8aea0cd39..e153f2924 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NotesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/oauth2_applications_controller_test.rb b/test/controllers/oauth2_applications_controller_test.rb index c20f8eabf..3caf50481 100644 --- a/test/controllers/oauth2_applications_controller_test.rb +++ b/test/controllers/oauth2_applications_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class Oauth2ApplicationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/oauth2_authorizations_controller_test.rb b/test/controllers/oauth2_authorizations_controller_test.rb index 012bfd7f4..b9cc4dcaa 100644 --- a/test/controllers/oauth2_authorizations_controller_test.rb +++ b/test/controllers/oauth2_authorizations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/oauth2_authorized_applications_controller_test.rb b/test/controllers/oauth2_authorized_applications_controller_test.rb index 250634781..6f11f851b 100644 --- a/test/controllers/oauth2_authorized_applications_controller_test.rb +++ b/test/controllers/oauth2_authorized_applications_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class Oauth2AuthorizedApplicationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/old_nodes_controller_test.rb b/test/controllers/old_nodes_controller_test.rb index ed41b71ad..be4697e99 100644 --- a/test/controllers/old_nodes_controller_test.rb +++ b/test/controllers/old_nodes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldNodesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/old_relation_members_controller_test.rb b/test/controllers/old_relation_members_controller_test.rb index 0ffed06e4..3b22052f0 100644 --- a/test/controllers/old_relation_members_controller_test.rb +++ b/test/controllers/old_relation_members_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldRelationMembersControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/old_relations_controller_test.rb b/test/controllers/old_relations_controller_test.rb index 850f69324..810fd941f 100644 --- a/test/controllers/old_relations_controller_test.rb +++ b/test/controllers/old_relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldRelationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/old_ways_controller_test.rb b/test/controllers/old_ways_controller_test.rb index 1a0f81a52..9efd3cb3f 100644 --- a/test/controllers/old_ways_controller_test.rb +++ b/test/controllers/old_ways_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldWaysControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/passwords_controller_test.rb b/test/controllers/passwords_controller_test.rb index 07f108cd7..3adc27624 100644 --- a/test/controllers/passwords_controller_test.rb +++ b/test/controllers/passwords_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class PasswordsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/preferences/advanced_preferences_controller_test.rb b/test/controllers/preferences/advanced_preferences_controller_test.rb index fa0db4bae..f5e1033fa 100644 --- a/test/controllers/preferences/advanced_preferences_controller_test.rb +++ b/test/controllers/preferences/advanced_preferences_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Preferences diff --git a/test/controllers/preferences/basic_preferences_controller_test.rb b/test/controllers/preferences/basic_preferences_controller_test.rb index f672eeb0e..4a9f3edc4 100644 --- a/test/controllers/preferences/basic_preferences_controller_test.rb +++ b/test/controllers/preferences/basic_preferences_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Preferences diff --git a/test/controllers/profiles/companies_controller_test.rb b/test/controllers/profiles/companies_controller_test.rb index facb3d5c4..80fb5e863 100644 --- a/test/controllers/profiles/companies_controller_test.rb +++ b/test/controllers/profiles/companies_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Profiles diff --git a/test/controllers/profiles/descriptions_controller_test.rb b/test/controllers/profiles/descriptions_controller_test.rb index 4ad809161..78c9bbd0c 100644 --- a/test/controllers/profiles/descriptions_controller_test.rb +++ b/test/controllers/profiles/descriptions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Profiles diff --git a/test/controllers/profiles/images_controller_test.rb b/test/controllers/profiles/images_controller_test.rb index cf9d480e0..95cc4b0c8 100644 --- a/test/controllers/profiles/images_controller_test.rb +++ b/test/controllers/profiles/images_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Profiles diff --git a/test/controllers/profiles/links_controller_test.rb b/test/controllers/profiles/links_controller_test.rb index 3c0788d16..28739dc3a 100644 --- a/test/controllers/profiles/links_controller_test.rb +++ b/test/controllers/profiles/links_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Profiles diff --git a/test/controllers/profiles/locations_controller_test.rb b/test/controllers/profiles/locations_controller_test.rb index 682b5c935..fb764819c 100644 --- a/test/controllers/profiles/locations_controller_test.rb +++ b/test/controllers/profiles/locations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Profiles diff --git a/test/controllers/redactions_controller_test.rb b/test/controllers/redactions_controller_test.rb index b3bc4cf16..30e72245f 100644 --- a/test/controllers/redactions_controller_test.rb +++ b/test/controllers/redactions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RedactionsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/relation_members_controller_test.rb b/test/controllers/relation_members_controller_test.rb index 236f3af19..29eb6d43e 100644 --- a/test/controllers/relation_members_controller_test.rb +++ b/test/controllers/relation_members_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationMembersControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/relations_controller_test.rb b/test/controllers/relations_controller_test.rb index 95c4601ef..a0c346907 100644 --- a/test/controllers/relations_controller_test.rb +++ b/test/controllers/relations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/reports_controller_test.rb b/test/controllers/reports_controller_test.rb index 6bd78e1b6..0fb220ed1 100644 --- a/test/controllers/reports_controller_test.rb +++ b/test/controllers/reports_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ReportsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/searches/latlon_queries_controller_test.rb b/test/controllers/searches/latlon_queries_controller_test.rb index ee13c7862..441790232 100644 --- a/test/controllers/searches/latlon_queries_controller_test.rb +++ b/test/controllers/searches/latlon_queries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "queries_controller_test" module Searches diff --git a/test/controllers/searches/nominatim_queries_controller_test.rb b/test/controllers/searches/nominatim_queries_controller_test.rb index e7ede3dc0..d0209efce 100644 --- a/test/controllers/searches/nominatim_queries_controller_test.rb +++ b/test/controllers/searches/nominatim_queries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "queries_controller_test" module Searches diff --git a/test/controllers/searches/nominatim_reverse_queries_controller_test.rb b/test/controllers/searches/nominatim_reverse_queries_controller_test.rb index dddca2db9..3ad192f63 100644 --- a/test/controllers/searches/nominatim_reverse_queries_controller_test.rb +++ b/test/controllers/searches/nominatim_reverse_queries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_relative "queries_controller_test" module Searches diff --git a/test/controllers/searches/queries_controller_test.rb b/test/controllers/searches/queries_controller_test.rb index d98d9832d..ac3d87d36 100644 --- a/test/controllers/searches/queries_controller_test.rb +++ b/test/controllers/searches/queries_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Searches diff --git a/test/controllers/searches_controller_test.rb b/test/controllers/searches_controller_test.rb index d9e4d248c..48b998fd8 100644 --- a/test/controllers/searches_controller_test.rb +++ b/test/controllers/searches_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SearchesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/sessions_controller_test.rb b/test/controllers/sessions_controller_test.rb index 442aa81ad..83499ca9d 100644 --- a/test/controllers/sessions_controller_test.rb +++ b/test/controllers/sessions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SessionsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/share_panes_controller_test.rb b/test/controllers/share_panes_controller_test.rb index 8acdb3623..622caf517 100644 --- a/test/controllers/share_panes_controller_test.rb +++ b/test/controllers/share_panes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SharePanesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/site_controller_test.rb b/test/controllers/site_controller_test.rb index 1a8af5275..d3f8f0cb1 100644 --- a/test/controllers/site_controller_test.rb +++ b/test/controllers/site_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SiteControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/traces/data_controller_test.rb b/test/controllers/traces/data_controller_test.rb index 721520fc8..63fb92f68 100644 --- a/test/controllers/traces/data_controller_test.rb +++ b/test/controllers/traces/data_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Traces diff --git a/test/controllers/traces/feeds_controller_test.rb b/test/controllers/traces/feeds_controller_test.rb index c5b7f4660..cba5ea9e7 100644 --- a/test/controllers/traces/feeds_controller_test.rb +++ b/test/controllers/traces/feeds_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Traces diff --git a/test/controllers/traces/icons_controller_test.rb b/test/controllers/traces/icons_controller_test.rb index 24786b3ac..63b69faf8 100644 --- a/test/controllers/traces/icons_controller_test.rb +++ b/test/controllers/traces/icons_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Traces diff --git a/test/controllers/traces/pictures_controller_test.rb b/test/controllers/traces/pictures_controller_test.rb index af203394e..d22be1699 100644 --- a/test/controllers/traces/pictures_controller_test.rb +++ b/test/controllers/traces/pictures_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Traces diff --git a/test/controllers/traces_controller_test.rb b/test/controllers/traces_controller_test.rb index bccd0ef9c..b3d077392 100644 --- a/test/controllers/traces_controller_test.rb +++ b/test/controllers/traces_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class TracesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/user_blocks/table_test_helper.rb b/test/controllers/user_blocks/table_test_helper.rb index 3506c31bb..ac0f55ff8 100644 --- a/test/controllers/user_blocks/table_test_helper.rb +++ b/test/controllers/user_blocks/table_test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module UserBlocks module TableTestHelper private diff --git a/test/controllers/user_blocks_controller_test.rb b/test/controllers/user_blocks_controller_test.rb index 19786452b..7cc09d87c 100644 --- a/test/controllers/user_blocks_controller_test.rb +++ b/test/controllers/user_blocks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "user_blocks/table_test_helper" diff --git a/test/controllers/user_mutes_controller_test.rb b/test/controllers/user_mutes_controller_test.rb index 2e98dc819..dfdeaa7b5 100644 --- a/test/controllers/user_mutes_controller_test.rb +++ b/test/controllers/user_mutes_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserMutesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/user_roles_controller_test.rb b/test/controllers/user_roles_controller_test.rb index 301a89f56..cc34a627a 100644 --- a/test/controllers/user_roles_controller_test.rb +++ b/test/controllers/user_roles_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserRolesControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/users/changeset_comments_controller_test.rb b/test/controllers/users/changeset_comments_controller_test.rb index db2646bfc..fe21f1a22 100644 --- a/test/controllers/users/changeset_comments_controller_test.rb +++ b/test/controllers/users/changeset_comments_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Users diff --git a/test/controllers/users/diary_comments_controller_test.rb b/test/controllers/users/diary_comments_controller_test.rb index 723cae08a..a7a9b0a70 100644 --- a/test/controllers/users/diary_comments_controller_test.rb +++ b/test/controllers/users/diary_comments_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Users diff --git a/test/controllers/users/heatmaps_controller_test.rb b/test/controllers/users/heatmaps_controller_test.rb index 5bbd71882..9668ab54f 100644 --- a/test/controllers/users/heatmaps_controller_test.rb +++ b/test/controllers/users/heatmaps_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Users diff --git a/test/controllers/users/issued_blocks_controller_test.rb b/test/controllers/users/issued_blocks_controller_test.rb index 369766d51..05d8a80ff 100644 --- a/test/controllers/users/issued_blocks_controller_test.rb +++ b/test/controllers/users/issued_blocks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "../user_blocks/table_test_helper" diff --git a/test/controllers/users/lists_controller_test.rb b/test/controllers/users/lists_controller_test.rb index 53037d17f..9577db389 100644 --- a/test/controllers/users/lists_controller_test.rb +++ b/test/controllers/users/lists_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Users diff --git a/test/controllers/users/received_blocks_controller_test.rb b/test/controllers/users/received_blocks_controller_test.rb index 32924fd23..2c7532843 100644 --- a/test/controllers/users/received_blocks_controller_test.rb +++ b/test/controllers/users/received_blocks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require_relative "../user_blocks/table_test_helper" diff --git a/test/controllers/users/statuses_controller_test.rb b/test/controllers/users/statuses_controller_test.rb index 9cdcfc8bf..ca5cae03e 100644 --- a/test/controllers/users/statuses_controller_test.rb +++ b/test/controllers/users/statuses_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" module Users diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb index e663cf438..e1c0a8af9 100644 --- a/test/controllers/users_controller_test.rb +++ b/test/controllers/users_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UsersControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/ways_controller_test.rb b/test/controllers/ways_controller_test.rb index 969577058..01316b07a 100644 --- a/test/controllers/ways_controller_test.rb +++ b/test/controllers/ways_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class WaysControllerTest < ActionDispatch::IntegrationTest diff --git a/test/factories/access_tokens.rb b/test/factories/access_tokens.rb index 98eb91066..a392dc9cc 100644 --- a/test/factories/access_tokens.rb +++ b/test/factories/access_tokens.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :access_token do user diff --git a/test/factories/acls.rb b/test/factories/acls.rb index 384fea9c1..262118ac3 100644 --- a/test/factories/acls.rb +++ b/test/factories/acls.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :acl do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/changeset_comments.rb b/test/factories/changeset_comments.rb index 911e7c1b5..6bb9e9b65 100644 --- a/test/factories/changeset_comments.rb +++ b/test/factories/changeset_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :changeset_comment do sequence(:body) { |n| "Changeset comment #{n}" } diff --git a/test/factories/changeset_tags.rb b/test/factories/changeset_tags.rb index 633dd0005..1b44b30f5 100644 --- a/test/factories/changeset_tags.rb +++ b/test/factories/changeset_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :changeset_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/changesets.rb b/test/factories/changesets.rb index 6a89a7d37..7f4b52426 100644 --- a/test/factories/changesets.rb +++ b/test/factories/changesets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :changeset do transient do diff --git a/test/factories/diary_comments.rb b/test/factories/diary_comments.rb index cb5f8eebd..ac9ce986e 100644 --- a/test/factories/diary_comments.rb +++ b/test/factories/diary_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :diary_comment do sequence(:body) { |n| "This is diary comment #{n}" } diff --git a/test/factories/diary_entries.rb b/test/factories/diary_entries.rb index 4319f2a63..076838d82 100644 --- a/test/factories/diary_entries.rb +++ b/test/factories/diary_entries.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :diary_entry do sequence(:title) { |n| "Diary entry #{n}" } diff --git a/test/factories/diary_entry_subscriptions.rb b/test/factories/diary_entry_subscriptions.rb index b5fc8405d..5aa1f54de 100644 --- a/test/factories/diary_entry_subscriptions.rb +++ b/test/factories/diary_entry_subscriptions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :diary_entry_subscription end diff --git a/test/factories/follows.rb b/test/factories/follows.rb index 01dad52e0..1457708fb 100644 --- a/test/factories/follows.rb +++ b/test/factories/follows.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :follow do follower :factory => :user diff --git a/test/factories/issue_comment.rb b/test/factories/issue_comment.rb index 52316954d..7f1ad3d74 100644 --- a/test/factories/issue_comment.rb +++ b/test/factories/issue_comment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :issue_comment do sequence(:body) { |n| "This is issue comment #{n}" } diff --git a/test/factories/issues.rb b/test/factories/issues.rb index cc6b4c367..6efed9223 100644 --- a/test/factories/issues.rb +++ b/test/factories/issues.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :issue do # Default to reporting users diff --git a/test/factories/languages.rb b/test/factories/languages.rb index c97904259..3033ba27b 100644 --- a/test/factories/languages.rb +++ b/test/factories/languages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :language do code { "en" } diff --git a/test/factories/messages.rb b/test/factories/messages.rb index 906c4dea9..d2d605e17 100644 --- a/test/factories/messages.rb +++ b/test/factories/messages.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :message do sequence(:title) { |n| "Message #{n}" } diff --git a/test/factories/node.rb b/test/factories/node.rb index bfb8b16fe..d3d04cd3d 100644 --- a/test/factories/node.rb +++ b/test/factories/node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :node do latitude { 1 * GeoRecord::SCALE } diff --git a/test/factories/node_tags.rb b/test/factories/node_tags.rb index 359af8631..2f2af2c50 100644 --- a/test/factories/node_tags.rb +++ b/test/factories/node_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :node_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/note_comments.rb b/test/factories/note_comments.rb index a6d7b5328..b41d887ff 100644 --- a/test/factories/note_comments.rb +++ b/test/factories/note_comments.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :note_comment do sequence(:body) { |n| "This is note comment #{n}" } diff --git a/test/factories/note_subscriptions.rb b/test/factories/note_subscriptions.rb index 5f09ec379..abeb1db38 100644 --- a/test/factories/note_subscriptions.rb +++ b/test/factories/note_subscriptions.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :note_subscription end diff --git a/test/factories/notes.rb b/test/factories/notes.rb index 268a2bfb7..d78666f89 100644 --- a/test/factories/notes.rb +++ b/test/factories/notes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :note do latitude { 1 * GeoRecord::SCALE } diff --git a/test/factories/oauth_access_grant.rb b/test/factories/oauth_access_grant.rb index 2a9366267..234020203 100644 --- a/test/factories/oauth_access_grant.rb +++ b/test/factories/oauth_access_grant.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :oauth_access_grant, :class => "Doorkeeper::AccessGrant" do application :factory => :oauth_application diff --git a/test/factories/oauth_access_token.rb b/test/factories/oauth_access_token.rb index dce8c6520..7db3fcea4 100644 --- a/test/factories/oauth_access_token.rb +++ b/test/factories/oauth_access_token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :oauth_access_token, :class => "Doorkeeper::AccessToken" do application :factory => :oauth_application diff --git a/test/factories/oauth_applications.rb b/test/factories/oauth_applications.rb index c865e0237..17b20dfb8 100644 --- a/test/factories/oauth_applications.rb +++ b/test/factories/oauth_applications.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :oauth_application, :class => "Oauth2Application" do sequence(:name) { |n| "OAuth application #{n}" } diff --git a/test/factories/old_node.rb b/test/factories/old_node.rb index 985093fad..cd20d1512 100644 --- a/test/factories/old_node.rb +++ b/test/factories/old_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_node do latitude { 1 * GeoRecord::SCALE } diff --git a/test/factories/old_node_tags.rb b/test/factories/old_node_tags.rb index 37e755ec2..4b8abcfde 100644 --- a/test/factories/old_node_tags.rb +++ b/test/factories/old_node_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_node_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/old_relation.rb b/test/factories/old_relation.rb index facf06dc0..ce0db0f69 100644 --- a/test/factories/old_relation.rb +++ b/test/factories/old_relation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_relation do timestamp { Time.now.utc } diff --git a/test/factories/old_relation_member.rb b/test/factories/old_relation_member.rb index 34e0bd310..ee6abbb02 100644 --- a/test/factories/old_relation_member.rb +++ b/test/factories/old_relation_member.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_relation_member do sequence(:sequence_id) diff --git a/test/factories/old_relation_tags.rb b/test/factories/old_relation_tags.rb index 4a3a1c01c..bae144f04 100644 --- a/test/factories/old_relation_tags.rb +++ b/test/factories/old_relation_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_relation_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/old_way.rb b/test/factories/old_way.rb index b91bf8bf5..e857b1b1b 100644 --- a/test/factories/old_way.rb +++ b/test/factories/old_way.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_way do timestamp { Time.now.utc } diff --git a/test/factories/old_way_node.rb b/test/factories/old_way_node.rb index 80bc8316f..7c95bdb58 100644 --- a/test/factories/old_way_node.rb +++ b/test/factories/old_way_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_way_node do sequence_id { 1 } diff --git a/test/factories/old_way_tags.rb b/test/factories/old_way_tags.rb index 2e5138b6b..3831d12c9 100644 --- a/test/factories/old_way_tags.rb +++ b/test/factories/old_way_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :old_way_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/redaction.rb b/test/factories/redaction.rb index 3304af899..79a15762f 100644 --- a/test/factories/redaction.rb +++ b/test/factories/redaction.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :redaction do sequence(:title) { |n| "Redaction #{n}" } diff --git a/test/factories/relation.rb b/test/factories/relation.rb index 6d43df0a3..febb6b052 100644 --- a/test/factories/relation.rb +++ b/test/factories/relation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :relation do timestamp { Time.now.utc } diff --git a/test/factories/relation_member.rb b/test/factories/relation_member.rb index f8e14905e..33c3b1c2f 100644 --- a/test/factories/relation_member.rb +++ b/test/factories/relation_member.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :relation_member do sequence(:sequence_id) diff --git a/test/factories/relation_tags.rb b/test/factories/relation_tags.rb index 074ab93f4..9f7b0075d 100644 --- a/test/factories/relation_tags.rb +++ b/test/factories/relation_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :relation_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/reports.rb b/test/factories/reports.rb index 084c2d1ac..962585bd8 100644 --- a/test/factories/reports.rb +++ b/test/factories/reports.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :report do sequence(:details) { |n| "Report details #{n}" } diff --git a/test/factories/social_link.rb b/test/factories/social_link.rb index fb6f7f6e1..049c695f7 100644 --- a/test/factories/social_link.rb +++ b/test/factories/social_link.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :social_link do sequence(:url) { |n| "https://test.com/#{n}" } diff --git a/test/factories/tracepoints.rb b/test/factories/tracepoints.rb index 86d2aea57..cd4573163 100644 --- a/test/factories/tracepoints.rb +++ b/test/factories/tracepoints.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :tracepoint do trackid { 1 } diff --git a/test/factories/traces.rb b/test/factories/traces.rb index 88c57745b..c4845be3b 100644 --- a/test/factories/traces.rb +++ b/test/factories/traces.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :trace do sequence(:name) { |n| "Trace #{n}.gpx" } diff --git a/test/factories/tracetags.rb b/test/factories/tracetags.rb index 2db07c3b7..75e177795 100644 --- a/test/factories/tracetags.rb +++ b/test/factories/tracetags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :tracetag do sequence(:tag) { |n| "Tag #{n}" } diff --git a/test/factories/user.rb b/test/factories/user.rb index 7f1f14e9c..b208ae974 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + pass_crypt = PasswordHash.create("test").first FactoryBot.define do diff --git a/test/factories/user_blocks.rb b/test/factories/user_blocks.rb index 8bdd6875e..0f9b703bb 100644 --- a/test/factories/user_blocks.rb +++ b/test/factories/user_blocks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :user_block do sequence(:reason) { |n| "User Block #{n}" } diff --git a/test/factories/user_mute.rb b/test/factories/user_mute.rb index 4beaf3a23..14978b638 100644 --- a/test/factories/user_mute.rb +++ b/test/factories/user_mute.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :user_mute do owner :factory => :user diff --git a/test/factories/user_preferences.rb b/test/factories/user_preferences.rb index 6d33e8caa..371ca8145 100644 --- a/test/factories/user_preferences.rb +++ b/test/factories/user_preferences.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :user_preference do sequence(:k) { |n| "Key #{n}" } diff --git a/test/factories/user_role.rb b/test/factories/user_role.rb index 1916d9b2e..060d66b6c 100644 --- a/test/factories/user_role.rb +++ b/test/factories/user_role.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :user_role do user diff --git a/test/factories/way.rb b/test/factories/way.rb index f2093e305..814088fb3 100644 --- a/test/factories/way.rb +++ b/test/factories/way.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :way do timestamp { Time.now.utc } diff --git a/test/factories/way_node.rb b/test/factories/way_node.rb index 230fe1270..6b91e9d20 100644 --- a/test/factories/way_node.rb +++ b/test/factories/way_node.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :way_node do sequence_id { 1 } diff --git a/test/factories/way_tags.rb b/test/factories/way_tags.rb index 8345ec698..6039d7eb3 100644 --- a/test/factories/way_tags.rb +++ b/test/factories/way_tags.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + FactoryBot.define do factory :way_tag do sequence(:k) { |n| "Key #{n}" } diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 20ae54f1c..d0438dfa6 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ApplicationHelperTest < ActionView::TestCase diff --git a/test/helpers/asset_helper_test.rb b/test/helpers/asset_helper_test.rb index c255cc766..f0de47286 100644 --- a/test/helpers/asset_helper_test.rb +++ b/test/helpers/asset_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class AssetHelperTest < ActionView::TestCase diff --git a/test/helpers/browse_helper_test.rb b/test/helpers/browse_helper_test.rb index 4162223d1..31f54f0c3 100644 --- a/test/helpers/browse_helper_test.rb +++ b/test/helpers/browse_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class BrowseHelperTest < ActionView::TestCase diff --git a/test/helpers/browse_tags_helper_test.rb b/test/helpers/browse_tags_helper_test.rb index ec4b185fc..064de3d75 100644 --- a/test/helpers/browse_tags_helper_test.rb +++ b/test/helpers/browse_tags_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class BrowseTagsHelperTest < ActionView::TestCase diff --git a/test/helpers/changesets_helper_test.rb b/test/helpers/changesets_helper_test.rb index c5033040d..1051c0880 100644 --- a/test/helpers/changesets_helper_test.rb +++ b/test/helpers/changesets_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetsHelperTest < ActionView::TestCase diff --git a/test/helpers/geocoder_helper_test.rb b/test/helpers/geocoder_helper_test.rb index 1be1b72a5..309b21c8f 100644 --- a/test/helpers/geocoder_helper_test.rb +++ b/test/helpers/geocoder_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class GeocoderHelperTest < ActionView::TestCase diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb index d622c819b..efc45f16f 100644 --- a/test/helpers/issues_helper_test.rb +++ b/test/helpers/issues_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class IssuesHelperTest < ActionView::TestCase diff --git a/test/helpers/note_helper_test.rb b/test/helpers/note_helper_test.rb index 8b8173694..d9f3b805a 100644 --- a/test/helpers/note_helper_test.rb +++ b/test/helpers/note_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NoteHelperTest < ActionView::TestCase diff --git a/test/helpers/numbered_pagination_helper_test.rb b/test/helpers/numbered_pagination_helper_test.rb index b62123db4..e49ef26f8 100644 --- a/test/helpers/numbered_pagination_helper_test.rb +++ b/test/helpers/numbered_pagination_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NumberedPaginationHelperTest < ActionView::TestCase diff --git a/test/helpers/share_buttons_helper_test.rb b/test/helpers/share_buttons_helper_test.rb index 20f9c3aa4..ed45459e5 100644 --- a/test/helpers/share_buttons_helper_test.rb +++ b/test/helpers/share_buttons_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ShareButtonsHelperTest < ActionView::TestCase diff --git a/test/helpers/svg_helper_test.rb b/test/helpers/svg_helper_test.rb index 6d445da0d..40ac2fa50 100644 --- a/test/helpers/svg_helper_test.rb +++ b/test/helpers/svg_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SvgHelperTest < ActionView::TestCase diff --git a/test/helpers/title_helper_test.rb b/test/helpers/title_helper_test.rb index 1c26a7220..17ecc5670 100644 --- a/test/helpers/title_helper_test.rb +++ b/test/helpers/title_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class TitleHelperTest < ActionView::TestCase diff --git a/test/helpers/user_blocks_helper_test.rb b/test/helpers/user_blocks_helper_test.rb index d308f46ea..da8bdd41c 100644 --- a/test/helpers/user_blocks_helper_test.rb +++ b/test/helpers/user_blocks_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserBlocksHelperTest < ActionView::TestCase diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index 24372e7de..15322903a 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserHelperTest < ActionView::TestCase diff --git a/test/integration/changeset_bbox_test.rb b/test/integration/changeset_bbox_test.rb index 151c91aab..4413e8413 100644 --- a/test/integration/changeset_bbox_test.rb +++ b/test/integration/changeset_bbox_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetBboxTest < ActionDispatch::IntegrationTest diff --git a/test/integration/changeset_upload_download_test.rb b/test/integration/changeset_upload_download_test.rb index 77b676af9..6639d680b 100644 --- a/test/integration/changeset_upload_download_test.rb +++ b/test/integration/changeset_upload_download_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetUploadDownloadTest < ActionDispatch::IntegrationTest diff --git a/test/integration/compressed_requests_test.rb b/test/integration/compressed_requests_test.rb index 372d2dfe1..d3532324c 100644 --- a/test/integration/compressed_requests_test.rb +++ b/test/integration/compressed_requests_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class CompressedRequestsTest < ActionDispatch::IntegrationTest diff --git a/test/integration/cors_test.rb b/test/integration/cors_test.rb index 0c17ecfd3..d7f22959f 100644 --- a/test/integration/cors_test.rb +++ b/test/integration/cors_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class CORSTest < ActionDispatch::IntegrationTest diff --git a/test/integration/login_test.rb b/test/integration/login_test.rb index ab1b96f17..82e38c088 100644 --- a/test/integration/login_test.rb +++ b/test/integration/login_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LoginTest < ActionDispatch::IntegrationTest diff --git a/test/integration/node_versions_test.rb b/test/integration/node_versions_test.rb index 4d8a705cb..4662b21cd 100644 --- a/test/integration/node_versions_test.rb +++ b/test/integration/node_versions_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NodeVersionsTest < ActionDispatch::IntegrationTest diff --git a/test/integration/oauth2_test.rb b/test/integration/oauth2_test.rb index 3c532ca74..106ec6844 100644 --- a/test/integration/oauth2_test.rb +++ b/test/integration/oauth2_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require "jwt" diff --git a/test/integration/page_locale_test.rb b/test/integration/page_locale_test.rb index b2f782d30..afeb0334a 100644 --- a/test/integration/page_locale_test.rb +++ b/test/integration/page_locale_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class PageLocaleTest < ActionDispatch::IntegrationTest diff --git a/test/integration/redirect_test.rb b/test/integration/redirect_test.rb index 79939f4bc..332b9c76a 100644 --- a/test/integration/redirect_test.rb +++ b/test/integration/redirect_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RedirectTest < ActionDispatch::IntegrationTest diff --git a/test/integration/relation_versions_test.rb b/test/integration/relation_versions_test.rb index 7a60946c0..a076c0e09 100644 --- a/test/integration/relation_versions_test.rb +++ b/test/integration/relation_versions_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationVersionsTest < ActionDispatch::IntegrationTest diff --git a/test/integration/short_links_test.rb b/test/integration/short_links_test.rb index 8f949fdae..43024fd70 100644 --- a/test/integration/short_links_test.rb +++ b/test/integration/short_links_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ShortLinksTest < ActionDispatch::IntegrationTest diff --git a/test/integration/user_blocks_test.rb b/test/integration/user_blocks_test.rb index 4e7315ede..dbdaf00df 100644 --- a/test/integration/user_blocks_test.rb +++ b/test/integration/user_blocks_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserBlocksTest < ActionDispatch::IntegrationTest diff --git a/test/integration/user_creation_test.rb b/test/integration/user_creation_test.rb index fa1f78b76..5ec781d3f 100644 --- a/test/integration/user_creation_test.rb +++ b/test/integration/user_creation_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserCreationTest < ActionDispatch::IntegrationTest diff --git a/test/integration/user_diaries_test.rb b/test/integration/user_diaries_test.rb index 7188afd7a..a6f8c3a62 100644 --- a/test/integration/user_diaries_test.rb +++ b/test/integration/user_diaries_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserDiariesTest < ActionDispatch::IntegrationTest diff --git a/test/integration/user_terms_seen_test.rb b/test/integration/user_terms_seen_test.rb index 5e08fedd9..b8539a5f6 100644 --- a/test/integration/user_terms_seen_test.rb +++ b/test/integration/user_terms_seen_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserTermsSeenTest < ActionDispatch::IntegrationTest diff --git a/test/integration/way_versions_test.rb b/test/integration/way_versions_test.rb index 866e48573..587ab89e1 100644 --- a/test/integration/way_versions_test.rb +++ b/test/integration/way_versions_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class WayVersionsTest < ActionDispatch::IntegrationTest diff --git a/test/jobs/trace_destroyer_job_test.rb b/test/jobs/trace_destroyer_job_test.rb index ed86a1616..067853c6a 100644 --- a/test/jobs/trace_destroyer_job_test.rb +++ b/test/jobs/trace_destroyer_job_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require "minitest/mock" diff --git a/test/jobs/trace_importer_job_test.rb b/test/jobs/trace_importer_job_test.rb index c6d44ecce..b2ba7f936 100644 --- a/test/jobs/trace_importer_job_test.rb +++ b/test/jobs/trace_importer_job_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require "minitest/mock" diff --git a/test/lib/bounding_box_test.rb b/test/lib/bounding_box_test.rb index 9143fcd81..1977dffa5 100644 --- a/test/lib/bounding_box_test.rb +++ b/test/lib/bounding_box_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class BoundingBoxTest < ActiveSupport::TestCase diff --git a/test/lib/country_test.rb b/test/lib/country_test.rb index 596690c6c..2086d2607 100644 --- a/test/lib/country_test.rb +++ b/test/lib/country_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class CountryTest < ActiveSupport::TestCase diff --git a/test/lib/i18n_test.rb b/test/lib/i18n_test.rb index 4d4b86ae5..c7a96ec55 100644 --- a/test/lib/i18n_test.rb +++ b/test/lib/i18n_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class I18nTest < ActiveSupport::TestCase diff --git a/test/lib/locale_test.rb b/test/lib/locale_test.rb index 9aec035d1..ac356c36f 100644 --- a/test/lib/locale_test.rb +++ b/test/lib/locale_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LocaleTest < ActiveSupport::TestCase diff --git a/test/lib/nominatim_test.rb b/test/lib/nominatim_test.rb index 1ac775a88..050832807 100644 --- a/test/lib/nominatim_test.rb +++ b/test/lib/nominatim_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NominatimTest < ActiveSupport::TestCase diff --git a/test/lib/osm_community_index/resource_backend_test.rb b/test/lib/osm_community_index/resource_backend_test.rb index 91b0bb5ae..2bd3c9de4 100644 --- a/test/lib/osm_community_index/resource_backend_test.rb +++ b/test/lib/osm_community_index/resource_backend_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ResourceBackendTest < ActiveSupport::TestCase diff --git a/test/lib/osm_community_index_test.rb b/test/lib/osm_community_index_test.rb index 9b10d81d9..8db4ed424 100644 --- a/test/lib/osm_community_index_test.rb +++ b/test/lib/osm_community_index_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class CountryTest < ActiveSupport::TestCase diff --git a/test/lib/osm_test.rb b/test/lib/osm_test.rb index 032ece55a..1389fbb02 100644 --- a/test/lib/osm_test.rb +++ b/test/lib/osm_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OsmTest < ActiveSupport::TestCase diff --git a/test/lib/password_hash_test.rb b/test/lib/password_hash_test.rb index 9bfd73496..2939c86c1 100644 --- a/test/lib/password_hash_test.rb +++ b/test/lib/password_hash_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class PasswordHashTest < ActiveSupport::TestCase diff --git a/test/lib/rich_text_test.rb b/test/lib/rich_text_test.rb index 6d5c2a9c1..ec9793e4f 100644 --- a/test/lib/rich_text_test.rb +++ b/test/lib/rich_text_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RichTextTest < ActiveSupport::TestCase diff --git a/test/lib/short_link_test.rb b/test/lib/short_link_test.rb index a32e1ac20..c8ef7cb57 100644 --- a/test/lib/short_link_test.rb +++ b/test/lib/short_link_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ShortLinkTest < ActiveSupport::TestCase diff --git a/test/lib/utf8_test.rb b/test/lib/utf8_test.rb index 0eac9253d..d62b51fce 100644 --- a/test/lib/utf8_test.rb +++ b/test/lib/utf8_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UTF8Test < ActiveSupport::TestCase diff --git a/test/mailers/user_mailer_test.rb b/test/mailers/user_mailer_test.rb index 9b895c475..3553a0f93 100644 --- a/test/mailers/user_mailer_test.rb +++ b/test/mailers/user_mailer_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserMailerTest < ActionMailer::TestCase diff --git a/test/models/acl_test.rb b/test/models/acl_test.rb index bf7c81214..79a1422be 100644 --- a/test/models/acl_test.rb +++ b/test/models/acl_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class AclTest < ActiveSupport::TestCase diff --git a/test/models/changeset_comment_test.rb b/test/models/changeset_comment_test.rb index 991bf555d..7c2a4d89d 100644 --- a/test/models/changeset_comment_test.rb +++ b/test/models/changeset_comment_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetCommentTest < ActiveSupport::TestCase diff --git a/test/models/changeset_tag_test.rb b/test/models/changeset_tag_test.rb index 81b280790..0de03e8f9 100644 --- a/test/models/changeset_tag_test.rb +++ b/test/models/changeset_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetTagTest < ActiveSupport::TestCase diff --git a/test/models/changeset_test.rb b/test/models/changeset_test.rb index 0373a1d2c..fa890d8b9 100644 --- a/test/models/changeset_test.rb +++ b/test/models/changeset_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ChangesetTest < ActiveSupport::TestCase diff --git a/test/models/diary_comment_test.rb b/test/models/diary_comment_test.rb index 9e45e43f9..2e2cc39a8 100644 --- a/test/models/diary_comment_test.rb +++ b/test/models/diary_comment_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DiaryCommentTest < ActiveSupport::TestCase diff --git a/test/models/diary_entry_test.rb b/test/models/diary_entry_test.rb index b00ac8ea6..c87dab8a8 100644 --- a/test/models/diary_entry_test.rb +++ b/test/models/diary_entry_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class DiaryEntryTest < ActiveSupport::TestCase diff --git a/test/models/friend_test.rb b/test/models/friend_test.rb index b60b72ad1..bb6979a02 100644 --- a/test/models/friend_test.rb +++ b/test/models/friend_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class FriendTest < ActiveSupport::TestCase diff --git a/test/models/issue_comment_test.rb b/test/models/issue_comment_test.rb index 7a1191ead..e258ce198 100644 --- a/test/models/issue_comment_test.rb +++ b/test/models/issue_comment_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class IssueCommentTest < ActiveSupport::TestCase diff --git a/test/models/issue_test.rb b/test/models/issue_test.rb index 12a7efec2..55b4bb7fa 100644 --- a/test/models/issue_test.rb +++ b/test/models/issue_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class IssueTest < ActiveSupport::TestCase diff --git a/test/models/language_test.rb b/test/models/language_test.rb index f777d8e19..16669f091 100644 --- a/test/models/language_test.rb +++ b/test/models/language_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LanguageTest < ActiveSupport::TestCase diff --git a/test/models/message_test.rb b/test/models/message_test.rb index 1bc15cba3..53fc17fa5 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -1,7 +1,9 @@ +# frozen_string_literal: true + require "test_helper" class MessageTest < ActiveSupport::TestCase - EURO = "\xe2\x82\xac".freeze # euro symbol + EURO = "\xe2\x82\xac" # euro symbol def test_check_empty_message_fails message = build(:message, :title => nil, :body => nil, :sent_on => nil) diff --git a/test/models/node_tag_test.rb b/test/models/node_tag_test.rb index 5788bcca5..25b1a81f5 100644 --- a/test/models/node_tag_test.rb +++ b/test/models/node_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NodeTagTest < ActiveSupport::TestCase diff --git a/test/models/node_test.rb b/test/models/node_test.rb index 22d88f142..d7b2e82c1 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NodeTest < ActiveSupport::TestCase diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index 615586e56..6cc216da2 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NoteCommentTest < ActiveSupport::TestCase diff --git a/test/models/note_test.rb b/test/models/note_test.rb index 706cda413..bfe167464 100644 --- a/test/models/note_test.rb +++ b/test/models/note_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class NoteTest < ActiveSupport::TestCase diff --git a/test/models/old_node_tag_test.rb b/test/models/old_node_tag_test.rb index be7502c34..c1bc8bdd0 100644 --- a/test/models/old_node_tag_test.rb +++ b/test/models/old_node_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldNodeTagTest < ActiveSupport::TestCase diff --git a/test/models/old_node_test.rb b/test/models/old_node_test.rb index cc0e0d8c2..0dafaab88 100644 --- a/test/models/old_node_test.rb +++ b/test/models/old_node_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldNodeTest < ActiveSupport::TestCase diff --git a/test/models/old_relation_tag_test.rb b/test/models/old_relation_tag_test.rb index d31d0e64e..32790dbc6 100644 --- a/test/models/old_relation_tag_test.rb +++ b/test/models/old_relation_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldRelationTagTest < ActiveSupport::TestCase diff --git a/test/models/old_relation_test.rb b/test/models/old_relation_test.rb index 62f5e720b..981da03a6 100644 --- a/test/models/old_relation_test.rb +++ b/test/models/old_relation_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldRelationTest < ActiveSupport::TestCase diff --git a/test/models/old_way_tag_test.rb b/test/models/old_way_tag_test.rb index 62211ed24..4873dc9e6 100644 --- a/test/models/old_way_tag_test.rb +++ b/test/models/old_way_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldWayTagTest < ActiveSupport::TestCase diff --git a/test/models/old_way_test.rb b/test/models/old_way_test.rb index d28723c5b..4c739872f 100644 --- a/test/models/old_way_test.rb +++ b/test/models/old_way_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class OldWayTest < ActiveSupport::TestCase diff --git a/test/models/redaction_test.rb b/test/models/redaction_test.rb index 4aa37f492..4c4c64ddc 100644 --- a/test/models/redaction_test.rb +++ b/test/models/redaction_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RedactionTest < ActiveSupport::TestCase diff --git a/test/models/relation_member_test.rb b/test/models/relation_member_test.rb index 7535c342d..49a909b79 100644 --- a/test/models/relation_member_test.rb +++ b/test/models/relation_member_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationMemberTest < ActiveSupport::TestCase diff --git a/test/models/relation_tag_test.rb b/test/models/relation_tag_test.rb index 2e5e1503c..3130f22ab 100644 --- a/test/models/relation_tag_test.rb +++ b/test/models/relation_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationTagTest < ActiveSupport::TestCase diff --git a/test/models/relation_test.rb b/test/models/relation_test.rb index e0910f4fc..5bb706939 100644 --- a/test/models/relation_test.rb +++ b/test/models/relation_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class RelationTest < ActiveSupport::TestCase diff --git a/test/models/report_test.rb b/test/models/report_test.rb index 7b3b973b0..6b92595f1 100644 --- a/test/models/report_test.rb +++ b/test/models/report_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class ReportTest < ActiveSupport::TestCase diff --git a/test/models/social_link_test.rb b/test/models/social_link_test.rb index 267d8bc13..dcca1994f 100644 --- a/test/models/social_link_test.rb +++ b/test/models/social_link_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class SocialLinkTest < ActiveSupport::TestCase diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index f95ebe4c3..4415803b1 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" require "gpx" diff --git a/test/models/tracepoint_test.rb b/test/models/tracepoint_test.rb index 3d836a2e7..390f467d1 100644 --- a/test/models/tracepoint_test.rb +++ b/test/models/tracepoint_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class TracepointTest < ActiveSupport::TestCase diff --git a/test/models/tracetag_test.rb b/test/models/tracetag_test.rb index 0d2b17953..caa869a54 100644 --- a/test/models/tracetag_test.rb +++ b/test/models/tracetag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class TracetagTest < ActiveSupport::TestCase diff --git a/test/models/user_mute_test.rb b/test/models/user_mute_test.rb index ccc68110a..074f7e3d4 100644 --- a/test/models/user_mute_test.rb +++ b/test/models/user_mute_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserMuteTest < ActiveSupport::TestCase diff --git a/test/models/user_preference_test.rb b/test/models/user_preference_test.rb index ee91777c7..55929a09f 100644 --- a/test/models/user_preference_test.rb +++ b/test/models/user_preference_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserPreferenceTest < ActiveSupport::TestCase diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 0869415b3..507724929 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class UserTest < ActiveSupport::TestCase diff --git a/test/models/way_node_test.rb b/test/models/way_node_test.rb index 04422da72..b4f25ede5 100644 --- a/test/models/way_node_test.rb +++ b/test/models/way_node_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class WayNodeTest < ActiveSupport::TestCase diff --git a/test/models/way_tag_test.rb b/test/models/way_tag_test.rb index 3b0d207c9..67f82f883 100644 --- a/test/models/way_tag_test.rb +++ b/test/models/way_tag_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class WayTagTest < ActiveSupport::TestCase diff --git a/test/models/way_test.rb b/test/models/way_test.rb index d2ca08750..708d11c1c 100644 --- a/test/models/way_test.rb +++ b/test/models/way_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class WayTest < ActiveSupport::TestCase diff --git a/test/system/account_deletion_test.rb b/test/system/account_deletion_test.rb index 729f9cccc..8b856d0b7 100644 --- a/test/system/account_deletion_test.rb +++ b/test/system/account_deletion_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class AccountDeletionTest < ApplicationSystemTestCase diff --git a/test/system/account_home_test.rb b/test/system/account_home_test.rb index e8130e4f5..a61c9c745 100644 --- a/test/system/account_home_test.rb +++ b/test/system/account_home_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class AccountHomeTest < ApplicationSystemTestCase diff --git a/test/system/account_pd_declaration_test.rb b/test/system/account_pd_declaration_test.rb index d58484c8c..5654a4efa 100644 --- a/test/system/account_pd_declaration_test.rb +++ b/test/system/account_pd_declaration_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class AccountPdDeclarationTest < ApplicationSystemTestCase diff --git a/test/system/account_rename_test.rb b/test/system/account_rename_test.rb index a52fda6eb..b80b4ba45 100644 --- a/test/system/account_rename_test.rb +++ b/test/system/account_rename_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class AccountRenameTest < ApplicationSystemTestCase diff --git a/test/system/account_terms_test.rb b/test/system/account_terms_test.rb index cd5feeb8b..2e6291fd1 100644 --- a/test/system/account_terms_test.rb +++ b/test/system/account_terms_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class AccountTermsTest < ApplicationSystemTestCase diff --git a/test/system/browse_comment_links_test.rb b/test/system/browse_comment_links_test.rb index c690551c7..96ca016d5 100644 --- a/test/system/browse_comment_links_test.rb +++ b/test/system/browse_comment_links_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class BrowseCommentLinksTest < ApplicationSystemTestCase diff --git a/test/system/changeset_comments_test.rb b/test/system/changeset_comments_test.rb index b12aab5ee..f1d089074 100644 --- a/test/system/changeset_comments_test.rb +++ b/test/system/changeset_comments_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ChangesetCommentsTest < ApplicationSystemTestCase diff --git a/test/system/changeset_elements_test.rb b/test/system/changeset_elements_test.rb index e8f23af13..a45bae923 100644 --- a/test/system/changeset_elements_test.rb +++ b/test/system/changeset_elements_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ChangesetElementsTest < ApplicationSystemTestCase diff --git a/test/system/changeset_test.rb b/test/system/changeset_test.rb index 3f50d37ac..d908e3674 100644 --- a/test/system/changeset_test.rb +++ b/test/system/changeset_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ChangesetSystemTest < ApplicationSystemTestCase diff --git a/test/system/create_note_test.rb b/test/system/create_note_test.rb index 8fea218bf..f096c4055 100644 --- a/test/system/create_note_test.rb +++ b/test/system/create_note_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class CreateNoteTest < ApplicationSystemTestCase diff --git a/test/system/dashboard_test.rb b/test/system/dashboard_test.rb index 6647fb026..fe8e0e388 100644 --- a/test/system/dashboard_test.rb +++ b/test/system/dashboard_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class DashboardSystemTest < ApplicationSystemTestCase diff --git a/test/system/diary_entry_test.rb b/test/system/diary_entry_test.rb index 16cb523bc..43287abd0 100644 --- a/test/system/diary_entry_test.rb +++ b/test/system/diary_entry_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class DiaryEntrySystemTest < ApplicationSystemTestCase diff --git a/test/system/directions_test.rb b/test/system/directions_test.rb index 8d77bd24c..20923b699 100644 --- a/test/system/directions_test.rb +++ b/test/system/directions_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class DirectionsSystemTest < ApplicationSystemTestCase diff --git a/test/system/element_current_version_test.rb b/test/system/element_current_version_test.rb index 5d77d3711..6350dba1b 100644 --- a/test/system/element_current_version_test.rb +++ b/test/system/element_current_version_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ElementCurrentVersionTest < ApplicationSystemTestCase diff --git a/test/system/element_history_test.rb b/test/system/element_history_test.rb index 9b2c0d9b7..88777f5bd 100644 --- a/test/system/element_history_test.rb +++ b/test/system/element_history_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ElementHistoryTest < ApplicationSystemTestCase diff --git a/test/system/element_old_version_test.rb b/test/system/element_old_version_test.rb index cadee1a79..f71314b05 100644 --- a/test/system/element_old_version_test.rb +++ b/test/system/element_old_version_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ElementOldVersionTest < ApplicationSystemTestCase diff --git a/test/system/embed_test.rb b/test/system/embed_test.rb index f47fd592d..2c798832b 100644 --- a/test/system/embed_test.rb +++ b/test/system/embed_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class EmbedTest < ApplicationSystemTestCase diff --git a/test/system/fixthemap_test.rb b/test/system/fixthemap_test.rb index 77aacdefa..77b99f857 100644 --- a/test/system/fixthemap_test.rb +++ b/test/system/fixthemap_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class FixthemapTest < ApplicationSystemTestCase diff --git a/test/system/follows_test.rb b/test/system/follows_test.rb index 176a59428..54ae6e667 100644 --- a/test/system/follows_test.rb +++ b/test/system/follows_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class FollowsTest < ApplicationSystemTestCase diff --git a/test/system/history_test.rb b/test/system/history_test.rb index 260ba3038..9fcd2c72b 100644 --- a/test/system/history_test.rb +++ b/test/system/history_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class HistoryTest < ApplicationSystemTestCase diff --git a/test/system/index_test.rb b/test/system/index_test.rb index f9b4c2d50..089cefd21 100644 --- a/test/system/index_test.rb +++ b/test/system/index_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class IndexTest < ApplicationSystemTestCase diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index d116b3064..44d923e43 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class IssuesTest < ApplicationSystemTestCase diff --git a/test/system/messages_test.rb b/test/system/messages_test.rb index 0b8289718..a88985ecd 100644 --- a/test/system/messages_test.rb +++ b/test/system/messages_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class MessagesTest < ApplicationSystemTestCase diff --git a/test/system/note_comments_test.rb b/test/system/note_comments_test.rb index e8bc83b03..42044b08c 100644 --- a/test/system/note_comments_test.rb +++ b/test/system/note_comments_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class NoteCommentsTest < ApplicationSystemTestCase diff --git a/test/system/note_layer_test.rb b/test/system/note_layer_test.rb index 5758eb4c6..2e86a0309 100644 --- a/test/system/note_layer_test.rb +++ b/test/system/note_layer_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class NoteLayerTest < ApplicationSystemTestCase diff --git a/test/system/oauth2_test.rb b/test/system/oauth2_test.rb index 0b9213aaa..28084c147 100644 --- a/test/system/oauth2_test.rb +++ b/test/system/oauth2_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class Oauth2Test < ApplicationSystemTestCase diff --git a/test/system/preferences_test.rb b/test/system/preferences_test.rb index da2247796..0af59f84d 100644 --- a/test/system/preferences_test.rb +++ b/test/system/preferences_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class PreferencesTest < ApplicationSystemTestCase diff --git a/test/system/profile_company_change_test.rb b/test/system/profile_company_change_test.rb index 6e060398a..2cf4ffa0d 100644 --- a/test/system/profile_company_change_test.rb +++ b/test/system/profile_company_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ProfileCompanyChangeTest < ApplicationSystemTestCase diff --git a/test/system/profile_description_change_test.rb b/test/system/profile_description_change_test.rb index 79f10ef96..9a2ebddaa 100644 --- a/test/system/profile_description_change_test.rb +++ b/test/system/profile_description_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ProfileLinksChangeTest < ApplicationSystemTestCase diff --git a/test/system/profile_image_change_test.rb b/test/system/profile_image_change_test.rb index d9272674b..f83040abb 100644 --- a/test/system/profile_image_change_test.rb +++ b/test/system/profile_image_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ProfileImageChangeTest < ApplicationSystemTestCase diff --git a/test/system/profile_links_change_test.rb b/test/system/profile_links_change_test.rb index 85ac71f1d..a1be4795d 100644 --- a/test/system/profile_links_change_test.rb +++ b/test/system/profile_links_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ProfileLinksChangeTest < ApplicationSystemTestCase diff --git a/test/system/profile_location_change_test.rb b/test/system/profile_location_change_test.rb index 5b92f9310..840d4295f 100644 --- a/test/system/profile_location_change_test.rb +++ b/test/system/profile_location_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ProfileLocationChangeTest < ApplicationSystemTestCase diff --git a/test/system/query_features_test.rb b/test/system/query_features_test.rb index 070ebb172..12a8b4b70 100644 --- a/test/system/query_features_test.rb +++ b/test/system/query_features_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class QueryFeaturesSystemTest < ApplicationSystemTestCase diff --git a/test/system/redaction_destroy_test.rb b/test/system/redaction_destroy_test.rb index db0b016a4..a57602ed8 100644 --- a/test/system/redaction_destroy_test.rb +++ b/test/system/redaction_destroy_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class RedactionDestroyTest < ApplicationSystemTestCase diff --git a/test/system/report_diary_comment_test.rb b/test/system/report_diary_comment_test.rb index 915ada4c8..b904ee070 100644 --- a/test/system/report_diary_comment_test.rb +++ b/test/system/report_diary_comment_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ReportDiaryCommentTest < ApplicationSystemTestCase diff --git a/test/system/report_diary_entry_test.rb b/test/system/report_diary_entry_test.rb index e8004ec1d..8fde971aa 100644 --- a/test/system/report_diary_entry_test.rb +++ b/test/system/report_diary_entry_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ReportDiaryEntryTest < ApplicationSystemTestCase diff --git a/test/system/report_note_test.rb b/test/system/report_note_test.rb index 0756c8af7..a1302625b 100644 --- a/test/system/report_note_test.rb +++ b/test/system/report_note_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ReportNoteTest < ApplicationSystemTestCase diff --git a/test/system/report_user_test.rb b/test/system/report_user_test.rb index 6ef488e78..7c622be4c 100644 --- a/test/system/report_user_test.rb +++ b/test/system/report_user_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ReportUserTest < ApplicationSystemTestCase diff --git a/test/system/resolve_note_test.rb b/test/system/resolve_note_test.rb index c4b02b040..71f45aef4 100644 --- a/test/system/resolve_note_test.rb +++ b/test/system/resolve_note_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ResolveNoteTest < ApplicationSystemTestCase diff --git a/test/system/rich_text_test.rb b/test/system/rich_text_test.rb index 6876718bf..ba354fdb5 100644 --- a/test/system/rich_text_test.rb +++ b/test/system/rich_text_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class RichTextSystemTest < ApplicationSystemTestCase diff --git a/test/system/search_test.rb b/test/system/search_test.rb index de3c3d1d1..086837bea 100644 --- a/test/system/search_test.rb +++ b/test/system/search_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class SearchTest < ApplicationSystemTestCase diff --git a/test/system/select_language_test.rb b/test/system/select_language_test.rb index c928e8a87..3b55ba39d 100644 --- a/test/system/select_language_test.rb +++ b/test/system/select_language_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class SelectLanguageTest < ApplicationSystemTestCase diff --git a/test/system/site_test.rb b/test/system/site_test.rb index acdbd446b..7ffb588b9 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class SiteTest < ApplicationSystemTestCase diff --git a/test/system/user_blocks_test.rb b/test/system/user_blocks_test.rb index 52fe3bc3d..72772e968 100644 --- a/test/system/user_blocks_test.rb +++ b/test/system/user_blocks_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserBlocksSystemTest < ApplicationSystemTestCase diff --git a/test/system/user_email_change_test.rb b/test/system/user_email_change_test.rb index ccf1cf2ad..ac08e2712 100644 --- a/test/system/user_email_change_test.rb +++ b/test/system/user_email_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserEmailChangeTest < ApplicationSystemTestCase diff --git a/test/system/user_login_test.rb b/test/system/user_login_test.rb index 4b0d59775..07501a885 100644 --- a/test/system/user_login_test.rb +++ b/test/system/user_login_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserLoginTest < ApplicationSystemTestCase diff --git a/test/system/user_logout_test.rb b/test/system/user_logout_test.rb index 79371a3df..48c19e42f 100644 --- a/test/system/user_logout_test.rb +++ b/test/system/user_logout_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserLogoutTest < ApplicationSystemTestCase diff --git a/test/system/user_muting_test.rb b/test/system/user_muting_test.rb index d46d5a04c..d7376f086 100644 --- a/test/system/user_muting_test.rb +++ b/test/system/user_muting_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserMutingTest < ApplicationSystemTestCase diff --git a/test/system/user_notes_test.rb b/test/system/user_notes_test.rb index 04fa3838a..cb301193f 100644 --- a/test/system/user_notes_test.rb +++ b/test/system/user_notes_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserNotesTest < ApplicationSystemTestCase diff --git a/test/system/user_signup_test.rb b/test/system/user_signup_test.rb index 5cd617e07..c29e94db3 100644 --- a/test/system/user_signup_test.rb +++ b/test/system/user_signup_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserSignupTest < ApplicationSystemTestCase diff --git a/test/system/user_status_change_test.rb b/test/system/user_status_change_test.rb index 30b923732..e1c661644 100644 --- a/test/system/user_status_change_test.rb +++ b/test/system/user_status_change_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserStatusChangeTest < ApplicationSystemTestCase diff --git a/test/system/user_suspension_test.rb b/test/system/user_suspension_test.rb index 55c4b82d7..32e220550 100644 --- a/test/system/user_suspension_test.rb +++ b/test/system/user_suspension_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UserSuspensionTest < ApplicationSystemTestCase diff --git a/test/system/users_test.rb b/test/system/users_test.rb index f291a3916..37afff4d3 100644 --- a/test/system/users_test.rb +++ b/test/system/users_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class UsersTest < ApplicationSystemTestCase diff --git a/test/system/view_communities_test.rb b/test/system/view_communities_test.rb index 1384af2b7..d73f7a756 100644 --- a/test/system/view_communities_test.rb +++ b/test/system/view_communities_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "application_system_test_case" class ViewCommunitiesTest < ApplicationSystemTestCase diff --git a/test/teaspoon_env.rb b/test/teaspoon_env.rb index 5dd59b433..9466e9f45 100644 --- a/test/teaspoon_env.rb +++ b/test/teaspoon_env.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Monkey patch pending new release with # https://github.com/jejacks0n/teaspoon/pull/604 Rack::Server = Rackup::Server diff --git a/test/test_helper.rb b/test/test_helper.rb index 26f05793c..7416b9a4f 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "simplecov" require "simplecov-lcov" diff --git a/test/validators/characters_validator_test.rb b/test/validators/characters_validator_test.rb index 952a61c98..8d2decff8 100644 --- a/test/validators/characters_validator_test.rb +++ b/test/validators/characters_validator_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class InvalidCharsValidatable diff --git a/test/validators/whitespace_validator_test.rb b/test/validators/whitespace_validator_test.rb index 16730d454..fa8eadcf8 100644 --- a/test/validators/whitespace_validator_test.rb +++ b/test/validators/whitespace_validator_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "test_helper" class LeadingWhitespaceValidatable -- 2.39.5