rails_app_generator 0.0.11 → 0.0.14
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/.builders/generators/project-plan.rb +5 -3
- data/CHANGELOG.md +21 -0
- data/docs/project-plan/project.drawio +23 -20
- data/docs/project-plan/project_done.svg +1 -1
- data/docs/project-plan/project_in_progress.svg +1 -1
- data/docs/project-plan/project_todo.svg +1 -1
- data/lib/rails_app_generator/cli.rb +30 -6
- data/lib/rails_app_generator/diff/compare_info.rb +5 -31
- data/lib/rails_app_generator/diff/file_pair.rb +6 -6
- data/lib/rails_app_generator/diff/open_in_editor.rb +37 -42
- data/lib/rails_app_generator/diff/report.rb +7 -5
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '07284fb4865049e6fad800ed152f5ad22ab5e96502d811d0b27c8d2ab5e1bdf2'
|
|
4
|
+
data.tar.gz: 994c47eb123d46a42941097f2b03d4b145f3048e39e8c8f0f36aaec92e9e740c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26dc901faabfdee4e8e64c8a0d93fdcfc0173e28f10ea7ad02866f5175a46b9af337f99d56000fe43e7aaafa0c43c6da409112b6ac3fead0611455d81b3ecab5
|
|
7
|
+
data.tar.gz: a9bed3af5760ad92393a0e17f25a28495712860c09356ea4e56bbb27e315b31d041ffff44a6fbfe7dbec0ee7522ab42024b4d261bb899ddc6680a2a0873a75b2
|
|
@@ -10,15 +10,15 @@ KManager.action :project_plan do
|
|
|
10
10
|
|
|
11
11
|
grid_layout(y: 90, direction: :horizontal, grid_h: 80, grid_w: 320, wrap_at: 3, grid: 0)
|
|
12
12
|
|
|
13
|
-
todo(title: '
|
|
13
|
+
todo(title: 'cli support for profile')
|
|
14
|
+
|
|
14
15
|
end
|
|
15
16
|
.page('To Do', theme: :style_02, margin_left: 0, margin_top: 0) do
|
|
16
17
|
|
|
17
18
|
# h5(x: 300, y: 0, w: 400, h: 80, title: 'DrawIO DSL')
|
|
18
19
|
# p(x: 350, y: 40, w: 400, h: 80, title: 'Project plan')
|
|
19
20
|
|
|
20
|
-
todo(title: 'cli support for diff')
|
|
21
|
-
todo(title: 'cli support for profile')
|
|
21
|
+
todo(title: 'cli help support for diff')
|
|
22
22
|
todo(title: 'cli support for rails new (rag new should work like rails new) - buggy, need to work through')
|
|
23
23
|
todo(title: 'need an option for deleting target project path') # FileUtils.rm_rf(instance.target_path)
|
|
24
24
|
|
|
@@ -30,6 +30,8 @@ KManager.action :project_plan do
|
|
|
30
30
|
# h5(x: 300, y: 0, w: 400, h: 80, title: 'DrawIO DSL')
|
|
31
31
|
# p(x: 350, y: 40, w: 400, h: 80, title: 'Done')
|
|
32
32
|
|
|
33
|
+
todo(title: 'cli support for diff')
|
|
34
|
+
todo(title: 'add diff tool - open in editor')
|
|
33
35
|
todo(title: 'add diff tool supporting lhs only, rhs only, same and different')
|
|
34
36
|
todo(title: 'add project plan to do list')
|
|
35
37
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [0.0.13](https://github.com/klueless-io/rails_app_generator/compare/v0.0.12...v0.0.13) (2022-07-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* better attribute names ([9cdc5dc](https://github.com/klueless-io/rails_app_generator/commit/9cdc5dc24a4d2402efed68ddbf71e461ee870bbe))
|
|
7
|
+
|
|
8
|
+
## [0.0.12](https://github.com/klueless-io/rails_app_generator/compare/v0.0.11...v0.0.12) (2022-07-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add support for open in editor in diff tool ([9d94e26](https://github.com/klueless-io/rails_app_generator/commit/9d94e261c6bac8d17c65da00d6d7d8e2907422ae))
|
|
14
|
+
|
|
15
|
+
## [0.0.11](https://github.com/klueless-io/rails_app_generator/compare/v0.0.10...v0.0.11) (2022-07-25)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* add support for FilePairs in diff tool ([e330e1c](https://github.com/klueless-io/rails_app_generator/commit/e330e1c3db06ac2710893a3909f36af290727b57))
|
|
21
|
+
|
|
1
22
|
## [0.0.10](https://github.com/klueless-io/rails_app_generator/compare/v0.0.9...v0.0.10) (2022-07-25)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
<mxfile host="
|
|
2
|
-
<diagram id="
|
|
1
|
+
<mxfile host="zY2">
|
|
2
|
+
<diagram id="UqU" name="In progress">
|
|
3
3
|
<mxGraphModel dx="0" dy="0" background="#FFFAFA" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
|
4
4
|
<root>
|
|
5
|
-
<mxCell id="
|
|
6
|
-
<mxCell id="
|
|
7
|
-
<mxCell id="
|
|
5
|
+
<mxCell id="page_root_UqU" parent="UqU"/>
|
|
6
|
+
<mxCell id="node_root_UqU" parent="page_root_UqU"/>
|
|
7
|
+
<mxCell id="UqU-1" value="DrawIO DSL" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fontColor=#1F2D3D;text;fontSize=28;fontStyle=1;fillColor=none" vertex="1" parent="node_root_UqU">
|
|
8
8
|
<mxGeometry x="300" y="0" width="400" height="80" as="geometry"/>
|
|
9
9
|
</mxCell>
|
|
10
|
-
<mxCell id="
|
|
10
|
+
<mxCell id="UqU-3" value="cli support for profile" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333" vertex="1" parent="node_root_UqU">
|
|
11
11
|
<mxGeometry x="10" y="10" width="300" height="60" as="geometry"/>
|
|
12
12
|
</mxCell>
|
|
13
13
|
</root>
|
|
14
14
|
</mxGraphModel>
|
|
15
15
|
</diagram>
|
|
16
|
-
<diagram id="
|
|
16
|
+
<diagram id="ps5" name="To Do">
|
|
17
17
|
<mxGraphModel dx="0" dy="0" background="#FFFAFA" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
|
18
18
|
<root>
|
|
19
|
-
<mxCell id="
|
|
20
|
-
<mxCell id="
|
|
21
|
-
<mxCell id="
|
|
19
|
+
<mxCell id="page_root_ps5" parent="ps5"/>
|
|
20
|
+
<mxCell id="node_root_ps5" parent="page_root_ps5"/>
|
|
21
|
+
<mxCell id="ps5-1" value="cli help support for diff" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333" vertex="1" parent="node_root_ps5">
|
|
22
22
|
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
23
23
|
</mxCell>
|
|
24
|
-
<mxCell id="
|
|
24
|
+
<mxCell id="ps5-2" value="cli support for rails new (rag new should work like rails new) - buggy, need to work through" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333" vertex="1" parent="node_root_ps5">
|
|
25
25
|
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
26
26
|
</mxCell>
|
|
27
|
-
<mxCell id="
|
|
28
|
-
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
29
|
-
</mxCell>
|
|
30
|
-
<mxCell id="Ip4-4" value="need an option for deleting target project path" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333" vertex="1" parent="node_root_Ip4">
|
|
27
|
+
<mxCell id="ps5-3" value="need an option for deleting target project path" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333" vertex="1" parent="node_root_ps5">
|
|
31
28
|
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
32
29
|
</mxCell>
|
|
33
30
|
</root>
|
|
34
31
|
</mxGraphModel>
|
|
35
32
|
</diagram>
|
|
36
|
-
<diagram id="
|
|
33
|
+
<diagram id="CmN" name="Done">
|
|
37
34
|
<mxGraphModel dx="0" dy="0" background="#FFFAFA" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
|
38
35
|
<root>
|
|
39
|
-
<mxCell id="
|
|
40
|
-
<mxCell id="
|
|
41
|
-
<mxCell id="
|
|
36
|
+
<mxCell id="page_root_CmN" parent="CmN"/>
|
|
37
|
+
<mxCell id="node_root_CmN" parent="page_root_CmN"/>
|
|
38
|
+
<mxCell id="CmN-1" value="cli support for diff" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_CmN">
|
|
39
|
+
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
40
|
+
</mxCell>
|
|
41
|
+
<mxCell id="CmN-2" value="add diff tool - open in editor" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_CmN">
|
|
42
|
+
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
43
|
+
</mxCell>
|
|
44
|
+
<mxCell id="CmN-3" value="add diff tool supporting lhs only, rhs only, same and different" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_CmN">
|
|
42
45
|
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
43
46
|
</mxCell>
|
|
44
|
-
<mxCell id="
|
|
47
|
+
<mxCell id="CmN-4" value="add project plan to do list" style="whiteSpace=wrap;html=1;rounded=1;glass=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_CmN">
|
|
45
48
|
<mxGeometry x="0" y="0" width="300" height="60" as="geometry"/>
|
|
46
49
|
</mxCell>
|
|
47
50
|
</root>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="302px" height="62px" viewBox="-0.5 -0.5 302 62"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">add diff tool supporting lhs only, rhs only, same and different</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">add diff tool supporting lhs only, rhs only, same...</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">add project plan to do list</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">add project plan to do list</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="302px" height="62px" viewBox="-0.5 -0.5 302 62"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli support for diff</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">cli support for diff</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">add diff tool - open in editor</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">add diff tool - open in editor</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">add diff tool supporting lhs only, rhs only, same and different</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">add diff tool supporting lhs only, rhs only, same...</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">add project plan to do list</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">add project plan to do list</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="692px" height="82px" viewBox="-0.5 -0.5 692 82"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="290" y="0" width="400" height="80" rx="12" ry="12" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 398px; height: 1px; padding-top: 7px; margin-left: 292px;"><div data-drawio-colors="color: #1F2D3D; " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 28px; font-family: Helvetica; color: rgb(31, 45, 61); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">DrawIO DSL</div></div></div></foreignObject><text x="292" y="35" fill="#1F2D3D" font-family="Helvetica" font-size="28px" font-weight="bold">DrawIO DSL</text></switch></g><rect x="0" y="10" width="300" height="60" rx="9" ry="9" fill="#d5e8d4" stroke="#82b366" pointer-events="all"/><path d="M 10.15 9 Q -1 9 -1 20.15 L -1 34 Q 150 52 301 34 L 301 20.15 Q 301 9 289.85 9 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 40px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="692px" height="82px" viewBox="-0.5 -0.5 692 82"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="290" y="0" width="400" height="80" rx="12" ry="12" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-start; justify-content: unsafe flex-start; width: 398px; height: 1px; padding-top: 7px; margin-left: 292px;"><div data-drawio-colors="color: #1F2D3D; " style="box-sizing: border-box; font-size: 0px; text-align: left;"><div style="display: inline-block; font-size: 28px; font-family: Helvetica; color: rgb(31, 45, 61); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">DrawIO DSL</div></div></div></foreignObject><text x="292" y="35" fill="#1F2D3D" font-family="Helvetica" font-size="28px" font-weight="bold">DrawIO DSL</text></switch></g><rect x="0" y="10" width="300" height="60" rx="9" ry="9" fill="#d5e8d4" stroke="#82b366" pointer-events="all"/><path d="M 10.15 9 Q -1 9 -1 20.15 L -1 34 Q 150 52 301 34 L 301 20.15 Q 301 9 289.85 9 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 40px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli support for profile</div></div></div></foreignObject><text x="150" y="44" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">cli support for profile</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="302px" height="62px" viewBox="-0.5 -0.5 302 62"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli support for diff</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">cli support for diff</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli support for
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="302px" height="62px" viewBox="-0.5 -0.5 302 62"><defs><linearGradient x1="0%" y1="0%" x2="0%" y2="100%" id="mx-gradient-ffffff-0.9-ffffff-0.1-s-0"><stop offset="0%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.9;"/><stop offset="100%" style="stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"/></linearGradient></defs><g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli help support for diff</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">cli help support for diff</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">cli support for rails new (rag new should work like rails new) - buggy, need to work through</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">cli support for rails new (rag new should work lik...</text></switch></g><rect x="0" y="0" width="300" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><path d="M 10.15 -1 Q -1 -1 -1 10.15 L -1 24 Q 150 42 301 24 L 301 10.15 Q 301 -1 289.85 -1 Z" fill="url(#mx-gradient-ffffff-0.9-ffffff-0.1-s-0)" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 298px; height: 1px; padding-top: 30px; margin-left: 1px;"><div data-drawio-colors="color: #333333; " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(51, 51, 51); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">need an option for deleting target project path</div></div></div></foreignObject><text x="150" y="34" fill="#333333" font-family="Helvetica" font-size="12px" text-anchor="middle">need an option for deleting target project path</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.diagrams.net/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
|
|
@@ -4,21 +4,45 @@ module RailsAppGenerator
|
|
|
4
4
|
# Thor CLI
|
|
5
5
|
class Cli < Thor
|
|
6
6
|
desc 'diff lhs_folder rhs_folder [options]', 'Diff two different rails folders'
|
|
7
|
-
option :lhs , type: :boolean
|
|
8
|
-
option :rhs , type: :boolean
|
|
9
|
-
option :compare , type: :boolean
|
|
10
7
|
|
|
8
|
+
# Run report to console for following options
|
|
9
|
+
option :show_left_only , type: :boolean
|
|
10
|
+
option :show_right_only , type: :boolean
|
|
11
|
+
option :show_same , type: :boolean
|
|
12
|
+
option :show_different , type: :boolean
|
|
13
|
+
|
|
14
|
+
# Open files in VSCode for for following options
|
|
15
|
+
option :open_left_only , type: :boolean
|
|
16
|
+
option :open_right_only , type: :boolean
|
|
17
|
+
option :open_same , type: :boolean
|
|
18
|
+
option :open_different , type: :boolean
|
|
19
|
+
|
|
20
|
+
# rubocop:disable Metrics/AbcSize
|
|
11
21
|
def diff(lhs_folder, rhs_folder)
|
|
12
22
|
# puts "Diffing #{lhs_folder} and #{rhs_folder}"
|
|
13
23
|
# puts JSON.pretty_generate(options)
|
|
14
24
|
processor = RailsAppGenerator::Diff::Processor.new(lhs_folder, rhs_folder)
|
|
15
25
|
compare_info = processor.compare
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
report = RailsAppGenerator::Diff::Report.new(
|
|
28
|
+
compare_info,
|
|
29
|
+
show_left_only: options[:show_left_only],
|
|
30
|
+
show_right_only: options[:show_right_only],
|
|
31
|
+
show_same: options[:show_same],
|
|
32
|
+
show_different: options[:show_different]
|
|
33
|
+
)
|
|
34
|
+
report.display
|
|
18
35
|
|
|
19
|
-
|
|
20
|
-
|
|
36
|
+
vscode = RailsAppGenerator::Diff::OpenInEditor.new(
|
|
37
|
+
compare_info,
|
|
38
|
+
open_left_only: options[:open_left_only],
|
|
39
|
+
open_right_only: options[:open_right_only],
|
|
40
|
+
open_same: options[:open_same],
|
|
41
|
+
open_different: options[:show_different]
|
|
42
|
+
)
|
|
43
|
+
vscode.open
|
|
21
44
|
end
|
|
45
|
+
# rubocop:enable Metrics/AbcSize
|
|
22
46
|
|
|
23
47
|
# def initialize(profile_file)
|
|
24
48
|
# @profile_file = profile_file
|
|
@@ -31,32 +31,6 @@ module RailsAppGenerator
|
|
|
31
31
|
segment_files(lhs_path, lhs_files, rhs_path, rhs_files)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def lhs_file_info(type)
|
|
35
|
-
case type
|
|
36
|
-
when :lhs_only
|
|
37
|
-
rel_abs_file(lhs_path, lhs_only)
|
|
38
|
-
when :rhs_only
|
|
39
|
-
[] # there should be no right hand side files for the left hand path
|
|
40
|
-
when :same
|
|
41
|
-
rel_abs_file(lhs_path, same)
|
|
42
|
-
when :diff
|
|
43
|
-
rel_abs_file(lhs_path, diff)
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def rhs_file_info(type)
|
|
48
|
-
case type
|
|
49
|
-
when :lhs_only
|
|
50
|
-
[] # there should be no left hand side files for the right hand path
|
|
51
|
-
when :rhs_only
|
|
52
|
-
rel_abs_file(rhs_path, rhs_only)
|
|
53
|
-
when :same
|
|
54
|
-
rel_abs_file(rhs_path, same)
|
|
55
|
-
when :diff
|
|
56
|
-
rel_abs_file(rhs_path, diff)
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
34
|
def debug
|
|
61
35
|
debug_stats
|
|
62
36
|
debug_files('left only' , lhs_only)
|
|
@@ -73,14 +47,14 @@ module RailsAppGenerator
|
|
|
73
47
|
rhs_only = rhs_files - lhs_files
|
|
74
48
|
matching_files = lhs_files & rhs_files
|
|
75
49
|
|
|
76
|
-
@lhs_only = lhs_only.map { |file| FilePair.new(file,
|
|
77
|
-
@rhs_only = rhs_only.map { |file| FilePair.new(file,
|
|
50
|
+
@lhs_only = lhs_only.map { |file| FilePair.new(file, lhs_file: File.join(lhs_path, file)) }
|
|
51
|
+
@rhs_only = rhs_only.map { |file| FilePair.new(file, rhs_file: File.join(rhs_path, file)) }
|
|
78
52
|
|
|
79
53
|
matching_files.each do |file|
|
|
80
54
|
file_pair = FilePair.new(
|
|
81
55
|
file,
|
|
82
|
-
|
|
83
|
-
|
|
56
|
+
lhs_file: File.join(lhs_path, file),
|
|
57
|
+
rhs_file: File.join(rhs_path, file)
|
|
84
58
|
)
|
|
85
59
|
|
|
86
60
|
if FileUtils.compare_file(File.join(lhs_path, file), File.join(rhs_path, file))
|
|
@@ -114,7 +88,7 @@ module RailsAppGenerator
|
|
|
114
88
|
|
|
115
89
|
def debug_files(heading, files)
|
|
116
90
|
Util.line(heading)
|
|
117
|
-
puts files.any? ? files : 'NO FILES'
|
|
91
|
+
puts files.any? ? files.map(&:file) : 'NO FILES'
|
|
118
92
|
end
|
|
119
93
|
end
|
|
120
94
|
end
|
|
@@ -4,14 +4,14 @@ module RailsAppGenerator
|
|
|
4
4
|
module Diff
|
|
5
5
|
# FilePair stores the relative file path, plus the absolute file for both Left and Right site
|
|
6
6
|
class FilePair
|
|
7
|
-
attr_reader :file
|
|
8
|
-
attr_reader :
|
|
9
|
-
attr_reader :
|
|
7
|
+
attr_reader :file # relative file
|
|
8
|
+
attr_reader :lhs_file # absolute file for left hand side
|
|
9
|
+
attr_reader :rhs_file # absolute file for right hand side
|
|
10
10
|
|
|
11
|
-
def initialize(file,
|
|
11
|
+
def initialize(file, lhs_file: nil, rhs_file: nil)
|
|
12
12
|
@file = file
|
|
13
|
-
@
|
|
14
|
-
@
|
|
13
|
+
@lhs_file = lhs_file
|
|
14
|
+
@rhs_file = rhs_file
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
end
|
|
@@ -1,44 +1,39 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
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
|
-
# end
|
|
41
|
-
|
|
42
|
-
# end
|
|
43
|
-
# end
|
|
44
|
-
# end
|
|
3
|
+
module RailsAppGenerator
|
|
4
|
+
module Diff
|
|
5
|
+
# Diff Report
|
|
6
|
+
class OpenInEditor
|
|
7
|
+
attr_reader :info
|
|
8
|
+
|
|
9
|
+
attr_reader :open_left_only
|
|
10
|
+
attr_reader :open_right_only
|
|
11
|
+
attr_reader :open_same
|
|
12
|
+
attr_reader :open_different
|
|
13
|
+
|
|
14
|
+
def initialize(compare_info, **opts)
|
|
15
|
+
@info = compare_info
|
|
16
|
+
|
|
17
|
+
@open_left_only = opts[:open_left_only].nil? ? false : opts[:open_left_only]
|
|
18
|
+
@open_right_only = opts[:open_right_only].nil? ? true : opts[:open_right_only]
|
|
19
|
+
@open_same = opts[:open_same].nil? ? false : opts[:open_same]
|
|
20
|
+
@open_different = opts[:open_different].nil? ? true : opts[:open_different]
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def open
|
|
24
|
+
open_files(info.lhs_only) if open_left_only
|
|
25
|
+
open_files(info.rhs_only) if open_right_only
|
|
26
|
+
open_files(info.same) if open_same
|
|
27
|
+
open_files(info.diff) if open_different
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
private
|
|
31
|
+
|
|
32
|
+
def open_files(files)
|
|
33
|
+
files.map do |f|
|
|
34
|
+
system("code --diff #{f.lhs_file} #{f.rhs_file}")
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -14,10 +14,10 @@ module RailsAppGenerator
|
|
|
14
14
|
def initialize(compare_info, **opts)
|
|
15
15
|
@info = compare_info
|
|
16
16
|
|
|
17
|
-
@show_left_only = opts[:show_left_only].nil?
|
|
18
|
-
@show_right_only = opts[:show_right_only].nil?
|
|
19
|
-
@show_same = opts[:show_same].nil?
|
|
20
|
-
@show_different = opts[:show_different].nil?
|
|
17
|
+
@show_left_only = opts[:show_left_only].nil? ? false : opts[:show_left_only]
|
|
18
|
+
@show_right_only = opts[:show_right_only].nil? ? true : opts[:show_right_only]
|
|
19
|
+
@show_same = opts[:show_same].nil? ? false : opts[:show_same]
|
|
20
|
+
@show_different = opts[:show_different].nil? ? true : opts[:show_different]
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def display
|
|
@@ -30,8 +30,10 @@ module RailsAppGenerator
|
|
|
30
30
|
private
|
|
31
31
|
|
|
32
32
|
def display_files(heading, files)
|
|
33
|
+
return if files.empty?
|
|
34
|
+
|
|
33
35
|
Util.line(heading)
|
|
34
|
-
puts files.
|
|
36
|
+
puts files.map(&:file)
|
|
35
37
|
end
|
|
36
38
|
end
|
|
37
39
|
end
|
data/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rails_app_generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "rails_app_generator",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.14",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
|
12
12
|
"@semantic-release/changelog": "^6.0.1",
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_app_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Cruwys
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-07-
|
|
11
|
+
date: 2022-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bootsnap
|