- Fix: Remove extra space around presented object separator (by default:
⇨)
- Refactor
ObjectInspector::InspectorsHelper->ObjectInspector::Behaviors
- Allow disabling ObjectInspector for the current session with:
ObjectInspector.configuration.disable. Re-enable with:ObjectInspector.configuration.enable - Internal refactoring
- Allow ObjectInspector::Scope to be initialized with individually-passed scope names
- Show pretty-inspect output for ObjectInspector::Scope objects
- Tidy up API Documentation a bit
- Add a note about Helper Inclusion to README
- Add ObjectInspector::InspectorsHelper#inspect! as a short form for #inspect(scope: :all)
- Add
issuesto the (probably never-used) CombiningFormatter + Internal refactoring/cleanup. - Update benchmark code + results info for Ruby v3.4 in README
- Fix failure in Ruby < v3.4, found by CI test suite.
- Fix minimum ruby version in gemspec
- Update minimum Ruby version from 3.1 -> 3.2
- Update minimum Ruby version from 2.7 -> 3.1
- Internal updates to style, etc. No outward-facing changes.
- Internal spruce-up for Ruby 3.2. No outward-facing changes.
- Remove travis-ci config since travis-ci is no longer in use.
- Flatten and compact arrays of
nils as well as nested arrays ofnils in join_* methods.
- Fix inspection of delegating wrapper objects.
- Allow clearing output of inspect methods.
- Automatically compact nils in join_* methods.
- Don't include empty strings from Scope#join_* methods when applicable.
- Add
inspect_issuesto ObjectInspector::TemplatingFormatter. - Add ObjectInspector::Scope#join_name.
- Add configurable ObjectInspector.configuration.presented_object_separator.
- Feature: Add ObjectInspector::Configuration#default_scope setting -- can be used to override the default Scope for object inspection.
- Implement ObjectInspector::Scope#== for comparing scopes with scopes and/or scopes with (Arrays of) Strings, Symbols, etc.
- Add ObjectInspector::Configuration#formatter_class setting for overriding the default Formatter.
- Remove optional dependency on ActiveSupport::StringInquirer. Scopes are now objects that act like ActiveSupport::StringInquirer objects.
- Add ObjectInspector::Scope.join_flags helper method.
- Add ObjectInspector::Scope.join_info helper method.
- Scope: Show an out-of-scope-placeholder symbol (*) when predicate is not matched and a block is given.
- Scope: Add wild-card "all" scope that is always evaluated as true / a match.
- Add ability to specify multiple scopes. e.g. my_object.inspect(scope: %i[verbose complex]).
- Add gem defaults configuration.
- Automatically inspect wrapped Objects, if applicable.
- Use
display_nameif defined on object, in place ofinspect_name. - Add on-the-fly inspect methods when Symbols are passed in to #inspect.
- Update the
flagsandinfodemarcation symbols. - Add ObjectInspector::TemplatingFormatter, and use it as the new default since it's faster.
- Rename ObjectInspector::DefaultFormatter to ObjectInspector::CombiningFormatter.
- Initial release!