This commit is contained in:
Kitten King 2019-07-22 22:26:48 +05:30 committed by Ben Halpern
parent e604bf729c
commit 6290451273
18 changed files with 20 additions and 20 deletions

View file

@ -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 \

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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' };

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -133,7 +133,7 @@
</p>
<p>
<b>As a Level 3 member, I received my shirt but no stickers in the mail.</b>
<br>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.
<br>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.
</p>
<p>
<b>How do I cancel my sustaining membership?</b>

View file

@ -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.

View file

@ -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)

View file

@ -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

View file

@ -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.

View file

@ -1,5 +1,5 @@
---
title: Configure Enviroment Variables
title: Configure Environment Variables
---
# Configure environment variables/secrets

View file

@ -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._

View file

@ -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)

View file

@ -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

View file

@ -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
{