Skip to content

Releases: activerecord-hackery/ransack

Release 1.8.6

23 Jan 08:36
29a8d43
Compare
Choose a tag to compare

This release includes these PR's

#858

#820

Thank you @seanlinsley for the work on reducing Ransack's memory footprint.

Release 1.8.5

23 Jan 08:36
29a8d43
Compare
Choose a tag to compare

Thank you to the contributers to this release.

Cleanup release

12 Jun 13:15
Compare
Choose a tag to compare

Fixed

  • Add / cleanup README
  • tests cleanup
  • Allow Active Record Ransack aliases with the same name on different models #717
  • Use class attributes properly so that inheritance is respected
  • use ActiveSupport.on_load to hook into Active Record
  • Add custom_arrows config functionality

Thanks

@garettarrowood, @Paxa, @jonatack, @laserlemon, @y-yagi, @jspizziri, @seanfcarroll, @fakefarm, @aspirewit, @mataki

Ransack 1.8.2

08 Aug 14:40
Compare
Choose a tag to compare

Fixed

  • Fix empty attribute_fields regression in advanced search mode introduced by 235eae3. Closes #701. Commit 2839acf.

Jon Atack, Jay Dorsey, Stefan Haslinger, Igor Kasyanchuk

Added

  • Add sort_url view helper that returns only the url of a sort_link. PR #706.

amatotsuji

Ransack 1.8.1

27 Jul 09:09
Compare
Choose a tag to compare

Fixed

  • Fix rake console to run a command-line console with ransack + seed data. Commits 2cc781e, f2e85ad, and 6a059ba.

Jon Atack

  • Fix returned value of Ransack::Nodes::Condition#format_predicate. PR #692.

Masahiro Saito

  • Better test coverage on passing arrays to ransackers. Commit 98df2c5.

Jon Atack

  • Fix missing Ransack::Constants::ASC constant. Commit aece23c.

Jon Atack

Changed

  • Replace arrow constants with frozen strings in public methods. Commits c0dff33 and e489ca7.

Jon Atack

Ransack 1.8.0

15 Jul 13:11
Compare
Choose a tag to compare

Change Log

Version 1.8.0 - 2016-07-14

Added

Josef Šimánek

  • Added ransack_alias to allow users to customize the names for long ransack field names. PR #623.

Ray Zane

  • Added optional block argument for the sort_link method. PR #604.

Andrea Dal Ponte

  • Added support for searching on attributes that have been added to Active Record models with alias_attribute (Rails >= 4 only). PR #592, commit 549342a.

Marten Schilstra

  • Add ability to globally hide sort link order indicator arrows with Ransack.configure#hide_sort_order_indicators = true. PR #577, 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.

Ryan Wood

  • Add failing tests to facilitate work on issue #566 of passing boolean values to search scopes. PR #575.

Marcel Eeken

  • Add Taiwanese Hokkien/Mandarin i18n locale file (zh-TW.yml). PR #674.

Sibevin Wang

  • Add Danish i18n locale file (da.yml). PR #663.

Kasper Johansen

  • Add Brazilian Portuguese i18n locale file (pt-BR.yml). PR #581.

Diego Henrique Domingues

  • Add Indonesian (Bahasa) i18n locale file (id.yml). PR #612.

Adam Pahlevi Baihaqi

  • Add Japanese i18n locale file (ja.yml). PR #622.

Masanobu Mizutani

Fixed

  • In FormHelper::SortLink#parameters_hash, convert params#to_unsafe_h only if Rails 5, and add tests. Commit 14e66ca.

Jon Atack, Ryan Wood

  • Respect negative conditions for collection associations and fix Mongoid compat. PR #645.

Andrew Vit

  • Ensure conditions differing only by ransacker_args aren't filtered out. PR #665.

Andrew Porterfield

  • Fix using aliased attributes in association searches, and add a failing spec. PR #602.

Marten Schilstra

  • Replace Active Record table_exists? API that was deprecated here in Rails 5. 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.

Jon Atack

  • Fix test #sort_link with hide order indicator set to true to fail properly (4f65b09). This spec, added in #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.

Jon Atack

  • Revert f858dd6. Fixes #553 performance regression with the SQL Server adapter.

sschwing3

  • Fix invalid Chinese I18n locale file name by replacing "zh" with "zh-CN". PR #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 and ce114ec).

Jon Atack

  • Escape underscore _ wildcard characters with PostgreSQL and MySQL. PR #584.

Igor Dobryn

  • Refactor Ransack::Adapters from conditionals to classes (94a404c).

Jon Atack

Ransack 1.7.0

20 Aug 11:10
Compare
Choose a tag to compare

Change Log

Version 1.7.0 - 2015-08-20

Added

  • Add Mongoid support for referenced/embedded relations. PR #498.

Penn Su

  • Add German locale file (de.yml). PR #537.

Philipp Weissensteiner

Fixed

  • Fix #499 and #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.

ASnow (Большов Андрей)

  • Fix #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. PR #562.

Ryohei Hoshi

  • 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 #561.

Andrew Vit

  • 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 Rails 3, as this issue was fixed since Rails 4. PR #560.

Andrew Vit

  • Fix RSpec its method deprecation warning: (c09aa17).

Jon Atack

  • Fix deprecated RSpec syntax (ba92a0b).

Jon Atack

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).
  • Upgrade spec suite to RSpec 3 expect syntax backward compatible with RSpec 2.9 (87cd36d and d296caa).
  • FormHelper refactorings (17dd97a and 29a73b9).

Jon Atack

  • Various documentation updates.

Jon Atack

Ransack 1.6.6 for Rails 3, 4 and 5

05 Apr 11:02
Compare
Choose a tag to compare

Changed

  • 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).

Jon Atack

Fixed

  • An improved fix for the "undefined method model_name for Ransack::Search" issue #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

  • 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

  • Fix RubyGems YARD rendering of the README docs.

Jon Atack

Added

  • 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

Ransack 1.6.5 for Rails 3, 4 and 5 (Rails 5 compatibility update)

28 Mar 10:54
Compare
Choose a tag to compare

Added

  • [WIP/experimental] Add compatibility with Rails 5/master and Arel 7.
  • Update the Contributing Guide with detailed steps for contributing to Ransack.
  • Broaden the test suite database options in schema.rb and add code documentation.
  • Improve the header message when running tests.

Jon Atack

  • Allow :wants_array to be set to false in the predicate options (#32).

Michael Pavling

  • Add a failing spec for issue #374.

Jamie Davidson, Jon Atack

Fixed

  • Stop relying on Active Record::relation#where_values which are deprecated in Rails 5.
  • Make the test for passing search arguments to a ransacker (ransacker_args) work correctly with Sqlite3.

Jon Atack

Changed

  • Stop CI testing for Rails 3.0 to reduce the size of the Travis test matrix.

Jon Atack

Ransack 1.6.4 for Rails 3 and 4 (4.2.1 compatibility patch)

20 Mar 07:45
Compare
Choose a tag to compare
  • ActionView patch to maintain compatibility with Rails 4.2.1 released today.

Jon Atack

  • Enable scoping I18n by 'ransack.models' (PR #514).

nagyt234

  • Add ransacker arguments (PR #513).

Denis Tataurov, Jon Atack