Skip to content

0.5.0

Compare
Choose a tag to compare
@mcmire mcmire released this 19 Jun 06:29

Breaking changes

  • Do some reorganizing and rename some concepts in the code: "operational
    sequencer" changes to "operation tree builder" and "operation sequence"
    changes to "operation tree". Although super_diff is not yet at 1.0, this does
    result in breaking changes to the API, so:

    • If you are inheriting from SuperDiff::OperationalSequencers::*, you will
      want to now inherit from SuperDiff::OperationTreeBuilders::*.

    • If you are inheriting from SuperDiff::OperationSequence::*, you will
      want to now inherit from SuperDiff::OperationTrees::*.

    • If you are configuring the gem by saying:

      SuperDiff::RSpec.configuration do |config|
        config.add_extra_operational_sequencer_class(SomeClass)
        config.add_extra_operation_sequence_class(SomeClass)
      end

      you will want to change this to:

      SuperDiff::RSpec.configuration do |config|
        config.add_extra_operation_tree_builder_class(SomeClass)
        config.add_extra_operation_tree_class(SomeClass)
      end

    (#84, #85)

Features

  • Add inspectors for an_instance_of, a_kind_of, and a_value_within.
    (#74)

Bug fixes

  • Get rid of warnings produced on Ruby 2.7.1. (#71)
  • Fix diff produced by (incorrect) usage of have_attributes with a hash as the
    actual value. (#76)

Improvements

  • Move configuration so that instead of using

    SuperDiff::RSpec.configure do |config|
      # ...
    end

    you can now say:

    SuperDiff.configure do |config|
      # ...
    end

    (#80)

  • Update diff between two hashes so that original ordering of keys is preserved.
    (#81)