Skip to content

Commit 54979ff

Browse files
authored
Merge pull request rails#41916 from jbampton/fix-spelling
chore: fix grammar and spelling
2 parents a58d35b + 13b1d9d commit 54979ff

File tree

14 files changed

+31
-31
lines changed

14 files changed

+31
-31
lines changed

activerecord/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
* Allow applications to configure the thread pool for async queries
124124

125125
Some applications may want one thread pool per database whereas others want to use
126-
a single global thread pool for all queries. By default Rails will set `async_query_executor`
126+
a single global thread pool for all queries. By default, Rails will set `async_query_executor`
127127
to `nil` which will not initialize any executor. If `load_async` is called and no executor
128128
has been configured, the query will be executed in the foreground.
129129

@@ -212,7 +212,7 @@
212212
present in the simplified query, an ActiveRecord::InvalidStatement
213213
error was raised.
214214

215-
An sample query affected by this problem:
215+
A sample query affected by this problem:
216216

217217
```ruby
218218
Author.select('COUNT(*) as total_posts', 'authors.*')
@@ -252,7 +252,7 @@
252252
253253
* `ActiveRecord::Calculations.calculate` called with `:average`
254254
(aliased as `ActiveRecord::Calculations.average`) will now use column based
255-
type casting. This means that floating point number columns will now be
255+
type casting. This means that floating-point number columns will now be
256256
aggregated as `Float` and decimal columns will be aggregated as `BigDecimal`.
257257
258258
Integers are handled as a special case returning `BigDecimal` always
@@ -306,7 +306,7 @@
306306
When an application boots it automatically connects to the primary or first database in the
307307
database configuration file. In a multiple database application that then call `connects_to`
308308
needs to know that the default connection is the same as the `ApplicationRecord` connection.
309-
However some applications have a differently named `ApplicationRecord`. This prevents Active
309+
However, some applications have a differently named `ApplicationRecord`. This prevents Active
310310
Record from opening duplicate connections to the same database.
311311
312312
*Eileen M. Uchitelle*, *John Crepezzi*

activerecord/test/cases/associations/eager_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def test_eager_with_valid_association_as_string_not_symbol
10621062

10631063
def test_eager_with_floating_point_numbers
10641064
assert_queries(2) do
1065-
# Before changes, the floating point numbers will be interpreted as table names and will cause this to run in one query
1065+
# Before changes, the floating-point numbers will be interpreted as table names and will cause this to run in one query
10661066
Comment.all.merge!(where: "123.456 = 123.456", includes: :post).to_a
10671067
end
10681068
end

activesupport/lib/active_support/time_with_zone.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def to_a
446446
[time.sec, time.min, time.hour, time.day, time.mon, time.year, time.wday, time.yday, dst?, zone]
447447
end
448448

449-
# Returns the object's date and time as a floating point number of seconds
449+
# Returns the object's date and time as a floating-point number of seconds
450450
# since the Epoch (January 1, 1970 00:00 UTC).
451451
#
452452
# Time.zone.now.to_f # => 1417709320.285418

activesupport/test/clean_backtrace_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def setup
1919
assert_equal "/my/prefix/my/class.rb", @bc.clean(["/my/prefix/my/class.rb"]).first
2020
end
2121

22-
test "backtrace should contain unaltered lines if they dont match a filter" do
22+
test "backtrace should contain unaltered lines if they don't match a filter" do
2323
assert_equal "/my/other_prefix/my/class.rb", @bc.clean([ "/my/other_prefix/my/class.rb" ]).first
2424
end
2525
end

activesupport/test/core_ext/duration_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def test_since_and_ago_anchored_to_time_zone_now_when_time_zone_is_set
318318
Time.zone = nil
319319
end
320320

321-
def test_before_and_afer
321+
def test_before_and_after
322322
t = Time.local(2000)
323323
assert_equal t + 1, 1.second.after(t)
324324
assert_equal t - 1, 1.second.before(t)

activesupport/test/core_ext/time_with_zone_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def test_inspect
120120
nsec = ActiveSupport::TimeWithZone.new(nsec, @time_zone)
121121
assert_equal "Fri, 12 Dec 1986 01:23:00.000000001 EST -05:00", nsec.inspect
122122

123-
handred_nsec = Time.utc(1986, 12, 12, 6, 23, 00, Rational(100, 1000))
124-
handred_nsec = ActiveSupport::TimeWithZone.new(handred_nsec, @time_zone)
125-
assert_equal "Fri, 12 Dec 1986 01:23:00.000000100 EST -05:00", handred_nsec.inspect
123+
hundred_nsec = Time.utc(1986, 12, 12, 6, 23, 00, Rational(100, 1000))
124+
hundred_nsec = ActiveSupport::TimeWithZone.new(hundred_nsec, @time_zone)
125+
assert_equal "Fri, 12 Dec 1986 01:23:00.000000100 EST -05:00", hundred_nsec.inspect
126126

127127
one_third_sec = Time.utc(1986, 12, 12, 6, 23, 00, Rational(1000000, 3))
128128
one_third_sec = ActiveSupport::TimeWithZone.new(one_third_sec, @time_zone)

guides/bug_report_templates/benchmark.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def fast_blank?
2929
# scenarios. Ideally, they should be based on real-world scenarios extracted
3030
# from production applications.
3131
SCENARIOS = {
32-
"Empty" => "",
33-
"Single Space" => " ",
34-
"Two Spaces" => " ",
35-
"Mixed Whitspaces" => " \t\r\n",
36-
"Very Long String" => " " * 100
32+
"Empty" => "",
33+
"Single Space" => " ",
34+
"Two Spaces" => " ",
35+
"Mixed Whitespaces" => " \t\r\n",
36+
"Very Long String" => " " * 100
3737
}
3838

3939
SCENARIOS.each_pair do |name, value|

guides/source/active_record_querying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ If you want to see the average of a certain number in one of your tables you can
22162216
Order.average("subtotal")
22172217
```
22182218

2219-
This will return a number (possibly a floating point number such as 3.14159265) representing the average value in the field.
2219+
This will return a number (possibly a floating-point number such as 3.14159265) representing the average value in the field.
22202220

22212221
For options, please see the parent section, [Calculations](#calculations).
22222222

guides/source/active_support_core_extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,7 @@ Extensions to `BigDecimal`
21502150

21512151
### `to_s`
21522152

2153-
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating point representation instead of engineering notation:
2153+
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating-point representation instead of engineering notation:
21542154

21552155
```ruby
21562156
BigDecimal(5.00, 6).to_s # => "5.0"

guides/source/caching_with_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Caching means to store content generated during the request-response cycle and
99
to reuse it when responding to similar requests.
1010

1111
Caching is often the most effective way to boost an application's performance.
12-
Through caching, web sites running on a single server with a single database
12+
Through caching, websites running on a single server with a single database
1313
can sustain a load of thousands of concurrent users.
1414

1515
Rails provides a set of caching features out of the box. This guide will teach

0 commit comments

Comments
 (0)