Found via `codespell -q 3 --skip="./app/javascript/mastodon/locales,./config/locales"`
def clear_site_data
return if continue_after?
- # Should be '"*"' but that doen't work in Chrome (neither does '"executionContexts"')
+ # Should be '"*"' but that doesn't work in Chrome (neither does '"executionContexts"')
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
response.headers['Clear-Site-Data'] = '"cache", "cookies", "storage"'
end
')' +
'\\)',
'i');
- // Valid end-of-path chracters (so /foo. does not gobble the period).
+ // Valid end-of-path characters (so /foo. does not gobble the period).
// 1. Allow =&# for empty URL parameters and other URL-join artifacts
regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i);
// Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
children: PropTypes.node,
};
-// Small Wraper to extract the params from the route and pass
+// Small Wrapper to extract the params from the route and pass
// them to the rendered component, together with the content to
// be rendered inside (the children)
export class WrappedRoute extends React.Component {
def as_direct_timeline(account, limit = 20, max_id = nil, since_id = nil, cache_ids = false)
# direct timeline is mix of direct message from_me and to_me.
- # 2 querys are executed with pagination.
+ # 2 queries are executed with pagination.
# constant expression using arel_table is required for partial index
# _from_me part does not require any timeline filters
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
- # The default store, file_store is shared by processses parallely executed
+ # The default store, file_store is shared by processes parallelly executed
# and should not be used.
config.cache_store = :memory_store
# You can define the class to use on all labels. Default is nil.
# config.label_class = nil
- # You can define the default class to be used on forms. Can be overriden
+ # You can define the default class to be used on forms. Can be overridden
# with `html: { :class }`. Defaulting to none.
# config.default_form_class = nil
)/iox
REGEXEN[:valid_url] = %r{
( # $1 total match
- (#{REGEXEN[:valid_url_preceding_chars]}) # $2 Preceeding chracter
+ (#{REGEXEN[:valid_url_preceding_chars]}) # $2 Preceding character
( # $3 URL
((https?|dat|dweb|ipfs|ipns|ssb|gopher):\/\/)? # $4 Protocol (optional)
(#{REGEXEN[:valid_domain]}) # $5 Domain(s)
image: postgres:9.6-alpine
networks:
- internal_network
-### Uncomment to enable DB persistance
+### Uncomment to enable DB persistence
# volumes:
# - ./postgres:/var/lib/postgresql/data
image: redis:4.0-alpine
networks:
- internal_network
-### Uncomment to enable REDIS persistance
+### Uncomment to enable REDIS persistence
# volumes:
# - ./redis:/data
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# networks:
# - internal_network
-#### Uncomment to enable ES persistance
+#### Uncomment to enable ES persistence
## volumes:
## - ./elasticsearch:/usr/share/elasticsearch/data
columns(table).find { |column| column.name == name }
end
- # This will replace the first occurance of a string in a column with
+ # This will replace the first occurrence of a string in a column with
# the replacement
# On postgresql we can use `regexp_replace` for that.
# On mysql we find the location of the pattern, and overwrite it
expect(I18n.locale).to eq :fa
end
- it 'sets available and compatible langauge if none of available languages are preferred' do
+ it 'sets available and compatible language if none of available languages are preferred' do
request.headers['Accept-Language'] = 'fa-IR'
get 'success'
expect(I18n.locale).to eq :fa
let(:emoji) { Fabricate(:custom_emoji) }
describe 'GET #show' do
- subject(:responce) { get :show, params: { id: emoji.id, format: :json } }
+ subject(:response) { get :show, params: { id: emoji.id, format: :json } }
subject(:body) { JSON.parse(response.body, symbolize_names: true) }
it 'returns the right response' do
- expect(responce).to have_http_status 200
+ expect(response).to have_http_status 200
expect(body[:name]).to eq ':coolcat:'
end
end
render_views
shared_examples 'before_action' do |route|
- context 'when account is not suspended anbd stream_entry is available' do
+ context 'when account is not suspended and stream_entry is available' do
it 'assigns instance variables' do
status = Fabricate(:status)
end
context 'when is local' do
- it 'is invalid if the username is not unique in case-insensitive comparsion among local accounts' do
+ it 'is invalid if the username is not unique in case-insensitive comparison among local accounts' do
account_1 = Fabricate(:account, username: 'the_doctor')
account_2 = Fabricate.build(:account, username: 'the_Doctor')
account_2.valid?
end
describe 'lease_seconds' do
- it 'returns the time remaing until expiration' do
+ it 'returns the time remaining until expiration' do
datetime = 1.day.from_now
subscription = Subscription.new(expires_at: datetime)
travel_to(datetime - 12.hours) do
expect(created_statuses.first.reblog.text).to eq 'Overwatch rocks'
end
- it 'ignores reblogs if it failed to retreive reblogged statuses' do
+ it 'ignores reblogs if it failed to retrieve reblogged statuses' do
stub_request(:get, 'https://overwatch.com/users/tracer/updates/1').to_return(status: 404)
actor = Fabricate(:account, username: 'tracer', domain: 'overwatch.com')