From 62904512739143b0827d74b36889a176b655cc75 Mon Sep 17 00:00:00 2001 From: Kitten King <53072918+kittenking@users.noreply.github.com> Date: Mon, 22 Jul 2019 22:26:48 +0530 Subject: [PATCH] Fix Typos (#3510) --- Dockerfile | 2 +- app/controllers/classified_listings_controller.rb | 2 +- app/controllers/internal/tools_controller.rb | 2 +- app/controllers/twitch_stream_updates_controller.rb | 2 +- app/javascript/chat/chat.jsx | 2 +- app/labor/mailchimp_bot.rb | 2 +- app/models/chat_channel.rb | 4 ++-- app/models/profile_pin.rb | 2 +- app/views/pages/faq.html.erb | 2 +- config/environments/development.rb | 2 +- config/initializers/reverse_markdown.rb | 2 +- docker-run.sh | 4 ++-- docs/backend/pusher.md | 2 +- docs/getting-started/config-env.md | 2 +- docs/installation/docker.md | 2 +- spec/labor/email_logic_spec.rb | 2 +- spec/lib/acts_as_taggable_on/tag_parser_spec.rb | 2 +- spec/requests/twitch_stream_updates_spec.rb | 2 +- 18 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4388b8062..1ee62b6c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -208,7 +208,7 @@ COPY Dockerfile [(docker-)]* /usr/src/app/ # Execution environment variables # -# timeout extension requried to ensure +# timeout extension required to ensure # system work properly on first time load ENV RACK_TIMEOUT_WAIT_TIMEOUT=10000 \ RACK_TIMEOUT_SERVICE_TIMEOUT=10000 \ diff --git a/app/controllers/classified_listings_controller.rb b/app/controllers/classified_listings_controller.rb index fe8bf63e5..e74d6b3af 100644 --- a/app/controllers/classified_listings_controller.rb +++ b/app/controllers/classified_listings_controller.rb @@ -105,7 +105,7 @@ class ClassifiedListingsController < ApplicationController def create_listing(purchaser, cost) successful_transaction = false ActiveRecord::Base.transaction do - # substract credits + # subtract credits Credits::Buyer.call( purchaser: purchaser, purchase: @classified_listing, diff --git a/app/controllers/internal/tools_controller.rb b/app/controllers/internal/tools_controller.rb index 9c6b9eac2..eaf4c9460 100644 --- a/app/controllers/internal/tools_controller.rb +++ b/app/controllers/internal/tools_controller.rb @@ -22,7 +22,7 @@ class Internal::ToolsController < Internal::ApplicationController end def handle_article_cache - article = User.find(params[:bust_artice].to_i) + article = User.find(params[:bust_article].to_i) article.touch(:last_commented_at) CacheBuster.new.bust_article(article) end diff --git a/app/controllers/twitch_stream_updates_controller.rb b/app/controllers/twitch_stream_updates_controller.rb index 351fdbc60..8bf4f76d5 100644 --- a/app/controllers/twitch_stream_updates_controller.rb +++ b/app/controllers/twitch_stream_updates_controller.rb @@ -14,7 +14,7 @@ class TwitchStreamUpdatesController < ApplicationController head :no_content unless secret_verified? - airbrake_logger.warn("Twitch Webhook Recieved for which the webhook could not be verified") + airbrake_logger.warn("Twitch Webhook Received for which the webhook could not be verified") return end diff --git a/app/javascript/chat/chat.jsx b/app/javascript/chat/chat.jsx index 9c736d75b..fda5ed570 100644 --- a/app/javascript/chat/chat.jsx +++ b/app/javascript/chat/chat.jsx @@ -385,7 +385,7 @@ export default class Chat extends Component { }; handleMessageSubmit = message => { - // should check if user has the priviledge + // should check if user has the privilege if (message.startsWith('/code')) { const newActiveContent = this.state.activeContent; newActiveContent[this.state.activeChannelId] = { type_of: 'code_editor' }; diff --git a/app/labor/mailchimp_bot.rb b/app/labor/mailchimp_bot.rb index 2b33deceb..f7894ef08 100644 --- a/app/labor/mailchimp_bot.rb +++ b/app/labor/mailchimp_bot.rb @@ -105,7 +105,7 @@ class MailchimpBot return false unless a_sustaining_member? success = false - # !!! user.monthly_due = 0 ? unsubscibe + # !!! user.monthly_due = 0 ? unsubscribe tiers = %i[ triple_unicorn_member level_4_member level_3_member diff --git a/app/models/chat_channel.rb b/app/models/chat_channel.rb index 5f64de1d2..ff453cc90 100644 --- a/app/models/chat_channel.rb +++ b/app/models/chat_channel.rb @@ -108,9 +108,9 @@ class ChatChannel < ApplicationRecord end end - def adjusted_slug(user = nil, caller_type = "reciever") + def adjusted_slug(user = nil, caller_type = "receiver") user ||= current_user - if direct? && caller_type == "reciever" + if direct? && caller_type == "receiver" "@" + slug.gsub("/#{user.username}", "").gsub("#{user.username}/", "") elsif caller_type == "sender" "@" + user.username diff --git a/app/models/profile_pin.rb b/app/models/profile_pin.rb index ca9fd92fc..b687a6e28 100644 --- a/app/models/profile_pin.rb +++ b/app/models/profile_pin.rb @@ -16,6 +16,6 @@ class ProfilePin < ApplicationRecord end def pinnable_belongs_to_profile - errors.add(:pinnable_id, "must have proper premissions for pin") if pinnable.user_id != profile_id + errors.add(:pinnable_id, "must have proper permissions for pin") if pinnable.user_id != profile_id end end diff --git a/app/views/pages/faq.html.erb b/app/views/pages/faq.html.erb index f2dc7afea..035234d09 100644 --- a/app/views/pages/faq.html.erb +++ b/app/views/pages/faq.html.erb @@ -133,7 +133,7 @@
As a Level 3 member, I received my shirt but no stickers in the mail.
-
We mail out the sticker packs separately from the shirts. Please be patient! If you don't recieve the stickers within three weeks (domestic) or six weeks (international), e-mail members@dev.to for help.
+
We mail out the sticker packs separately from the shirts. Please be patient! If you don't receive the stickers within three weeks (domestic) or six weeks (international), e-mail members@dev.to for help.
How do I cancel my sustaining membership? diff --git a/config/environments/development.rb b/config/environments/development.rb index ec1243cfc..da5559957 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -59,7 +59,7 @@ Rails.application.configure do # yet still be able to expire them through the digest params. config.assets.digest = false - # Supress logger output for asset requests. + # Suppress logger output for asset requests. config.assets.quiet = true # Adds additional error checking when serving assets at runtime. diff --git a/config/initializers/reverse_markdown.rb b/config/initializers/reverse_markdown.rb index d85dbe44f..b79b4ba08 100644 --- a/config/initializers/reverse_markdown.rb +++ b/config/initializers/reverse_markdown.rb @@ -1,5 +1,5 @@ # This eagerload our custom ReverseMarkdown::Converters and allows it to be autoreloaded -# in develpment. +# in development. # # Because files are eagerloaded in production, this fix is only # applicable in development (and test, when needed) diff --git a/docker-run.sh b/docker-run.sh index 8efcc62ab..ff30e14ad 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -129,7 +129,7 @@ echo "# 4) Deploy the postgres container, mounting '_docker-storage/postgres' wi echo "# 5) Deploy the dev-to container, with the name of 'dev-to-app', and sets up its port to 3000" echo "#" echo "# To run this script properly, execute with the following (inside the dev.to repository folder)..." -echo "# './docker-run.sh [RUN_MODE] [Additional docker envrionment arguments]'" +echo "# './docker-run.sh [RUN_MODE] [Additional docker environment arguments]'" echo "#" echo "# Alternatively to run this script in 'interactive mode' simply run" echo "# './docker-run.sh INTERACTIVE-DEMO'" @@ -477,7 +477,7 @@ echo "#" echo "# this commonly takes 2 ~ 10 minutes, basically, a very long time .... =[ " # Side note, looped to give 4 set of distinct lines -# espeially if long wait times occur (to make it more managable) +# espeially if long wait times occur (to make it more manageable) for i in 1 2 3 4 do RETRIES=30 diff --git a/docs/backend/pusher.md b/docs/backend/pusher.md index 2298c690d..afbac1bbe 100644 --- a/docs/backend/pusher.md +++ b/docs/backend/pusher.md @@ -6,7 +6,7 @@ title: Pusher Pusher is a third party service being used to power the [chat system](https://dev.to/connect). -In order to use the chat functionality within you development enviroment +In order to use the chat functionality within you development environment you will need to sign up for a free-tier Pusher account and retrieve its keys. Then you'll need to provide those keys to the Rails application. diff --git a/docs/getting-started/config-env.md b/docs/getting-started/config-env.md index a3da7528a..74ad1a84d 100644 --- a/docs/getting-started/config-env.md +++ b/docs/getting-started/config-env.md @@ -1,5 +1,5 @@ --- -title: Configure Enviroment Variables +title: Configure Environment Variables --- # Configure environment variables/secrets diff --git a/docs/installation/docker.md b/docs/installation/docker.md index cc1c6e6ad..7490d63cc 100644 --- a/docs/installation/docker.md +++ b/docs/installation/docker.md @@ -1,6 +1,6 @@ # Installing DEV with Docker [Beta] -## Installing prerequites +## Installing prerequisites _These prerequisites assume you're working on an operating system supported by Docker._ diff --git a/spec/labor/email_logic_spec.rb b/spec/labor/email_logic_spec.rb index 3042e5431..f85cbed41 100644 --- a/spec/labor/email_logic_spec.rb +++ b/spec/labor/email_logic_spec.rb @@ -72,7 +72,7 @@ RSpec.describe EmailLogic do end describe "#should_receive_email?" do - it "refelcts @ready_to_receive_email" do + it "reflects @ready_to_receive_email" do author = create(:user) user.follow(author) create_list(:article, 3, user_id: author.id, positive_reactions_count: 20, score: 20) diff --git a/spec/lib/acts_as_taggable_on/tag_parser_spec.rb b/spec/lib/acts_as_taggable_on/tag_parser_spec.rb index 28c7dc6c5..55634bc4a 100644 --- a/spec/lib/acts_as_taggable_on/tag_parser_spec.rb +++ b/spec/lib/acts_as_taggable_on/tag_parser_spec.rb @@ -29,7 +29,7 @@ RSpec.describe ActsAsTaggableOn::TagParser do tags = %w[Optimización Καλημέρα Français] expect(create_tag_parser(tags)).to eq(%w[optimización καλημέρα français]) end - it "returns nothing if nothing is recieved" do + it "returns nothing if nothing is received" do expect(create_tag_parser([])).to eq([]) end it "uses tag alias if one exists" do diff --git a/spec/requests/twitch_stream_updates_spec.rb b/spec/requests/twitch_stream_updates_spec.rb index 91cdce246..2eb6d056e 100644 --- a/spec/requests/twitch_stream_updates_spec.rb +++ b/spec/requests/twitch_stream_updates_spec.rb @@ -5,7 +5,7 @@ RSpec.describe "TwitchStramUpdates", type: :request do let(:currently_streaming_on) { nil } describe "GET /users/:user_id/twitch_stream_updates" do - context "when the subscription was successfull" do + context "when the subscription was successful" do let(:challenge) { "FAKE_CHALLENGE" } let(:twitch_webhook_subscription_params) do {