rails_template_18f 0.8.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +58 -28
- data/README.md +5 -5
- data/Rakefile +12 -0
- data/SECURITY.md +18 -0
- data/lib/generators/rails_template18f/active_storage/active_storage_generator.rb +2 -9
- data/lib/generators/rails_template18f/active_storage/templates/oscal/component-definitions/active_storage/component-definition.json +69 -0
- data/lib/generators/rails_template18f/circleci/circleci_generator.rb +3 -3
- data/lib/generators/rails_template18f/circleci/templates/bin/ci-server-start +1 -1
- data/lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt +60 -17
- data/lib/generators/rails_template18f/circleci/templates/docker-compose.ci.yml +1 -0
- data/lib/generators/rails_template18f/circleci/templates/oscal/component-definitions/circleci/component-definition.json.tt +310 -0
- data/lib/generators/rails_template18f/github_actions/github_actions_generator.rb +7 -12
- data/lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt +1 -1
- data/lib/generators/rails_template18f/github_actions/templates/github/actions/setup-project/action.yml.tt +1 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/actions/trestle-cmd/action.yml +20 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt +26 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml +6 -2
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml +4 -4
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-production.yml.tt +15 -28
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-staging.yml.tt +15 -28
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-daily-scan.yml.tt +8 -3
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-scan.yml.tt +4 -3
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt +6 -2
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt +1 -1
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml +20 -58
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-staging.yml +20 -58
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/validate-ssp.yml.tt +46 -0
- data/lib/generators/rails_template18f/github_actions/templates/oscal/component-definitions/github_actions/component-definition.json.tt +310 -0
- data/lib/generators/rails_template18f/i18n/i18n_generator.rb +7 -6
- data/lib/generators/rails_template18f/i18n/templates/config/locales/en.yml.tt +1 -0
- data/lib/generators/rails_template18f/i18n/templates/config/locales/es.yml +2 -0
- data/lib/generators/rails_template18f/i18n/templates/config/locales/fr.yml +2 -0
- data/lib/generators/rails_template18f/i18n/templates/config/locales/zh.yml +2 -0
- data/lib/generators/rails_template18f/newrelic/newrelic_generator.rb +2 -37
- data/lib/generators/rails_template18f/newrelic/templates/oscal/component-definitions/newrelic/component-definition.json.tt +113 -0
- data/lib/generators/rails_template18f/oscal/oscal_generator.rb +55 -17
- data/lib/generators/rails_template18f/oscal/templates/bin/trestle.tt +10 -0
- data/lib/generators/rails_template18f/oscal/templates/doc/compliance/oscal/trestle-config.yaml.tt +6 -0
- data/lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb +2 -2
- data/lib/generators/rails_template18f/terraform/templates/terraform/README.md.tt +37 -52
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/import.sh +1 -0
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt +7 -10
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/providers.tf +3 -3
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/run.sh.tt +27 -0
- data/lib/generators/rails_template18f/terraform/templates/terraform/production/main.tf.tt +33 -50
- data/lib/generators/rails_template18f/terraform/templates/terraform/production/providers.tf.tt +8 -2
- data/lib/generators/rails_template18f/terraform/templates/terraform/staging/main.tf.tt +26 -40
- data/lib/generators/rails_template18f/terraform/templates/terraform/staging/providers.tf.tt +8 -2
- data/lib/rails_template18f/generators/base.rb +9 -24
- data/lib/rails_template18f/generators/pipeline_options.rb +0 -172
- data/lib/rails_template18f/version.rb +1 -1
- data/rails-template-18f.gemspec +6 -6
- data/railsrc +1 -0
- data/railsrc-hotwire +1 -0
- data/template.rb +48 -44
- data/templates/Brewfile +2 -2
- data/templates/README.md.tt +3 -4
- data/templates/app/assets/stylesheets/uswds-components.scss +6 -0
- data/templates/app/assets/stylesheets/uswds-overrides/_index.scss +2 -0
- data/templates/app/assets/stylesheets/uswds-overrides/_override-usa-banner.scss +13 -0
- data/templates/app/assets/stylesheets/uswds-overrides/_override-usa-language-selector.scss +38 -0
- data/templates/app/views/application/_header.html.erb +6 -5
- data/templates/app/views/application/_language_selector.html.erb +35 -0
- data/templates/app/views/application/_usa_banner.html.erb +21 -16
- data/templates/bin/ops/create_service_account.sh.tt +11 -5
- data/templates/bin/owasp-scan +3 -3
- data/templates/bin/pa11y-scan +1 -1
- data/templates/config/environments/ci.rb +1 -0
- data/templates/pa11y.js +12 -0
- data/templates/pa11yci.js +8 -0
- metadata +31 -16
- data/templates/pa11yci +0 -9
- /data/lib/generators/rails_template18f/circleci/templates/{Dockerfile.tt → Dockerfile.ci.tt} +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_template_18f
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Ahearn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.
|
19
|
+
version: 7.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.
|
26
|
+
version: 7.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 7.
|
33
|
+
version: 7.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 7.
|
40
|
+
version: 7.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: colorize
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.13'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '3.
|
82
|
+
version: '3.13'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: ammeter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.36'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
110
|
+
version: '1.36'
|
111
111
|
description:
|
112
112
|
email:
|
113
113
|
- ryan.ahearn@gsa.gov
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- LICENSE.md
|
126
126
|
- README.md
|
127
127
|
- Rakefile
|
128
|
+
- SECURITY.md
|
128
129
|
- bin/console
|
129
130
|
- bin/setup
|
130
131
|
- exe/rails_template_18f
|
@@ -132,13 +133,15 @@ files:
|
|
132
133
|
- lib/generators/rails_template18f/active_storage/templates/app/jobs/file_scan_job.rb
|
133
134
|
- lib/generators/rails_template18f/active_storage/templates/app/models/file_upload.rb
|
134
135
|
- lib/generators/rails_template18f/active_storage/templates/doc/adr/clamav.md.tt
|
136
|
+
- lib/generators/rails_template18f/active_storage/templates/oscal/component-definitions/active_storage/component-definition.json
|
135
137
|
- lib/generators/rails_template18f/active_storage/templates/spec/jobs/file_scan_job_spec.rb
|
136
138
|
- lib/generators/rails_template18f/active_storage/templates/spec/models/file_upload_spec.rb
|
137
139
|
- lib/generators/rails_template18f/circleci/circleci_generator.rb
|
138
|
-
- lib/generators/rails_template18f/circleci/templates/Dockerfile.tt
|
140
|
+
- lib/generators/rails_template18f/circleci/templates/Dockerfile.ci.tt
|
139
141
|
- lib/generators/rails_template18f/circleci/templates/bin/ci-server-start
|
140
142
|
- lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt
|
141
143
|
- lib/generators/rails_template18f/circleci/templates/docker-compose.ci.yml
|
144
|
+
- lib/generators/rails_template18f/circleci/templates/oscal/component-definitions/circleci/component-definition.json.tt
|
142
145
|
- lib/generators/rails_template18f/cloud_gov_config/cloud_gov_config_generator.rb
|
143
146
|
- lib/generators/rails_template18f/cloud_gov_config/templates/app/models/cloud_gov_config.rb
|
144
147
|
- lib/generators/rails_template18f/cloud_gov_config/templates/spec/models/cloud_gov_config_spec.rb
|
@@ -147,6 +150,8 @@ files:
|
|
147
150
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
|
148
151
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt
|
149
152
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/setup-project/action.yml.tt
|
153
|
+
- lib/generators/rails_template18f/github_actions/templates/github/actions/trestle-cmd/action.yml
|
154
|
+
- lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt
|
150
155
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml
|
151
156
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml
|
152
157
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-production.yml.tt
|
@@ -157,6 +162,8 @@ files:
|
|
157
162
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt
|
158
163
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml
|
159
164
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-staging.yml
|
165
|
+
- lib/generators/rails_template18f/github_actions/templates/github/workflows/validate-ssp.yml.tt
|
166
|
+
- lib/generators/rails_template18f/github_actions/templates/oscal/component-definitions/github_actions/component-definition.json.tt
|
160
167
|
- lib/generators/rails_template18f/i18n/i18n_generator.rb
|
161
168
|
- lib/generators/rails_template18f/i18n/templates/config/locales/en.yml.tt
|
162
169
|
- lib/generators/rails_template18f/i18n/templates/config/locales/es.yml
|
@@ -166,7 +173,10 @@ files:
|
|
166
173
|
- lib/generators/rails_template18f/i18n_js/templates/lib/tasks/i18n.rake
|
167
174
|
- lib/generators/rails_template18f/newrelic/newrelic_generator.rb
|
168
175
|
- lib/generators/rails_template18f/newrelic/templates/config/newrelic.yml.tt
|
176
|
+
- lib/generators/rails_template18f/newrelic/templates/oscal/component-definitions/newrelic/component-definition.json.tt
|
169
177
|
- lib/generators/rails_template18f/oscal/oscal_generator.rb
|
178
|
+
- lib/generators/rails_template18f/oscal/templates/bin/trestle.tt
|
179
|
+
- lib/generators/rails_template18f/oscal/templates/doc/compliance/oscal/trestle-config.yaml.tt
|
170
180
|
- lib/generators/rails_template18f/rails_erd/rails_erd_generator.rb
|
171
181
|
- lib/generators/rails_template18f/rails_erd/templates/erdconfig
|
172
182
|
- lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb
|
@@ -200,10 +210,14 @@ files:
|
|
200
210
|
- templates/README.md.tt
|
201
211
|
- templates/app/assets/images/uswds.js
|
202
212
|
- templates/app/assets/stylesheets/uswds-components.scss
|
213
|
+
- templates/app/assets/stylesheets/uswds-overrides/_index.scss
|
214
|
+
- templates/app/assets/stylesheets/uswds-overrides/_override-usa-banner.scss
|
215
|
+
- templates/app/assets/stylesheets/uswds-overrides/_override-usa-language-selector.scss
|
203
216
|
- templates/app/assets/stylesheets/uswds-settings.scss
|
204
217
|
- templates/app/views/application/_banner_lock_icon.html.erb
|
205
218
|
- templates/app/views/application/_demo_site_banner.html.erb
|
206
219
|
- templates/app/views/application/_header.html.erb
|
220
|
+
- templates/app/views/application/_language_selector.html.erb
|
207
221
|
- templates/app/views/application/_usa_banner.html.erb
|
208
222
|
- templates/bin/ops/create_service_account.sh.tt
|
209
223
|
- templates/bin/ops/destroy_service_account.sh.tt
|
@@ -230,7 +244,8 @@ files:
|
|
230
244
|
- templates/lib/tasks/cf.rake
|
231
245
|
- templates/lib/tasks/scanning.rake
|
232
246
|
- templates/manifest.yml.tt
|
233
|
-
- templates/
|
247
|
+
- templates/pa11y.js
|
248
|
+
- templates/pa11yci.js
|
234
249
|
- templates/zap.conf
|
235
250
|
homepage: https://github.com/18f/rails-template
|
236
251
|
licenses: []
|
data/templates/pa11yci
DELETED
/data/lib/generators/rails_template18f/circleci/templates/{Dockerfile.tt → Dockerfile.ci.tt}
RENAMED
File without changes
|