- 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)
- 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)
- Add support for Active Record 6.1
- Remove deprecation warnings for Ruby 2.7
- Require Ruby 2.4 or later
- Require Active Record 5.2 or later
- Support ActiveRecord 6.0, working around new dependency tracking API
- Don't clobber existing rake executable
- Don't fail erroneously when running the after hook when the before hook failed
- Improve documentation
- 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
- Require Ruby 2.1 or later
- Require Active Record 4.2 or later
- 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
- Support ActiveRecord 4.2 (no code change, only dependency requirement bump)
- Allow specifying scope for before/after blocks (Miks Miķelsons)
- Support Ruby 2.1
- Support Rails 4.1
- Refactor some internals
- 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)
- 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.
- Don’t cache connection between tests. (Ryan Ong & Richard Nuno)
- Use RSpec 2.11’s built-in constant stubbing.
- Remove RSpec 1.x and Active Record 2.x support.
- Remove Mixico support.
- ActiveRecord 3.2 compatible. (Steven Harman / Brent Wheeldon)
- Clear ActiveRecord 3.x associations class cache between specs to clean up test pollution.
- Active Record 3.1 compatible.
- Fix bug where column information was being cached incorrectly by ActiveRecord.
- Create a new class each run to prevent test pollution. (Andrew Marshall)
- Use :UpperCase in examples.
- The table block is now optional.
- Fix a bug when the with_model name contains capital letters. Now you can safely make calls like
with_model :BlogPost
- Remove the buggy
attr_accessor
method for accessing with_model classes. Now there is only the constant available in the example group.
WithModel::Base
is now marked as anabstract_class,
which makes polymorphicbelongs_to
work properly.
- Add ability to pass arguments to
create_table
.
- Make Mixico optional.