Commit fc418c1
authored
Reorganize codebase (#230)
In attempting to detail the architecture of this codebase, I realized
that it would be easier if the parts of SuperDiff that implemented
differs, inspection tree builders, operation tree builders, operation
tree flatteners, and operation trees for Ruby objects were split off
into their own directory. To that end, alongside RSpec, ActiveRecord,
and ActiveSupport, there is now a "Basic" feature module. In addition,
to make the file structure a little flatter, I've also renamed
`InspectionTreeBuilders` in various feature modules up one level (so,
`ObjectInspection::InspectionTreeBuilders` is now simply
`InspectionTreeBuilders`).
Following this change, SuperDiff can now be divided into 4 layers (here
I'm putting CSI in brackets because it's not a public module):
```
----------------- [SuperDiff::CSI]
/ / |
/ SuperDiff::Core ----------------------
| / | \ | \
| /^^^^^^ | SuperDiff::Basic \
| / | / | \ \
| | /^^^^^^^^^^^|^^^^ | ^^^^^^^^^^^^^\ \
SuperDiff::RSpec SuperDiff::ActiveRecord SuperDiff::ActiveSupport
```
Here is a full list of renames:
- The following constants that were previously available under
`SuperDiff` are now located under `SuperDiff::Core`:
- `ColorizedDocumentExtensions`
- `Configuration`
- `GemVersion`
- `Helpers`
- `ImplementationChecks`
- `Line`
- `RecursionGuard`
- `TieredLines`
- `TieredLinesElider`
- `TieredLinesFormatter`
- Everything under `SuperDiff::Differs` is now under
`SuperDiff::Basic::Differs`
- All error classes under `SuperDiff::Errors` have been moved out and
are now directly under `SuperDiff::Core`
- `SuperDiff::ObjectInspection::InspectionTree` is now
`SuperDiff::Core::InspectionTree`
- Everything under `SuperDiff::ObjectInspection::InspectionTreeBuilders`
is now under `SuperDiff::Core::InspectionTreeBuilders`
- Everything under `SuperDiff::ObjectInspection::Nodes` is now under
`SuperDiff::Core::InspectionTreeNodes`
- Everything under `SuperDiff::OperationTreeBuilders` is now under
`SuperDiff::Basic::OperationTreeBuilders`
- Everything under `SuperDiff::OperationTreeFlatteners` is now under
`SuperDiff::Basic::OperationTreeFlatteners`
- Everything under `SuperDiff::OperationTrees` is now under
`SuperDiff::Basic::OperationTrees`
- Everything under `SuperDiff::Operations` has been moved out and is now
directly under `SuperDiff::Core`
- Everything under
`SuperDiff::ActiveRecord::ObjectInspection::InspectionTreeBuilders` is
now under `SuperDiff::ActiveRecord::InspectionTreeBuilders`
- Everything under
`SuperDiff::ActiveSupport::ObjectInspection::InspectionTreeBuilders` is
now under `SuperDiff::ActiveSupport::InspectionTreeBuilders`
- Everything under
`SuperDiff::RSpec::ObjectInspection::InspectionTreeBuilders` is now
under `SuperDiff::RSpec::InspectionTreeBuilders`
To maintain backward compatibility, I've left all of the original
constants in place, but they will now print deprecation warnings when
used. I will remove them in 1.0.0.1 parent 4625998 commit fc418c1
File tree
221 files changed
+4202
-3504
lines changed- lib
- super_diff
- active_record
- differs
- inspection_tree_builders
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- operation_tree_flatteners
- operation_trees
- active_support
- differs
- inspection_tree_builders
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- operation_tree_flatteners
- operation_trees
- basic
- diff_formatters
- differs
- inspection_tree_builders
- operation_tree_builders
- operation_tree_flatteners
- operation_trees
- core
- inspection_tree_nodes
- diff_formatters
- differs
- equality_matchers
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- operation_tree_flatteners
- operation_trees
- rspec
- differs
- inspection_tree_builders
- object_inspection
- inspection_tree_builders
- operation_tree_builders
- spec
- support
- integration
- unit
- matchers
- unit
- basic/operation_tree_flatteners
- core
- equality_matchers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
221 files changed
+4202
-3504
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
13 | 6 | | |
14 | | - | |
15 | 7 | | |
16 | 8 | | |
17 | 9 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 10 | | |
26 | | - | |
27 | 11 | | |
| 12 | + | |
| 13 | + | |
28 | 14 | | |
29 | | - | |
30 | 15 | | |
31 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
39 | 82 | | |
40 | 83 | | |
41 | 84 | | |
42 | | - | |
| 85 | + | |
43 | 86 | | |
44 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
45 | 91 | | |
46 | 92 | | |
47 | 93 | | |
| |||
87 | 133 | | |
88 | 134 | | |
89 | 135 | | |
| 136 | + | |
| 137 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
16 | 12 | | |
17 | 13 | | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
8 | 20 | | |
9 | 21 | | |
10 | 22 | | |
Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 0 additions & 51 deletions
This file was deleted.
0 commit comments