Skip to content

Commit

Permalink
Fix some spelling errors (part 3) (#12459)
Browse files Browse the repository at this point in the history
* spelling: evaluate

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

* spelling: everything

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

* spelling: explicitly

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

* spelling: exploring

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

* spelling: fictitious

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

* spelling: files https

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

* spelling: filtered

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

* spelling: finish

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

* spelling: first

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

* spelling: following

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

* spelling: forwarded

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

* spelling: from

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

* spelling: fulfilled

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

* spelling: github

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

* spelling: grammar

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

* spelling: grooming

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

* spelling: group

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

* spelling: has

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

* spelling: hashtag

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

* spelling: hashtags

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

* spelling: have

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

* spelling: helper

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

* spelling: highlighted

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

* spelling: identification

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

* spelling: ignore

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

* spelling: implemented

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

* spelling: implementing

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

* spelling: imported

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

* spelling: importer

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

* spelling: inactive

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

* spelling: increases

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

* spelling: initiative

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

* spelling: instances

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

* spelling: instantiation

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

* spelling: interested

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

* spelling: interests

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

* spelling: invitable

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

* spelling: is difficult to work with in

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

* spelling: javascript

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

* spelling: javascripts

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

* spelling: lighthouse

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

* spelling: limited

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

* spelling: localized

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

* spelling: logs user out

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

* spelling: machine

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

* spelling: single

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 7b79409 commit e075c4c
Show file tree
Hide file tree
Showing 75 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_javascript.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "[CI] Javascript"
name: "[CI] JavaScript"
on:
push:
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def manifest_name
end

# Public: Returns a String or Object that will be passed to `redirect_to` after
# exporing a space. By default it redirects to the root_path.
# exploring a space. By default it redirects to the root_path.
#
# It can be redefined at controller level if you need to redirect elsewhere.
def after_export_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const apiRequest = (query) => {
/**
* Resolves the different root fields for listing different participatory spaces
* available in the instance. Returns all LIST kind root fields that list
* records implemeting the ParticipatorySpaceInterface.
* records implementing the ParticipatorySpaceInterface.
*
* @returns {Promise} A promise resolving the root fields for querying different
* participatory spaces.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$(() => {
const $limitiedTimeLabel = $("label[for='component_settings_proposal_edit_time_limited']")
const $limitedTimeLabel = $("label[for='component_settings_proposal_edit_time_limited']")
const $limitedTimeRadioButton = $("#component_settings_proposal_edit_time_limited")
const $infiniteTimeRadioButton = $("#component_settings_proposal_edit_time_infinite")
const $editTimeContainer = $(".proposal_edit_before_minutes_container")

$editTimeContainer.detach().appendTo($limitiedTimeLabel)
$editTimeContainer.detach().appendTo($limitedTimeLabel)

if ($infiniteTimeRadioButton.is(":checked")) {
$editTimeContainer.hide();
Expand Down
2 changes: 1 addition & 1 deletion decidim-assemblies/lib/decidim/api/assembly_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AssemblyType < Decidim::Api::Types::BaseObject
field :instagram_handler, String, "Instagram handler", null: true
field :facebook_handler, String, "Facebook handler", null: true
field :youtube_handler, String, "Youtube handler", null: true
field :github_handler, String, "Github handler", null: true
field :github_handler, String, "GitHub handler", null: true
field :announcement, Decidim::Core::TranslatedFieldType, "Highlighted announcement for this assembly", null: true

field :members, [Decidim::Assemblies::AssemblyMemberType, { null: true }], "Members of this assembly", null: false
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/lib/decidim/budgets/workflows/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def single?
budgets.one?
end

# Public: Return the lonenly budget resource of the component
# Public: Return the single budget resource of the component
#
# Returns an ActiveRecord.
def single
Expand Down
2 changes: 1 addition & 1 deletion decidim-comments/app/packs/entrypoints/decidim_comments.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// CSS
import "stylesheets/comments.scss"

// Javacript
// JavaScript
import "src/decidim/comments/comments"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint max-lines: ["error", {"max": 350, "skipBlankLines": true}] */

/**
* A plain Javascript component that handles the comments.
* A plain JavaScript component that handles the comments.
*
* @class
* @augments Component
Expand Down
2 changes: 1 addition & 1 deletion decidim-comments/lib/decidim/comments/commentable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def comments_have_alignment?
false
end

# Public: Whether the object's comments can have have votes or not. It enables the
# Public: Whether the object's comments can have votes or not. It enables the
# upvote and downvote buttons for comments.
def comments_have_votes?
false
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/commands/decidim/endorse_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class EndorseResource < Decidim::Command
#
# resource - An instance of Decidim::Endorsable.
# current_user - The current user.
# current_group_id- (optional) The current_grup that is endorsing the Resource.
# current_group_id- (optional) The current_group that is endorsing the Resource.
def initialize(resource, current_user, current_group_id = nil)
@resource = resource
@current_user = current_user
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/commands/decidim/update_user_interests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Decidim
# This command updates the user's interests.
class UpdateUserInterests < Decidim::Command
# Updates a user's intersts.
# Updates a user's interests.
#
# user - The user to be updated.
# form - The form with the data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Decidim
module Devise
# This controller customizes the behaviour of Devise::Invitiable.
# This controller customizes the behaviour of Devise::Invitable.
class InvitationsController < ::Devise::InvitationsController
include Decidim::DeviseControllers
include NeedsTosAccepted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Decidim
# A form object used to fisnish signup from omniauth data
# A form object used to finish signup from omniauth data
class OmniauthRegistrationForm < Form
mimic :user

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Decidim
# A heper to expose an easy way to add authorization forms in a view.
# A helper to expose an easy way to add authorization forms in a view.
module AuthorizationFormHelper
# Creates a ew authorization form in a view, accepts the same arguments as
# `form_for`.
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/helpers/decidim/decidim_form_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Decidim
# A heper to expose an easy way to add authorization forms in a view.
# A helper to expose an easy way to add authorization forms in a view.
module DecidimFormHelper
# A custom form for that injects client side validations with Abide.
#
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/helpers/decidim/twitter_search_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Decidim
module TwitterSearchHelper
# Builds the URL for Twitter's hashtag search.
#
# @param hashtag [String] The hasthag to search
# @param hashtag [String] The hashtag to search
#
# @return [String]
def twitter_hashtag_url(hashtag)
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/packs/src/decidim/back_to_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Changes "Back to list" links to the one saved in sessionStorage API
* To apply this to a link, at least one element must have the class "js-back-to-list".
* For this to work it needs the filteredParams in SessionStorage, that is saved on FormFilterComponent.
* @param {NodeList} links - Hyperlinks elements that point to the filters page that will use the fitererd params
* @param {NodeList} links - Hyperlinks elements that point to the filters page that will use the filtered params
* @returns {void}
*/
export default function backToListLink(links) {
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/packs/src/decidim/form_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint max-lines: ["error", {"max": 350, "skipBlankLines": true}] */

/**
* A plain Javascript component that handles the form filter.
* A plain JavaScript component that handles the form filter.
* @class
* @augments Component
*/
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/packs/src/decidim/input_hashtags.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $(() => {
cb([])
}).always(() => {
// This function runs Tribute every single time you type something
// So we must evalute DOM properties after each
// So we must evaluate DOM properties after each
const $parent = $(tribute.current.element).parent()
$parent.addClass("is-active")

Expand Down
2 changes: 1 addition & 1 deletion decidim-core/app/packs/src/decidim/input_mentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const mentionsInitializer = () => {
cb([])
}).always(() => {
// This function runs Tribute every single time you type something
// So we must evalute DOM properties after each
// So we must evaluate DOM properties after each
const $parent = $(tribute.current.element).parent();
$parent.addClass("is-active");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%# NOTE: for performance reasons defer this javacript call would be good, although there are references to jquery that need to be reviewed %>
<%# NOTE: for performance reasons defer this javascript call would be good, although there are references to jquery that need to be reviewed %>
<% if Decidim.service_worker_enabled %>
<%= javascript_pack_tag "decidim_core","decidim_sw", defer: false %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<li>
<a target="_blank" data-external-link="false" rel="noopener noreferrer" href="https://www.github.com/<%= current_organization.github_handler %>">
<span class="sr-only"><%= t("layouts.decidim.social_media_links.github", organization: translated_attribute(current_organization.name)) %></span>
<%= icon "github-fill", class: "w-8 h-8 fill-current", "aria-label": "Github" %>
<%= icon "github-fill", class: "w-8 h-8 fill-current", "aria-label": "GitHub" %>
</a>
</li>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/acts_as_author.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module ActsAsAuthor
#
# Return: The presenter for the current author.
def presenter
raise NotImlementedError, "Authors must return an instance of its Presenter via this method."
raise NotImplementedError, "Authors must return an instance of its Presenter via this method."
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(manifest:)
@manifest = manifest
end

# lazy instantation of the class
# lazy instantiation of the class
def model_class
@model_class ||= manifest.model_class_name.constantize
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(manifest:)
@manifest = manifest
end

# lazy instantation of the class
# lazy instantiation of the class
def model_class
@model_class ||= manifest.model_class_name.constantize
end
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/assets/tailwind/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def tailwind_variables
decidim_gems = Bundler.load.specs.select { |spec| spec.name =~ /^decidim-/ }.map(&:full_gem_path)
content_directories = decidim_gems.push(".")

# The variable expected by tailwind is a Javascript array of strings
# The variable expected by tailwind is a JavaScript array of strings
# The directory globbing with the star is done in Ruby because it was causing an infinite loop
# when processed by Tailwind
content_directories_as_array_of_strings = content_directories.map { |content_directory| "'#{content_directory}'" }.join(",")
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/component_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def specific_data_serializer_class
end

# Public: Finds the specific data importer class from its name, using the
# `specific_data_importerer_class_name` attribute. If the class does not exist,
# `specific_data_importer_class_name` attribute. If the class does not exist,
# it raises an exception. If the class name is not set, it returns nil.
#
# Returns a Decidim::Importers::Importer subclass or nil.
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def self.reset_all_column_information
";"
end

# Exposes a configuration option: HTTP_X_FORWADED_HOST header follow-up.
# Exposes a configuration option: HTTP_X_FORWARDED_HOST header follow-up.
# If a caching system is in place, it can also allow cache and log poisoning attacks,
# allowing attackers to control the contents of caches and logs that could be used for other attacks.
config_accessor :follow_http_x_forwarded_host do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

shared_examples_for "a translated event" do
context "when it is not machine machine translated" do
context "when it is not machine translated" do
let(:organization) { create(:organization, enable_machine_translations: false, machine_translation_display_priority: "original") }

it "does not perform translation" do
Expand All @@ -25,7 +25,7 @@
end
end

context "when is machine machine translated" do
context "when is machine translated" do
let(:user) { create :user, organization:, locale: "ca" }

around do |example|
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/hashtag.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Decidim
# A hasthag is used to categorize components
# A hashtag is used to categorize components
class Hashtag < ApplicationRecord
self.table_name = "decidim_hashtags"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module Decidim
context "when having multiple admins" do
let!(:another_admin) { create(:user, :admin, :confirmed, organization: current_organization) }

it "calls twice the report job in order to send the emails and ingore the admin_no_moderation_mail" do
it "calls twice the report job in order to send the emails and ignore the admin_no_moderation_mail" do
expect(UserReportJob).to receive(:perform_later).twice.with(a_kind_of(Decidim::User), a_kind_of(Decidim::UserReport))

command.call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Decidim
end

before do
create(:searchable_resource, organization:, content_a: "I do not like groomming my dog.")
create(:searchable_resource, organization:, content_a: "I do not like grooming my dog.")
end

it "returns results with 'Great' in their content" do
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/models/decidim/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def create_users_and_scopes
end
end

context "when searching with scopes no one is intereted in" do
context "when searching with scopes no one is interested in" do
let(:scopes) { [scope4.id, scope5.id] }

before { create_users_and_scopes }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ module Decidim
HTML
end

it "converts the hastags and mentions to WYSIWYG editor ready elements" do
it "converts the hashtags and mentions to WYSIWYG editor ready elements" do
expect(subject.editor_locales(data, false)).to eq(editor_html)
end

context "when modifying all locales" do
let(:data) { { en: html, es: html } }

it "converts the hastags and mentions to WYSIWYG editor ready elements" do
it "converts the hashtags and mentions to WYSIWYG editor ready elements" do
expect(subject.editor_locales(data, true)).to eq(en: editor_html, es: editor_html)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def expect_imported_to_be_equal(component)
end

# Find the Decidim::Component created during importation that corresponds
# to the +component+ used to generate the impoted json.
# to the +component+ used to generate the imported json.
def imported_from(component)
imported = Decidim::Component.where.not(id: component.id)
.find_by(manifest_name: component.manifest_name, weight: component.weight)
Expand Down
2 changes: 1 addition & 1 deletion decidim-core/spec/validators/etiquette_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def self.model_name

context "when the text is written starting in downcase" do
context "with a single line body" do
let(:body) { "i no care about grammer" }
let(:body) { "i no care about grammar" }

it { is_expected.to be_invalid }
end
Expand Down
4 changes: 2 additions & 2 deletions decidim-debates/spec/lib/commented_debates_badge_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
let!(:other_comment) { create(:comment, author: user2, commentable: debate, root_commentable: debate) }

context "when creating the first comment" do
it "increses a user's score" do
it "increases a user's score" do
comment = create(:comment, author: user, commentable: debate, root_commentable: debate)
Decidim::Comments::CommentCreation.publish(comment, {})
expect(Decidim::Gamification.status_for(user, :commented_debates).score).to eq(1)
end
end

context "when other comments by the same author already exist" do
it "increses a user's score when a debate is commented" do
it "increases a user's score when a debate is commented" do
comment = create(:comment, author: user, commentable: debate, root_commentable: debate)
create(:comment, author: user, commentable: debate, root_commentable: debate)
Decidim::Comments::CommentCreation.publish(comment, {})
Expand Down
4 changes: 2 additions & 2 deletions decidim-dev/lib/decidim/dev/test/rspec_support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def protocol
options = Selenium::WebDriver::Chrome::Options.new
options.args << "--explicitly-allowed-ports=#{Capybara.server_port}"
# If we have a headless browser things like the offline navigation feature stop working,
# so we need to have have a headful/recapitated (aka not headless) browser for these specs
# so we need to have a headful/recapitated (aka not headless) browser for these specs
# options.args << "--headless"
options.args << "--no-sandbox"
# Do not limit browser resources
Expand Down Expand Up @@ -156,7 +156,7 @@ def protocol
switch_to_default_host
domain = (try(:organization) || try(:current_organization))&.host
if domain
# Javascript sets the cookie also for all subdomains but localhost is a
# JavaScript sets the cookie also for all subdomains but localhost is a
# special case.
domain = ".#{domain}" unless domain == "localhost"
page.driver.browser.execute_cdp(
Expand Down
2 changes: 1 addition & 1 deletion decidim-dev/lib/tasks/lighthouse_report.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace :decidim do
namespace :lighthouse do
desc "Prepares seeds for Lighthouse report"
task prepare_urls: :environment do
# Lighhouse report is executed in CI and should check:
# Lighthouse report is executed in CI and should check:
# - homepage
# - a participatory process page
# - a meeting page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def answer_first_questionnaire
expect(third_choice).to eq([question.answer_options.first.id, question.matrix_rows.last.id])
end

context "when the question hax max_choices defined" do
context "when the question has max_choices defined" do
let!(:max_choices) { 2 }

it "respects the max number of choices" do
Expand Down
Loading

0 comments on commit e075c4c

Please sign in to comment.