A platform for community discussion. Free, open, simple.
DEV: fix a large amount of typos (#37428)
Sama1c2ac845df1
diff --git a/app/assets/stylesheets/mobile/float-kit/d-menu.scss b/app/assets/stylesheets/mobile/float-kit/d-menu.scssindex 63be5244f3f..c2679a67ece 100644--- a/app/assets/stylesheets/mobile/float-kit/d-menu.scss+++ b/app/assets/stylesheets/mobile/float-kit/d-menu.scss@@ -29,7 +29,7 @@&__item {.btn {border-radius: 0; // overruling the general border-radius var on all btns- // all specific overrules to make sure touch devices dont show focus states, which we apply on opening of the menu+ // all specific overrules to make sure touch devices don't show focus states, which we apply on opening of the menu&:focus-visible,&:active {.discourse-touch & {diff --git a/app/jobs/regular/group_smtp_email.rb b/app/jobs/regular/group_smtp_email.rbindex 6d05f4e884e..078606190dc 100644--- a/app/jobs/regular/group_smtp_email.rb+++ b/app/jobs/regular/group_smtp_email.rb@@ -66,7 +66,7 @@ module JobsEmail::Sender.new(message, :group_smtp, recipient_user).sendrescue Net::ReadTimeout => err# We can't be sure if the send actually failed or if ENTER . ENTER (to end- # the SMTP data sequence) just timed out, as is the case with Gmail occassionaly,+ # the SMTP data sequence) just timed out, as is the case with Gmail occasionally,# where they can do this if they suspect you are sending spam.Discourse.warn_exception(err,diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 5d73998b078..fbdc56706ce 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -4203,7 +4203,7 @@ en:quote_edit: "Edit"quote_edit_shortcut: "Edit (or press e)"quote_copy: "Copy Quote"- quote_copied_to_clibboard: "Quote copied to clipboard"+ quote_copied_to_clipboard: "Quote copied to clipboard"quote_share: "Share"edit_reason: "Reason: "post_number: "post %{number}"@@ -7213,8 +7213,8 @@ en:delete: "Delete"delete_confirm: 'Are you sure you want to delete "%{theme_name}"?'bulk_delete: "Are you sure?"- bulk_themes_delete_confirm: "This will uninstall the following themes, they will no longer be useable by any users on your site:"- bulk_components_delete_confirm: "This will uninstall the following components, they will no longer be useable by any users on your site:"+ bulk_themes_delete_confirm: "This will uninstall the following themes, they will no longer be usable by any users on your site:"+ bulk_components_delete_confirm: "This will uninstall the following components, they will no longer be usable by any users on your site:"color: "Color"opacity: "Opacity"copy: "Duplicate"diff --git a/config/locales/server.en.yml b/config/locales/server.en.ymlindex b0dbbb4ae12..a82c733327b 100644--- a/config/locales/server.en.yml+++ b/config/locales/server.en.yml@@ -1826,7 +1826,7 @@ en:manifest_icon: "Image used as logo/splash image on Android. Will be automatically resized to 512 × 512. If left blank, large_icon will be used."manifest_screenshots: "Screenshots that showcase your instance features and functionality on its install prompt page. All images should be local uploads and of the same dimensions."favicon: "A favicon for your site, see <a href='https://en.wikipedia.org/wiki/Favicon' target='_blank'>https://en.wikipedia.org/wiki/Favicon</a>. To work correctly over a CDN it must be a png. Will be resized to 32x32. If left blank, large_icon will be used."- apple_touch_icon: "Icon used for Apple touch devices. A transparent background is not reccomended. Will be automatically resized to 180x180. If left blank, large_icon will be used."+ apple_touch_icon: "Icon used for Apple touch devices. A transparent background is not recommended. Will be automatically resized to 180x180. If left blank, large_icon will be used."opengraph_image: "Default opengraph image, used when the page has no other suitable image. If left blank, large_icon will be used"x_summary_large_image: "Twitter card 'summary large image' (should be at least 280 in width, and at least 150 in height, cannot be .svg). If left blank, regular card metadata is generated using the opengraph_image, as long as that is not also a .svg"@@ -2439,9 +2439,9 @@ en:show_inactive_accounts: "Allow logged in users to browse profiles of inactive accounts."- hide_silencing_reasons: "Don't display silencing reasons publically on user profiles."+ hide_silencing_reasons: "Don't display silencing reasons publicly on user profiles."- hide_suspension_reasons: "Don't display suspension reasons publically on user profiles."+ hide_suspension_reasons: "Don't display suspension reasons publicly on user profiles."log_personal_messages_views: "Log personal message views by Admin for other users/groups."@@ -2468,7 +2468,7 @@ en:dominating_topic_minimum_percent: "What percentage of posts a user has to make in a topic before being reminded about overly dominating a topic."- pm_warn_user_last_seen_months_ago: "When creating a new PM warn users when target recepient has not been seen more than n months ago."+ pm_warn_user_last_seen_months_ago: "When creating a new PM warn users when target recipient has not been seen more than n months ago."suppress_uncategorized_badge: "Don't show the badge for uncategorized topics in topic lists."diff --git a/db/migrate/20140530002535_remove_system_avatars_from_user_avatars.rb b/db/migrate/20140530002535_remove_system_avatars_from_user_avatars.rbindex f28f4bc43a8..cd122b306d8 100644--- a/db/migrate/20140530002535_remove_system_avatars_from_user_avatars.rb+++ b/db/migrate/20140530002535_remove_system_avatars_from_user_avatars.rb@@ -8,7 +8,7 @@ class RemoveSystemAvatarsFromUserAvatars < ActiveRecord::Migration[4.2]SELECT system_upload_id FROM user_avatars)"- # normally we dont reach into the object model, but we have to here.+ # normally we don't reach into the object model, but we have to here.# otherwise we will wait a real long time for uploads to go awayskip = -1while skip = destroy_system_avatar_batch(skip)diff --git a/db/migrate/20240201170412_fix_tag_topic_allowed_groups_setting.rb b/db/migrate/20240201170412_fix_tag_topic_allowed_groups_setting.rbindex 3c92c64c062..4f71399c640 100644--- a/db/migrate/20240201170412_fix_tag_topic_allowed_groups_setting.rb+++ b/db/migrate/20240201170412_fix_tag_topic_allowed_groups_setting.rb@@ -21,7 +21,7 @@ class FixTagTopicAllowedGroupsSetting < ActiveRecord::Migration[7.0]corresponding_group = "1|3|1#{configured_trust_level}"end- # Just in case this happend in the previous migration.+ # Just in case this happened in the previous migration.corresponding_group =case configured_groupswhen "1admin"diff --git a/frontend/discourse/app/components/post-text-selection-toolbar.gjs b/frontend/discourse/app/components/post-text-selection-toolbar.gjsindex 5e775d42605..0253e819b08 100644--- a/frontend/discourse/app/components/post-text-selection-toolbar.gjs+++ b/frontend/discourse/app/components/post-text-selection-toolbar.gjs@@ -77,7 +77,7 @@ export default class PostTextSelectionToolbar extends Component {clipboardCopy(text);this.toasts.success({duration: "short",- data: { message: i18n("post.quote_copied_to_clibboard") },+ data: { message: i18n("post.quote_copied_to_clipboard") },});await this.args.data.hideToolbar();}diff --git a/frontend/discourse/tests/integration/helpers/element-class-test.gjs b/frontend/discourse/tests/integration/helpers/element-class-test.gjsindex 4a5887d6fec..76cfb4064b4 100644--- a/frontend/discourse/tests/integration/helpers/element-class-test.gjs+++ b/frontend/discourse/tests/integration/helpers/element-class-test.gjs@@ -49,29 +49,29 @@ module("Integration | Helper | body-class and html-class", function (hooks) {await render(<template>{{#if state.condition}}- {{bodyClass "my-class" "persistant-class"}}+ {{bodyClass "my-class" "persistent-class"}}{{htmlClass "my-class"}}{{else}}- {{bodyClass "persistant-class"}}+ {{bodyClass "persistent-class"}}{{/if}}</template>);assert.dom(document.body).doesNotHaveClass("my-class");assert.dom(document.documentElement).doesNotHaveClass("my-class");- assert.dom(document.body).hasClass("persistant-class");+ assert.dom(document.body).hasClass("persistent-class");state.condition = true;await settled();assert.dom(document.body).hasClass("my-class");assert.dom(document.documentElement).hasClass("my-class");- assert.dom(document.body).hasClass("persistant-class");+ assert.dom(document.body).hasClass("persistent-class");state.condition = false;await settled();assert.dom(document.body).doesNotHaveClass("my-class");assert.dom(document.documentElement).doesNotHaveClass("my-class");- assert.dom(document.body).hasClass("persistant-class");+ assert.dom(document.body).hasClass("persistent-class");});});diff --git a/frontend/pretty-text/addon/emoji.js b/frontend/pretty-text/addon/emoji.jsindex 169193df009..6c7874fcbb3 100644--- a/frontend/pretty-text/addon/emoji.js+++ b/frontend/pretty-text/addon/emoji.js@@ -202,7 +202,7 @@ export function emojiSearch(term, options) {function addResult(t) {const val = aliasMap.get(t) || t;- // dont add skin tone variations or alias of denied emoji to search results+ // don't add skin tone variations or alias of denied emoji to search resultsif (!results.includes(val) && !exclude.includes(val)) {if (diversity && diversity > 1 && isSkinTonableEmoji(val)) {results.push(`${val}:t${diversity}`);diff --git a/lib/auth/managed_authenticator.rb b/lib/auth/managed_authenticator.rbindex fdb192f742b..99b30fa6306 100644--- a/lib/auth/managed_authenticator.rb+++ b/lib/auth/managed_authenticator.rb@@ -101,7 +101,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticatorresult.email = info[:email]result.name = "#{info[:first_name]} #{info[:last_name]}".presence || info[:name]# Some IDPs send the email address in the name parameter (e.g. Auth0 with default configuration)- # We add some generic protection here, so that users don't accidently make their email addresses public+ # We add some generic protection here, so that users don't accidentally make their email addresses publicresult.name = nil if result.name.present? && result.name == result.emailresult.username = info[:nickname]result.email_valid = primary_email_verified?(auth_token) if result.email.present?diff --git a/lib/post_revisor.rb b/lib/post_revisor.rbindex 5599b19e7d2..29e986c1208 100644--- a/lib/post_revisor.rb+++ b/lib/post_revisor.rb@@ -530,7 +530,7 @@ class PostRevisor@post.link_post_uploads@post.save_reply_relationships- # we dont want to increment post count on user merge+ # we don't want to increment post count on user mergeif @post_successfully_saved && @editor.id != Discourse::SYSTEM_USER_ID@editor.increment_post_edits_countenddiff --git a/lib/tasks/reviewables.rake b/lib/tasks/reviewables.rakeindex 94f293fdfb1..63b86ec2350 100644--- a/lib/tasks/reviewables.rake+++ b/lib/tasks/reviewables.rake@@ -53,7 +53,7 @@ task "reviewables:mass-handle", %i[reviewable_type username action_id] => :envirputs <<~MSGYou need to specify an action to perform on the #{count} pending #{reviewable_class}.- Here's a list of the all avaiable actions on the #{reviewable_class} type:+ Here's a list of the all available actions on the #{reviewable_class} type:#{actions.join("\n")}MSGnextdiff --git a/plugins/automation/config/locales/server.en.yml b/plugins/automation/config/locales/server.en.ymlindex d250e3b2a1f..60f8f891a21 100644--- a/plugins/automation/config/locales/server.en.yml+++ b/plugins/automation/config/locales/server.en.yml@@ -66,7 +66,7 @@ en:description: When the tags of a topic are changed the automation will be triggeredtopic:title: Topic- description: The associated script will only be used on the specified topic, this is usefull for scripts doing validation for example+ description: The associated script will only be used on the specified topic, this is useful for scripts doing validation for exampletopic_closed:title: Topic closeddescription: Triggers a script when a topic is closed.diff --git a/plugins/automation/spec/triggers/post_created_edited_spec.rb b/plugins/automation/spec/triggers/post_created_edited_spec.rbindex 73c94c45eed..7a1228ca9e9 100644--- a/plugins/automation/spec/triggers/post_created_edited_spec.rb+++ b/plugins/automation/spec/triggers/post_created_edited_spec.rb@@ -209,7 +209,7 @@ describe "PostCreatedEdited" doendcontext "when PM is not sent to the group" do- it "doesnt fire the trigger" do+ it "doesn't fire the trigger" dolist =capture_contexts doPostCreator.create(diff --git a/plugins/automation/spec/triggers/user_updated_spec.rb b/plugins/automation/spec/triggers/user_updated_spec.rbindex 16b0b455126..befa88777ae 100644--- a/plugins/automation/spec/triggers/user_updated_spec.rb+++ b/plugins/automation/spec/triggers/user_updated_spec.rb@@ -69,7 +69,7 @@ describe "UserUpdated" doautomation.upsert_field!("once_per_user", "boolean", { value: true }, target: "trigger")end- it "doesnt trigger if automation already triggered" do+ it "doesn't trigger if automation already triggered" doUserUpdater.new(user, user).update(location: "Korea", bio_raw: "good")output =diff --git a/plugins/chat/app/jobs/regular/chat/process_message.rb b/plugins/chat/app/jobs/regular/chat/process_message.rbindex fced8eb3826..fc2ce806776 100644--- a/plugins/chat/app/jobs/regular/chat/process_message.rb+++ b/plugins/chat/app/jobs/regular/chat/process_message.rb@@ -28,7 +28,7 @@ module Jobs)end- # we dont process mentions when creating/updating message so we always have to do it+ # we don't process mentions when creating/updating message so we always have to do itchat_message.upsert_mentions# extract external links for webhook-based rebakingdiff --git a/plugins/chat/spec/requests/chat/api/channels_controller_spec.rb b/plugins/chat/spec/requests/chat/api/channels_controller_spec.rbindex 15bbe9511ea..84ee026b124 100644--- a/plugins/chat/spec/requests/chat/api/channels_controller_spec.rb+++ b/plugins/chat/spec/requests/chat/api/channels_controller_spec.rb@@ -104,7 +104,7 @@ RSpec.describe Chat::Api::ChannelsController docontext "with direct message channels" dofab!(:dm_channel_1) { Fabricate(:direct_message_channel, users: [current_user]) }- it "doesnt return direct message channels" do+ it "doesn't return direct message channels" doget "/chat/api/channels"expect(response.parsed_body["channels"]).to be_blankenddiff --git a/plugins/chat/spec/requests/chat/api/channels_messages_streaming_controller_spec.rb b/plugins/chat/spec/requests/chat/api/channels_messages_streaming_controller_spec.rbindex 15d3e08f98e..0ff8bf1cc86 100644--- a/plugins/chat/spec/requests/chat/api/channels_messages_streaming_controller_spec.rb+++ b/plugins/chat/spec/requests/chat/api/channels_messages_streaming_controller_spec.rb@@ -32,7 +32,7 @@ RSpec.describe Chat::Api::ChannelsMessagesStreamingController doendend- context "when the message doesnt exist" do+ context "when the message doesn't exist" doit "returns a 404 error" dodelete "/chat/api/channels/#{channel_1.id}/messages/-999/streaming"diff --git a/plugins/chat/spec/requests/chat/api/messages_controller_spec.rb b/plugins/chat/spec/requests/chat/api/messages_controller_spec.rbindex 18d45fb956f..e4f6d0b18f4 100644--- a/plugins/chat/spec/requests/chat/api/messages_controller_spec.rb+++ b/plugins/chat/spec/requests/chat/api/messages_controller_spec.rb@@ -217,7 +217,7 @@ RSpec.describe Chat::Api::ChannelMessagesController docontext "when current user is silenced" dobefore { UserSilencer.new(user).silence }- it "raises invalid acces" do+ it "raises invalid access" dopost "/chat/#{chat_channel.id}.json", params: { message: message }expect(response.status).to eq(403)end@@ -406,7 +406,7 @@ RSpec.describe Chat::Api::ChannelMessagesController doUserSilencer.new(user1).silenceend- it "raises invalid acces" do+ it "raises invalid access" dopost "/chat/#{direct_message_channel.id}.json", params: { message: message }expect(response.status).to eq(403)enddiff --git a/plugins/chat/spec/services/chat/invite_users_to_channel_spec.rb b/plugins/chat/spec/services/chat/invite_users_to_channel_spec.rbindex 3ab51ce8d2b..3d2b120a78c 100644--- a/plugins/chat/spec/services/chat/invite_users_to_channel_spec.rb+++ b/plugins/chat/spec/services/chat/invite_users_to_channel_spec.rb@@ -39,7 +39,7 @@ RSpec.describe Chat::InviteUsersToChannel doexpect(notification).to be_nilend- it "doesnt create notifications for suspended users" do+ it "doesn't create notifications for suspended users" douser_1.update!(suspended_till: 2.days.from_now, suspended_at: Time.now)result@@ -48,7 +48,7 @@ RSpec.describe Chat::InviteUsersToChannel doexpect(notification).to be_nilend- it "doesnt create notifications for users with disabled chat" do+ it "doesn't create notifications for users with disabled chat" douser_1.user_option.update!(chat_enabled: false)resultdiff --git a/plugins/chat/spec/services/chat/list_user_channels_spec.rb b/plugins/chat/spec/services/chat/list_user_channels_spec.rbindex 41870321d13..c4e7f9edd41 100644--- a/plugins/chat/spec/services/chat/list_user_channels_spec.rb+++ b/plugins/chat/spec/services/chat/list_user_channels_spec.rb@@ -68,7 +68,7 @@ RSpec.describe Chat::ListUserChannels doexpect(result.structured[:direct_message_channels]).to eq([dm_channel])end- it "doesnt return channels with destroyed chatable" do+ it "doesn't return channels with destroyed chatable" dodm_channel = Fabricate(:direct_message_channel, users: [current_user])dm_channel.chatable.destroy!channel_1.chatable.destroy!diff --git a/plugins/chat/spec/system/admin/csv_exports_spec.rb b/plugins/chat/spec/system/admin/csv_exports_spec.rbindex 5eec7d9bf00..87fc5c78df1 100644--- a/plugins/chat/spec/system/admin/csv_exports_spec.rb+++ b/plugins/chat/spec/system/admin/csv_exports_spec.rb@@ -12,7 +12,7 @@ RSpec.describe "Admin Chat CSV exports", type: :system doendit "exports chat messages" do- orignal_save_path = Capybara.save_path+ original_save_path = Capybara.save_pathCapybara.save_path = Downloads::FOLDERJobs.run_immediately!@@ -56,7 +56,7 @@ RSpec.describe "Admin Chat CSV exports", type: :system doassert_message(exported_data.fourth, message_3)assert_message(exported_data.fifth, message_4)ensure- Capybara.save_path = orignal_save_path+ Capybara.save_path = original_save_pathcsv_export_pm_page.clear_downloadsenddiff --git a/plugins/chat/spec/system/chat_channel_spec.rb b/plugins/chat/spec/system/chat_channel_spec.rbindex eef4550763c..09faa1c4c27 100644--- a/plugins/chat/spec/system/chat_channel_spec.rb+++ b/plugins/chat/spec/system/chat_channel_spec.rb@@ -58,7 +58,7 @@ RSpec.describe "Chat channel", type: :system doendend- context "when first batch of messages doesnt fill page" do+ context "when first batch of messages doesn't fill page" dobefore { Fabricate.times(30, :chat_message, user: current_user, chat_channel: channel_1) }it "autofills for more messages" dodiff --git a/plugins/chat/spec/system/chat_composer_spec.rb b/plugins/chat/spec/system/chat_composer_spec.rbindex 2ea432a3cf0..d8f7dcaafdd 100644--- a/plugins/chat/spec/system/chat_composer_spec.rb+++ b/plugins/chat/spec/system/chat_composer_spec.rb@@ -201,7 +201,7 @@ RSpec.describe "Chat composer", type: :system do)end- it "doesnt delete the message" do+ it "doesn't delete the message" dochat_page.visit_channel(channel_1)channel_page.composer.edit_last_message_shortcutchannel_page.composer.send_keys("")diff --git a/plugins/chat/spec/system/list_channels/no_sidebar_spec.rb b/plugins/chat/spec/system/list_channels/no_sidebar_spec.rbindex ca9377bb384..cf63d94a1a2 100644--- a/plugins/chat/spec/system/list_channels/no_sidebar_spec.rb+++ b/plugins/chat/spec/system/list_channels/no_sidebar_spec.rb@@ -133,7 +133,7 @@ RSpec.describe "List channels | no sidebar", type: :system doexpect(chat).to have_direct_message_channels_sectionend- context "with drawer prefered" do+ context "with drawer preferred" dobefore { chat.prefers_drawer }it "shows the create direct message button in the drawer" dodiff --git a/plugins/discourse-ai/app/serializers/llm_model_serializer.rb b/plugins/discourse-ai/app/serializers/llm_model_serializer.rbindex 1d959fad393..30ccc0a537c 100644--- a/plugins/discourse-ai/app/serializers/llm_model_serializer.rb+++ b/plugins/discourse-ai/app/serializers/llm_model_serializer.rb@@ -3,7 +3,7 @@class LlmModelSerializer < ApplicationSerializer# TODO: we probably should rename the table LlmModel to AiLlm# it is consistent with AiPersona and AiTool- # LLM model is a bit confusing given that large langauge model model is a confusing+ # LLM model is a bit confusing given that large language model model is a confusing# nameroot "ai_llm"attributes :id,diff --git a/plugins/discourse-ai/config/locales/server.en.yml b/plugins/discourse-ai/config/locales/server.en.ymlindex 5395a2eb124..fc0fb7e249d 100644--- a/plugins/discourse-ai/config/locales/server.en.yml+++ b/plugins/discourse-ai/config/locales/server.en.yml@@ -127,7 +127,7 @@ en:ai_bot_enabled: "Enable the AI Bot module."ai_bot_enabled_llms: "LLMs available to select for AI bot conversations"- ai_bot_enable_chat_warning: "Display a warning when PM chat is initiated. Can be overriden by editing the translation string: discourse_ai.ai_bot.pm_warning"+ ai_bot_enable_chat_warning: "Display a warning when PM chat is initiated. Can be overridden by editing the translation string: discourse_ai.ai_bot.pm_warning"ai_bot_allowed_groups: "When the GPT Bot has access to the PM, it will reply to members of these groups."ai_bot_debugging_allowed_groups: "Allow these groups to see a debug button on posts which displays the raw AI request and response"ai_bot_public_sharing_allowed_groups: "Allow these groups to share AI personal messages with the public via a unique publicly available link. Note: if your site requires login, shares will also require login."@@ -337,7 +337,7 @@ en:flag_reason: "Flagged as spam by <a href='%{url}'>Discourse AI</a>"silence_reason: "User silenced automatically by <a href='%{url}'>Discourse AI</a>"invalid_error_type: "Invalid error type provided"- unexpected: "An unexpected error occured"+ unexpected: "An unexpected error occurred"bot_user_update_failed: "Failed to update the spam scanning bot user"configuration_missing: "The AI spam detection configuration is missing. Add configuration in the 'Admin > Plugins > Discourse AI > Spam' before enabling."logging_subject: "Spam detection"diff --git a/plugins/discourse-ai/spec/lib/modules/embeddings/strategies/truncation_spec.rb b/plugins/discourse-ai/spec/lib/modules/embeddings/strategies/truncation_spec.rbindex 719e3a627e9..941ebb81835 100644--- a/plugins/discourse-ai/spec/lib/modules/embeddings/strategies/truncation_spec.rb+++ b/plugins/discourse-ai/spec/lib/modules/embeddings/strategies/truncation_spec.rb@@ -40,7 +40,7 @@ RSpec.describe DiscourseAi::Embeddings::Strategies::Truncation doexpect(prepared_text.starts_with?(prefix)).to eq(true)end- context "if topic contains more tokens in cooked posts than embeddings max sequence lenght" do+ context "if topic contains more tokens in cooked posts than embeddings max sequence length" dobefore { open_ai_embedding_def.update!(max_sequence_length: 100) }it "applies TEXT_TO_HTML_TOKEN_RATIO multiplier for post content collection" dodiff --git a/plugins/discourse-ai/spec/services/discourse_ai/topic_summarization_spec.rb b/plugins/discourse-ai/spec/services/discourse_ai/topic_summarization_spec.rbindex 74dc3341eb2..f1434478c12 100644--- a/plugins/discourse-ai/spec/services/discourse_ai/topic_summarization_spec.rb+++ b/plugins/discourse-ai/spec/services/discourse_ai/topic_summarization_spec.rb@@ -64,7 +64,7 @@ describe DiscourseAi::TopicSummarization do# a bit tricky, but fold_content now caches an instance of LLM# once it is cached with_prepared_responses will not work as expected# since it is glued to the old llm instance- # so we create the cached summary totally independantly+ # so we create the cached summary totally independentlyDiscourseAi::Completions::Llm.with_prepared_responses([cached_text]) dostrategy = DiscourseAi::Summarization.topic_summary(topic)described_class.new(strategy, user).summarizediff --git a/plugins/discourse-assign/config/locales/client.en.yml b/plugins/discourse-assign/config/locales/client.en.ymlindex 0b0aabcdaa1..88da3e6a02d 100644--- a/plugins/discourse-assign/config/locales/client.en.yml+++ b/plugins/discourse-assign/config/locales/client.en.yml@@ -126,8 +126,8 @@ en:web_hooks:assign_event:group_name: "Assign Events"- assigned: "When an user assigns a topic"- unassigned: "When an user unassigns a topic"+ assigned: "When a user assigns a topic"+ unassigned: "When a user unassigns a topic"search:advanced:in:diff --git a/plugins/discourse-assign/spec/requests/list_controller_spec.rb b/plugins/discourse-assign/spec/requests/list_controller_spec.rbindex ced922c1132..253efe023ad 100644--- a/plugins/discourse-assign/spec/requests/list_controller_spec.rb+++ b/plugins/discourse-assign/spec/requests/list_controller_spec.rb@@ -64,14 +64,14 @@ describe ListController dosign_in(user)end- it "returns user-assigned-topics-list of users in the assigned_allowed_group and doesnt include deleted topic" do+ it "returns user-assigned-topics-list of users in the assigned_allowed_group and doesn't include deleted topic" doget "/topics/group-topics-assigned/#{get_assigned_allowed_group_name}.json"expect(JSON.parse(response.body)["topic_list"]["topics"].map { |t| t["assigned_to_user"]["id"] },).to match_array([user.id])end- it "returns user-assigned-topics-list of users in the assigned_allowed_group and doesnt include inactive topics" do+ it "returns user-assigned-topics-list of users in the assigned_allowed_group and doesn't include inactive topics" doAssignment.where(assigned_to: user, target: topic1).update_all(active: false)get "/topics/group-topics-assigned/#{get_assigned_allowed_group_name}.json"@@ -87,7 +87,7 @@ describe ListController doexpect(ids).to be_emptyend- it "doesnt returns deleted topics" do+ it "doesn't return deleted topics" dosign_in(admin)Assigner.new(topic, user).assign(user)diff --git a/plugins/discourse-calendar/config/locales/server.en.yml b/plugins/discourse-calendar/config/locales/server.en.ymlindex c6361d650d9..f2a3eed01cc 100644--- a/plugins/discourse-calendar/config/locales/server.en.yml+++ b/plugins/discourse-calendar/config/locales/server.en.yml@@ -74,7 +74,7 @@ en:ongoing_event_reminder: "%{title} is ongoing."errors:bulk_invite:- max_invitees: "First %{max_invittes} invitees have been created. Try splitting the file in smaller parts."+ max_invitees: "First %{max_invitees} invitees have been created. Try splitting the file in smaller parts."error: "There was an error uploading that file. Please try again later."models:event:diff --git a/plugins/discourse-chat-integration/config/locales/client.en.yml b/plugins/discourse-chat-integration/config/locales/client.en.ymlindex 2314a081289..a823f1a024f 100644--- a/plugins/discourse-chat-integration/config/locales/client.en.yml+++ b/plugins/discourse-chat-integration/config/locales/client.en.yml@@ -10,7 +10,7 @@ en:settings: "Settings"no_providers: "You need to enable some providers in the plugin settings"channels_with_errors: "Some channels for this provider failed last time messages were sent. Click the error icon(s) to learn more."- channel_exception: "An unknown error occured when a message was last sent to this channel."+ channel_exception: "An unknown error occurred when a message was last sent to this channel."group_mention_template: "Mentions of: @%{name}"group_message_template: "Messages to: @%{name}"choose_group: "(choose a group)"@@ -27,7 +27,7 @@ en:topic: "Topic"send: "Send Test Message"close: "Close"- error: "An unknown error occured while sending the message. Check the site logs for more information."+ error: "An unknown error occurred while sending the message. Check the site logs for more information."success: "Message sent successfully"type:normal: Normaldiff --git a/plugins/discourse-chat-integration/config/locales/server.en.yml b/plugins/discourse-chat-integration/config/locales/server.en.ymlindex 157810ee291..c54ac0e006a 100644--- a/plugins/discourse-chat-integration/config/locales/server.en.yml+++ b/plugins/discourse-chat-integration/config/locales/server.en.yml@@ -90,8 +90,8 @@ en:#######################################chat_integration_groupme_enabled: "Enable the Groupme chat integration provider"chat_integration_groupme_excerpt_length: "Groupme post excerpt length"- chat_integration_groupme_bot_ids: "*required* Bot IDs, seperated by ',' if there are multiple"- chat_integration_groupme_instance_names: " *required* Name of the GroupMe chat, seperated by ',' if there are multiple (same order as Bot IDs)"+ chat_integration_groupme_bot_ids: "*required* Bot IDs, separated by ',' if there are multiple"+ chat_integration_groupme_instance_names: " *required* Name of the GroupMe chat, separated by ',' if there are multiple (same order as Bot IDs)"################################################### MICROSOFT TEAMS SETTINGS #########@@ -159,10 +159,10 @@ en:create:created: "Rule created successfully"updated: "Rule updated successfully"- error: "Sorry, an error occured while creating that rule."+ error: "Sorry, an error occurred while creating that rule."delete:success: "Rule deleted successfully"- error: "Sorry, an error occured while deleting that rule. Run `/discourse status` for a list of rules."+ error: "Sorry, an error occurred while deleting that rule. Run `/discourse status` for a list of rules."not_found:tag: "The *%{name}* tag cannot be found."category: "The *%{name}* category cannot be found. Available categories: *%{list}*"@@ -229,10 +229,10 @@ en:create:created: "Rule created successfully"updated: "Rule updated successfully"- error: "Sorry, an error occured while creating that rule."+ error: "Sorry, an error occurred while creating that rule."delete:success: "Rule deleted successfully"- error: "Sorry, an error occured while deleting that rule. Run <code>/status</code> for a list of rules."+ error: "Sorry, an error occurred while deleting that rule. Run <code>/status</code> for a list of rules."not_found:tag: "The <b>%{name}</b> tag cannot be found."category: "The <b>%{name}</b> category cannot be found. Available categories: <b>%{list}</b>"@@ -271,10 +271,10 @@ en:create:created: "Rule created successfully"updated: "Rule updated successfully"- error: "Sorry, an error occured while creating that rule."+ error: "Sorry, an error occurred while creating that rule."delete:success: "Rule deleted successfully"- error: "Sorry, an error occured while deleting that rule. Run `/discourse status` for a list of rules."+ error: "Sorry, an error occurred while deleting that rule. Run `/discourse status` for a list of rules."not_found:tag: "The *%{name}* tag cannot be found."category: "The *%{name}* category cannot be found. Available categories: *%{list}*"diff --git a/plugins/discourse-data-explorer/config/locales/client.en.yml b/plugins/discourse-data-explorer/config/locales/client.en.ymlindex ed5a2e3f87a..6d0584e54c4 100644--- a/plugins/discourse-data-explorer/config/locales/client.en.yml+++ b/plugins/discourse-data-explorer/config/locales/client.en.yml@@ -95,8 +95,8 @@ en:invalid: "Invalid"no_such_category: "No such category"no_such_group: "No such group"- invalid_date: "%{date} is a invalid date"- invalid_time: "%{time} is a invalid time"+ invalid_date: "%{date} is an invalid date"+ invalid_time: "%{time} is an invalid time"group:reports: "Reports"admin:diff --git a/plugins/discourse-gamification/spec/lib/scorables/shared_scorables_spec.rb b/plugins/discourse-gamification/spec/lib/scorables/shared_scorables_spec.rbindex bac1e373228..ef27a57e93e 100755--- a/plugins/discourse-gamification/spec/lib/scorables/shared_scorables_spec.rb+++ b/plugins/discourse-gamification/spec/lib/scorables/shared_scorables_spec.rb@@ -317,7 +317,7 @@ RSpec.describe DiscourseGamification::ChatReactionReceived doChat::Message.all.each { |m| Fabricate(:chat_message_reaction, chat_message: m) }end- # ten reactions recieved+ # ten reactions receivedlet(:expected_score) { 10 }enddiff --git a/plugins/discourse-graphviz/README.md b/plugins/discourse-graphviz/README.mdindex d76b3bfe38f..516fd8e1950 100644--- a/plugins/discourse-graphviz/README.md+++ b/plugins/discourse-graphviz/README.md@@ -9,7 +9,7 @@ Topic discussing the plugin itself can be found here: https://meta.discourse.org### UsageSee the [Graphviz](https://www.graphviz.org/documentation/) site for documentation and examples.-To use with a discourse post, wrap the chart defintion in `graphviz` tags and define engine (if not defined, it will default to `dot`) like this:+To use with a discourse post, wrap the chart definition in `graphviz` tags and define engine (if not defined, it will default to `dot`) like this:```[graphviz engine=neato]diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rbindex 609099cf3a3..7a4c28134f1 100644--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/actions.rb@@ -15,14 +15,14 @@ module DiscourseNarrativeBotprivatedef reply_to(post, raw, opts = {}, post_alert_options = {})- defaut_post_alert_opts = { skip_send_email: true }.merge(post_alert_options)+ default_post_alert_opts = { skip_send_email: true }.merge(post_alert_options)if postdefault_opts = {raw: raw,topic_id: post.topic_id,reply_to_post_number: post.post_number,- post_alert_options: defaut_post_alert_opts,+ post_alert_options: default_post_alert_opts,skip_validations: true,}@@ -32,7 +32,7 @@ module DiscourseNarrativeBotelsePostCreator.create!(self.discobot_user,- { post_alert_options: defaut_post_alert_opts, raw: raw, skip_validations: true }.merge(+ { post_alert_options: default_post_alert_opts, raw: raw, skip_validations: true }.merge(opts,),)diff --git a/plugins/discourse-reactions/spec/serializers/topic_view_serializer_spec.rb b/plugins/discourse-reactions/spec/serializers/topic_view_serializer_spec.rbindex 3c2213611fa..ee6e2361fae 100644--- a/plugins/discourse-reactions/spec/serializers/topic_view_serializer_spec.rb+++ b/plugins/discourse-reactions/spec/serializers/topic_view_serializer_spec.rb@@ -48,7 +48,7 @@ describe TopicViewSerializer doexpect(json[:post_stream][:posts][0][:reaction_users_count]).to eq(2)end- it "doesnt count deleted likes" do+ it "doesn't count deleted likes" doSiteSetting.discourse_reactions_like_icon = "heart"json = TopicViewSerializer.new(topic_view, scope: Guardian.new(user_2), root: false).as_jsondiff --git a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjsindex e694937912d..b1eafd5f25c 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs+++ b/plugins/styleguide/assets/javascripts/discourse/components/sections/atoms/05-forms.gjs@@ -191,7 +191,7 @@ export default class Forms extends Component {<radioGroup.Radio @value="false" as |radio|><radio.Title>No</radio.Title><radio.Description>- Choosing no, will make you inelligible for the contest.+ Choosing no, will make you ineligible for the contest.</radio.Description></radioGroup.Radio></field.RadioGroup>@@ -552,7 +552,7 @@ import Form from "discourse/components/form";<radioGroup.Radio @value="false" as |radio|><radio.Title>No</radio.Title><radio.Description>- Choosing no, will make you inelligible for the contest.+ Choosing no, will make you ineligible for the contest.</radio.Description></radioGroup.Radio></field.RadioGroup>diff --git a/script/bulk_import/discourse_merger.rb b/script/bulk_import/discourse_merger.rbindex c2331096c85..5cabd00d161 100644--- a/script/bulk_import/discourse_merger.rb+++ b/script/bulk_import/discourse_merger.rb@@ -223,7 +223,7 @@ class BulkImport::DiscourseMerger < BulkImport::Basecopy_model(GroupUser, skip_if_merged: true)end- def category_exisits(cat_row)+ def category_exists(cat_row)# Categories with the same name/slug and parent are mergedparent = category_id_from_imported_id(cat_row["parent_category_id"])@@ -250,7 +250,7 @@ class BulkImport::DiscourseMerger < BulkImport::Base).each do |row|# If a category with the same slug or name, and the same parent, exists- existing_category = category_exisits(row)+ existing_category = category_exists(row)if existing_category@categories[row["id"].to_i] = existing_category@@ -305,7 +305,7 @@ class BulkImport::DiscourseMerger < BulkImport::Base).each do |row|# If a category with the same slug or name, and the same parent, exists- existing_category = category_exisits(row)+ existing_category = category_exists(row)if existing_category@categories[row["id"].to_i] = existing_categorydiff --git a/script/import_scripts/discuz_x.rb b/script/import_scripts/discuz_x.rbindex ef4b0fb36ad..529cd969dd0 100644--- a/script/import_scripts/discuz_x.rb+++ b/script/import_scripts/discuz_x.rb@@ -730,11 +730,11 @@ class ImportScripts::DiscuzX < ImportScripts::Bases.gsub!(%r{\[img[^\]]*\]https?://#{ORIGINAL_SITE_PREFIX}/(.*)\[/img\]}i,'[x-attach]\1[/x-attach]',- ) # dont convert attachment+ ) # don't convert attachments.gsub!(%r{<img[^>]*src="https?://#{ORIGINAL_SITE_PREFIX}/(.*)".*?>}i,'[x-attach]\1[/x-attach]',- ) # dont convert attachment+ ) # don't convert attachments.gsub!(%r{\[img[^\]]*\]https?://www\.touhou\.cc/blog/(.*)\[/img\]}i,'[x-attach]../blog/\1[/x-attach]',diff --git a/spec/jobs/clean_up_tags_spec.rb b/spec/jobs/clean_up_tags_spec.rbindex 3f3928185e3..bf71594f880 100644--- a/spec/jobs/clean_up_tags_spec.rb+++ b/spec/jobs/clean_up_tags_spec.rb@@ -7,7 +7,7 @@ describe Jobs::CleanUpTags do[Fabricate(:tag,- name: "used_publically",+ name: "used_publicly",staff_topic_count: 2,public_topic_count: 2,pm_topic_count: 0,diff --git a/spec/jobs/notify_tag_change_spec.rb b/spec/jobs/notify_tag_change_spec.rbindex b1c7dfcc106..0c01967adc2 100644--- a/spec/jobs/notify_tag_change_spec.rb+++ b/spec/jobs/notify_tag_change_spec.rb@@ -48,7 +48,7 @@ RSpec.describe ::Jobs::NotifyTagChange do}end- it "doesnt create notification for user watching category" do+ it "doesn't create notification for user watching category" doCategoryUser.create!(user_id: user.id,category_id: post.topic.category_id,diff --git a/spec/jobs/pull_hotlinked_images_spec.rb b/spec/jobs/pull_hotlinked_images_spec.rbindex cf9fffaa89e..cb98b248d8a 100644--- a/spec/jobs/pull_hotlinked_images_spec.rb+++ b/spec/jobs/pull_hotlinked_images_spec.rb@@ -259,7 +259,7 @@ RSpec.describe Jobs::PullHotlinkedImages doendcontext "when secure uploads enabled for an upload that has already been downloaded and exists" do- it "doesnt redownload the secure upload" do+ it "doesn't redownload the secure upload" dosetup_s3SiteSetting.secure_uploads = truediff --git a/spec/lib/auth/google_oauth2_authenticator_spec.rb b/spec/lib/auth/google_oauth2_authenticator_spec.rbindex 736ad944db1..e0e5ed28ba7 100644--- a/spec/lib/auth/google_oauth2_authenticator_spec.rb+++ b/spec/lib/auth/google_oauth2_authenticator_spec.rb@@ -213,7 +213,7 @@ RSpec.describe Auth::GoogleOAuth2Authenticator docontext "when disabled" dobefore { SiteSetting.google_oauth2_hd_groups = false }- it "doesnt add associated groups" do+ it "doesn't add associated groups" doresult = described_class.new.after_authenticate(@auth_hash)expect(result.associated_groups).to eq(nil)enddiff --git a/spec/lib/cache_spec.rb b/spec/lib/cache_spec.rbindex 0e547b0cae0..cffb6dc206b 100644--- a/spec/lib/cache_spec.rb+++ b/spec/lib/cache_spec.rb@@ -58,7 +58,7 @@ RSpec.describe Cache doexpect(Discourse.redis.ttl(key)).to be_within(2.seconds).of(1.minute)- # we always expire withing a day+ # we always expire within a daycache.fetch("bla") { "hi" }key = cache.normalize_key("bla")diff --git a/spec/lib/email/receiver_spec.rb b/spec/lib/email/receiver_spec.rbindex 2536f5d3352..5948bb6a5c1 100644--- a/spec/lib/email/receiver_spec.rb+++ b/spec/lib/email/receiver_spec.rb@@ -1245,7 +1245,7 @@ RSpec.describe Email::Receiver doexpect(User.find_by_email("[email protected]")).to eq(nil)end- it "creates the reply when the sender and referenced messsage id are known" do+ it "creates the reply when the sender and referenced message id are known" doexpect { process(:email_reply_to_group_email_username) }.to change { topic.posts.count }.by(1,).and not_change { Topic.count }diff --git a/spec/lib/guardian_spec.rb b/spec/lib/guardian_spec.rbindex f90bd7d35d8..c79ed690e8f 100644--- a/spec/lib/guardian_spec.rb+++ b/spec/lib/guardian_spec.rb@@ -2448,7 +2448,7 @@ RSpec.describe Guardian doendend- context "when ignorer is not in requred trust level group" do+ context "when ignorer is not in required trust level group" dolet(:guardian) { Guardian.new(trust_level_0) }it "does not allow ignoring user" doexpect(guardian.can_ignore_user?(another_user)).to eq(false)diff --git a/spec/lib/html_to_markdown_spec.rb b/spec/lib/html_to_markdown_spec.rbindex c8fd0da8ba2..7d59392bee5 100644--- a/spec/lib/html_to_markdown_spec.rb+++ b/spec/lib/html_to_markdown_spec.rb@@ -67,7 +67,7 @@ RSpec.describe HtmlToMarkdown doit "removes tags that aren't allowed" dohtml = <<~HTML- <custom>Text withing custom <span>tag</span></custom>+ <custom>Text within custom <span>tag</span></custom><div>Text within allowed tag</div>HTMLdiff --git a/spec/lib/pretty_text_spec.rb b/spec/lib/pretty_text_spec.rbindex 1afcdab6bf0..0f4cd0f0d3f 100644--- a/spec/lib/pretty_text_spec.rb+++ b/spec/lib/pretty_text_spec.rb@@ -1913,7 +1913,7 @@ RSpec.describe PrettyText doexpect(PrettyText.cook(" http://somewhere.com/?abc#known")).not_to include("hashtag")end- it "does not trigger when preceeded with a slash" do+ it "does not trigger when preceded with a slash" doexpect(PrettyText.cook("/#known")).not_to include("hashtag")expect(PrettyText.cook("test/#known")).not_to include("hashtag")enddiff --git a/spec/lib/service/steps_inspector_spec.rb b/spec/lib/service/steps_inspector_spec.rbindex f1bba444222..79db5aa6f59 100644--- a/spec/lib/service/steps_inspector_spec.rb+++ b/spec/lib/service/steps_inspector_spec.rb@@ -340,7 +340,7 @@ RSpec.describe Service::StepsInspector doexpect(error).to match(/ActiveModel::Error attribute=parameter, type=blank, options={}/)end- it "returns the provided paramaters" do+ it "returns the provided parameters" do# first option is for ruby 3.3 and the other for 3.4expect(error).to match(/{"parameter"=>nil, "other_param"=>nil}/).or match(/{"parameter" => nil, "other_param" => nil}/,diff --git a/spec/lib/site_setting_extension_spec.rb b/spec/lib/site_setting_extension_spec.rbindex 4c0aec6eb0b..68638eb0154 100644--- a/spec/lib/site_setting_extension_spec.rb+++ b/spec/lib/site_setting_extension_spec.rb@@ -242,7 +242,7 @@ RSpec.describe SiteSettingExtension doexpect(settings.test_setting).to eq(77)end- context "when overidden" do+ context "when overridden" doafter :each dosettings.remove_override!(:test_setting)end@@ -476,7 +476,7 @@ RSpec.describe SiteSettingExtension do)end- context "when overidden" do+ context "when overridden" doafter :each dosettings.remove_override!(:test_setting)enddiff --git a/spec/lib/text_cleaner_spec.rb b/spec/lib/text_cleaner_spec.rbindex 022203b3692..09cfa9891fc 100644--- a/spec/lib/text_cleaner_spec.rb+++ b/spec/lib/text_cleaner_spec.rb@@ -238,7 +238,7 @@ RSpec.describe TextCleaner doendit "does not muck with zero width white space" do- # this is used for khmer, dont mess with it+ # this is used for khmer, don't mess with itexpect(TextCleaner.normalize_whitespaces("hello\u200Bworld").strip).to eq("hello\u200Bworld")expect(TextCleaner.normalize_whitespaces("hello\uFEFFworld").strip).to eq("hello\uFEFFworld")enddiff --git a/spec/models/associated_group_spec.rb b/spec/models/associated_group_spec.rbindex 2bdbad13169..404b129562a 100644--- a/spec/models/associated_group_spec.rb+++ b/spec/models/associated_group_spec.rb@@ -33,13 +33,13 @@ RSpec.describe AssociatedGroup doexpect(described_class.exists?(associated_group.id)).to eq(false)end- it "doesnt delete associated groups associated with groups" do+ it "doesn't delete associated groups associated with groups" doGroupAssociatedGroup.create(group_id: group.id, associated_group_id: associated_group.id)described_class.cleanup!expect(described_class.exists?(associated_group.id)).to eq(true)end- it "doesnt delete associated groups associated with users" do+ it "doesn't delete associated groups associated with users" doUserAssociatedGroup.create(user_id: user.id, associated_group_id: associated_group.id)described_class.cleanup!expect(described_class.exists?(associated_group.id)).to eq(true)diff --git a/spec/models/category_list_spec.rb b/spec/models/category_list_spec.rbindex 68abc136ef5..ac8b1c1f73d 100644--- a/spec/models/category_list_spec.rb+++ b/spec/models/category_list_spec.rb@@ -22,7 +22,7 @@ RSpec.describe CategoryList dolet(:admin_category_list) { CategoryList.new(Guardian.new(admin), include_topics: true) }- it "doesn't set has_children when an unpriveleged user is querying" do+ it "doesn't set has_children when an unprivileged user is querying" dofound = category_list.categories.find { |c| c.id == category.id }expect(found.has_children).to eq(false)enddiff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rbindex 18475626432..264bc42ab45 100644--- a/spec/models/tag_spec.rb+++ b/spec/models/tag_spec.rb@@ -291,7 +291,7 @@ RSpec.describe Tag do[Fabricate(:tag,- name: "used_publically",+ name: "used_publicly",staff_topic_count: 2,public_topic_count: 2,pm_topic_count: 0,diff --git a/spec/models/theme_spec.rb b/spec/models/theme_spec.rbindex 8f98d3e103a..0a0e4032a44 100644--- a/spec/models/theme_spec.rb+++ b/spec/models/theme_spec.rb@@ -1012,12 +1012,12 @@ HTMLtheme.save!end- it "returns the value of the setting when given a string represeting the setting name" do+ it "returns the value of the setting when given a string representing the setting name" doexpect(theme.get_setting("enabled")).to eq(false)expect(theme.get_setting("some_value")).to eq("hello")end- it "returns the value of the setting when given a symbol represeting the setting name" do+ it "returns the value of the setting when given a symbol representing the setting name" doexpect(theme.get_setting(:enabled)).to eq(false)expect(theme.get_setting(:some_value)).to eq("hello")enddiff --git a/spec/models/topic_spec.rb b/spec/models/topic_spec.rbindex 8a7fee43d70..b224d4385fe 100644--- a/spec/models/topic_spec.rb+++ b/spec/models/topic_spec.rb@@ -771,7 +771,7 @@ RSpec.describe Topic doexpect(Topic.similar_to("unrelated term", "1 2 3 poddle")).to eq([])end- it "doesnt match numbered lists against numbers in Post#raw" do+ it "doesn't match numbered lists against numbers in Post#raw" dopost.update!(raw: <<~RAW)Internet Explorer 11+ Oct 2013 Google Chrome 32+ Jan 2014 Firefox 27+ Feb 2014 Safari 6.1+ Jul 2012 Safari, iOS 8+ Oct 2014RAWdiff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rbindex cddbc32adf8..9f3a9bb5d09 100644--- a/spec/models/user_spec.rb+++ b/spec/models/user_spec.rb@@ -450,7 +450,7 @@ RSpec.describe User doendend- context "when reseting user fields" do+ context "when resetting user fields" dolet!(:censored_word) doFabricate(:watched_word, word: "censored", action: WatchedWord.actions[:censor])enddiff --git a/spec/requests/admin/users_controller_spec.rb b/spec/requests/admin/users_controller_spec.rbindex 901aecf064e..4dd277f7ba3 100644--- a/spec/requests/admin/users_controller_spec.rb+++ b/spec/requests/admin/users_controller_spec.rb@@ -142,7 +142,7 @@ RSpec.describe Admin::UsersController doexpect(response.parsed_body["id"]).to eq(user.id)end- it "includes count of similiar users" do+ it "includes count of similar users" doFabricate(:user, ip_address: "88.88.88.88")Fabricate(:admin, ip_address: user.ip_address)Fabricate(:moderator, ip_address: user.ip_address)diff --git a/spec/requests/net_http_timeout_spec.rb b/spec/requests/net_http_timeout_spec.rbindex aeace6e501d..350d489af81 100644--- a/spec/requests/net_http_timeout_spec.rb+++ b/spec/requests/net_http_timeout_spec.rb@@ -1,7 +1,7 @@# frozen_string_literal: trueRSpec.describe "Net::HTTP timeouts when processing a request" do- it "should set the right timeouts for any `Net::HTTP` instances intialized while processing a request" do+ it "should set the right timeouts for any `Net::HTTP` instances initialized while processing a request" dostub_const(NetHTTPPatch, :OPEN_TIMEOUT, 0.001) dostub_const(NetHTTPPatch, :READ_TIMEOUT, 0.002) dostub_const(NetHTTPPatch, :WRITE_TIMEOUT, 0.003) dodiff --git a/spec/requests/search_controller_spec.rb b/spec/requests/search_controller_spec.rbindex 87c0fb0fc60..21bd8d5e648 100644--- a/spec/requests/search_controller_spec.rb+++ b/spec/requests/search_controller_spec.rb@@ -405,7 +405,7 @@ RSpec.describe SearchController doSearchIndexer.index(awesome_topic, force: true)end- it "works for user with tag group permision" do+ it "works for user with tag group permission" dosign_in(admin)get "/search.json",params: {diff --git a/spec/requests/session_controller_spec.rb b/spec/requests/session_controller_spec.rbindex 40fd44fda01..357fa142166 100644--- a/spec/requests/session_controller_spec.rb+++ b/spec/requests/session_controller_spec.rb@@ -504,7 +504,7 @@ RSpec.describe SessionController doendlet!(:user_second_factor) { Fabricate(:user_second_factor_totp, user: user) }- it "doesnt allow logging in if the 2fa params are garbled" do+ it "doesn't allow logging in if the 2fa params are garbled" dopost "/session/email-login/#{email_token.token}.json",params: {second_factor_method: UserSecondFactor.methods[:totp],@@ -517,7 +517,7 @@ RSpec.describe SessionController doexpect(response_body["error"]).to eq(I18n.t("login.invalid_second_factor_code"))end- it "doesnt allow login if both of the 2fa params are blank" do+ it "doesn't allow login if both of the 2fa params are blank" dopost "/session/email-login/#{email_token.token}.json",params: {second_factor_method: UserSecondFactor.methods[:totp],@@ -1900,7 +1900,7 @@ RSpec.describe SessionController doSiteSetting.enable_local_logins_via_email = falseEmailToken.confirm(email_token.token)end- it "doesnt matter, logs in correctly" do+ it "doesn't matter, logs in correctly" dopost "/session.json", params: { login: user.username, password: "myawesomepassword" }expect(response.status).to eq(200)expect(response.parsed_body["error"]).not_to be_presentdiff --git a/spec/requests/tags_controller_spec.rb b/spec/requests/tags_controller_spec.rbindex 3ff09e08466..0887749bd46 100644--- a/spec/requests/tags_controller_spec.rb+++ b/spec/requests/tags_controller_spec.rb@@ -1315,7 +1315,7 @@ RSpec.describe TagsController do[Fabricate(:tag,- name: "used_publically",+ name: "used_publicly",public_topic_count: 2,staff_topic_count: 2,pm_topic_count: 0,@@ -1361,7 +1361,7 @@ RSpec.describe TagsController doexpect { delete "/tags/unused.json" }.to change { Tag.count }.by(-2) &change { UserHistory.count }.by(1)expect(Tag.pluck(:name)).to contain_exactly(- "used_publically",+ "used_publicly","used_privately","used_everywhere",)diff --git a/spec/system/admin_editing_objects_typed_theme_setting_spec.rb b/spec/system/admin_editing_objects_typed_theme_setting_spec.rbindex 5327fba6922..eb05fbfa070 100644--- a/spec/system/admin_editing_objects_typed_theme_setting_spec.rb+++ b/spec/system/admin_editing_objects_typed_theme_setting_spec.rb@@ -97,7 +97,7 @@ RSpec.describe "Admin editing objects type", type: :system doexpect(admin_objects_theme_setting_editor).to have_setting_field("name", "section 1")end- it "displays the validation errors when an admin tries to save the settting with an invalid value" do+ it "displays the validation errors when an admin tries to save the setting with an invalid value" dovisit("/admin/customize/themes/#{theme.id}")admin_objects_theme_setting_editor =diff --git a/spec/system/page_objects/pages/user_private_messages.rb b/spec/system/page_objects/pages/user_private_messages.rbindex fc60373671b..cb500c691b2 100644--- a/spec/system/page_objects/pages/user_private_messages.rb+++ b/spec/system/page_objects/pages/user_private_messages.rb@@ -35,7 +35,7 @@ module PageObjectsinbox_dropdown.has_option?(".dropdown-menu__item", count)end- def click_unseen_private_mesage(topic_id)+ def click_unseen_private_message(topic_id)find("tr[data-topic-id='#{topic_id}'] a[data-topic-id='#{topic_id}']").clickendenddiff --git a/spec/system/post_menu_spec.rb b/spec/system/post_menu_spec.rbindex ef7c4ccc6dc..eb03be4cd5e 100644--- a/spec/system/post_menu_spec.rb+++ b/spec/system/post_menu_spec.rb@@ -532,7 +532,7 @@ describe "Post menu", type: :system do# don't show when the post has reads = 0expect(topic_page).to have_no_post_action_button(pm_post2, :read)- # dont't show on regular posts+ # don't show on regular poststopic_page.visit_topic(post.topic)expect(topic_page).to have_no_post_action_button(post, :read)expect(topic_page).to have_no_post_action_button(post2, :read)diff --git a/spec/system/viewing_sidebar_spec.rb b/spec/system/viewing_sidebar_spec.rbindex 65bdf943042..ab98671665d 100644--- a/spec/system/viewing_sidebar_spec.rb+++ b/spec/system/viewing_sidebar_spec.rb@@ -219,7 +219,7 @@ describe "Viewing sidebar", type: :system doit "should remove unread icon after all messages are read" dosign_in(admin)user_private_messages_page.visit(admin)- user_private_messages_page.click_unseen_private_mesage(private_message.id)+ user_private_messages_page.click_unseen_private_message(private_message.id)expect(sidebar).to have_my_messages_link_with_unread_icontry_until_success(reason: "Liking relying on messagebus updates") do