Skip to content

Commit

Permalink
Fix some spelling errors (part 4) (#12461)
Browse files Browse the repository at this point in the history
* spelling: maintained

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: malicious

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: manifest

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: manner

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: maximum

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: meeting

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: metaprogrammed

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: momentarily

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: most

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: multiple

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: multitenant

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: naming convention

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: needed

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: nonexistent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: notifiable

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: notification

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: official

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: offline

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: on

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: openstreetmap

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: otherwise

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: outdent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: output

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overlapping

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overridden

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overrides

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overriding

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overwriting

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: overwritten

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: param

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: parameters

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: participating

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: particularly

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: pass another

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: password

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: perform

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: permanent

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: permitted

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: plural

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: possible

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: precisely

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: precomputes

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: preexisting

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: prerequisite

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: private

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

* spelling: process

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

---------

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Feb 15, 2024
1 parent d966199 commit 5aa18a9
Show file tree
Hide file tree
Showing 74 changed files with 97 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_submenu_options_tree_from_array(filter, values, i18n_scope)
links.index_with { nil }
end

# To be overriden. Useful for adding links that do not match with the filter.
# To be overridden. Useful for adding links that do not match with the filter.
# Must return an Array.
def extra_dropdown_submenu_options_items(_filter, _i18n_scope)
[]
Expand Down
2 changes: 1 addition & 1 deletion decidim-admin/spec/queries/user_group_evaluation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module Decidim::Admin
end
end

context "and receives a search and a filter aram" do
context "and receives a search and a filter param" do
let(:rejected_user_groups) do
%w(Lorem Ipsum Dolor).map do |name|
create(:user_group, :rejected, name:,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
fill_in_i18n(
:area_type_plural,
"#area_type-plural-tabs",
en: "This is the new pluarl"
en: "This is the new plural"
)
find("*[type=submit]").click
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
fill_in_i18n(
:scope_type_plural,
"#scope_type-plural-tabs",
en: "This is the new pluarl"
en: "This is the new plural"
)
find("*[type=submit]").click
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module Assemblies
end
end

context "when the params contain a non existing assembly id" do
context "when the params contain a nonexistent assembly id" do
before do
params["assembly_slug"] = "99999999"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def current_order_can_be_checked_out?

# Returns false if the current order does not have a rule for minimum budget
# Returns false if the current order has not reached the minimum budget
# Otherwhise returns true
# Otherwise returns true
def current_order_minimum_reached?
return false if current_order.minimum_budget.zero?

Expand Down
4 changes: 2 additions & 2 deletions decidim-comments/spec/models/comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ module Comments
before { allow(Decidim).to receive(:content_processors).and_return([:link]) }

let(:body) do
%(Content with <a href="http://urls.net" onmouseover="alert('hello')">URLs</a> of anchor type and text urls like https://decidim.org. And a malicous <a href="javascript:document.cookies">click me</a>)
%(Content with <a href="http://urls.net" onmouseover="alert('hello')">URLs</a> of anchor type and text urls like https://decidim.org. And a malicious <a href="javascript:document.cookies">click me</a>)
end
let(:result) do
%(<div><p>Content with URLs of anchor type and text urls like <a href="https://decidim.org" target="_blank" rel="nofollow noopener noreferrer ugc">https://decidim.org</a>. And a malicous click me</p></div>)
%(<div><p>Content with URLs of anchor type and text urls like <a href="https://decidim.org" target="_blank" rel="nofollow noopener noreferrer ugc">https://decidim.org</a>. And a malicious click me</p></div>)
end

it "converts all URLs to links and strips attributes in anchors" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def valuator_action?
allow! if permission_action.action == :export && permission_action.subject == :component_data
end

# Process admins can eprform everything *inside* that conference. They cannot
# Process admins can perform everything *inside* that conference. They cannot
# create a conference or perform actions on conference groups or other
# conferences.
def conference_admin_action?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module Conferences
end
end

context "when the params contain a non existing conference id" do
context "when the params contain a nonexistent conference id" do
before do
params["conference_slug"] = "99999999"
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def search_with(provided_params)
end

def search_collection
raise NotImplementedError, "A search class is neeeded to filter resources"
raise NotImplementedError, "A search class is needed to filter resources"
end

def filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def layout
current_participatory_space_manifest.context(current_participatory_space_context).layout
end

# Method for current user can visit the space (assembly or proces)
# Method for current user can visit the space (assembly or process)
def current_user_can_visit_space?
return true unless current_participatory_space.try(:private_space?) &&
!current_participatory_space.try(:is_transparent?)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module LocalizedLocalesHelper
# locales.
#
# collection - an Array of Strings. By default it uses all the available
# locales in Decidim, but you can passa nother collection of locales (for
# locales in Decidim, but you can pass another collection of locales (for
# example, the available locales for an organization)
def localized_locales(collection = Decidim.available_locales)
klass = Class.new do
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/models/decidim/messaging/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def body_with_links

private

# returns all posible recipients from a list of users or groups
# returns all possible recipients from a list of users or groups
def all_recipients(recipients)
users = recipients.flat_map do |recipient|
recipient.is_a?(UserGroup) ? recipient.managers : recipient
Expand Down
4 changes: 2 additions & 2 deletions decidim-core/app/models/decidim/user_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,13 @@ def has_document_number?
document_number.present?
end

# Overwites method in `Decidim::Validatable`, as user groups do not have a
# Overrides method in `Decidim::Validatable`, as user groups do not have a
# password.
def password_required?
false
end

# Overwites method in `Decidim::Validatable`, as user groups do not have a
# Overrides method in `Decidim::Validatable`, as user groups do not have a
# password.
def password
nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe("Indent", () => {
expect(editor.getHTML()).toEqual("<p>Hello, world!</p>");
});

it("does not oudent the content if the selection is not at the beginning of the line", async () => {
it("does not outdent the content if the selection is not at the beginning of the line", async () => {
await updateContent(editorElement, '<p class="editor-indent-2">Hello, world!</p>');

editorElement.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const dropzoneLocales = {
uploaded: "Uploaded",
validating: "Validating...",
"title_required": "Title is required!",
"file_size_too_large": "File size is too large! Maximun file size: 10MB",
"file_size_too_large": "File size is too large! Maximum file size: 10MB",
"validation_error": "Validation error!"
};

Expand Down
4 changes: 2 additions & 2 deletions decidim-core/app/services/decidim/action_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ActionLogger
#
# action - a String representing the name of the action
# user - the Decidim::User that performed the action
# resource - the resource onn which the action was performed
# resource - the resource on which the action was performed
# version_id - the ID of the `PaperTrail::Version` that was created on that action
# resource_extra - a Hash with resource_extra info to be recorded
#
Expand All @@ -27,7 +27,7 @@ def self.log(action, user, resource, version_id, resource_extra = {})
#
# action - a String representing the name of the action
# user - the Decidim::User that performed the action
# resource - the resource onn which the action was performed
# resource - the resource on which the action was performed
# version_id - the ID of the `PaperTrail::Version` that was created on that action
# resource_extra - a Hash with resource_extra info to be recorded
def initialize(action, user, resource, version_id = nil, resource_extra = {})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%#
This file is meant to be overriden by the app developers in order to
This file is meant to be overridden by the app developers in order to
include extra headers like tracking, error handling and such.
Note that thie code you add here will be run for all organizations in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
main_enabled = true unless local_assigns.has_key?(:main_enabled)
main_tag = main_enabled ? :main : :div
columns ||= 6
# Class names need to be complete, not metaprogarmmed, because of Tailwind class purge
# Class names need to be complete, not metaprogrammed, because of Tailwind class purge
css_class = case columns
when 10 then "cols-10"
when 8 then "cols-8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

shared_examples_for "notification digest mail" do
context "when a notificable event takes place" do
context "when a notifiable event takes place" do
let!(:organization) { create(:organization) }
let!(:participatory_space) { create(:participatory_process, organization:) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
subject[:reference] = "ARBITRARYREF"
end

it "keeps the pre-existing reference" do
it "keeps the preexisting reference" do
expect(subject.reference).to eq("ARBITRARYREF")
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
let(:resource_path) { resource_locator(resource).path }
let(:resource_url) { resource_locator(resource).url }
let(:resource_title) { decidim_sanitize_translated(resource.title) }
# to be used when resource is a component resource, not a participatory space, in which case should be overriden
# to be used when resource is a component resource, not a participatory space, in which case should be overridden
let(:participatory_space) { resource.participatory_space }
let(:participatory_space_title) { decidim_sanitize_translated(participatory_space.title) }
let(:participatory_space_path) { Decidim::ResourceLocatorPresenter.new(participatory_space).path }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
shared_context "with resources to be endorsed or not" do
include_context "with a component"

# Should be overriden and create one main resource
# Should be overridden and create one main resource
let!(:resource) { nil }
# the name of the resource to be clicked from the component view
let(:resource_name) { nil }
# Should be overriden and create 3 extra resources in the current component
# Should be overridden and create 3 extra resources in the current component
let!(:resources) { nil }
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/diffy_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def unescaped_html
end
end

# The private "split" method SplitDiff needs to be overriden to take into
# The private "split" method SplitDiff needs to be overridden to take into
# account the new :unescaped_html format, and the fact that the tags
# <ins> <del> are not there anymore
Diffy::SplitDiff.module_eval do
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/faker/localized.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def self.wrapped(before, after)
end

# Runs the given block for each of the available locales in Decidim,
# momentarilly setting the locale to the current one.
# momentarily setting the locale to the current one.
#
# Returns a Hash with a value for each locale.
def self.localized
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/resourceable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def visible?
end

# Check only the resource visibility not its hierarchy.
# This method is intended to be overriden by classes that include this module and have the
# This method is intended to be overridden by classes that include this module and have the
# need to impose its own visibility rules.
#
# @return If the resource is also Publicable checks if the resource is published, otherwise returns true by default.
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/webpacker/shakapacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ default: &default
# Set to true to enable check for matching versions of shakapacker gem and NPM package - will raise an error if there is a mismatch or wildcard versioning is used
ensure_consistent_versioning: true

# Select whether the compiler will use SHA digest ('digest' option) or most most recent modified timestamp ('mtime') to determine freshness
# Select whether the compiler will use SHA digest ('digest' option) or most recent modified timestamp ('mtime') to determine freshness
compiler_strategy: digest

# Select whether the compiler will always use a content hash and not just in production
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/tasks/decidim_webpacker_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ if (config_path = Decidim::Webpacker.configuration.configuration_file)
)
end

# Remove the yarn install prerequisity from assets:precompile
# Remove the yarn install prerequisite from assets:precompile
Rake::Task["assets:precompile"].prerequisites.delete("shakapacker:yarn_install")

# Add gem overrides path to the beginning in order to override rake tasks
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/lib/upgrade/wysiwyg_migrator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ module Decidim
allow(Decidim).to receive(:component_manifests).and_return([component.manifest])
end

it "updates the component settings for all defined manifets" do
it "updates the component settings for all defined manifest" do
expect { |b| described_class.update_component_settings(&b) }.to yield_with_args(:dummy, 1..1)

component.reload
Expand Down
14 changes: 7 additions & 7 deletions decidim-core/spec/models/decidim/organization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,26 @@ module Decidim
end
end

context "when it is overriden" do
context "when it is overridden" do
let(:organization) { create(:organization) }
let(:omniauth_settings) do
{
"omniauth_settings_facebook_enabled" => true,
"omniauth_settings_facebook_app_id" => Decidim::AttributeEncryptor.encrypt("overriden-app-id"),
"omniauth_settings_facebook_app_secret" => Decidim::AttributeEncryptor.encrypt("overriden-app-secret"),
"omniauth_settings_facebook_app_id" => Decidim::AttributeEncryptor.encrypt("overridden-app-id"),
"omniauth_settings_facebook_app_secret" => Decidim::AttributeEncryptor.encrypt("overridden-app-secret"),
"omniauth_settings_google_oauth2_enabled" => true,
"omniauth_settings_google_oauth2_client_id" => Decidim::AttributeEncryptor.encrypt("overriden-client-id"),
"omniauth_settings_google_oauth2_client_secret" => Decidim::AttributeEncryptor.encrypt("overriden-client-secret"),
"omniauth_settings_google_oauth2_client_id" => Decidim::AttributeEncryptor.encrypt("overridden-client-id"),
"omniauth_settings_google_oauth2_client_secret" => Decidim::AttributeEncryptor.encrypt("overridden-client-secret"),
"omniauth_settings_twitter_enabled" => false
}
end

before { organization.update!(omniauth_settings:) }

it "returns only the enabled settings" do
expect(subject[:facebook][:app_id]).to eq("overriden-app-id")
expect(subject[:facebook][:app_id]).to eq("overridden-app-id")
expect(subject[:twitter]).to be_nil
expect(subject[:google_oauth2][:client_id]).to eq("overriden-client-id")
expect(subject[:google_oauth2][:client_id]).to eq("overridden-client-id")
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# This particular case should not happen on daily runs but in case sending
# takes a long time, those users should be also included who were notified
# a bit later than the exact time when the scheduled task was run as we
# cannot know precicely on which second the scheduled task was run exactly
# cannot know precisely on which second the scheduled task was run exactly
# and if it is always run at the same second.
context "with a user who has received a notification digest mail the previous day but less than a day ago" do
let(:current_time) { Time.now.utc }
Expand Down Expand Up @@ -91,7 +91,7 @@
# This particular case should not happen on weekly runs but in case sending
# takes a long time, those users should be also included who were notified
# a bit later than the exact time when the scheduled task was run as we
# cannot know precicely on which second the scheduled task was run exactly
# cannot know precisely on which second the scheduled task was run exactly
# and if it is always run at the same second.
context "with a user who has received a notifications the previous week but less than a exactly 7 days ago from yesterday" do
let(:current_time) { Time.now.utc }
Expand Down
8 changes: 4 additions & 4 deletions decidim-core/spec/system/authentication_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
(maximum_attempts - 2).times do
within ".new_user" do
fill_in :session_user_email, with: user.email
fill_in :session_user_password, with: "not-the-pasword"
fill_in :session_user_password, with: "not-the-password"
find("*[type=submit]").click
end
end
Expand All @@ -444,7 +444,7 @@
it "does not show the last attempt warning before locking the account" do
within ".new_user" do
fill_in :session_user_email, with: user.email
fill_in :session_user_password, with: "not-the-pasword"
fill_in :session_user_password, with: "not-the-password"
find("*[type=submit]").click
end

Expand All @@ -460,7 +460,7 @@
(maximum_attempts - 1).times do
within ".new_user" do
fill_in :session_user_email, with: user.email
fill_in :session_user_password, with: "not-the-pasword"
fill_in :session_user_password, with: "not-the-password"
find("*[type=submit]").click
end
end
Expand All @@ -469,7 +469,7 @@
it "when reached maximum failed attempts" do
within ".new_user" do
fill_in :session_user_email, with: user.email
fill_in :session_user_password, with: "not-the-pasword"
fill_in :session_user_password, with: "not-the-password"
perform_enqueued_jobs { find("*[type=submit]").click }
end

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/system/user_activity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
end
end

context "when accessing a non existing profile" do
context "when accessing a nonexistent profile" do
before do
allow(page.config).to receive(:raise_server_errors).and_return(false)
visit decidim.profile_activity_path(nickname: "invalid_nickname")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
end

context "when the conclusions exceeds the permited length" do
context "when the conclusions exceeds the permitted length" do
let(:conclusions) { Decidim::Faker::Localized.localized { "c" * 10_001 } }

it { is_expected.to be_invalid }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
end

context "when the conclusions exceeds the permited length" do
context "when the conclusions exceeds the permitted length" do
let(:conclusions) { "c" * 10_001 }

it { is_expected.to be_invalid }
Expand Down
Loading

0 comments on commit 5aa18a9

Please sign in to comment.