Skip to content

Releases: thoughtbot/top_secret

v0.4.0

31 Oct 19:03
d5d52f9

Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.4.0

v0.3.0

19 Sep 15:52
920c34b

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

18 Aug 13:34
5e85d0f

Choose a tag to compare

Full Changelog: v0.1.1...v0.2.0

Added

  • Added TopSecret::Text.filter_all for batch processing multiple messages with globally consistent redaction labels
  • Added TopSecret::Text::BatchResult class to hold results from batch operations
  • Added TopSecret::FilteredText class for restoring filtered text by substituting placeholders with original values
  • Added TopSecret::FilteredText::Result class to track restoration success and failures

Changed

  • BREAKING: Moved TopSecret::Result to TopSecret::Text::Result and TopSecret::BatchResult to TopSecret::Text::BatchResult for better namespace organization
  • BREAKING: Refactored configuration system to use individual filter accessors instead of nested default_filters
  • Updated TopSecret::Text.filter to accept keyword arguments for filter overrides and custom_filters array
  • Each default filter now has its own configuration accessor (e.g., TopSecret.email_filter, TopSecret.people_filter)

Migration Guide

  • Replace TopSecret::Result with TopSecret::Text::Result and TopSecret::BatchResult with TopSecret::Text::BatchResult
  • Replace TopSecret.configure { |c| c.default_filters.email_filter = filter } with TopSecret.configure { |c| c.email_filter = filter }
  • Replace TopSecret::Text.filter(text, filters: { email_filter: filter }) with TopSecret::Text.filter(text, email_filter: filter)
  • For new filters, use TopSecret::Text.filter(text, custom_filters: [filter]) instead of adding to default_filters

v0.1.1

18 Aug 13:34
4c073cb

Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v0.1.1

Initial Release

18 Aug 13:35
42c2320

Choose a tag to compare

Initial release