Skip to content

Latest commit

 

History

History
133 lines (84 loc) · 3.23 KB

CHANGELOG.md

File metadata and controls

133 lines (84 loc) · 3.23 KB

2.1.7

  • Require Ruby 2.7 or later
  • Add Ruby 3.2 support
  • Require Active Record 6.0 or later
  • Improve minitest support (Mark Edmondson)
  • Limit scope when clearing descendants tracker (idea from Jean-Baptiste Jacquinot)

2.1.6

  • Require Ruby 2.6 or later
  • Add Ruby 3.0 and 3.1 support
  • Add Active Record 6.1 and 7.0 support
  • Add minitest support (Miks Miķelsons)

2.1.5

  • Add support for Active Record 6.1

2.1.4

  • Remove deprecation warnings for Ruby 2.7
  • Require Ruby 2.4 or later
  • Require Active Record 5.2 or later

2.1.3

  • Support ActiveRecord 6.0, working around new dependency tracking API

2.1.2

  • Don't clobber existing rake executable

2.1.1

  • Don't fail erroneously when running the after hook when the before hook failed
  • Improve documentation

2.1.0

  • Support creating constant in an existing namespace (#26)
  • Prefer keyword arguments over manually-validated hash argument
  • Improve documentation
  • Remove support for obsolete Ruby
  • Internal cleanup

2.0.0

  • Require Ruby 2.1 or later
  • Require Active Record 4.2 or later

1.2.2

  • Fix ActiveRecord 5 deprecation warning
  • Options passed to with_model are validated to prevent accidental misuse of API
  • Improve thread-safety by making table names unique to process and thread ID, instead of just process ID

1.2.1

  • Support ActiveRecord 4.2 (no code change, only dependency requirement bump)

1.2.0

  • Allow specifying scope for before/after blocks (Miks Miķelsons)

1.1.0

  • Support Ruby 2.1
  • Support Rails 4.1
  • Refactor some internals

1.0.0

  • Start using Semantic Versioning 2.0.0
  • Complete refactor of internals (Andrew Marshall)
  • Remove support for Active Record 2 (Andrew Marshall)
  • Remove dependency on RSpec (Andrew Marshall)
  • Add support for MiniTest (Andrew Marshall)
  • Add option for specifying superclass (Miks Miķelsons)

0.3.2

  • Allow calling with_model without a block. (Andrew Marshall)
  • Ensure that ActiveSupport’s descendants works correctly between tests. (Andrew Marshall)
  • Allow Active Record 4 in gemspec.

0.3.1

  • Don’t cache connection between tests. (Ryan Ong & Richard Nuno)

0.3

  • Use RSpec 2.11’s built-in constant stubbing.
  • Remove RSpec 1.x and Active Record 2.x support.
  • Remove Mixico support.

0.2.6

  • ActiveRecord 3.2 compatible. (Steven Harman / Brent Wheeldon)

0.2.5

  • Clear ActiveRecord 3.x associations class cache between specs to clean up test pollution.

0.2.4

  • Active Record 3.1 compatible.
  • Fix bug where column information was being cached incorrectly by ActiveRecord.

0.2.3

  • Create a new class each run to prevent test pollution. (Andrew Marshall)
  • Use :UpperCase in examples.

0.2.2

  • The table block is now optional.

0.2.1

  • Fix a bug when the with_model name contains capital letters. Now you can safely make calls like with_model :BlogPost

0.2

  • Remove the buggy attr_accessor method for accessing with_model classes. Now there is only the constant available in the example group.

0.1.5

  • WithModel::Base is now marked as an abstract_class, which makes polymorphic belongs_to work properly.

0.1.4

  • Add ability to pass arguments to create_table.

0.1.2

  • Make Mixico optional.