Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeKaraszi committed Aug 11, 2019
1 parent a7cf392 commit ff1b0de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# master (unreleased)
# 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.
Expand All @@ -8,11 +8,15 @@ Supports any aggregate that does not require multiple arguments (`COUNT`, `AVG`,
- Introduce new `Arel::Nodes::AggregateFunctionName` for dealing with inline-ing `ORDER BY` (will be expanded to handel `FILTER` next)
- Code cleanup and some minor performance tweaks

#### `.select_row_to_json` Changes
##### Changes to `.select_row_to_json`
- Argument-less scoped blocks (inner-block argument is now optional)
- `cast_with:`
- Supported options: `true` (array), `:array`, `:array_agg`, `distinct`, and `:to_jsonb`
- `order_by:` : Accepts ActiveRecord like options for ordering responses from an array or aggregated array

### Bugfixes
- [#26](https://github.com/GeorgeKaraszi/ActiveRecordExtended/pull/26) Support for class namespace for `inet_contains` [@znakaska](https://github.com/znakaska)
- [#27](https://github.com/GeorgeKaraszi/ActiveRecordExtended/pull/27) Fixed `TO_JSONB` class name typo that would cause an exception

### 2.0 Deprecation Warning
- In order to keep options standardized, `.select_row_to_json` will be dropping `cast_to_array` in favor of the `cast_with` option;
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
active_record_extended (1.1.0)
active_record_extended (1.2.0)
activerecord (>= 5.0, < 6.1)
ar_outer_joins (~> 0.2)
pg (< 2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record_extended/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ActiveRecordExtended
VERSION = "1.1.0"
VERSION = "1.2.0"
end

0 comments on commit ff1b0de

Please sign in to comment.