super_diff 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -182
- data/lib/super_diff/active_record/differs/active_record_relation.rb +1 -1
- data/lib/super_diff/active_record/inspection_tree_builders/active_record_model.rb +57 -0
- data/lib/super_diff/active_record/inspection_tree_builders/active_record_relation.rb +34 -0
- data/lib/super_diff/active_record/inspection_tree_builders.rb +14 -0
- data/lib/super_diff/active_record/monkey_patches.rb +6 -3
- data/lib/super_diff/active_record/object_inspection.rb +16 -4
- data/lib/super_diff/active_record/operation_tree_builders/active_record_model.rb +6 -2
- data/lib/super_diff/active_record/operation_tree_builders/active_record_relation.rb +1 -1
- data/lib/super_diff/active_record/operation_tree_flatteners/active_record_relation.rb +1 -1
- data/lib/super_diff/active_record/operation_trees/active_record_relation.rb +1 -1
- data/lib/super_diff/active_record.rb +12 -16
- data/lib/super_diff/active_support/differs/hash_with_indifferent_access.rb +1 -1
- data/lib/super_diff/active_support/inspection_tree_builders/hash_with_indifferent_access.rb +44 -0
- data/lib/super_diff/active_support/inspection_tree_builders/ordered_options.rb +44 -0
- data/lib/super_diff/active_support/inspection_tree_builders.rb +14 -0
- data/lib/super_diff/active_support/object_inspection.rb +16 -4
- data/lib/super_diff/active_support/operation_tree_builders/hash_with_indifferent_access.rb +1 -1
- data/lib/super_diff/active_support/operation_tree_flatteners/hash_with_indifferent_access.rb +1 -1
- data/lib/super_diff/active_support/operation_trees/hash_with_indifferent_access.rb +1 -1
- data/lib/super_diff/active_support.rb +11 -15
- data/lib/super_diff/basic/diff_formatters/collection.rb +135 -0
- data/lib/super_diff/basic/diff_formatters/multiline_string.rb +34 -0
- data/lib/super_diff/basic/diff_formatters.rb +11 -0
- data/lib/super_diff/basic/differs/array.rb +17 -0
- data/lib/super_diff/basic/differs/custom_object.rb +19 -0
- data/lib/super_diff/basic/differs/date_like.rb +17 -0
- data/lib/super_diff/basic/differs/default_object.rb +24 -0
- data/lib/super_diff/basic/differs/hash.rb +17 -0
- data/lib/super_diff/basic/differs/multiline_string.rb +18 -0
- data/lib/super_diff/basic/differs/time_like.rb +17 -0
- data/lib/super_diff/basic/differs.rb +24 -0
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/array.rb +3 -3
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/custom_object.rb +3 -3
- data/lib/super_diff/basic/inspection_tree_builders/data_object.rb +40 -0
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/date_like.rb +3 -3
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/default_object.rb +5 -7
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/hash.rb +3 -3
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/primitive.rb +4 -4
- data/lib/super_diff/{object_inspection → basic}/inspection_tree_builders/time_like.rb +3 -3
- data/lib/super_diff/basic/inspection_tree_builders.rb +24 -0
- data/lib/super_diff/basic/operation_tree_builders/array.rb +111 -0
- data/lib/super_diff/basic/operation_tree_builders/custom_object.rb +42 -0
- data/lib/super_diff/basic/operation_tree_builders/data_object.rb +18 -0
- data/lib/super_diff/basic/operation_tree_builders/date_like.rb +17 -0
- data/lib/super_diff/basic/operation_tree_builders/default_object.rb +117 -0
- data/lib/super_diff/basic/operation_tree_builders/hash.rb +222 -0
- data/lib/super_diff/basic/operation_tree_builders/multiline_string.rb +90 -0
- data/lib/super_diff/basic/operation_tree_builders/time_like.rb +26 -0
- data/lib/super_diff/basic/operation_tree_builders.rb +38 -0
- data/lib/super_diff/basic/operation_tree_flatteners/array.rb +17 -0
- data/lib/super_diff/basic/operation_tree_flatteners/collection.rb +140 -0
- data/lib/super_diff/basic/operation_tree_flatteners/custom_object.rb +30 -0
- data/lib/super_diff/basic/operation_tree_flatteners/default_object.rb +32 -0
- data/lib/super_diff/basic/operation_tree_flatteners/hash.rb +35 -0
- data/lib/super_diff/basic/operation_tree_flatteners/multiline_string.rb +20 -0
- data/lib/super_diff/basic/operation_tree_flatteners.rb +24 -0
- data/lib/super_diff/basic/operation_trees/array.rb +17 -0
- data/lib/super_diff/basic/operation_trees/custom_object.rb +17 -0
- data/lib/super_diff/basic/operation_trees/default_object.rb +42 -0
- data/lib/super_diff/basic/operation_trees/hash.rb +17 -0
- data/lib/super_diff/basic/operation_trees/multiline_string.rb +17 -0
- data/lib/super_diff/basic/operation_trees.rb +25 -0
- data/lib/super_diff/basic.rb +50 -0
- data/lib/super_diff/{differs/base.rb → core/abstract_differ.rb} +2 -2
- data/lib/super_diff/core/abstract_inspection_tree_builder.rb +26 -0
- data/lib/super_diff/{operation_trees/base.rb → core/abstract_operation_tree.rb} +6 -2
- data/lib/super_diff/{operation_tree_builders/base.rb → core/abstract_operation_tree_builder.rb} +4 -8
- data/lib/super_diff/{operation_tree_flatteners/base.rb → core/abstract_operation_tree_flattener.rb} +2 -2
- data/lib/super_diff/{operations → core}/binary_operation.rb +1 -1
- data/lib/super_diff/core/colorized_document_extensions.rb +20 -0
- data/lib/super_diff/core/configuration.rb +196 -0
- data/lib/super_diff/core/differ_dispatcher.rb +31 -0
- data/lib/super_diff/core/gem_version.rb +47 -0
- data/lib/super_diff/core/helpers.rb +88 -0
- data/lib/super_diff/core/implementation_checks.rb +21 -0
- data/lib/super_diff/{object_inspection → core}/inspection_tree.rb +7 -6
- data/lib/super_diff/core/inspection_tree_builder_dispatcher.rb +23 -0
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/as_lines_when_rendering_to_lines.rb +9 -3
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/as_prefix_when_rendering_to_lines.rb +3 -3
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/as_prelude_when_rendering_to_lines.rb +3 -3
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/as_single_line.rb +3 -3
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/base.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/inspection.rb +7 -11
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/nesting.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/only_when.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/text.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/when_empty.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/when_non_empty.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/when_rendering_to_lines.rb +2 -2
- data/lib/super_diff/{object_inspection/nodes → core/inspection_tree_nodes}/when_rendering_to_string.rb +2 -2
- data/lib/super_diff/core/inspection_tree_nodes.rb +55 -0
- data/lib/super_diff/core/line.rb +85 -0
- data/lib/super_diff/{errors → core}/no_differ_available_error.rb +1 -1
- data/lib/super_diff/core/no_inspection_tree_builder_available_error.rb +21 -0
- data/lib/super_diff/core/no_operation_tree_available_error.rb +20 -0
- data/lib/super_diff/core/no_operation_tree_builder_available_error.rb +24 -0
- data/lib/super_diff/{operation_tree_builders/main.rb → core/operation_tree_builder_dispatcher.rb} +9 -13
- data/lib/super_diff/core/operation_tree_finder.rb +27 -0
- data/lib/super_diff/core/prefix_for_next_inspection_tree_node.rb +6 -0
- data/lib/super_diff/core/prelude_for_next_inspection_tree_node.rb +6 -0
- data/lib/super_diff/core/recursion_guard.rb +52 -0
- data/lib/super_diff/core/tiered_lines.rb +6 -0
- data/lib/super_diff/core/tiered_lines_elider.rb +472 -0
- data/lib/super_diff/core/tiered_lines_formatter.rb +77 -0
- data/lib/super_diff/{operations → core}/unary_operation.rb +1 -1
- data/lib/super_diff/core.rb +69 -0
- data/lib/super_diff/csi.rb +0 -32
- data/lib/super_diff/differs.rb +19 -12
- data/lib/super_diff/equality_matchers/array.rb +3 -3
- data/lib/super_diff/equality_matchers/default.rb +8 -3
- data/lib/super_diff/equality_matchers/defaults.rb +1 -1
- data/lib/super_diff/equality_matchers/hash.rb +3 -3
- data/lib/super_diff/equality_matchers/multiline_string.rb +3 -3
- data/lib/super_diff/equality_matchers/primitive.rb +3 -3
- data/lib/super_diff/equality_matchers/singleline_string.rb +2 -2
- data/lib/super_diff/errors.rb +12 -8
- data/lib/super_diff/object_inspection.rb +63 -14
- data/lib/super_diff/operation_tree_builders.rb +19 -15
- data/lib/super_diff/operation_tree_flatteners.rb +19 -16
- data/lib/super_diff/operation_trees.rb +19 -9
- data/lib/super_diff/operations.rb +12 -2
- data/lib/super_diff/rspec/augmented_matcher.rb +1 -1
- data/lib/super_diff/rspec/differ.rb +4 -5
- data/lib/super_diff/rspec/differs/collection_containing_exactly.rb +1 -1
- data/lib/super_diff/rspec/differs/collection_including.rb +1 -1
- data/lib/super_diff/rspec/differs/hash_including.rb +1 -1
- data/lib/super_diff/rspec/differs/object_having_attributes.rb +1 -1
- data/lib/super_diff/rspec/inspection_tree_builders/collection_containing_exactly.rb +34 -0
- data/lib/super_diff/rspec/inspection_tree_builders/collection_including.rb +40 -0
- data/lib/super_diff/rspec/inspection_tree_builders/double.rb +100 -0
- data/lib/super_diff/rspec/inspection_tree_builders/generic_describable_matcher.rb +17 -0
- data/lib/super_diff/rspec/inspection_tree_builders/hash_including.rb +40 -0
- data/lib/super_diff/rspec/inspection_tree_builders/instance_of.rb +25 -0
- data/lib/super_diff/rspec/inspection_tree_builders/kind_of.rb +25 -0
- data/lib/super_diff/rspec/inspection_tree_builders/object_having_attributes.rb +34 -0
- data/lib/super_diff/rspec/inspection_tree_builders/primitive.rb +9 -0
- data/lib/super_diff/rspec/inspection_tree_builders/value_within.rb +30 -0
- data/lib/super_diff/rspec/inspection_tree_builders.rb +40 -0
- data/lib/super_diff/rspec/object_inspection.rb +14 -4
- data/lib/super_diff/rspec/operation_tree_builders/collection_containing_exactly.rb +4 -4
- data/lib/super_diff/rspec/operation_tree_builders/collection_including.rb +1 -1
- data/lib/super_diff/rspec/operation_tree_builders/hash_including.rb +1 -1
- data/lib/super_diff/rspec/operation_tree_builders/object_having_attributes.rb +2 -2
- data/lib/super_diff/rspec.rb +20 -18
- data/lib/super_diff/version.rb +1 -1
- data/lib/super_diff.rb +70 -23
- data/spec/examples.txt +450 -543
- data/spec/spec_helper.rb +1 -0
- data/spec/support/integration/helpers.rb +4 -1
- data/spec/support/integration/matchers/produce_output_when_run_matcher.rb +1 -1
- data/spec/support/models/active_record/person.rb +8 -1
- data/spec/support/models/point.rb +7 -0
- data/spec/support/shared_examples/active_record.rb +5 -5
- data/spec/support/unit/helpers.rb +12 -1
- data/spec/support/unit/matchers/be_deprecated_in_favor_of.rb +39 -0
- data/spec/unit/active_record/object_inspection_spec.rb +5 -5
- data/spec/unit/basic/inspection_tree_builders/data_object_spec.rb +146 -0
- data/spec/unit/basic/operation_tree_builders/data_object_spec.rb +82 -0
- data/spec/unit/{operation_tree_flatteners → basic/operation_tree_flatteners}/array_spec.rb +8 -8
- data/spec/unit/{operation_tree_flatteners → basic/operation_tree_flatteners}/custom_object_spec.rb +9 -9
- data/spec/unit/{operation_tree_flatteners → basic/operation_tree_flatteners}/default_object_spec.rb +9 -9
- data/spec/unit/{operation_tree_flatteners → basic/operation_tree_flatteners}/hash_spec.rb +8 -8
- data/spec/unit/{operation_tree_flatteners → basic/operation_tree_flatteners}/multiline_string_spec.rb +4 -4
- data/spec/unit/core/configuration_no_rspec_spec.rb +58 -0
- data/spec/unit/core/configuration_spec.rb +176 -0
- data/spec/unit/{helpers_spec.rb → core/helpers_spec.rb} +2 -2
- data/spec/unit/{tiered_lines_elider_spec.rb → core/tiered_lines_elider_spec.rb} +2 -2
- data/spec/unit/{tiered_lines_formatter_spec.rb → core/tiered_lines_formatter_spec.rb} +1 -1
- data/spec/unit/deprecations_spec.rb +176 -0
- data/spec/unit/equality_matchers/main_spec.rb +5 -5
- data/super_diff.gemspec +10 -3
- metadata +144 -120
- data/lib/super_diff/active_record/object_inspection/inspection_tree_builders/active_record_model.rb +0 -51
- data/lib/super_diff/active_record/object_inspection/inspection_tree_builders/active_record_relation.rb +0 -36
- data/lib/super_diff/active_record/object_inspection/inspection_tree_builders.rb +0 -16
- data/lib/super_diff/active_support/object_inspection/inspection_tree_builders/hash_with_indifferent_access.rb +0 -46
- data/lib/super_diff/active_support/object_inspection/inspection_tree_builders/ordered_options.rb +0 -46
- data/lib/super_diff/active_support/object_inspection/inspection_tree_builders.rb +0 -16
- data/lib/super_diff/colorized_document_extensions.rb +0 -18
- data/lib/super_diff/configuration.rb +0 -149
- data/lib/super_diff/diff_formatters/collection.rb +0 -132
- data/lib/super_diff/diff_formatters/multiline_string.rb +0 -31
- data/lib/super_diff/differs/array.rb +0 -15
- data/lib/super_diff/differs/custom_object.rb +0 -17
- data/lib/super_diff/differs/date_like.rb +0 -15
- data/lib/super_diff/differs/default_object.rb +0 -19
- data/lib/super_diff/differs/defaults.rb +0 -13
- data/lib/super_diff/differs/empty.rb +0 -13
- data/lib/super_diff/differs/hash.rb +0 -15
- data/lib/super_diff/differs/main.rb +0 -31
- data/lib/super_diff/differs/multiline_string.rb +0 -16
- data/lib/super_diff/differs/time_like.rb +0 -15
- data/lib/super_diff/gem_version.rb +0 -45
- data/lib/super_diff/helpers.rb +0 -86
- data/lib/super_diff/implementation_checks.rb +0 -19
- data/lib/super_diff/line.rb +0 -83
- data/lib/super_diff/object_inspection/inspection_tree_builders/base.rb +0 -27
- data/lib/super_diff/object_inspection/inspection_tree_builders/defaults.rb +0 -15
- data/lib/super_diff/object_inspection/inspection_tree_builders/main.rb +0 -30
- data/lib/super_diff/object_inspection/inspection_tree_builders.rb +0 -48
- data/lib/super_diff/object_inspection/nodes.rb +0 -50
- data/lib/super_diff/object_inspection/prefix_for_next_node.rb +0 -6
- data/lib/super_diff/object_inspection/prelude_for_next_node.rb +0 -6
- data/lib/super_diff/operation_tree_builders/array.rb +0 -107
- data/lib/super_diff/operation_tree_builders/custom_object.rb +0 -40
- data/lib/super_diff/operation_tree_builders/date_like.rb +0 -15
- data/lib/super_diff/operation_tree_builders/default_object.rb +0 -119
- data/lib/super_diff/operation_tree_builders/defaults.rb +0 -5
- data/lib/super_diff/operation_tree_builders/hash.rb +0 -218
- data/lib/super_diff/operation_tree_builders/multiline_string.rb +0 -86
- data/lib/super_diff/operation_tree_builders/time_like.rb +0 -24
- data/lib/super_diff/operation_tree_flatteners/array.rb +0 -15
- data/lib/super_diff/operation_tree_flatteners/collection.rb +0 -136
- data/lib/super_diff/operation_tree_flatteners/custom_object.rb +0 -28
- data/lib/super_diff/operation_tree_flatteners/default_object.rb +0 -31
- data/lib/super_diff/operation_tree_flatteners/hash.rb +0 -33
- data/lib/super_diff/operation_tree_flatteners/multiline_string.rb +0 -18
- data/lib/super_diff/operation_trees/array.rb +0 -15
- data/lib/super_diff/operation_trees/custom_object.rb +0 -15
- data/lib/super_diff/operation_trees/default_object.rb +0 -40
- data/lib/super_diff/operation_trees/defaults.rb +0 -5
- data/lib/super_diff/operation_trees/hash.rb +0 -15
- data/lib/super_diff/operation_trees/main.rb +0 -35
- data/lib/super_diff/operation_trees/multiline_string.rb +0 -15
- data/lib/super_diff/recursion_guard.rb +0 -50
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/collection_containing_exactly.rb +0 -36
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/collection_including.rb +0 -42
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/double.rb +0 -102
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/generic_describable_matcher.rb +0 -19
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/hash_including.rb +0 -42
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/instance_of.rb +0 -27
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/kind_of.rb +0 -27
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/object_having_attributes.rb +0 -36
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/primitive.rb +0 -10
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders/value_within.rb +0 -32
- data/lib/super_diff/rspec/object_inspection/inspection_tree_builders.rb +0 -48
- data/lib/super_diff/tiered_lines.rb +0 -4
- data/lib/super_diff/tiered_lines_elider.rb +0 -462
- data/lib/super_diff/tiered_lines_formatter.rb +0 -75
- data/spec/internal/log/test.log +0 -0
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Winkler
|
8
|
+
- Splitwise, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2024-
|
12
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: attr_extras
|
@@ -56,7 +57,7 @@ description: |
|
|
56
57
|
SuperDiff is a gem that hooks into RSpec to intelligently display the
|
57
58
|
differences between two data structures of any type.
|
58
59
|
email:
|
59
|
-
-
|
60
|
+
- oss-community@splitwise.com
|
60
61
|
executables: []
|
61
62
|
extensions: []
|
62
63
|
extra_rdoc_files: []
|
@@ -66,11 +67,11 @@ files:
|
|
66
67
|
- lib/super_diff/active_record.rb
|
67
68
|
- lib/super_diff/active_record/differs.rb
|
68
69
|
- lib/super_diff/active_record/differs/active_record_relation.rb
|
70
|
+
- lib/super_diff/active_record/inspection_tree_builders.rb
|
71
|
+
- lib/super_diff/active_record/inspection_tree_builders/active_record_model.rb
|
72
|
+
- lib/super_diff/active_record/inspection_tree_builders/active_record_relation.rb
|
69
73
|
- lib/super_diff/active_record/monkey_patches.rb
|
70
74
|
- lib/super_diff/active_record/object_inspection.rb
|
71
|
-
- lib/super_diff/active_record/object_inspection/inspection_tree_builders.rb
|
72
|
-
- lib/super_diff/active_record/object_inspection/inspection_tree_builders/active_record_model.rb
|
73
|
-
- lib/super_diff/active_record/object_inspection/inspection_tree_builders/active_record_relation.rb
|
74
75
|
- lib/super_diff/active_record/operation_tree_builders.rb
|
75
76
|
- lib/super_diff/active_record/operation_tree_builders/active_record_model.rb
|
76
77
|
- lib/super_diff/active_record/operation_tree_builders/active_record_relation.rb
|
@@ -81,18 +82,102 @@ files:
|
|
81
82
|
- lib/super_diff/active_support.rb
|
82
83
|
- lib/super_diff/active_support/differs.rb
|
83
84
|
- lib/super_diff/active_support/differs/hash_with_indifferent_access.rb
|
85
|
+
- lib/super_diff/active_support/inspection_tree_builders.rb
|
86
|
+
- lib/super_diff/active_support/inspection_tree_builders/hash_with_indifferent_access.rb
|
87
|
+
- lib/super_diff/active_support/inspection_tree_builders/ordered_options.rb
|
84
88
|
- lib/super_diff/active_support/object_inspection.rb
|
85
|
-
- lib/super_diff/active_support/object_inspection/inspection_tree_builders.rb
|
86
|
-
- lib/super_diff/active_support/object_inspection/inspection_tree_builders/hash_with_indifferent_access.rb
|
87
|
-
- lib/super_diff/active_support/object_inspection/inspection_tree_builders/ordered_options.rb
|
88
89
|
- lib/super_diff/active_support/operation_tree_builders.rb
|
89
90
|
- lib/super_diff/active_support/operation_tree_builders/hash_with_indifferent_access.rb
|
90
91
|
- lib/super_diff/active_support/operation_tree_flatteners.rb
|
91
92
|
- lib/super_diff/active_support/operation_tree_flatteners/hash_with_indifferent_access.rb
|
92
93
|
- lib/super_diff/active_support/operation_trees.rb
|
93
94
|
- lib/super_diff/active_support/operation_trees/hash_with_indifferent_access.rb
|
94
|
-
- lib/super_diff/
|
95
|
-
- lib/super_diff/
|
95
|
+
- lib/super_diff/basic.rb
|
96
|
+
- lib/super_diff/basic/diff_formatters.rb
|
97
|
+
- lib/super_diff/basic/diff_formatters/collection.rb
|
98
|
+
- lib/super_diff/basic/diff_formatters/multiline_string.rb
|
99
|
+
- lib/super_diff/basic/differs.rb
|
100
|
+
- lib/super_diff/basic/differs/array.rb
|
101
|
+
- lib/super_diff/basic/differs/custom_object.rb
|
102
|
+
- lib/super_diff/basic/differs/date_like.rb
|
103
|
+
- lib/super_diff/basic/differs/default_object.rb
|
104
|
+
- lib/super_diff/basic/differs/hash.rb
|
105
|
+
- lib/super_diff/basic/differs/multiline_string.rb
|
106
|
+
- lib/super_diff/basic/differs/time_like.rb
|
107
|
+
- lib/super_diff/basic/inspection_tree_builders.rb
|
108
|
+
- lib/super_diff/basic/inspection_tree_builders/array.rb
|
109
|
+
- lib/super_diff/basic/inspection_tree_builders/custom_object.rb
|
110
|
+
- lib/super_diff/basic/inspection_tree_builders/data_object.rb
|
111
|
+
- lib/super_diff/basic/inspection_tree_builders/date_like.rb
|
112
|
+
- lib/super_diff/basic/inspection_tree_builders/default_object.rb
|
113
|
+
- lib/super_diff/basic/inspection_tree_builders/hash.rb
|
114
|
+
- lib/super_diff/basic/inspection_tree_builders/primitive.rb
|
115
|
+
- lib/super_diff/basic/inspection_tree_builders/time_like.rb
|
116
|
+
- lib/super_diff/basic/operation_tree_builders.rb
|
117
|
+
- lib/super_diff/basic/operation_tree_builders/array.rb
|
118
|
+
- lib/super_diff/basic/operation_tree_builders/custom_object.rb
|
119
|
+
- lib/super_diff/basic/operation_tree_builders/data_object.rb
|
120
|
+
- lib/super_diff/basic/operation_tree_builders/date_like.rb
|
121
|
+
- lib/super_diff/basic/operation_tree_builders/default_object.rb
|
122
|
+
- lib/super_diff/basic/operation_tree_builders/hash.rb
|
123
|
+
- lib/super_diff/basic/operation_tree_builders/multiline_string.rb
|
124
|
+
- lib/super_diff/basic/operation_tree_builders/time_like.rb
|
125
|
+
- lib/super_diff/basic/operation_tree_flatteners.rb
|
126
|
+
- lib/super_diff/basic/operation_tree_flatteners/array.rb
|
127
|
+
- lib/super_diff/basic/operation_tree_flatteners/collection.rb
|
128
|
+
- lib/super_diff/basic/operation_tree_flatteners/custom_object.rb
|
129
|
+
- lib/super_diff/basic/operation_tree_flatteners/default_object.rb
|
130
|
+
- lib/super_diff/basic/operation_tree_flatteners/hash.rb
|
131
|
+
- lib/super_diff/basic/operation_tree_flatteners/multiline_string.rb
|
132
|
+
- lib/super_diff/basic/operation_trees.rb
|
133
|
+
- lib/super_diff/basic/operation_trees/array.rb
|
134
|
+
- lib/super_diff/basic/operation_trees/custom_object.rb
|
135
|
+
- lib/super_diff/basic/operation_trees/default_object.rb
|
136
|
+
- lib/super_diff/basic/operation_trees/hash.rb
|
137
|
+
- lib/super_diff/basic/operation_trees/multiline_string.rb
|
138
|
+
- lib/super_diff/core.rb
|
139
|
+
- lib/super_diff/core/abstract_differ.rb
|
140
|
+
- lib/super_diff/core/abstract_inspection_tree_builder.rb
|
141
|
+
- lib/super_diff/core/abstract_operation_tree.rb
|
142
|
+
- lib/super_diff/core/abstract_operation_tree_builder.rb
|
143
|
+
- lib/super_diff/core/abstract_operation_tree_flattener.rb
|
144
|
+
- lib/super_diff/core/binary_operation.rb
|
145
|
+
- lib/super_diff/core/colorized_document_extensions.rb
|
146
|
+
- lib/super_diff/core/configuration.rb
|
147
|
+
- lib/super_diff/core/differ_dispatcher.rb
|
148
|
+
- lib/super_diff/core/gem_version.rb
|
149
|
+
- lib/super_diff/core/helpers.rb
|
150
|
+
- lib/super_diff/core/implementation_checks.rb
|
151
|
+
- lib/super_diff/core/inspection_tree.rb
|
152
|
+
- lib/super_diff/core/inspection_tree_builder_dispatcher.rb
|
153
|
+
- lib/super_diff/core/inspection_tree_nodes.rb
|
154
|
+
- lib/super_diff/core/inspection_tree_nodes/as_lines_when_rendering_to_lines.rb
|
155
|
+
- lib/super_diff/core/inspection_tree_nodes/as_prefix_when_rendering_to_lines.rb
|
156
|
+
- lib/super_diff/core/inspection_tree_nodes/as_prelude_when_rendering_to_lines.rb
|
157
|
+
- lib/super_diff/core/inspection_tree_nodes/as_single_line.rb
|
158
|
+
- lib/super_diff/core/inspection_tree_nodes/base.rb
|
159
|
+
- lib/super_diff/core/inspection_tree_nodes/inspection.rb
|
160
|
+
- lib/super_diff/core/inspection_tree_nodes/nesting.rb
|
161
|
+
- lib/super_diff/core/inspection_tree_nodes/only_when.rb
|
162
|
+
- lib/super_diff/core/inspection_tree_nodes/text.rb
|
163
|
+
- lib/super_diff/core/inspection_tree_nodes/when_empty.rb
|
164
|
+
- lib/super_diff/core/inspection_tree_nodes/when_non_empty.rb
|
165
|
+
- lib/super_diff/core/inspection_tree_nodes/when_rendering_to_lines.rb
|
166
|
+
- lib/super_diff/core/inspection_tree_nodes/when_rendering_to_string.rb
|
167
|
+
- lib/super_diff/core/line.rb
|
168
|
+
- lib/super_diff/core/no_differ_available_error.rb
|
169
|
+
- lib/super_diff/core/no_inspection_tree_builder_available_error.rb
|
170
|
+
- lib/super_diff/core/no_operation_tree_available_error.rb
|
171
|
+
- lib/super_diff/core/no_operation_tree_builder_available_error.rb
|
172
|
+
- lib/super_diff/core/operation_tree_builder_dispatcher.rb
|
173
|
+
- lib/super_diff/core/operation_tree_finder.rb
|
174
|
+
- lib/super_diff/core/prefix_for_next_inspection_tree_node.rb
|
175
|
+
- lib/super_diff/core/prelude_for_next_inspection_tree_node.rb
|
176
|
+
- lib/super_diff/core/recursion_guard.rb
|
177
|
+
- lib/super_diff/core/tiered_lines.rb
|
178
|
+
- lib/super_diff/core/tiered_lines_elider.rb
|
179
|
+
- lib/super_diff/core/tiered_lines_formatter.rb
|
180
|
+
- lib/super_diff/core/unary_operation.rb
|
96
181
|
- lib/super_diff/csi.rb
|
97
182
|
- lib/super_diff/csi/bold_sequence.rb
|
98
183
|
- lib/super_diff/csi/color.rb
|
@@ -104,20 +189,7 @@ files:
|
|
104
189
|
- lib/super_diff/csi/reset_sequence.rb
|
105
190
|
- lib/super_diff/csi/twenty_four_bit_color.rb
|
106
191
|
- lib/super_diff/csi/uncolorized_document.rb
|
107
|
-
- lib/super_diff/diff_formatters/collection.rb
|
108
|
-
- lib/super_diff/diff_formatters/multiline_string.rb
|
109
192
|
- lib/super_diff/differs.rb
|
110
|
-
- lib/super_diff/differs/array.rb
|
111
|
-
- lib/super_diff/differs/base.rb
|
112
|
-
- lib/super_diff/differs/custom_object.rb
|
113
|
-
- lib/super_diff/differs/date_like.rb
|
114
|
-
- lib/super_diff/differs/default_object.rb
|
115
|
-
- lib/super_diff/differs/defaults.rb
|
116
|
-
- lib/super_diff/differs/empty.rb
|
117
|
-
- lib/super_diff/differs/hash.rb
|
118
|
-
- lib/super_diff/differs/main.rb
|
119
|
-
- lib/super_diff/differs/multiline_string.rb
|
120
|
-
- lib/super_diff/differs/time_like.rb
|
121
193
|
- lib/super_diff/equality_matchers.rb
|
122
194
|
- lib/super_diff/equality_matchers/array.rb
|
123
195
|
- lib/super_diff/equality_matchers/base.rb
|
@@ -129,73 +201,12 @@ files:
|
|
129
201
|
- lib/super_diff/equality_matchers/primitive.rb
|
130
202
|
- lib/super_diff/equality_matchers/singleline_string.rb
|
131
203
|
- lib/super_diff/errors.rb
|
132
|
-
- lib/super_diff/errors/no_differ_available_error.rb
|
133
|
-
- lib/super_diff/gem_version.rb
|
134
|
-
- lib/super_diff/helpers.rb
|
135
|
-
- lib/super_diff/implementation_checks.rb
|
136
|
-
- lib/super_diff/line.rb
|
137
204
|
- lib/super_diff/object_inspection.rb
|
138
|
-
- lib/super_diff/object_inspection/inspection_tree.rb
|
139
|
-
- lib/super_diff/object_inspection/inspection_tree_builders.rb
|
140
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/array.rb
|
141
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/base.rb
|
142
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/custom_object.rb
|
143
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/date_like.rb
|
144
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/default_object.rb
|
145
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/defaults.rb
|
146
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/hash.rb
|
147
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/main.rb
|
148
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/primitive.rb
|
149
|
-
- lib/super_diff/object_inspection/inspection_tree_builders/time_like.rb
|
150
|
-
- lib/super_diff/object_inspection/nodes.rb
|
151
|
-
- lib/super_diff/object_inspection/nodes/as_lines_when_rendering_to_lines.rb
|
152
|
-
- lib/super_diff/object_inspection/nodes/as_prefix_when_rendering_to_lines.rb
|
153
|
-
- lib/super_diff/object_inspection/nodes/as_prelude_when_rendering_to_lines.rb
|
154
|
-
- lib/super_diff/object_inspection/nodes/as_single_line.rb
|
155
|
-
- lib/super_diff/object_inspection/nodes/base.rb
|
156
|
-
- lib/super_diff/object_inspection/nodes/inspection.rb
|
157
|
-
- lib/super_diff/object_inspection/nodes/nesting.rb
|
158
|
-
- lib/super_diff/object_inspection/nodes/only_when.rb
|
159
|
-
- lib/super_diff/object_inspection/nodes/text.rb
|
160
|
-
- lib/super_diff/object_inspection/nodes/when_empty.rb
|
161
|
-
- lib/super_diff/object_inspection/nodes/when_non_empty.rb
|
162
|
-
- lib/super_diff/object_inspection/nodes/when_rendering_to_lines.rb
|
163
|
-
- lib/super_diff/object_inspection/nodes/when_rendering_to_string.rb
|
164
|
-
- lib/super_diff/object_inspection/prefix_for_next_node.rb
|
165
|
-
- lib/super_diff/object_inspection/prelude_for_next_node.rb
|
166
205
|
- lib/super_diff/operation_tree_builders.rb
|
167
|
-
- lib/super_diff/operation_tree_builders/array.rb
|
168
|
-
- lib/super_diff/operation_tree_builders/base.rb
|
169
|
-
- lib/super_diff/operation_tree_builders/custom_object.rb
|
170
|
-
- lib/super_diff/operation_tree_builders/date_like.rb
|
171
|
-
- lib/super_diff/operation_tree_builders/default_object.rb
|
172
|
-
- lib/super_diff/operation_tree_builders/defaults.rb
|
173
|
-
- lib/super_diff/operation_tree_builders/hash.rb
|
174
|
-
- lib/super_diff/operation_tree_builders/main.rb
|
175
|
-
- lib/super_diff/operation_tree_builders/multiline_string.rb
|
176
|
-
- lib/super_diff/operation_tree_builders/time_like.rb
|
177
206
|
- lib/super_diff/operation_tree_flatteners.rb
|
178
|
-
- lib/super_diff/operation_tree_flatteners/array.rb
|
179
|
-
- lib/super_diff/operation_tree_flatteners/base.rb
|
180
|
-
- lib/super_diff/operation_tree_flatteners/collection.rb
|
181
|
-
- lib/super_diff/operation_tree_flatteners/custom_object.rb
|
182
|
-
- lib/super_diff/operation_tree_flatteners/default_object.rb
|
183
|
-
- lib/super_diff/operation_tree_flatteners/hash.rb
|
184
|
-
- lib/super_diff/operation_tree_flatteners/multiline_string.rb
|
185
207
|
- lib/super_diff/operation_trees.rb
|
186
|
-
- lib/super_diff/operation_trees/array.rb
|
187
|
-
- lib/super_diff/operation_trees/base.rb
|
188
|
-
- lib/super_diff/operation_trees/custom_object.rb
|
189
|
-
- lib/super_diff/operation_trees/default_object.rb
|
190
|
-
- lib/super_diff/operation_trees/defaults.rb
|
191
|
-
- lib/super_diff/operation_trees/hash.rb
|
192
|
-
- lib/super_diff/operation_trees/main.rb
|
193
|
-
- lib/super_diff/operation_trees/multiline_string.rb
|
194
208
|
- lib/super_diff/operations.rb
|
195
|
-
- lib/super_diff/operations/binary_operation.rb
|
196
|
-
- lib/super_diff/operations/unary_operation.rb
|
197
209
|
- lib/super_diff/rails.rb
|
198
|
-
- lib/super_diff/recursion_guard.rb
|
199
210
|
- lib/super_diff/rspec-rails.rb
|
200
211
|
- lib/super_diff/rspec.rb
|
201
212
|
- lib/super_diff/rspec/augmented_matcher.rb
|
@@ -205,6 +216,17 @@ files:
|
|
205
216
|
- lib/super_diff/rspec/differs/collection_including.rb
|
206
217
|
- lib/super_diff/rspec/differs/hash_including.rb
|
207
218
|
- lib/super_diff/rspec/differs/object_having_attributes.rb
|
219
|
+
- lib/super_diff/rspec/inspection_tree_builders.rb
|
220
|
+
- lib/super_diff/rspec/inspection_tree_builders/collection_containing_exactly.rb
|
221
|
+
- lib/super_diff/rspec/inspection_tree_builders/collection_including.rb
|
222
|
+
- lib/super_diff/rspec/inspection_tree_builders/double.rb
|
223
|
+
- lib/super_diff/rspec/inspection_tree_builders/generic_describable_matcher.rb
|
224
|
+
- lib/super_diff/rspec/inspection_tree_builders/hash_including.rb
|
225
|
+
- lib/super_diff/rspec/inspection_tree_builders/instance_of.rb
|
226
|
+
- lib/super_diff/rspec/inspection_tree_builders/kind_of.rb
|
227
|
+
- lib/super_diff/rspec/inspection_tree_builders/object_having_attributes.rb
|
228
|
+
- lib/super_diff/rspec/inspection_tree_builders/primitive.rb
|
229
|
+
- lib/super_diff/rspec/inspection_tree_builders/value_within.rb
|
208
230
|
- lib/super_diff/rspec/matcher_text_builders.rb
|
209
231
|
- lib/super_diff/rspec/matcher_text_builders/base.rb
|
210
232
|
- lib/super_diff/rspec/matcher_text_builders/be_predicate.rb
|
@@ -216,25 +238,11 @@ files:
|
|
216
238
|
- lib/super_diff/rspec/matcher_text_template.rb
|
217
239
|
- lib/super_diff/rspec/monkey_patches.rb
|
218
240
|
- lib/super_diff/rspec/object_inspection.rb
|
219
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders.rb
|
220
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/collection_containing_exactly.rb
|
221
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/collection_including.rb
|
222
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/double.rb
|
223
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/generic_describable_matcher.rb
|
224
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/hash_including.rb
|
225
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/instance_of.rb
|
226
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/kind_of.rb
|
227
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/object_having_attributes.rb
|
228
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/primitive.rb
|
229
|
-
- lib/super_diff/rspec/object_inspection/inspection_tree_builders/value_within.rb
|
230
241
|
- lib/super_diff/rspec/operation_tree_builders.rb
|
231
242
|
- lib/super_diff/rspec/operation_tree_builders/collection_containing_exactly.rb
|
232
243
|
- lib/super_diff/rspec/operation_tree_builders/collection_including.rb
|
233
244
|
- lib/super_diff/rspec/operation_tree_builders/hash_including.rb
|
234
245
|
- lib/super_diff/rspec/operation_tree_builders/object_having_attributes.rb
|
235
|
-
- lib/super_diff/tiered_lines.rb
|
236
|
-
- lib/super_diff/tiered_lines_elider.rb
|
237
|
-
- lib/super_diff/tiered_lines_formatter.rb
|
238
246
|
- lib/super_diff/version.rb
|
239
247
|
- spec/examples.txt
|
240
248
|
- spec/integration/rails/active_record_spec.rb
|
@@ -259,7 +267,6 @@ files:
|
|
259
267
|
- spec/integration/rspec/respond_to_matcher_spec.rb
|
260
268
|
- spec/integration/rspec/third_party_matcher_spec.rb
|
261
269
|
- spec/integration/rspec/unhandled_errors_spec.rb
|
262
|
-
- spec/internal/log/test.log
|
263
270
|
- spec/spec_helper.rb
|
264
271
|
- spec/support/colorizer.rb
|
265
272
|
- spec/support/command_runner.rb
|
@@ -283,6 +290,7 @@ files:
|
|
283
290
|
- spec/support/models/order.rb
|
284
291
|
- spec/support/models/person.rb
|
285
292
|
- spec/support/models/player.rb
|
293
|
+
- spec/support/models/point.rb
|
286
294
|
- spec/support/models/shipping_address.rb
|
287
295
|
- spec/support/shared_examples/active_record.rb
|
288
296
|
- spec/support/shared_examples/active_support.rb
|
@@ -290,16 +298,24 @@ files:
|
|
290
298
|
- spec/support/shared_examples/hash_with_indifferent_access.rb
|
291
299
|
- spec/support/shared_examples/key.rb
|
292
300
|
- spec/support/unit/helpers.rb
|
301
|
+
- spec/support/unit/matchers/be_deprecated_in_favor_of.rb
|
293
302
|
- spec/support/unit/matchers/match_output.rb
|
294
303
|
- spec/unit/active_record/object_inspection_spec.rb
|
295
304
|
- spec/unit/active_support/object_inspection_spec.rb
|
305
|
+
- spec/unit/basic/inspection_tree_builders/data_object_spec.rb
|
306
|
+
- spec/unit/basic/operation_tree_builders/data_object_spec.rb
|
307
|
+
- spec/unit/basic/operation_tree_flatteners/array_spec.rb
|
308
|
+
- spec/unit/basic/operation_tree_flatteners/custom_object_spec.rb
|
309
|
+
- spec/unit/basic/operation_tree_flatteners/default_object_spec.rb
|
310
|
+
- spec/unit/basic/operation_tree_flatteners/hash_spec.rb
|
311
|
+
- spec/unit/basic/operation_tree_flatteners/multiline_string_spec.rb
|
312
|
+
- spec/unit/core/configuration_no_rspec_spec.rb
|
313
|
+
- spec/unit/core/configuration_spec.rb
|
314
|
+
- spec/unit/core/helpers_spec.rb
|
315
|
+
- spec/unit/core/tiered_lines_elider_spec.rb
|
316
|
+
- spec/unit/core/tiered_lines_formatter_spec.rb
|
317
|
+
- spec/unit/deprecations_spec.rb
|
296
318
|
- spec/unit/equality_matchers/main_spec.rb
|
297
|
-
- spec/unit/helpers_spec.rb
|
298
|
-
- spec/unit/operation_tree_flatteners/array_spec.rb
|
299
|
-
- spec/unit/operation_tree_flatteners/custom_object_spec.rb
|
300
|
-
- spec/unit/operation_tree_flatteners/default_object_spec.rb
|
301
|
-
- spec/unit/operation_tree_flatteners/hash_spec.rb
|
302
|
-
- spec/unit/operation_tree_flatteners/multiline_string_spec.rb
|
303
319
|
- spec/unit/rspec/matchers/be_compared_to_spec.rb
|
304
320
|
- spec/unit/rspec/matchers/be_falsey_spec.rb
|
305
321
|
- spec/unit/rspec/matchers/be_nil_spec.rb
|
@@ -318,13 +334,15 @@ files:
|
|
318
334
|
- spec/unit/rspec/object_inspection/rspec_matcher_spec.rb
|
319
335
|
- spec/unit/rspec/object_inspection_spec.rb
|
320
336
|
- spec/unit/super_diff_spec.rb
|
321
|
-
- spec/unit/tiered_lines_elider_spec.rb
|
322
|
-
- spec/unit/tiered_lines_formatter_spec.rb
|
323
337
|
- super_diff.gemspec
|
324
|
-
homepage: https://github.com/
|
338
|
+
homepage: https://github.com/splitwise/super_diff
|
325
339
|
licenses:
|
326
340
|
- MIT
|
327
|
-
metadata:
|
341
|
+
metadata:
|
342
|
+
bug_tracker_uri: https://github.com/splitwise/super_diff/issues
|
343
|
+
changelog_uri: https://github.com/splitwise/super_diff/blob/main/CHANGELOG.md
|
344
|
+
rubygems_mfa_required: 'true'
|
345
|
+
source_code_uri: https://github.com/splitwise/super_diff
|
328
346
|
post_install_message:
|
329
347
|
rdoc_options: []
|
330
348
|
require_paths:
|
@@ -340,7 +358,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
358
|
- !ruby/object:Gem::Version
|
341
359
|
version: '0'
|
342
360
|
requirements: []
|
343
|
-
rubygems_version: 3.
|
361
|
+
rubygems_version: 3.5.18
|
344
362
|
signing_key:
|
345
363
|
specification_version: 4
|
346
364
|
summary: A better way to view differences between complex data structures in RSpec.
|
@@ -368,7 +386,6 @@ test_files:
|
|
368
386
|
- spec/integration/rspec/respond_to_matcher_spec.rb
|
369
387
|
- spec/integration/rspec/third_party_matcher_spec.rb
|
370
388
|
- spec/integration/rspec/unhandled_errors_spec.rb
|
371
|
-
- spec/internal/log/test.log
|
372
389
|
- spec/spec_helper.rb
|
373
390
|
- spec/support/colorizer.rb
|
374
391
|
- spec/support/command_runner.rb
|
@@ -392,6 +409,7 @@ test_files:
|
|
392
409
|
- spec/support/models/order.rb
|
393
410
|
- spec/support/models/person.rb
|
394
411
|
- spec/support/models/player.rb
|
412
|
+
- spec/support/models/point.rb
|
395
413
|
- spec/support/models/shipping_address.rb
|
396
414
|
- spec/support/shared_examples/active_record.rb
|
397
415
|
- spec/support/shared_examples/active_support.rb
|
@@ -399,16 +417,24 @@ test_files:
|
|
399
417
|
- spec/support/shared_examples/hash_with_indifferent_access.rb
|
400
418
|
- spec/support/shared_examples/key.rb
|
401
419
|
- spec/support/unit/helpers.rb
|
420
|
+
- spec/support/unit/matchers/be_deprecated_in_favor_of.rb
|
402
421
|
- spec/support/unit/matchers/match_output.rb
|
403
422
|
- spec/unit/active_record/object_inspection_spec.rb
|
404
423
|
- spec/unit/active_support/object_inspection_spec.rb
|
424
|
+
- spec/unit/basic/inspection_tree_builders/data_object_spec.rb
|
425
|
+
- spec/unit/basic/operation_tree_builders/data_object_spec.rb
|
426
|
+
- spec/unit/basic/operation_tree_flatteners/array_spec.rb
|
427
|
+
- spec/unit/basic/operation_tree_flatteners/custom_object_spec.rb
|
428
|
+
- spec/unit/basic/operation_tree_flatteners/default_object_spec.rb
|
429
|
+
- spec/unit/basic/operation_tree_flatteners/hash_spec.rb
|
430
|
+
- spec/unit/basic/operation_tree_flatteners/multiline_string_spec.rb
|
431
|
+
- spec/unit/core/configuration_no_rspec_spec.rb
|
432
|
+
- spec/unit/core/configuration_spec.rb
|
433
|
+
- spec/unit/core/helpers_spec.rb
|
434
|
+
- spec/unit/core/tiered_lines_elider_spec.rb
|
435
|
+
- spec/unit/core/tiered_lines_formatter_spec.rb
|
436
|
+
- spec/unit/deprecations_spec.rb
|
405
437
|
- spec/unit/equality_matchers/main_spec.rb
|
406
|
-
- spec/unit/helpers_spec.rb
|
407
|
-
- spec/unit/operation_tree_flatteners/array_spec.rb
|
408
|
-
- spec/unit/operation_tree_flatteners/custom_object_spec.rb
|
409
|
-
- spec/unit/operation_tree_flatteners/default_object_spec.rb
|
410
|
-
- spec/unit/operation_tree_flatteners/hash_spec.rb
|
411
|
-
- spec/unit/operation_tree_flatteners/multiline_string_spec.rb
|
412
438
|
- spec/unit/rspec/matchers/be_compared_to_spec.rb
|
413
439
|
- spec/unit/rspec/matchers/be_falsey_spec.rb
|
414
440
|
- spec/unit/rspec/matchers/be_nil_spec.rb
|
@@ -427,5 +453,3 @@ test_files:
|
|
427
453
|
- spec/unit/rspec/object_inspection/rspec_matcher_spec.rb
|
428
454
|
- spec/unit/rspec/object_inspection_spec.rb
|
429
455
|
- spec/unit/super_diff_spec.rb
|
430
|
-
- spec/unit/tiered_lines_elider_spec.rb
|
431
|
-
- spec/unit/tiered_lines_formatter_spec.rb
|
data/lib/super_diff/active_record/object_inspection/inspection_tree_builders/active_record_model.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveRecord
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
class ActiveRecordModel < SuperDiff::ObjectInspection::InspectionTreeBuilders::Base
|
6
|
-
def self.applies_to?(value)
|
7
|
-
value.is_a?(::ActiveRecord::Base)
|
8
|
-
end
|
9
|
-
|
10
|
-
def call
|
11
|
-
SuperDiff::ObjectInspection::InspectionTree.new do |t1|
|
12
|
-
t1.as_lines_when_rendering_to_lines(
|
13
|
-
collection_bookend: :open
|
14
|
-
) do |t2|
|
15
|
-
t2.add_text "#<#{object.class} "
|
16
|
-
|
17
|
-
# stree-ignore
|
18
|
-
t2.when_rendering_to_lines do |t3|
|
19
|
-
t3.add_text "{"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
t1.nested do |t2|
|
24
|
-
t2.insert_separated_list(
|
25
|
-
["id"] + (object.attributes.keys.sort - ["id"])
|
26
|
-
) do |t3, name|
|
27
|
-
t3.as_prefix_when_rendering_to_lines do |t4|
|
28
|
-
t4.add_text "#{name}: "
|
29
|
-
end
|
30
|
-
|
31
|
-
t3.add_inspection_of object.read_attribute(name)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
t1.as_lines_when_rendering_to_lines(
|
36
|
-
collection_bookend: :close
|
37
|
-
) do |t2|
|
38
|
-
# stree-ignore
|
39
|
-
t2.when_rendering_to_lines do |t3|
|
40
|
-
t3.add_text "}"
|
41
|
-
end
|
42
|
-
|
43
|
-
t2.add_text ">"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveRecord
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
class ActiveRecordRelation < SuperDiff::ObjectInspection::InspectionTreeBuilders::Base
|
6
|
-
def self.applies_to?(value)
|
7
|
-
value.is_a?(::ActiveRecord::Relation)
|
8
|
-
end
|
9
|
-
|
10
|
-
def call
|
11
|
-
SuperDiff::ObjectInspection::InspectionTree.new do |t1|
|
12
|
-
# stree-ignore
|
13
|
-
t1.as_lines_when_rendering_to_lines(
|
14
|
-
collection_bookend: :open
|
15
|
-
) do |t2|
|
16
|
-
t2.add_text "#<ActiveRecord::Relation ["
|
17
|
-
end
|
18
|
-
|
19
|
-
# stree-ignore
|
20
|
-
t1.nested do |t2|
|
21
|
-
t2.insert_array_inspection_of(object)
|
22
|
-
end
|
23
|
-
|
24
|
-
# stree-ignore
|
25
|
-
t1.as_lines_when_rendering_to_lines(
|
26
|
-
collection_bookend: :close
|
27
|
-
) do |t2|
|
28
|
-
t2.add_text "]>"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveRecord
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
autoload(
|
6
|
-
:ActiveRecordModel,
|
7
|
-
"super_diff/active_record/object_inspection/inspection_tree_builders/active_record_model"
|
8
|
-
)
|
9
|
-
autoload(
|
10
|
-
:ActiveRecordRelation,
|
11
|
-
"super_diff/active_record/object_inspection/inspection_tree_builders/active_record_relation"
|
12
|
-
)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveSupport
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
class HashWithIndifferentAccess < SuperDiff::ObjectInspection::InspectionTreeBuilders::Base
|
6
|
-
def self.applies_to?(value)
|
7
|
-
value.is_a?(::HashWithIndifferentAccess)
|
8
|
-
end
|
9
|
-
|
10
|
-
def call
|
11
|
-
SuperDiff::ObjectInspection::InspectionTree.new do |t1|
|
12
|
-
# stree-ignore
|
13
|
-
t1.as_lines_when_rendering_to_lines(
|
14
|
-
collection_bookend: :open
|
15
|
-
) do |t2|
|
16
|
-
t2.add_text "#<HashWithIndifferentAccess {"
|
17
|
-
end
|
18
|
-
|
19
|
-
# stree-ignore
|
20
|
-
t1.when_rendering_to_string do |t2|
|
21
|
-
t2.add_text " "
|
22
|
-
end
|
23
|
-
|
24
|
-
# stree-ignore
|
25
|
-
t1.nested do |t2|
|
26
|
-
t2.insert_hash_inspection_of(object)
|
27
|
-
end
|
28
|
-
|
29
|
-
# stree-ignore
|
30
|
-
t1.when_rendering_to_string do |t2|
|
31
|
-
t2.add_text " "
|
32
|
-
end
|
33
|
-
|
34
|
-
# stree-ignore
|
35
|
-
t1.as_lines_when_rendering_to_lines(
|
36
|
-
collection_bookend: :close
|
37
|
-
) do |t2|
|
38
|
-
t2.add_text "}>"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
data/lib/super_diff/active_support/object_inspection/inspection_tree_builders/ordered_options.rb
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveSupport
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
class OrderedOptions < SuperDiff::ObjectInspection::InspectionTreeBuilders::Hash
|
6
|
-
def self.applies_to?(value)
|
7
|
-
value.is_a?(::ActiveSupport::OrderedOptions)
|
8
|
-
end
|
9
|
-
|
10
|
-
def call
|
11
|
-
SuperDiff::ObjectInspection::InspectionTree.new do |t1|
|
12
|
-
# stree-ignore
|
13
|
-
t1.as_lines_when_rendering_to_lines(
|
14
|
-
collection_bookend: :open
|
15
|
-
) do |t2|
|
16
|
-
t2.add_text "#<OrderedOptions {"
|
17
|
-
end
|
18
|
-
|
19
|
-
# stree-ignore
|
20
|
-
t1.when_rendering_to_string do |t2|
|
21
|
-
t2.add_text " "
|
22
|
-
end
|
23
|
-
|
24
|
-
# stree-ignore
|
25
|
-
t1.nested do |t2|
|
26
|
-
t2.insert_hash_inspection_of(object.to_hash)
|
27
|
-
end
|
28
|
-
|
29
|
-
# stree-ignore
|
30
|
-
t1.when_rendering_to_string do |t2|
|
31
|
-
t2.add_text " "
|
32
|
-
end
|
33
|
-
|
34
|
-
# stree-ignore
|
35
|
-
t1.as_lines_when_rendering_to_lines(
|
36
|
-
collection_bookend: :close
|
37
|
-
) do |t2|
|
38
|
-
t2.add_text "}>"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ActiveSupport
|
3
|
-
module ObjectInspection
|
4
|
-
module InspectionTreeBuilders
|
5
|
-
autoload(
|
6
|
-
:HashWithIndifferentAccess,
|
7
|
-
"super_diff/active_support/object_inspection/inspection_tree_builders/hash_with_indifferent_access"
|
8
|
-
)
|
9
|
-
autoload(
|
10
|
-
:OrderedOptions,
|
11
|
-
"super_diff/active_support/object_inspection/inspection_tree_builders/ordered_options"
|
12
|
-
)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module SuperDiff
|
2
|
-
module ColorizedDocumentExtensions
|
3
|
-
def self.extended(extendee)
|
4
|
-
extendee.singleton_class.class_eval { alias_method :normal, :text }
|
5
|
-
end
|
6
|
-
|
7
|
-
%i[actual border elision_marker expected header].each do |method_name|
|
8
|
-
define_method(method_name) do |*args, **opts, &block|
|
9
|
-
colorize(
|
10
|
-
*args,
|
11
|
-
**opts,
|
12
|
-
fg: SuperDiff.configuration.public_send("#{method_name}_color"),
|
13
|
-
&block
|
14
|
-
)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|