Skip to content

Commit 5fdbd21

Browse files
Fix typos [ci-skip]
1 parent 8bbe91d commit 5fdbd21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+60
-56
lines changed

actioncable/lib/action_cable/channel/naming.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def channel_name
1818
end
1919
end
2020

21-
# Delegates to the class' <tt>channel_name</tt>
21+
# Delegates to the class's <tt>channel_name</tt>.
2222
delegate :channel_name, to: :class
2323
end
2424
end

actionpack/lib/abstract_controller/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ def process(action, *args)
151151
process_action(action_name, *args)
152152
end
153153

154-
# Delegates to the class' ::controller_path
154+
# Delegates to the class's ::controller_path.
155155
def controller_path
156156
self.class.controller_path
157157
end
158158

159-
# Delegates to the class' ::action_methods
159+
# Delegates to the class's ::action_methods.
160160
def action_methods
161161
self.class.action_methods
162162
end

actionpack/lib/action_controller/metal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def self.action_encoding_template(action) # :nodoc:
137137
false
138138
end
139139

140-
# Delegates to the class' <tt>controller_name</tt>.
140+
# Delegates to the class's <tt>controller_name</tt>.
141141
def controller_name
142142
self.class.controller_name
143143
end

actionpack/lib/action_controller/metal/conditional_get.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def stale?(object = nil, **freshness_kwargs)
268268
# expires_in 3.hours, public: true, stale_while_revalidate: 60.seconds, stale_if_error: 5.minutes
269269
#
270270
# HTTP Cache-Control Extensions other values: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
271-
# Any additional key-value pairs are concatenated onto the `Cache-Control` header in the response:
271+
# Any additional key-value pairs are concatenated onto the Cache-Control header in the response:
272272
#
273273
# expires_in 3.hours, public: true, "s-maxage": 3.hours, "no-transform": true
274274
#

actionpack/lib/action_controller/metal/http_authentication.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ def authenticate_or_request_with_http_digest(realm = "Application", message = ni
185185
authenticate_with_http_digest(realm, &password_procedure) || request_http_digest_authentication(realm, message)
186186
end
187187

188-
# Authenticate with HTTP Digest, returns true or false
188+
# Authenticate with HTTP \Digest. Returns true or false.
189189
def authenticate_with_http_digest(realm = "Application", &password_procedure)
190190
HttpAuthentication::Digest.authenticate(request, realm, &password_procedure)
191191
end
192192

193-
# Render output including the HTTP Digest authentication header
193+
# Render output including the HTTP \Digest authentication header.
194194
def request_http_digest_authentication(realm = "Application", message = nil)
195195
HttpAuthentication::Digest.authentication_request(self, realm, message)
196196
end
197197
end
198198

199-
# Returns false on a valid response, true otherwise
199+
# Returns false on a valid response, true otherwise.
200200
def authenticate(request, realm, &password_procedure)
201201
request.authorization && validate_digest_response(request, realm, &password_procedure)
202202
end
@@ -469,7 +469,7 @@ def token_params_from(auth)
469469
rewrite_param_values params_array_from raw_params auth
470470
end
471471

472-
# Takes raw_params and turns it into an array of parameters
472+
# Takes raw_params and turns it into an array of parameters.
473473
def params_array_from(raw_params)
474474
raw_params.map { |param| param.split %r/=(.+)?/ }
475475
end

actionview/lib/action_view/helpers/text_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def word_wrap(text, line_width: 80, break_sequence: "\n")
268268
end
269269

270270
# Returns +text+ transformed into HTML using simple formatting rules.
271-
# Two or more consecutive newlines(<tt>\n\n</tt> or <tt>\r\n\r\n</tt>) are
271+
# Two or more consecutive newlines (<tt>\n\n</tt> or <tt>\r\n\r\n</tt>) are
272272
# considered a paragraph and wrapped in <tt><p></tt> tags. One newline
273273
# (<tt>\n</tt> or <tt>\r\n</tt>) is considered a linebreak and a
274274
# <tt><br /></tt> tag is appended. This method does not remove the

actionview/lib/action_view/layouts.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ module ActionView
183183
# be rendered directly, without wrapping a layout around the rendered view.
184184
#
185185
# Both the <tt>:only</tt> and <tt>:except</tt> condition can accept an arbitrary number of method references, so
186-
# #<tt>except: [ :rss, :text_only ]</tt> is valid, as is <tt>except: :rss</tt>.
186+
# <tt>except: [ :rss, :text_only ]</tt> is valid, as is <tt>except: :rss</tt>.
187187
#
188188
# == Using a different layout in the action render call
189189
#
@@ -257,10 +257,13 @@ def _conditional_layout?
257257
#
258258
# Return value of +Proc+ and +Symbol+ arguments should be +String+, +false+, +true+ or +nil+
259259
# with the same meaning as described above.
260+
#
260261
# ==== Parameters
262+
#
261263
# * <tt>layout</tt> - The layout to use.
262264
#
263265
# ==== Options (conditions)
266+
#
264267
# * :only - A list of actions to apply this layout to.
265268
# * :except - Apply this layout to all actions but this one.
266269
def layout(layout, conditions = {})

activemodel/lib/active_model/errors.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def copy!(other) # :nodoc:
114114
}
115115
end
116116

117-
# Imports one error
117+
# Imports one error.
118118
# Imported errors are wrapped as a NestedError,
119119
# providing access to original error object.
120120
# If attribute or type needs to be overridden, use +override_options+.
121121
#
122122
# override_options - Hash
123-
# @option override_options [Symbol] :attribute Override the attribute the error belongs to
123+
# @option override_options [Symbol] :attribute Override the attribute the error belongs to.
124124
# @option override_options [Symbol] :type Override type of the error.
125125
def import(error, override_options = {})
126126
[:attribute, :type].each do |key|

activemodel/lib/active_model/type/boolean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Type
55
# A class that behaves like a boolean type, including rules for coercion of
66
# user input.
77
#
8-
# - <tt>"false"</tt>, <tt>"f"</tt> , <tt>"0"</tt>, +0+ or any other value in
8+
# - <tt>"false"</tt>, <tt>"f"</tt>, <tt>"0"</tt>, +0+ or any other value in
99
# +FALSE_VALUES+ will be coerced to +false+.
1010
# - Empty strings are coerced to +nil+.
1111
# - All other values will be coerced to +true+.

activemodel/lib/active_model/validations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def clear_validators!
241241
# class Person
242242
# include ActiveModel::Validations
243243
#
244-
# attr_accessor :name , :age
244+
# attr_accessor :name, :age
245245
#
246246
# validates_presence_of :name
247247
# validates_inclusion_of :age, in: 0..99

0 commit comments

Comments
 (0)