All Versions
10
Latest Version
Avg Release Cycle
182 days
Latest Release
133 days ago

Changelog History

  • v4.1.2

    August 01, 2019
  • v4.1.1

    July 16, 2019

    🐛 Bug fixes

    • Patch some backward-incompatible changes to validate_presence_of that were
      made in the last version. As of 4.1.0 the presence matcher now checks to
      ensure that empty string will cause the record to be invalid (in addition to
      nil, which it was already checking against). However, this check was being
      performed even if the attribute or column the presence matcher is being run
      🚀 against didn't support being set to an empty string. This releases fixes this.
      (#1222, #1224, #1231)
  • v4.1.0

    July 16, 2019

    🐛 Bug fixes

    • Fix validate_uniqueness_of so that it works when a scope is defined as a
      string instead of a symbol on the model. (#1176)
    • Fix have_db_index so that it can be used against multiple models that are
      connected to different databases. (#1200)

    🔋 Features

    • ➕ Add support for Rails 6. No new Rails 6 features are supported, but only
      ⬆️ existing features that broke with the upgrade. (#1193)
    • ➕ Add support for expression indexes (Rails 5, Postgres only) to
      have_db_index. (#1211)
    • Add allow_nil to the validate_presence_of matcher. (834d8d0, #1100)

    👌 Improvements

    • Update validate_presence_of so that if it is being used against an
      association which is required: true or optional: false, or it is not
      🔧 configured as such but ActiveRecord defaults belong_to associations to
      optional: false, and the matcher fails, the developer is reminded in the
      failure message that the belong_to matcher can be used instead. (#1214,
      8697b01)
    • Update define_enum_for so that it produces a more helpful message on
      failure. (#1216)
  • v4.0.1

    February 26, 2019

    🛠 Fix gemspec so that setup script isn't installed globally when gem is installed.

  • v4.0.0

    February 22, 2019
    • 🚅 Rails 5.x support
    • 💎 Ruby 2.4+ support
    • 👌 Improve negative versions of validation matchers
    • ⬇️ Drop support for Ruby 2.0 and 2.1
    • ⬇️ Drop support Rails 4.0 and 4.1
  • v4.0.0.rc1

    October 02, 2018

    ➕ Adds support for Ruby 2.4 and 2.5 and Rails 5.x.
    ⬇️ Drops support for Ruby 2.0 and 2.1 as well as Rails 4.0 and 4.1.

  • v3.1.3

    January 29, 2019
  • v3.1.2

    July 12, 2017

    🗄 Deprecations

    • This is the last version that supports Rails 4.0 and 4.1 and Ruby 2.0 and 2.1.

    🐛 Bug fixes

    When the permit matcher was used without #on, the controller did not use
    params#require, the params object was duplicated, and the matcher did not
    recognize the #permit call inside the controller. This behavior happened
    because the matcher overwrote double registries with the same parameter hash
    whenever ActionController::Parameters was instantiated.

    • Commit: [44c019]
    • Issue: [#899]
    • Pull request: [#902]
  • v3.1.1

    January 28, 2016
  • v3.1.0

    January 11, 2016