Commit 8845c20
committed
Do some reorganizing
* Rename "function" classes to Main, e.g., Differ -> Differs::Main.
This makes it easier to Ctrl-P for the right files (if you were
looking for differ.rb you might get differs/something_else.rb).
* Change inspector classes so that what they return match what they're
named after. That is, previously an Inspector actually was an
InspectionTree object, and now the InspectionTree lives inside the
Inspector.
* Remove the inspector Map, as well as the MapExtensions which are used
by extension modules such as `super_diff/rspec`,
`super_diff/active_record`, etc., in favor of the same registry
mechanism that differs, operational sequencers, etc. use.
* Pluralize extension points in the Configuration object so that you can
provide more than one custom differ, operational sequencer, etc., at a
time.
This reorganization is in preparation for introducing new classes in the
future around eliding diff output.1 parent ce1bb2f commit 8845c20
File tree
85 files changed
+957
-691
lines changed- gemfiles
- lib
- super_diff
- active_record/object_inspection
- inspectors
- active_support/object_inspection
- inspectors
- diff_formatters
- differs
- equality_matchers
- errors
- object_inspection
- inspectors
- operation_sequences
- operational_sequencers
- rspec
- object_inspection
- inspectors
- spec/unit/equality_matchers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
85 files changed
+957
-691
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | | - | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments