From ccd7f216845f0b42db4c8694f6fc1efa8b6b0b38 Mon Sep 17 00:00:00 2001 From: justin talbott Date: Thu, 10 Oct 2024 23:04:54 -0400 Subject: [PATCH] stree --- README.md | 10 +++++++++- test/test_schema_dumper.rb | 4 +--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b15dc74..2a2d744 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Hoardable ![gem version](https://img.shields.io/gem/v/hoardable?style=flat-square) -Hoardable is an ActiveRecord extension for Ruby 3.1+, Rails 7+, and PostgreSQL 9+ that allows for +Hoardable is an ActiveRecord extension for Ruby 3+, Rails 7+, and PostgreSQL 9+ that allows for versioning and soft-deletion of records through the use of _uni-temporal inherited tables_. [Temporal tables](https://en.wikipedia.org/wiki/Temporal_database) are a database design pattern @@ -496,6 +496,14 @@ Instead of storing the previous versions or changes in a separate table, it stor proprietary JSON format directly on the database row of the record itself. If does not support soft deletion. +## Testing + +Hoardable is tested against a matrix of Ruby 3 versions and Rails 7 & 8. To run tests locally, run: + +``` +rake +``` + ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/waymondo/hoardable. diff --git a/test/test_schema_dumper.rb b/test/test_schema_dumper.rb index abd3b10..84a424c 100644 --- a/test/test_schema_dumper.rb +++ b/test/test_schema_dumper.rb @@ -32,9 +32,7 @@ class TestSchemaDumper < ActiveSupport::TestCase private def dump_table_schema(*table_names) connection = ActiveRecord::Base.connection ActiveRecord::SchemaDumper.ignore_tables = connection.data_sources - table_names - output, = capture_io do - ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool) - end + output, = capture_io { ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection_pool) } output end end