rails_template_18f 0.7.0 → 0.7.1
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/generators/rails_template18f/oscal/oscal_generator.rb +37 -13
- data/lib/rails_template18f/version.rb +1 -1
- data/template.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec09af68270ab8a9c37472e382f4f5c847e2b14a5d865d5d0b161fdb7a5fc6c2
|
|
4
|
+
data.tar.gz: f83f58fc2fe89dc1d9516874138452ac2a6331aebaee7db9458abe1bc72c2cd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63584d2d0737790f36294c34e7e8d3611cf2d4e930e6664582b1d812e9d6117b609ba1912f40a2243d5bb24178cf989fddc1c3db8e29f41e178e188bd1e576bd
|
|
7
|
+
data.tar.gz: 6e78c92eb7cb24522aedb57c91a82ba077fd6780f4b34f0f138953e0ca4992daefcf610e0a934c10f32fee785e7dd72335ea2fbd87e4839d64dbae42cdc6a592
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.7.1] - 2022-07-05
|
|
4
|
+
|
|
5
|
+
- fix issue with initial git commit when no OSCAL docs were updated during initial app creation
|
|
6
|
+
- add extra content to project README about working with submodules
|
|
7
|
+
|
|
3
8
|
## [0.7.0] - 2022-07-05
|
|
4
9
|
|
|
5
10
|
- OSCAL generator to integrate with https://github.com/GSA-TTS/compliance-template
|
data/Gemfile.lock
CHANGED
|
@@ -44,30 +44,54 @@ module RailsTemplate18f
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
def configure_submodule
|
|
48
|
+
unless detach?
|
|
49
|
+
git config: "-f .gitmodules submodule.\"doc/compliance/oscal\".branch #{branch_name}"
|
|
50
|
+
git config: "diff.submodule log"
|
|
51
|
+
git config: "status.submodulesummary 1"
|
|
52
|
+
git config: "push.recurseSubmodules check"
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
47
56
|
no_tasks do
|
|
48
57
|
def branch_name
|
|
49
58
|
options[:branch].present? ? options[:branch] : app_name
|
|
50
59
|
end
|
|
51
60
|
|
|
52
61
|
def readme_contents
|
|
53
|
-
|
|
54
|
-
<<~README
|
|
62
|
+
content = <<~README
|
|
55
63
|
|
|
56
|
-
|
|
64
|
+
### Compliance Documentation
|
|
57
65
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
Security Controls should be documented within doc/compliance/oscal.
|
|
67
|
+
README
|
|
68
|
+
return content if detach?
|
|
69
|
+
<<~README
|
|
70
|
+
#{content}
|
|
62
71
|
|
|
63
|
-
|
|
72
|
+
#### Git Submodule Commands
|
|
64
73
|
|
|
65
|
-
|
|
74
|
+
See git's [submodule documentation](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
|
75
|
+
for more information on tracking changes to these files.
|
|
66
76
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
##### Cloning this project
|
|
78
|
+
|
|
79
|
+
`git clone --recurse-submodules <<REPO_ADDRESS>>`
|
|
80
|
+
|
|
81
|
+
##### Pull changes including OSCAL changes
|
|
82
|
+
|
|
83
|
+
`git pull --recurse-submodules`
|
|
84
|
+
|
|
85
|
+
##### Push changes including OSCAL changes
|
|
86
|
+
|
|
87
|
+
`git push --recurse-submodules=check` _then_ `git push --recurse-submodules=on-demand`
|
|
88
|
+
|
|
89
|
+
##### Helpful config settings:
|
|
90
|
+
|
|
91
|
+
* `git config diff.submodule log`
|
|
92
|
+
* `git config status.submodulesummary 1`
|
|
93
|
+
* `git config push.recurseSubmodules check`
|
|
94
|
+
README
|
|
71
95
|
end
|
|
72
96
|
|
|
73
97
|
def detach?
|
data/template.rb
CHANGED
|
@@ -483,7 +483,8 @@ after_bundle do
|
|
|
483
483
|
EOM
|
|
484
484
|
if compliance_template_submodule
|
|
485
485
|
inside "doc/compliance/oscal" do
|
|
486
|
-
|
|
486
|
+
run "git add -A"
|
|
487
|
+
run "git diff-index --quiet HEAD || git commit -am 'rails-template generated control statements'"
|
|
487
488
|
end
|
|
488
489
|
end
|
|
489
490
|
git add: "."
|