Skip to content

Commit

Permalink
Fix typos (GeorgeKaraszi#108)
Browse files Browse the repository at this point in the history
Found with

```
codespell **/*.rb **/*.md
```
  • Loading branch information
tagliala authored Oct 28, 2024
1 parent 4f642d7 commit 10d5504
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ Overall Examples:
# 1.2.0 - August 11th 2019

## Changes
- Introduce `.foster_select` a helper for select statements that can handel aliasing and provides casting options for many common aggregate functions.
- Introduce `.foster_select` a helper for select statements that can handle aliasing and provides casting options for many common aggregate functions.
Supports any aggregate that does not require multiple arguments (`COUNT`, `AVG`, `MAX`, `ARRAY_AGG`, etc..): [Aggregate Functions](https://www.postgresql.org/docs/current/functions-aggregate.html)
- Supports Aggregate `DISTINCT` and `ORDER BY` inner expressions.
- Reduced the code foot-print for declaring new Arel functions
- Introduce new `Arel::Nodes::AggregateFunctionName` for dealing with inline-ing `ORDER BY` (will be expanded to handel `FILTER` next)
- Introduce new `Arel::Nodes::AggregateFunctionName` for dealing with inline-ing `ORDER BY` (will be expanded to handle `FILTER` next)
- Code cleanup and some minor performance tweaks

##### Changes to `.select_row_to_json`
Expand Down Expand Up @@ -196,7 +196,7 @@ Add support for Postgres Union types and refactor Arel building process into a s
- or `.union.as`
- `order_union` (ORDER BY)
- or `.union.order`
- `.reorder_union` (overides previously set `.order_union`)
- `.reorder_union` (overrides previously set `.order_union`)
- or `union.reorder`

## JSON Query Commands
Expand All @@ -208,7 +208,7 @@ Add support for Postgres Union types and refactor Arel building process into a s

# 0.7.0 - September 22nd 2018

Add support for Postgres Commend Table Expression (CTE) methods.
Add support for Postgres Common Table Expression (CTE) methods.

- `.with/1`
- `.with.recursive/1`
Expand Down Expand Up @@ -291,7 +291,7 @@ Added ActiveRecord Where Chain Functionality:

Major thanks to [Dan McClain author of Postgres Ext](https://github.com/dockyard/postgres_ext)

Added ActiveRecord Base Extentions
Added ActiveRecord Base Extensions
- .either_order/2
- .either_join/2

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ As a means for taking complex query logic and transform them into a single or m

**Options:**
- `as`: [Symbol or String] (defaults to `"results"`): What the column will be aliased to
- `value`: [Symbol or String] (defaults to `key` argument): How the response should handel the json value return
- `value`: [Symbol or String] (defaults to `key` argument): How the response should handle the json value return

See the included example on [Row To JSON](#row-to-json) to see it in action.

Expand Down Expand Up @@ -606,7 +606,7 @@ There's an issue with providing a single union clause and chaining it with a dif
This is due to requirements of grouping SQL statements. The issue is being working on, but with no ETA.

This issue only applies to the first initial set of unions and is recommended that you union two relations right off the bat.
Afterwords you can union/chain single relations.
Afterwards you can union/chain single relations.

Example

Expand Down
2 changes: 1 addition & 1 deletion lib/active_record_extended/query_methods/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def select_row_to_json(from = nil, **options, &block)
# - as: [Symbol or String] (default="results"): What the column will be aliased to
#
#
# - value: [Symbol or String] (defaults=[key]): How the response should handel the json value return
# - value: [Symbol or String] (defaults=[key]): How the response should handle the json value return
#
# Example:
#
Expand Down
2 changes: 1 addition & 1 deletion spec/sql_inspections/arel/array_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
expect(query).to match_regex(/'tag' = ALL\("users"\."tags"\)/)
end

it "create all predicates that contain a interger value" do
it "create all predicates that contain a integer value" do
query = arel_table.where(arel_table[:tags].all(2)).to_sql
expect(query).to match_regex(/2 = ALL\("users"\."tags"\)/)
end
Expand Down

0 comments on commit 10d5504

Please sign in to comment.