CHANGELOG.md in ransack-1.7.0 vs CHANGELOG.md in ransack-1.8.0

- old
+ new

@@ -1,11 +1,173 @@ # Change Log -## Unreleased +## Version 1.8.0 - 2016-07-14 +### Added +* Support Mongoid 5. PR [#636](https://github.com/activerecord-hackery/ransack/pull/636), commit + [9e5faf4](https://github.com/activerecord-hackery/ransack/commit/9e5faf4). + *Josef Šimánek* + +* Added optional block argument for the `sort_link` method. PR + [#604](https://github.com/activerecord-hackery/ransack/pull/604). + + *Andrea Dal Ponte* + +* Added `ransack_alias` to allow users to customize the names for long + ransack field names. PR + [#623](https://github.com/activerecord-hackery/ransack/pull/623). + + *Ray Zane* + +* Added support for searching on attributes that have been added to + Active Record models with `alias_attribute` (Rails >= 4 only). PR + [#592](https://github.com/activerecord-hackery/ransack/pull/592), commit + [549342a](https://github.com/activerecord-hackery/ransack/commit/549342a). + + *Marten Schilstra* + +* Add ability to globally hide sort link order indicator arrows with + `Ransack.configure#hide_sort_order_indicators = true`. PR + [#577](https://github.com/activerecord-hackery/ransack/pull/577), commit + [95d4591](https://github.com/activerecord-hackery/ransack/commit/95d4591). + + *Josh Hunter*, *Jon Atack* + +* Add test for `ActionController:Parameter` object params in `sort_link` to + ensure Ransack is handling the Rails 5 changes correctly. Commit + [b1cfed8](https://github.com/activerecord-hackery/ransack/commit/b1cfed8). + + *Ryan Wood* + +* Add failing tests to facilitate work on issue + [#566](https://github.com/activerecord-hackery/ransack/issues/566) + of passing boolean values to search scopes. PR + [#575](https://github.com/activerecord-hackery/ransack/pull/575). + + *Marcel Eeken* + +* Add Taiwanese Hokkien/Mandarin i18n locale file (`zh-TW.yml`). PR + [#674](https://github.com/activerecord-hackery/ransack/pull/674). + + *Sibevin Wang* + +* Add Danish i18n locale file (`da.yml`). PR + [#663](https://github.com/activerecord-hackery/ransack/pull/663). + + *Kasper Johansen* + +* Add Brazilian Portuguese i18n locale file (`pt-BR.yml`). PR + [#581](https://github.com/activerecord-hackery/ransack/pull/581). + + *Diego Henrique Domingues* + +* Add Indonesian (Bahasa) i18n locale file (`id.yml`). PR + [#612](https://github.com/activerecord-hackery/ransack/pull/612). + + *Adam Pahlevi Baihaqi* + +* Add Japanese i18n locale file (`ja.yml`). PR + [#622](https://github.com/activerecord-hackery/ransack/pull/622). + + *Masanobu Mizutani* + +### Fixed + +* In `FormHelper::SortLink#parameters_hash`, convert `params#to_unsafe_h` + only if Rails 5, and add tests. Commit + [14e66ca](https://github.com/activerecord-hackery/ransack/commit/14e66ca). + + *Jon Atack* + +* Respect negative conditions for collection associations and fix Mongoid + compat. PR [#645](https://github.com/activerecord-hackery/ransack/pull/645). + + *Andrew Vit* + +* Ensure conditions differing only by ransacker_args aren't filtered out. + PR [#665](https://github.com/activerecord-hackery/ransack/pull/665). + + *Andrew Porterfield* + +* Fix using aliased attributes in association searches, and add a failing + spec. PR [#602](https://github.com/activerecord-hackery/ransack/pull/602). + + *Marten Schilstra* + +* Replace Active Record `table_exists?` API that was deprecated + [here](https://github.com/rails/rails/commit/152b85f) in Rails 5. Commit + [c9d2297](https://github.com/activerecord-hackery/ransack/commit/c9d2297). + + *Jon Atack* + +* Adapt to changes in Rails 5 where AC::Parameters composes a HWIA instead of + inheriting from Hash starting from Rails commit rails/rails@14a3bd5. Commit + [ceafc05](https://github.com/activerecord-hackery/ransack/commit/ceafc05). + + *Jon Atack* + +* Fix test `#sort_link with hide order indicator set to true` to fail properly + ([4f65b09](https://github.com/activerecord-hackery/ransack/commit/4f65b09)). + This spec, added in + [#473](https://github.com/activerecord-hackery/ransack/pull/473), tested + the presence of the attribute name instead of the absence of the order + indicators and did not fail when it should. + + *Josh Hunter*, *Jon Atack* + +* Fix rspec-mocks `stub` deprecation warnings when running the tests. Commit + [600892e](https://github.com/activerecord-hackery/ransack/commit/600892e). + + *Jon Atack* + +* Revert + [f858dd6](https://github.com/activerecord-hackery/ransack/commit/f858dd6). + Fixes [#553](https://github.com/activerecord-hackery/ransack/issues/553) + performance regression with the SQL Server adapter. + + *sschwing3* + +* Fix invalid Chinese I18n locale file name by replacing "zh" with "zh-CN". + PR [#590](https://github.com/activerecord-hackery/ransack/pull/590). + + *Ethan Yang* + +### Changed + +* Memory/speed perf improvement: Freeze strings in array global constants and + partially move from using global string constants to frozen strings + ([381a83c](https://github.com/activerecord-hackery/ransack/commit/381a83c) + and + [ce114ec](https://github.com/activerecord-hackery/ransack/commit/ce114ec)). + + *Jon Atack* + +* Escape underscore `_` wildcard characters with PostgreSQL and MySQL. PR + [#584](https://github.com/activerecord-hackery/ransack/issues/584). + + *Igor Dobryn* + +* Refactor `Ransack::Adapters` from conditionals to classes + ([94a404c](https://github.com/activerecord-hackery/ransack/commit/94a404c)). + + *Jon Atack* + ## Version 1.7.0 - 2015-08-20 +### Added + +* Add Mongoid support for referenced/embedded relations. PR + [#498](https://github.com/activerecord-hackery/ransack/pull/498). + TODO: Missing spec coverage! Add documentation! + + *Penn Su* + +* Add German i18n locale file (`de.yml`). PR + [#537](https://github.com/activerecord-hackery/ransack/pull/537). + + *Philipp Weissensteiner* + ### Fixed * Fix [#499](https://github.com/activerecord-hackery/ransack/issues/499) and [#549](https://github.com/activerecord-hackery/ransack/issues/549). @@ -42,37 +204,24 @@ Rails 3, as this issue was fixed since Rails 4. PR [#560](https://github.com/activerecord-hackery/ransack/pull/560). *Andrew Vit* -* Fix RSpec `its` method deprecation warning: 'Use of rspec-core's `its` - method is deprecated. Use the rspec-its gem instead +* Fix RSpec `its` method deprecation warning: "Use of rspec-core's its + method is deprecated. Use the rspec-its gem instead" ([c09aa17](https://github.com/activerecord-hackery/ransack/commit/c09aa17)). * Fix deprecated RSpec syntax in `grouping_spec.rb` ([ba92a0b](https://github.com/activerecord-hackery/ransack/commit/ba92a0b)). *Jon Atack* -### Added - -* Add Mongoid support for referenced/embedded relations. PR - [#498](https://github.com/activerecord-hackery/ransack/pull/498). - TODO: Missing spec coverage! Add documentation! - - *Penn Su* - -* Add German locale file (de.yml). PR - [#537](https://github.com/activerecord-hackery/ransack/pull/537). - - *Philipp Weissensteiner* - ### Changed * Upgrade gemspec dependencies: MySQL2 from '0.3.14' to '0.3.18', and RSpec from '~> 2.14.0' to '~> 2' which loads 2.99 - ([000cd2](https://github.com/activerecord-hackery/ransack/commit/000cd2)). + ([000cd22](https://github.com/activerecord-hackery/ransack/commit/000cd22)). * Upgrade spec suite to RSpec 3 `expect` syntax backward compatible with RSpec 2.9 ([87cd36d](https://github.com/activerecord-hackery/ransack/commit/87cd36d) and @@ -87,15 +236,17 @@ *Jon Atack* ## Version 1.6.6 - 2015-04-05 -### Changed +### Added -* Upgrade Polyamorous dependency to version 1.2.0, which uses `Module#prepend` - instead of `alias_method` for hooking into Active Record (with Ruby 2.x). +* Add the Ruby version to the the header message that shows the database, + Active Record and Arel versions when running tests. +* Add Code Climate analysis. + *Jon Atack* ### Fixed * An improved fix for the "undefined method `model_name` for Ransack::Search" @@ -115,17 +266,15 @@ * Fix RubyGems YARD rendering of the README docs. *Jon Atack* -### Added +### Changed -* Add the Ruby version to the the header message that shows the database, - Active Record and Arel versions when running tests. +* Upgrade Polyamorous dependency to version 1.2.0, which uses `Module#prepend` + instead of `alias_method` for hooking into Active Record (with Ruby 2.x). -* Add Code Climate analysis. - *Jon Atack* ## Version 1.6.5 - 2015-03-28 - Rails 5.0.0 update ### Added @@ -237,11 +386,11 @@ * Add support and tests for passing stringy booleans for ransackable scopes ([PR #460](https://github.com/activerecord-hackery/ransack/pull/460)). *Josh Kovach* -* Add an sort_link option to not display sort direction arrows +* Add an sort_link option to not display sort order indicator arrows ([PR #473](https://github.com/activerecord-hackery/ransack/pull/473)). *Fred Bergman* * Numerous documentation improvements to the README, Contributing Guide and @@ -425,10 +574,10 @@ * Add `not_true` and `not_false` predicates and update the "Basic Searching" wiki. Fixes #123, #353. *Pedro Chambino* -* Add `ro.yml` Romanian translation file. +* Add Romanian i18n locale file (`ro.yml`). *Andreas Philippi* * Add new documentation in the README explaining how to group queries by `OR` instead of the default `AND` using the `m: 'or'` combinator.