2014-09-08 17:49:31 -04:00
|
|
|
|
# Change Log
|
|
|
|
|
|
2020-01-10 18:54:38 -05:00
|
|
|
|
## 2.3.1 - 2010-01-01
|
2018-12-05 08:01:48 -05:00
|
|
|
|
|
2019-10-16 05:31:04 -04:00
|
|
|
|
* Drop support for Active Record 5.0, 5.1, and 5.2.0.
|
2019-10-14 09:24:50 -04:00
|
|
|
|
PR [#1073](https://github.com/activerecord-hackery/ransack/pull/1073)
|
2020-01-10 18:54:38 -05:00
|
|
|
|
|
2019-10-13 10:33:57 -04:00
|
|
|
|
* Drop support for rubies under 2.3.
|
|
|
|
|
PR [#1070](https://github.com/activerecord-hackery/ransack/pull/1070)
|
2019-10-14 09:24:50 -04:00
|
|
|
|
|
2020-01-10 18:54:38 -05:00
|
|
|
|
... and others
|
|
|
|
|
|
2019-08-18 14:51:58 -04:00
|
|
|
|
## 2.3.0 - 2019-08-18
|
|
|
|
|
|
|
|
|
|
* Arabic translations PR [979](https://github.com/activerecord-hackery/ransack/pull/979)
|
|
|
|
|
|
|
|
|
|
* Rails 6 PR [1027](https://github.com/activerecord-hackery/ransack/pull/1027)
|
|
|
|
|
*vrodokanakis*
|
|
|
|
|
|
|
|
|
|
* Make polyamorous a separate gem PR [1002](https://github.com/activerecord-hackery/ransack/pull/1002)
|
|
|
|
|
|
|
|
|
|
* Catalan translations PR[1007](https://github.com/activerecord-hackery/ransack/pull/1007)
|
|
|
|
|
*roslavych*
|
|
|
|
|
|
|
|
|
|
* Don't escape period characters with wildcard searches in mysql2 PR [1013](https://github.com/activerecord-hackery/ransack/pull/1013)
|
|
|
|
|
*daflip*
|
|
|
|
|
|
|
|
|
|
* Farsi translations PR [1030](https://github.com/activerecord-hackery/ransack/pull/1030)
|
|
|
|
|
|
|
|
|
|
* Finnish translations PR [1049](https://github.com/activerecord-hackery/ransack/pull/1049)
|
|
|
|
|
|
2019-02-21 06:24:18 -05:00
|
|
|
|
* Fix wrong table alias when using nested join. for ActiveRecord >= 5.2
|
|
|
|
|
PR [374](https://github.com/activerecord-hackery/ransack/pull/374)
|
|
|
|
|
|
|
|
|
|
*hiichan*
|
|
|
|
|
|
2018-12-05 08:01:48 -05:00
|
|
|
|
## Version 2.1.1 - 2018-12-05
|
|
|
|
|
|
|
|
|
|
* Add `arabic` translation
|
|
|
|
|
https://github.com/activerecord-hackery/ransack/pull/979
|
|
|
|
|
|
|
|
|
|
* Deprecate #search
|
|
|
|
|
PR [975](https://github.com/activerecord-hackery/ransack/pull/975)
|
|
|
|
|
|
|
|
|
|
## Version 2.1.0 - 2018-10-26
|
2018-08-09 16:27:56 -04:00
|
|
|
|
|
2017-02-09 08:41:06 -05:00
|
|
|
|
* Add support for sorting by scopes
|
|
|
|
|
PR [973](https://github.com/activerecord-hackery/ransack/pull/973)
|
|
|
|
|
|
|
|
|
|
*Diego Borges*
|
|
|
|
|
|
2018-10-26 17:08:41 -04:00
|
|
|
|
* Added a new logo for Ransack
|
|
|
|
|
PR [972](https://github.com/activerecord-hackery/ransack/pull/972)
|
|
|
|
|
|
|
|
|
|
*Anıl Kılıç*, *Greg Molnar*
|
|
|
|
|
|
|
|
|
|
* Greek translations
|
|
|
|
|
PR [971](https://github.com/activerecord-hackery/ransack/pull/971)
|
|
|
|
|
PR [960](https://github.com/activerecord-hackery/ransack/pull/960)
|
|
|
|
|
|
|
|
|
|
*Sean Carroll*, *Greg Molnar*
|
|
|
|
|
|
|
|
|
|
* README improvements
|
|
|
|
|
PR [963](https://github.com/activerecord-hackery/ransack/pull/963)
|
|
|
|
|
|
|
|
|
|
*tommaso1*
|
|
|
|
|
|
|
|
|
|
* Bulgarian translations
|
|
|
|
|
PR [961](https://github.com/activerecord-hackery/ransack/pull/961)
|
|
|
|
|
|
|
|
|
|
*Sean Carroll*
|
|
|
|
|
|
|
|
|
|
* README improvements
|
|
|
|
|
PR [956](https://github.com/activerecord-hackery/ransack/pull/956)
|
|
|
|
|
|
|
|
|
|
*Alex Konoval*
|
|
|
|
|
|
|
|
|
|
* Remove lib/ransack/adapters/active_record/compat.rb
|
|
|
|
|
PR [954](https://github.com/activerecord-hackery/ransack/pull/954)
|
|
|
|
|
|
|
|
|
|
*Ryuta Kamizono*
|
|
|
|
|
|
|
|
|
|
* Remove unused aliases
|
|
|
|
|
PR [953](https://github.com/activerecord-hackery/ransack/pull/953)
|
|
|
|
|
|
|
|
|
|
*Ryuta Kamizono*
|
|
|
|
|
|
2018-08-18 02:56:59 -04:00
|
|
|
|
## Version 2.0.1 - 2018-08-18
|
|
|
|
|
|
2018-08-16 09:28:17 -04:00
|
|
|
|
* Don't return association if table is nil
|
|
|
|
|
PR [952](https://github.com/activerecord-hackery/ransack/pull/952)
|
|
|
|
|
|
|
|
|
|
*Christian Gregg*
|
|
|
|
|
|
2018-08-09 16:27:56 -04:00
|
|
|
|
## Version 2.0.0 - 2018-08-09
|
2018-08-09 02:58:32 -04:00
|
|
|
|
|
|
|
|
|
* Add support for Active Record 5.2.1
|
|
|
|
|
PR [#938](https://github.com/activerecord-hackery/ransack/pull/938)
|
|
|
|
|
|
|
|
|
|
* Fix sort with joins on existing association
|
|
|
|
|
PR [#937](https://github.com/activerecord-hackery/ransack/pull/937)
|
|
|
|
|
|
|
|
|
|
* Add the ability to skip arg sanitization on a per scope basis. Using
|
2018-07-17 12:18:28 -04:00
|
|
|
|
`ransackable_scopes_skip_sanitize_args`, users can define a list of
|
|
|
|
|
scopes which will bypass parameter sanitization. This allows passing 0,
|
|
|
|
|
1, t, f, etc. to a scope as an actual parameter.
|
2018-08-09 02:58:32 -04:00
|
|
|
|
PR [#933](https://github.com/activerecord-hackery/ransack/pull/933)
|
|
|
|
|
|
|
|
|
|
* Drop support for Active Record < 5.0.
|
|
|
|
|
PR [#929](https://github.com/activerecord-hackery/ransack/pull/929)
|
|
|
|
|
|
|
|
|
|
* Extract mongoid support to a separate gem.
|
|
|
|
|
PR [#928](https://github.com/activerecord-hackery/ransack/pull/928)
|
|
|
|
|
|
|
|
|
|
* Absorb polyamorous
|
|
|
|
|
PR [#927](https://github.com/activerecord-hackery/ransack/pull/927)
|
|
|
|
|
|
|
|
|
|
* Fix broken monkey patch of #form_with
|
|
|
|
|
PR [#922](https://github.com/activerecord-hackery/ransack/pull/922)
|
2018-07-17 12:18:28 -04:00
|
|
|
|
|
2018-03-17 16:19:32 -04:00
|
|
|
|
## Version 1.8.8 - 2018-03-16
|
|
|
|
|
* Fix multiple database support
|
|
|
|
|
PR [#893](https://github.com/activerecord-hackery/ransack/pull/893)
|
|
|
|
|
|
|
|
|
|
* Updated Dutch translations
|
|
|
|
|
PR [#887](https://github.com/activerecord-hackery/ransack/pull/887)
|
|
|
|
|
|
|
|
|
|
* Fixed no method error 'asc' for Rails 4.2
|
|
|
|
|
PR [#885](https://github.com/activerecord-hackery/ransack/pull/885)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Version 1.8.7 - 2018-02-05
|
|
|
|
|
|
|
|
|
|
* Rails 5.2 support
|
|
|
|
|
PR [#868](https://github.com/activerecord-hackery/ransack/pull/868)
|
2018-08-09 02:58:32 -04:00
|
|
|
|
|
2018-03-17 16:19:32 -04:00
|
|
|
|
* Lock pg gem to 0.21 to support older releases
|
|
|
|
|
|
|
|
|
|
* Warnings cleanup
|
|
|
|
|
PR [#867](https://github.com/activerecord-hackery/ransack/pull/867)
|
|
|
|
|
|
|
|
|
|
* Wildcard escaping
|
2018-08-09 02:58:32 -04:00
|
|
|
|
PR [#866]
|
2018-03-17 16:19:32 -04:00
|
|
|
|
|
2018-01-23 03:43:45 -05:00
|
|
|
|
## Version 1.8.6 - 2018-01-23
|
|
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
|
|
* Improve memory usage
|
|
|
|
|
PR [#820](https://github.com/activerecord-hackery/ransack/pull/820)
|
|
|
|
|
|
|
|
|
|
* Bump Polyamorous version to 1.3.2
|
|
|
|
|
PR [#858](https://github.com/activerecord-hackery/ransack/pull/858)
|
|
|
|
|
|
|
|
|
|
## Version 1.8.5
|
|
|
|
|
|
2018-08-09 02:58:32 -04:00
|
|
|
|
### Added
|
2018-01-23 03:43:45 -05:00
|
|
|
|
|
|
|
|
|
* Added Turkish Translations
|
|
|
|
|
PR [#835](https://github.com/activerecord-hackery/ransack/issues/835).
|
|
|
|
|
|
2017-11-15 19:06:21 -05:00
|
|
|
|
## Version 1.8.4 - 2017-10-09
|
|
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
|
|
* Added italian translations.
|
|
|
|
|
PR [#833](https://github.com/activerecord-hackery/ransack/pull/833).
|
|
|
|
|
|
|
|
|
|
* Add an optional default arrow for unsorted fields.
|
|
|
|
|
PR [#816](https://github.com/activerecord-hackery/ransack/pull/816/files).
|
|
|
|
|
|
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
|
|
* Cast Postgres money type to float.
|
|
|
|
|
PR [#823](https://github.com/activerecord-hackery/ransack/pull/823).
|
|
|
|
|
|
|
|
|
|
* Fix the bug in sort_link, which causes the multiple fields option to be
|
|
|
|
|
ignored when block parameter is specified.
|
|
|
|
|
PR [#818](https://github.com/activerecord-hackery/ransack/pull/818).
|
|
|
|
|
|
|
|
|
|
* No need pass some arugments to JoinAssociation#join_constraints in Rails 5.1.
|
|
|
|
|
PR [#814](https://github.com/activerecord-hackery/ransack/pull/814).
|
2018-01-23 03:43:45 -05:00
|
|
|
|
Fixes [#807](https://github.com/activerecord-hackery/ransack/issues/807).
|
2017-11-15 19:06:21 -05:00
|
|
|
|
Reference [rails/rails#28267](https://github.com/rails/rails/pull/28267)
|
|
|
|
|
and [rails/rails#27851](https://github.com/rails/rails/pull/27851).
|
|
|
|
|
|
2017-06-20 23:46:25 -04:00
|
|
|
|
## Version 1.8.3 - 2017-06-15
|
2016-09-27 18:02:55 -04:00
|
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
|
2016-09-29 09:17:30 -04:00
|
|
|
|
* Add a config option to customize the up and down arrows used for direction
|
|
|
|
|
indicators in Ransack sort links.
|
|
|
|
|
PR [#726](https://github.com/activerecord-hackery/ransack/pull/726).
|
2016-09-27 18:02:55 -04:00
|
|
|
|
|
|
|
|
|
*Garett Arrowood*
|
|
|
|
|
|
2016-12-11 09:52:02 -05:00
|
|
|
|
* Add ability to turn off sanitization of custom scope arguments.
|
|
|
|
|
PR [#742](https://github.com/activerecord-hackery/ransack/pull/742).
|
|
|
|
|
|
|
|
|
|
*Garett Arrowood*
|
|
|
|
|
|
2016-09-04 13:22:38 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
|
|
* Use class attributes properly so that inheritance is respected.
|
|
|
|
|
PR [#717](https://github.com/activerecord-hackery/ransack/pull/717).
|
|
|
|
|
This fixes two bugs:
|
|
|
|
|
|
|
|
|
|
1. In the Mongoid adapter, subclasses were not properly inheriting their
|
|
|
|
|
parents' Ransack aliases because each class defined its own set of
|
|
|
|
|
aliases.
|
|
|
|
|
|
|
|
|
|
2. In the Active Record adapter, Ransack aliases were defined in such a way
|
|
|
|
|
that the parent's (and grandparent's, etc.) aliases were overwritten by
|
|
|
|
|
the child, meaning that all aliases were ultimately kept on
|
|
|
|
|
`ActiveRecord::Base`. This had the unfortunate effect of enforcing
|
|
|
|
|
uniqueness of Ransack alias names across all models rather than per
|
|
|
|
|
model. Depending on the load order of models, earlier definitions of an
|
|
|
|
|
alias in other models were clobbered.
|
|
|
|
|
|
|
|
|
|
*Steve Richert (laserlemon)*
|
|
|
|
|
|
|
|
|
|
* Use `ActiveSupport.on_load` hooks to include Ransack in Active Record,
|
|
|
|
|
avoiding autoloading the constant too soon. PR
|
|
|
|
|
[#719](https://github.com/activerecord-hackery/ransack/pull/719). Reference:
|
|
|
|
|
[This comment in rails#23589]
|
|
|
|
|
(https://github.com/rails/rails/issues/23589#issuecomment-229247727).
|
|
|
|
|
|
|
|
|
|
*Yuji Yaginuma (y-yagi)*
|
|
|
|
|
|
2016-08-08 10:31:10 -04:00
|
|
|
|
## Version 1.8.2 - 2016-08-08
|
2016-08-08 10:27:53 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
|
|
* Fix empty attribute_fields regression in advanced search mode introduced by
|
|
|
|
|
[235eae3](https://github.com/activerecord-hackery/ransack/commit/235eae3).
|
|
|
|
|
Closes
|
|
|
|
|
[#701](https://github.com/activerecord-hackery/ransack/issues/701). Commit
|
|
|
|
|
[2839acf](https://github.com/activerecord-hackery/ransack/commit/2839acf).
|
|
|
|
|
|
|
|
|
|
*Jon Atack, Jay Dorsey, Stefan Haslinger, Igor Kasyanchuk*
|
|
|
|
|
|
2016-07-30 07:30:12 -04:00
|
|
|
|
### Added
|
|
|
|
|
|
|
|
|
|
* Add `sort_url` view helper that returns only the url of a `sort_link`. PR
|
|
|
|
|
[#706](https://github.com/activerecord-hackery/ransack/pull/706).
|
|
|
|
|
|
|
|
|
|
*amatotsuji*
|
|
|
|
|
|
2016-07-27 05:07:06 -04:00
|
|
|
|
## Version 1.8.1 - 2016-07-27
|
2016-07-25 01:21:57 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
2016-07-27 05:03:51 -04:00
|
|
|
|
* Fix `rake console` to run a command-line console with ransack + seed data.
|
|
|
|
|
Commits
|
|
|
|
|
[2cc781e](https://github.com/activerecord-hackery/ransack/commit/2cc781e),
|
|
|
|
|
[f2e85ad](https://github.com/activerecord-hackery/ransack/commit/f2e85ad),
|
|
|
|
|
[6a059ba](https://github.com/activerecord-hackery/ransack/commit/6a059ba).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
* Fix returned value of `Ransack::Nodes::Condition#format_predicate`. PR
|
2016-07-25 01:21:57 -04:00
|
|
|
|
[#692](https://github.com/activerecord-hackery/ransack/pull/692).
|
|
|
|
|
|
|
|
|
|
*Masahiro Saito*
|
|
|
|
|
|
2016-07-27 05:03:51 -04:00
|
|
|
|
* Better test coverage on passing arrays to ransackers. Commit
|
|
|
|
|
[98df2c5](https://github.com/activerecord-hackery/ransack/commit/98df2c5).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
* Fix missing Ransack::Constants::ASC constant. Commit
|
|
|
|
|
[aece23c](https://github.com/activerecord-hackery/ransack/commit/aece23c).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
* Replace arrow constants with frozen strings in public methods. Commits
|
|
|
|
|
[c0dff33](https://github.com/activerecord-hackery/ransack/commit/c0dff33),
|
|
|
|
|
[e489ca7](https://github.com/activerecord-hackery/ransack/commit/e489ca7).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2016-07-15 09:00:35 -04:00
|
|
|
|
## Version 1.8.0 - 2016-07-14
|
2015-08-27 18:16:57 -04:00
|
|
|
|
### Added
|
|
|
|
|
|
2016-01-12 08:43:51 -05:00
|
|
|
|
* 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*
|
|
|
|
|
|
2016-07-27 05:03:51 -04:00
|
|
|
|
* Add optional block argument for the `sort_link` method. PR
|
2016-03-14 11:38:29 -04:00
|
|
|
|
[#604](https://github.com/activerecord-hackery/ransack/pull/604).
|
2015-12-27 18:28:56 -05:00
|
|
|
|
|
|
|
|
|
*Andrea Dal Ponte*
|
|
|
|
|
|
2016-07-27 05:03:51 -04:00
|
|
|
|
* Add `ransack_alias` to allow users to customize the names for long
|
2015-12-19 20:23:02 -05:00
|
|
|
|
ransack field names. PR
|
2016-03-14 11:38:29 -04:00
|
|
|
|
[#623](https://github.com/activerecord-hackery/ransack/pull/623).
|
2015-12-19 20:23:02 -05:00
|
|
|
|
|
|
|
|
|
*Ray Zane*
|
|
|
|
|
|
2016-07-27 05:03:51 -04:00
|
|
|
|
* Add support for searching on attributes that have been added to
|
2015-09-25 18:18:10 -04:00
|
|
|
|
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).
|
2015-09-25 06:20:36 -04:00
|
|
|
|
|
|
|
|
|
*Marten Schilstra*
|
|
|
|
|
|
2015-08-27 18:16:57 -04:00
|
|
|
|
* Add ability to globally hide sort link order indicator arrows with
|
|
|
|
|
`Ransack.configure#hide_sort_order_indicators = true`. PR
|
2015-09-20 04:55:52 -04:00
|
|
|
|
[#577](https://github.com/activerecord-hackery/ransack/pull/577), commit
|
2015-08-27 18:16:57 -04:00
|
|
|
|
[95d4591](https://github.com/activerecord-hackery/ransack/commit/95d4591).
|
|
|
|
|
|
2015-08-29 14:01:02 -04:00
|
|
|
|
*Josh Hunter*, *Jon Atack*
|
2015-08-27 18:16:57 -04:00
|
|
|
|
|
2016-03-15 17:44:34 -04:00
|
|
|
|
* 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).
|
2016-03-15 17:31:01 -04:00
|
|
|
|
|
|
|
|
|
*Ryan Wood*
|
|
|
|
|
|
2015-09-06 18:07:28 -04:00
|
|
|
|
* 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*
|
|
|
|
|
|
2017-02-17 13:29:33 -05:00
|
|
|
|
* Add i18n locale files:
|
|
|
|
|
* Taiwanese Hokkien/Mandarin (`zh-TW.yml`). PR
|
|
|
|
|
[#674](https://github.com/activerecord-hackery/ransack/pull/674). *Sibevin Wang*
|
|
|
|
|
* Danish (`da.yml`). PR
|
|
|
|
|
[#663](https://github.com/activerecord-hackery/ransack/pull/663). *Kasper Johansen*
|
|
|
|
|
* Brazilian Portuguese (`pt-BR.yml`). PR
|
|
|
|
|
[#581](https://github.com/activerecord-hackery/ransack/pull/581). *Diego Henrique Domingues*
|
|
|
|
|
* Indonesian (Bahasa) (`id.yml`). PR
|
|
|
|
|
[#612](https://github.com/activerecord-hackery/ransack/pull/612). *Adam Pahlevi Baihaqi*
|
|
|
|
|
* Japanese (`ja.yml`). PR
|
|
|
|
|
[#622](https://github.com/activerecord-hackery/ransack/pull/622). *Masanobu Mizutani*
|
2015-12-07 21:37:29 -05:00
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
### Fixed
|
|
|
|
|
|
2016-07-15 09:00:35 -04:00
|
|
|
|
* 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*
|
|
|
|
|
|
2016-05-16 16:52:28 -04:00
|
|
|
|
* 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*
|
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
* 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*
|
|
|
|
|
|
2016-04-11 17:57:27 -04:00
|
|
|
|
* Fix rspec-mocks `stub` deprecation warnings when running the tests. Commit
|
|
|
|
|
[600892e](https://github.com/activerecord-hackery/ransack/commit/600892e).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
* 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*
|
|
|
|
|
|
2015-08-29 18:30:02 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
* Memory/speed perf improvement: Freeze strings in array global constants and
|
2016-07-15 09:00:35 -04:00
|
|
|
|
partially move from using global string constants to frozen strings
|
2015-08-29 18:30:02 -04:00
|
|
|
|
([381a83c](https://github.com/activerecord-hackery/ransack/commit/381a83c)
|
|
|
|
|
and
|
|
|
|
|
[ce114ec](https://github.com/activerecord-hackery/ransack/commit/ce114ec)).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
2015-08-20 05:14:22 -04:00
|
|
|
|
|
2015-09-10 17:36:23 -04:00
|
|
|
|
* Escape underscore `_` wildcard characters with PostgreSQL and MySQL. PR
|
|
|
|
|
[#584](https://github.com/activerecord-hackery/ransack/issues/584).
|
|
|
|
|
|
|
|
|
|
*Igor Dobryn*
|
|
|
|
|
|
2016-05-16 16:52:28 -04:00
|
|
|
|
* Refactor `Ransack::Adapters` from conditionals to classes
|
|
|
|
|
([94a404c](https://github.com/activerecord-hackery/ransack/commit/94a404c)).
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
2015-09-10 17:36:23 -04:00
|
|
|
|
|
2015-08-20 05:14:22 -04:00
|
|
|
|
## Version 1.7.0 - 2015-08-20
|
2015-12-20 16:51:10 -05:00
|
|
|
|
### 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*
|
|
|
|
|
|
2015-07-12 19:14:51 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
2015-08-20 05:14:22 -04:00
|
|
|
|
* Fix
|
|
|
|
|
[#499](https://github.com/activerecord-hackery/ransack/issues/499) and
|
|
|
|
|
[#549](https://github.com/activerecord-hackery/ransack/issues/549).
|
|
|
|
|
Ransack now loads only Active Record if both Active Record and Mongoid are
|
|
|
|
|
running to avoid the two adapters overriding each other. This clarifies
|
|
|
|
|
that Ransack currently knows how to work with only one database adapter
|
|
|
|
|
active at a time. PR
|
|
|
|
|
[#541](https://github.com/activerecord-hackery/ransack/pull/541).
|
|
|
|
|
|
|
|
|
|
*ASnow (Большов Андрей)*
|
|
|
|
|
|
2015-07-18 17:27:25 -04:00
|
|
|
|
* Fix [#299](https://github.com/activerecord-hackery/ransack/issues/299)
|
|
|
|
|
`attribute_method?` parsing for attribute names containing `_and_`
|
|
|
|
|
and `_or_`. Attributes named like `foo_and_bar` or `foo_or_bar` are
|
|
|
|
|
recognized now instead of running failing checks for `foo` and `bar`.
|
2015-07-21 14:54:15 -04:00
|
|
|
|
PR [#562](https://github.com/activerecord-hackery/ransack/pull/562).
|
2015-07-12 19:14:51 -04:00
|
|
|
|
|
|
|
|
|
*Ryohei Hoshi*
|
|
|
|
|
|
2015-08-20 05:14:22 -04:00
|
|
|
|
* Fix a time-dependent test failure. When the database has
|
|
|
|
|
`default_timezone = :local` (system time) and the `Time.zone` is set to
|
|
|
|
|
elsewhere, then `Date.current` does not match what the query produces for
|
|
|
|
|
the stored timestamps. Resolved by setting everything to UTC. PR
|
2015-07-21 14:54:15 -04:00
|
|
|
|
[#561](https://github.com/activerecord-hackery/ransack/pull/561).
|
|
|
|
|
|
|
|
|
|
*Andrew Vit*
|
|
|
|
|
|
2015-07-18 17:27:25 -04:00
|
|
|
|
* Avoid overwriting association conditions with default scope in Rails 3.
|
|
|
|
|
When a model with default scope was associated with conditions
|
|
|
|
|
(`has_many :x, conditions: ...`), the default scope would overwrite the
|
|
|
|
|
association conditions. This patch ensures that both sources of conditions
|
|
|
|
|
are applied. Avoid selecting records from joins that would normally be
|
|
|
|
|
filtered out if they were selected from the base table. Only applies to
|
2015-07-21 14:54:15 -04:00
|
|
|
|
Rails 3, as this issue was fixed since Rails 4. PR
|
|
|
|
|
[#560](https://github.com/activerecord-hackery/ransack/pull/560).
|
2015-07-18 17:27:25 -04:00
|
|
|
|
|
|
|
|
|
*Andrew Vit*
|
|
|
|
|
|
2015-08-29 14:01:02 -04:00
|
|
|
|
* Fix RSpec `its` method deprecation warning: "Use of rspec-core's its
|
|
|
|
|
method is deprecated. Use the rspec-its gem instead"
|
2015-08-20 05:33:54 -04:00
|
|
|
|
([c09aa17](https://github.com/activerecord-hackery/ransack/commit/c09aa17)).
|
2015-07-18 17:27:25 -04:00
|
|
|
|
|
2015-08-20 05:33:54 -04:00
|
|
|
|
* Fix deprecated RSpec syntax in `grouping_spec.rb`
|
|
|
|
|
([ba92a0b](https://github.com/activerecord-hackery/ransack/commit/ba92a0b)).
|
2015-07-18 17:27:25 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-08-20 05:14:22 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
* Upgrade gemspec dependencies: MySQL2 from '0.3.14' to '0.3.18', and RSpec
|
2015-08-20 05:33:54 -04:00
|
|
|
|
from '~> 2.14.0' to '~> 2' which loads 2.99
|
2015-08-29 18:30:02 -04:00
|
|
|
|
([000cd22](https://github.com/activerecord-hackery/ransack/commit/000cd22)).
|
2015-08-20 05:33:54 -04:00
|
|
|
|
|
|
|
|
|
* Upgrade spec suite to RSpec 3 `expect` syntax backward compatible with
|
|
|
|
|
RSpec 2.9
|
|
|
|
|
([87cd36d](https://github.com/activerecord-hackery/ransack/commit/87cd36d)
|
|
|
|
|
and
|
|
|
|
|
[d296caa](https://github.com/activerecord-hackery/ransack/commit/d296caa)).
|
|
|
|
|
|
|
|
|
|
* Various FormHelper refactorings
|
|
|
|
|
([17dd97a](https://github.com/activerecord-hackery/ransack/commit/17dd97a)
|
|
|
|
|
and
|
|
|
|
|
[29a73b9](https://github.com/activerecord-hackery/ransack/commit/29a73b9)).
|
2015-08-20 05:14:22 -04:00
|
|
|
|
|
|
|
|
|
* Various documentation updates.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-07-18 17:27:25 -04:00
|
|
|
|
|
2015-04-05 06:53:20 -04:00
|
|
|
|
## Version 1.6.6 - 2015-04-05
|
2015-12-20 16:51:10 -05:00
|
|
|
|
### Added
|
2015-04-05 06:53:20 -04:00
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
* 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.
|
2015-04-05 06:53:20 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-03-31 11:55:55 -04:00
|
|
|
|
### Fixed
|
2015-04-01 11:53:13 -04:00
|
|
|
|
|
2015-04-05 06:53:20 -04:00
|
|
|
|
* An improved fix for the "undefined method `model_name` for Ransack::Search"
|
2015-03-31 11:55:55 -04:00
|
|
|
|
issue [#518](https://github.com/activerecord-hackery/ransack/issues/518)
|
|
|
|
|
affecting Rails 4.2.1 and 5.0.0. This fix allows us to remove the
|
|
|
|
|
ActionView patch in Ransack version 1.6.4.
|
|
|
|
|
|
|
|
|
|
*Gleb Mazovetskiy*
|
|
|
|
|
|
2015-04-01 11:53:13 -04:00
|
|
|
|
* Fix an erroneous reference in `ActiveRecord::Associations::JoinDependency`
|
|
|
|
|
to a version-dependent Active Record reference, and replace it with a
|
|
|
|
|
better, more reliable one defined in Polyamorous. As this class lives
|
|
|
|
|
inside an `ActiveRecord` module, the reference needs to be absolute in
|
|
|
|
|
order to properly point to the AR class.
|
|
|
|
|
|
|
|
|
|
*Nahuel Cuesta Luengo*
|
|
|
|
|
|
2015-04-05 06:53:20 -04:00
|
|
|
|
* Fix RubyGems YARD rendering of the README docs.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
### Changed
|
2015-04-01 11:53:13 -04:00
|
|
|
|
|
2015-12-20 16:51:10 -05:00
|
|
|
|
* 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).
|
2015-04-05 06:53:20 -04:00
|
|
|
|
|
2015-04-01 11:53:13 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-03-31 11:55:55 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
## Version 1.6.5 - 2015-03-28 - Rails 5.0.0 update
|
|
|
|
|
### Added
|
2015-03-25 06:43:31 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
* [WIP/experimental] Add compatibility with Rails 5/master and Arel 7.
|
2015-03-25 06:43:31 -04:00
|
|
|
|
|
2015-03-28 06:42:23 -04:00
|
|
|
|
* Update the [Contributing Guide](CONTRIBUTING.md) with detailed steps for
|
|
|
|
|
contributing to Ransack.
|
2015-03-19 17:01:45 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
* Broaden the test suite database options in `schema.rb` and add
|
|
|
|
|
code documentation.
|
2015-03-19 17:01:45 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
* Improve the header message when running tests.
|
2015-03-25 06:43:31 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
* Allow `:wants_array` to be set to `false` in the predicate options
|
|
|
|
|
([#32](https://github.com/activerecord-hackery/ransack/issues/32)).
|
2015-03-24 13:13:44 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
*Michael Pavling*
|
|
|
|
|
|
|
|
|
|
* Add a failing spec for issue
|
|
|
|
|
[#374](https://github.com/activerecord-hackery/ransack/issues/374).
|
|
|
|
|
|
|
|
|
|
*Jamie Davidson*, *Jon Atack*
|
|
|
|
|
|
|
|
|
|
### Fixed
|
2015-03-24 13:13:44 -04:00
|
|
|
|
|
2015-03-28 06:42:23 -04:00
|
|
|
|
* Stop relying on `Active Record::relation#where_values` which are deprecated
|
2015-03-24 13:13:44 -04:00
|
|
|
|
in Rails 5.
|
|
|
|
|
|
2015-03-28 06:42:23 -04:00
|
|
|
|
* Make the test for passing search arguments to a ransacker
|
|
|
|
|
(`ransacker_args`) work correctly with Sqlite3.
|
2015-03-28 06:25:18 -04:00
|
|
|
|
|
2015-03-24 13:13:44 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
* Stop CI testing for Rails 3.0 to reduce the size of the Travis test matrix.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
2015-03-24 13:13:44 -04:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
|
|
|
|
|
## Version 1.6.4 - 2015-03-20 - Rails 4.2.1 update
|
2015-03-20 03:35:57 -04:00
|
|
|
|
|
|
|
|
|
* ActionView patch to maintain compatibility with Rails 4.2.1 released today.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
* Enable scoping I18n by 'ransack.models'
|
|
|
|
|
([#514](https://github.com/activerecord-hackery/ransack/pull/514)).
|
|
|
|
|
|
|
|
|
|
*nagyt234*
|
2015-01-28 15:02:43 -05:00
|
|
|
|
|
2015-03-12 03:07:04 -04:00
|
|
|
|
* Add ransacker arguments
|
2015-03-20 03:35:57 -04:00
|
|
|
|
([#513](https://github.com/activerecord-hackery/ransack/pull/513)).
|
2015-03-12 03:07:04 -04:00
|
|
|
|
|
|
|
|
|
*Denis Tataurov*, *Jon Atack*
|
2015-01-28 15:02:43 -05:00
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
|
2015-01-21 10:20:34 -05:00
|
|
|
|
## Version 1.6.3 - 2015-01-21
|
2015-01-21 07:03:29 -05:00
|
|
|
|
|
|
|
|
|
* Fix a regression
|
|
|
|
|
([#496](https://github.com/activerecord-hackery/ransack/issues/496)) caused
|
|
|
|
|
by [ee571fe](https://github.com/activerecord-hackery/ransack/commit/ee571fe)
|
2015-01-21 10:20:34 -05:00
|
|
|
|
where passing a multi-parameter attribute (like `date_select`) raised
|
2015-01-21 07:03:29 -05:00
|
|
|
|
`RuntimeError: can't add a new key into hash during iteration`, and add a
|
|
|
|
|
regression spec for the issue.
|
|
|
|
|
|
|
|
|
|
*Nate Berkopec*, *Jon Atack*
|
|
|
|
|
|
2015-01-21 10:40:52 -05:00
|
|
|
|
* Update travis-ci to no longer test Rails 3.1 with Ruby 2.2 and speed up the test matrix.
|
|
|
|
|
|
|
|
|
|
* Refactor Nodes::Condition.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-01-21 07:03:29 -05:00
|
|
|
|
|
2015-01-14 13:06:05 -05:00
|
|
|
|
## Version 1.6.2 - 2015-01-14
|
|
|
|
|
|
|
|
|
|
* Fix a regression
|
|
|
|
|
([#494](https://github.com/activerecord-hackery/ransack/issues/494))
|
2015-01-16 05:37:28 -05:00
|
|
|
|
where passing an array of routes to `search_form_for` no longer worked,
|
2015-01-14 13:06:05 -05:00
|
|
|
|
and add a failing/passing test that would have caught the issue.
|
|
|
|
|
|
|
|
|
|
*Daniel Rikowski*, *Jon Atack*
|
|
|
|
|
|
|
|
|
|
|
2015-01-14 07:32:39 -05:00
|
|
|
|
## Version 1.6.1 - 2015-01-14
|
|
|
|
|
|
2015-01-14 13:06:05 -05:00
|
|
|
|
* Fix a regression with using `in` predicates caused by PR [#488](https://github.com/activerecord-hackery/ransack/pull/488)) and add a test.
|
2015-01-14 07:32:39 -05:00
|
|
|
|
|
|
|
|
|
* README improvements to clarify `sort_link` syntax with associations and
|
|
|
|
|
Ransack#search vs #ransack.
|
|
|
|
|
|
|
|
|
|
* Default the Gemfile to Rails 4-2-stable.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
|
2015-01-12 17:19:20 -05:00
|
|
|
|
## Version 1.6.0 - 2015-01-12
|
2014-11-01 16:51:10 -04:00
|
|
|
|
### Added
|
|
|
|
|
|
2014-11-04 15:18:57 -05:00
|
|
|
|
* Add support for using Ransack with `Mongoid 4.0` without associations
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #407](https://github.com/activerecord-hackery/ransack/pull/407)).
|
2014-11-03 19:45:12 -05:00
|
|
|
|
|
|
|
|
|
*Zhomart Mukhamejanov*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
* Add support and tests for passing stringy booleans for ransackable scopes
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #460](https://github.com/activerecord-hackery/ransack/pull/460)).
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
|
|
|
|
*Josh Kovach*
|
|
|
|
|
|
2015-08-29 14:01:02 -04:00
|
|
|
|
* Add an sort_link option to not display sort order indicator arrows
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #473](https://github.com/activerecord-hackery/ransack/pull/473)).
|
2014-11-25 17:57:34 -05:00
|
|
|
|
|
|
|
|
|
*Fred Bergman*
|
|
|
|
|
|
2014-12-20 18:10:14 -05:00
|
|
|
|
* Numerous documentation improvements to the README, Contributing Guide and
|
|
|
|
|
wiki.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-10-30 13:24:43 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
2015-01-05 10:54:21 -05:00
|
|
|
|
* Fix passing arrays to ransackers with Rails 4.2 / Arel 6.0 (pull requests
|
|
|
|
|
[#486](https://github.com/activerecord-hackery/ransack/pull/486) and
|
|
|
|
|
[#488](https://github.com/activerecord-hackery/ransack/pull/488)).
|
2015-01-04 13:14:25 -05:00
|
|
|
|
|
|
|
|
|
*Idean Labib*
|
|
|
|
|
|
2014-11-16 17:56:57 -05:00
|
|
|
|
* Make `search_form_for`'s default `:as` option respect the custom search key
|
|
|
|
|
if it has been set
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #470](https://github.com/activerecord-hackery/ransack/pull/470)).
|
2014-11-16 17:56:57 -05:00
|
|
|
|
Prior to this change, if you set a custom `search_key` option in the
|
|
|
|
|
Ransack initializer file, you'd have to also pass an `as: :whatever` option
|
2015-01-06 06:19:59 -05:00
|
|
|
|
to all of the search forms. Fixes
|
|
|
|
|
[#92](https://github.com/activerecord-hackery/ransack/issues/92).
|
2014-11-16 17:56:57 -05:00
|
|
|
|
|
|
|
|
|
*Robert Speicher*
|
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
* Fix sorting on polymorphic associations (missing downcase)
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #467](https://github.com/activerecord-hackery/ransack/pull/467)).
|
2014-12-22 17:55:01 -05:00
|
|
|
|
|
|
|
|
|
*Eugen Neagoe*
|
|
|
|
|
|
|
|
|
|
* Fix Rails 5 / Arel 5 compatibility after the Arel and Active Record API
|
|
|
|
|
changed.
|
|
|
|
|
|
2014-12-20 18:10:14 -05:00
|
|
|
|
* Fix and add tests for sort_link `default_order` parsing if the option is set
|
|
|
|
|
as a string instead of symbol.
|
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
* Fix and add a test to handle `nil` in options passed to sort_link.
|
2014-12-20 18:10:14 -05:00
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
* Fix #search method name conflicts in the README.
|
2014-12-20 18:10:14 -05:00
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
*Jon Atack*
|
2014-12-20 18:10:14 -05:00
|
|
|
|
|
2014-11-01 16:51:10 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
* Refactor and DRY up FormHelper#SortLink. Encapsulate parsing into a
|
|
|
|
|
Plain Old Ruby Object with few public methods and small, private functional
|
|
|
|
|
methods. Limit mutations to explicit methods and mutate no ivars.
|
2014-12-20 18:10:14 -05:00
|
|
|
|
|
|
|
|
|
* Numerous speed improvements by using more specific Ruby methods like:
|
|
|
|
|
- `Hash#each_key` instead of `Hash#keys.each`
|
|
|
|
|
- `#none?` instead of `select#empty?`
|
|
|
|
|
- `#any?` instead of `#select` followed by `#any?`
|
|
|
|
|
- `#flat_map` instead of `#flatten` followed by `#map`
|
|
|
|
|
- `!include?` instead of `#none?`
|
|
|
|
|
|
2014-11-21 14:15:10 -05:00
|
|
|
|
* Replace `string#freeze` instances with top level constants to reduce string
|
|
|
|
|
allocations in Ruby < 2.1.
|
|
|
|
|
|
|
|
|
|
* Remove unneeded `Ransack::` namespacing on most of the constants.
|
|
|
|
|
|
2014-12-22 17:55:01 -05:00
|
|
|
|
* In enumerable methods, pass a symbol as an argument instead of a block.
|
2014-11-21 14:15:10 -05:00
|
|
|
|
|
2014-12-20 18:10:14 -05:00
|
|
|
|
* Update Travis-ci for Rails 5.0.0 and 4-2-stable.
|
|
|
|
|
|
2015-01-09 08:32:37 -05:00
|
|
|
|
* Update the Travis-ci tests and the Gemfile for Ruby 2.2.
|
2015-01-06 06:19:59 -05:00
|
|
|
|
|
|
|
|
|
* Replace `#search` with `#ransack` class methods in the README and wiki
|
|
|
|
|
code examples. Enabling the `#search` alias by default may possibly be
|
|
|
|
|
deprecated in the next major release (Ransack v.2.0.0) to address
|
|
|
|
|
[#369](https://github.com/activerecord-hackery/ransack/issues/369).
|
|
|
|
|
|
2014-12-20 18:10:14 -05:00
|
|
|
|
*Jon Atack*
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
2015-01-14 07:32:39 -05:00
|
|
|
|
|
2014-10-30 15:13:05 -04:00
|
|
|
|
## Version 1.5.1 - 2014-10-30
|
|
|
|
|
### Added
|
|
|
|
|
|
|
|
|
|
* Add base specs for search on fields with `_start` and `_end`.
|
|
|
|
|
|
|
|
|
|
* Add a failing spec for detecting attribute fields containing `_and_` that
|
2014-11-01 16:51:10 -04:00
|
|
|
|
needs to be fixed. Attribute names containing `_and_` and `_or_` are still
|
|
|
|
|
not parsed/detected correctly.
|
2014-10-30 15:13:05 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2015-03-28 06:25:18 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
|
|
|
|
* Fix a regression caused by incorrect string constants in `context.rb`.
|
|
|
|
|
|
|
|
|
|
*Kazuhiro Nishiyama*
|
|
|
|
|
|
2014-10-30 15:13:05 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
2014-11-01 16:51:10 -04:00
|
|
|
|
* Remove duplicate code in `spec/support/schema.rb`.
|
2014-10-30 15:13:05 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
## Version 1.5.0 - 2014-10-26
|
2014-09-23 10:12:01 -04:00
|
|
|
|
### Added
|
|
|
|
|
|
2014-10-15 15:14:22 -04:00
|
|
|
|
* Add support for multiple sort fields and default orders in Ransack
|
|
|
|
|
`sort_link` helpers
|
2015-01-05 10:19:06 -05:00
|
|
|
|
([PR #438](https://github.com/activerecord-hackery/ransack/pull/438)).
|
2014-10-30 13:24:43 -04:00
|
|
|
|
|
2014-10-03 13:25:09 -04:00
|
|
|
|
*Caleb Land*, *James u007*
|
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
* Add tests for `lteq`, `lt`, `gteq` and `gt` predicates. They are also
|
|
|
|
|
tested in Arel, but testing them in Ransack has proven useful to detect
|
|
|
|
|
issues.
|
2014-10-13 14:19:51 -04:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
|
|
|
|
* Add tests for unknown attribute names.
|
2014-10-30 13:24:43 -04:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
*Joe Yates*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
* Add tests for attribute names containing `_or_` and `_and_`.
|
2014-10-30 13:24:43 -04:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
*Joe Yates*, *Jon Atack*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
* Add tests for attribute names ending with `_start` and `_end``.
|
2014-10-30 13:24:43 -04:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
*Jon Atack*, *Timo Schilling*
|
|
|
|
|
|
|
|
|
|
* Add tests for `start`, `not_start`, `end` and `not_end` predicates, with
|
|
|
|
|
emphasis on cases when attribute names end with `_start` and `_end`.
|
2014-10-25 03:16:20 -04:00
|
|
|
|
|
2014-10-13 14:19:51 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-09-23 10:12:01 -04:00
|
|
|
|
### Fixed
|
|
|
|
|
|
2014-10-15 15:14:22 -04:00
|
|
|
|
* Fix a regression where form labels for attributes through a `belongs_to`
|
|
|
|
|
association without a translation for the attribute in the locales file
|
|
|
|
|
would cause a "no implicit conversion of nil into Hash" crash instead of
|
|
|
|
|
falling back on the attribute name. Added test coverage.
|
|
|
|
|
|
|
|
|
|
*John Dell*, *Jon Atack*, *jasdeepgosal*
|
|
|
|
|
|
|
|
|
|
* Fix the `form_helper date_select` spec that was failing with Rails 4.2 and
|
2014-10-13 14:19:51 -04:00
|
|
|
|
master.
|
2014-10-12 08:35:19 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-10-30 15:13:05 -04:00
|
|
|
|
* Improve `attribute_method?` parsing for attribute names containing `_and_`
|
|
|
|
|
and `_or_`. Attributes named like `foo_and_bar` or `foo_or_bar` are
|
|
|
|
|
recognized now instead of running failing checks for `foo` and `bar`.
|
|
|
|
|
CORRECTION October 28, 2014: this feature is still not working!
|
2014-10-17 13:24:57 -04:00
|
|
|
|
|
2014-10-26 18:22:41 -04:00
|
|
|
|
*Joe Yates*
|
2014-10-17 13:24:57 -04:00
|
|
|
|
|
2014-10-30 15:13:05 -04:00
|
|
|
|
* Improve `attribute_method?` parsing for attribute names ending with a
|
2014-10-27 16:55:46 -04:00
|
|
|
|
predicate like `_start` and `_end`. For instance, a `foo_start` attribute
|
2014-10-25 03:16:20 -04:00
|
|
|
|
is now recognized instead of raising a NoMethodError.
|
2014-10-24 05:28:28 -04:00
|
|
|
|
|
|
|
|
|
*Timo Schilling*, *Jon Atack*
|
|
|
|
|
|
2014-09-23 10:12:01 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
2014-10-04 13:37:13 -04:00
|
|
|
|
* Reduce object allocations and memory footprint (with a slight speed gain as
|
|
|
|
|
well) by extracting commonly used strings into top level constants and
|
|
|
|
|
replacing calls to `#try` methods with simple nil checking.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
2014-09-23 10:12:01 -04:00
|
|
|
|
## Version 1.4.1 - 2014-09-23
|
|
|
|
|
|
|
|
|
|
* Fix README markdown so RubyGems documentation picks up the formatting correctly.
|
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
## Version 1.4.0 - 2014-09-23
|
2014-09-08 17:49:31 -04:00
|
|
|
|
### Added
|
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Add support for Rails 4.2.0! Let us know if you encounter any issues.
|
2014-09-13 15:56:47 -04:00
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
*Xiang Li*
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-13 15:56:47 -04:00
|
|
|
|
* Add `not_true` and `not_false` predicates and update the "Basic Searching"
|
|
|
|
|
wiki. Fixes #123, #353.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
|
|
|
|
*Pedro Chambino*
|
|
|
|
|
|
2015-11-07 15:49:39 -05:00
|
|
|
|
* Add Romanian i18n locale file (`ro.yml`).
|
2014-09-23 08:23:25 -04:00
|
|
|
|
|
|
|
|
|
*Andreas Philippi*
|
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add new documentation in the README explaining how to group queries by `OR`
|
|
|
|
|
instead of the default `AND` using the `m: 'or'` combinator.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Add new documentation in the README and in the source code comments
|
|
|
|
|
explaining in detail how to handle whitelisting/authorization of
|
|
|
|
|
attributes, associations, sorts and scopes.
|
|
|
|
|
|
|
|
|
|
* Add new documentation in the README explaining in more detail how to use
|
|
|
|
|
scopes for searching with Ransack.
|
|
|
|
|
|
|
|
|
|
* Begin a CHANGELOG.
|
|
|
|
|
|
2014-09-08 17:49:31 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-09-13 15:56:47 -04:00
|
|
|
|
### Fixed
|
2014-09-08 18:22:18 -04:00
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Fix singular/plural Active Record attribute translations.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-13 15:56:47 -04:00
|
|
|
|
*Andreas Philippi*
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Fix the params hash being modified by `Search.new` and the Ransack scope.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
|
|
|
|
*Daniel Rikowski*
|
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Apply default scope conditions for association joins (fix for Rails 3).
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
|
|
|
|
Avoid selecting records from joins that would normally be filtered out
|
|
|
|
|
if they were selected from the base table. Only applies to Rails 3, as
|
|
|
|
|
this issue was fixed in Rails 4.
|
|
|
|
|
|
|
|
|
|
*Andrew Vit*
|
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Fix incoherent code examples in the README Associations section that
|
|
|
|
|
sometimes used `@q` and other times `@search`.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-09-13 15:56:47 -04:00
|
|
|
|
### Changed
|
|
|
|
|
|
|
|
|
|
* Refactor Ransack::Translate.
|
|
|
|
|
|
2014-09-23 08:23:25 -04:00
|
|
|
|
* Rewrite much of the Ransack README documentation, including the
|
|
|
|
|
Associations section code examples and the Authorizations section detailing
|
|
|
|
|
how to whitelist attributes, associations, sorts and scopes.
|
2014-10-30 13:24:43 -04:00
|
|
|
|
|
2014-09-13 15:56:47 -04:00
|
|
|
|
*Jon Atack*
|
|
|
|
|
|
2014-11-18 17:50:13 -05:00
|
|
|
|
|
2014-09-08 17:49:31 -04:00
|
|
|
|
## Version 1.3.0 - 2014-08-23
|
|
|
|
|
### Added
|
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add search scopes by popular demand. Using `ransackable_scopes`, users can
|
|
|
|
|
define whitelists for allowed model scopes on a parent table. Not yet
|
|
|
|
|
implemented for associated models' scopes; scopes must be defined on the
|
|
|
|
|
parent table.
|
|
|
|
|
|
|
|
|
|
*Gleb Mazovetskiy*, *Andrew Vit*, *Sven Schwyn*
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add `JOINS` merging.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add `OR` grouping on base search.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Allow authorizing/whitelisting attributes, associations, sorts and scopes.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Improve boolean predicates’ handling of `false` values.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
|
|
|
|
* Allow configuring Ransack to raise on instead of ignore unknown search
|
|
|
|
|
conditions.
|
|
|
|
|
|
|
|
|
|
* Allow passing blank values to search without crashing.
|
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add wildcard escaping compatibility for SQL Server databases.
|
2014-09-08 17:49:31 -04:00
|
|
|
|
|
2014-09-08 18:22:18 -04:00
|
|
|
|
* Add various I18n translations.
|