rails_template_18f 1.1.0 → 1.3.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 +13 -0
- data/Gemfile.lock +57 -55
- data/README.md +102 -29
- data/exe/rails_template_18f +0 -21
- data/lib/generators/rails_template18f/active_storage/active_storage_generator.rb +2 -2
- data/lib/generators/rails_template18f/auditree/auditree_generator.rb +34 -3
- data/lib/generators/rails_template18f/auditree/templates/bin/auditree.tt +85 -11
- data/lib/generators/rails_template18f/auditree/templates/github/actions/auditree-cmd/action.yml.tt +17 -6
- data/lib/generators/rails_template18f/auditree/templates/github/workflows/auditree-validation.yml.tt +2 -6
- data/lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt +13 -7
- data/lib/generators/rails_template18f/cloud_gov_config/cloud_gov_config_generator.rb +1 -1
- data/lib/generators/rails_template18f/github_actions/github_actions_generator.rb +0 -1
- data/lib/generators/rails_template18f/github_actions/templates/github/dependabot.yml.tt +25 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt +12 -3
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml +1 -1
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-production.yml.tt +8 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-staging.yml.tt +8 -0
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt +9 -1
- data/lib/generators/rails_template18f/github_actions/templates/github/workflows/{validate-ssp.yml.tt → validate-ssp.yml} +1 -1
- data/lib/generators/rails_template18f/i18n_js/i18n_js_generator.rb +12 -20
- data/lib/generators/rails_template18f/i18n_js/templates/app/javascript/i18n.js +11 -0
- data/lib/generators/rails_template18f/i18n_js/templates/config/i18n-js.yml +4 -0
- data/lib/generators/rails_template18f/i18n_js/templates/config/initializers/i18n_js.rb +5 -0
- data/lib/generators/rails_template18f/i18n_js/templates/lib/tasks/i18n.rake +8 -7
- data/lib/generators/rails_template18f/newrelic/newrelic_generator.rb +1 -1
- data/lib/generators/rails_template18f/oscal/oscal_generator.rb +14 -1
- data/lib/generators/rails_template18f/oscal/templates/bin/trestle.tt +4 -1
- data/lib/generators/rails_template18f/oscal/templates/github/actions/trestle-cmd/action.yml.tt +16 -0
- data/lib/generators/rails_template18f/public_egress/public_egress_generator.rb +136 -0
- data/lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb +1 -1
- data/lib/generators/rails_template18f/terraform/templates/terraform/README.md.tt +2 -2
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/main.tf.tt +1 -1
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/run.sh.tt +2 -1
- data/lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/teardown_creds.sh.tt +1 -1
- data/lib/generators/rails_template18f/terraform/templates/terraform/production/main.tf.tt +25 -5
- data/lib/generators/rails_template18f/terraform/templates/terraform/staging/main.tf.tt +22 -4
- data/lib/rails_template18f/generators/base.rb +7 -0
- data/lib/rails_template18f/generators/cloud_gov_options.rb +7 -27
- data/lib/rails_template18f/generators/cloud_gov_parsing.rb +41 -0
- data/lib/rails_template18f/generators.rb +1 -0
- data/lib/rails_template18f/version.rb +1 -1
- data/rails-template-18f.gemspec +3 -3
- data/railsrc +2 -0
- data/railsrc-hotwire +2 -0
- data/template.rb +19 -12
- data/templates/bin/ops/create_service_account.sh.tt +14 -2
- data/templates/bin/ops/destroy_service_account.sh.tt +0 -3
- data/templates/lib/tasks/scanning.rake +1 -1
- data/templates/manifest.yml.tt +1 -1
- metadata +19 -14
- data/lib/generators/rails_template18f/github_actions/templates/github/actions/trestle-cmd/action.yml +0 -20
- data/lib/rails_template18f/app_updater.rb +0 -19
- /data/lib/generators/rails_template18f/terraform/templates/terraform/production/{providers.tf.tt → providers.tf} +0 -0
- /data/lib/generators/rails_template18f/terraform/templates/terraform/staging/{providers.tf.tt → providers.tf} +0 -0
data/templates/manifest.yml.tt
CHANGED
@@ -12,6 +12,6 @@ applications:
|
|
12
12
|
- type: web
|
13
13
|
instances: ((web_instances))
|
14
14
|
memory: ((web_memory))
|
15
|
-
command: bundle exec rake cf:on_first_instance db:migrate && bundle exec rails s -b 0.0.0.0 -p $PORT -e $RAILS_ENV
|
15
|
+
command: bundle exec rake cf:on_first_instance db:migrate && exec bundle exec rails s -b 0.0.0.0 -p $PORT -e $RAILS_ENV
|
16
16
|
services:
|
17
17
|
- <%= app_name %>-rds-((env))
|
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: 1.
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.
|
19
|
+
version: 7.2.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.2.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.2.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.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
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.40'
|
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.40'
|
111
111
|
description:
|
112
112
|
email:
|
113
113
|
- ryan.ahearn@gsa.gov
|
@@ -154,7 +154,7 @@ files:
|
|
154
154
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
|
155
155
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt
|
156
156
|
- lib/generators/rails_template18f/github_actions/templates/github/actions/setup-project/action.yml.tt
|
157
|
-
- lib/generators/rails_template18f/github_actions/templates/github/
|
157
|
+
- lib/generators/rails_template18f/github_actions/templates/github/dependabot.yml.tt
|
158
158
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt
|
159
159
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml
|
160
160
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml
|
@@ -166,7 +166,7 @@ files:
|
|
166
166
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt
|
167
167
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml
|
168
168
|
- lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-staging.yml
|
169
|
-
- lib/generators/rails_template18f/github_actions/templates/github/workflows/validate-ssp.yml
|
169
|
+
- lib/generators/rails_template18f/github_actions/templates/github/workflows/validate-ssp.yml
|
170
170
|
- lib/generators/rails_template18f/github_actions/templates/oscal/component-definitions/github_actions/component-definition.json.tt
|
171
171
|
- lib/generators/rails_template18f/i18n/i18n_generator.rb
|
172
172
|
- lib/generators/rails_template18f/i18n/templates/config/locales/en.yml.tt
|
@@ -174,6 +174,9 @@ files:
|
|
174
174
|
- lib/generators/rails_template18f/i18n/templates/config/locales/fr.yml
|
175
175
|
- lib/generators/rails_template18f/i18n/templates/config/locales/zh.yml
|
176
176
|
- lib/generators/rails_template18f/i18n_js/i18n_js_generator.rb
|
177
|
+
- lib/generators/rails_template18f/i18n_js/templates/app/javascript/i18n.js
|
178
|
+
- lib/generators/rails_template18f/i18n_js/templates/config/i18n-js.yml
|
179
|
+
- lib/generators/rails_template18f/i18n_js/templates/config/initializers/i18n_js.rb
|
177
180
|
- lib/generators/rails_template18f/i18n_js/templates/lib/tasks/i18n.rake
|
178
181
|
- lib/generators/rails_template18f/newrelic/newrelic_generator.rb
|
179
182
|
- lib/generators/rails_template18f/newrelic/templates/config/newrelic.yml.tt
|
@@ -181,6 +184,8 @@ files:
|
|
181
184
|
- lib/generators/rails_template18f/oscal/oscal_generator.rb
|
182
185
|
- lib/generators/rails_template18f/oscal/templates/bin/trestle.tt
|
183
186
|
- lib/generators/rails_template18f/oscal/templates/doc/compliance/oscal/trestle-config.yaml.tt
|
187
|
+
- lib/generators/rails_template18f/oscal/templates/github/actions/trestle-cmd/action.yml.tt
|
188
|
+
- lib/generators/rails_template18f/public_egress/public_egress_generator.rb
|
184
189
|
- lib/generators/rails_template18f/rails_erd/rails_erd_generator.rb
|
185
190
|
- lib/generators/rails_template18f/rails_erd/templates/erdconfig
|
186
191
|
- lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb
|
@@ -193,16 +198,16 @@ files:
|
|
193
198
|
- lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/teardown_creds.sh.tt
|
194
199
|
- lib/generators/rails_template18f/terraform/templates/terraform/bootstrap/variables.tf
|
195
200
|
- lib/generators/rails_template18f/terraform/templates/terraform/production/main.tf.tt
|
196
|
-
- lib/generators/rails_template18f/terraform/templates/terraform/production/providers.tf
|
201
|
+
- lib/generators/rails_template18f/terraform/templates/terraform/production/providers.tf
|
197
202
|
- lib/generators/rails_template18f/terraform/templates/terraform/production/variables.tf
|
198
203
|
- lib/generators/rails_template18f/terraform/templates/terraform/staging/main.tf.tt
|
199
|
-
- lib/generators/rails_template18f/terraform/templates/terraform/staging/providers.tf
|
204
|
+
- lib/generators/rails_template18f/terraform/templates/terraform/staging/providers.tf
|
200
205
|
- lib/generators/rails_template18f/terraform/templates/terraform/staging/variables.tf
|
201
206
|
- lib/generators/rails_template18f/terraform/terraform_generator.rb
|
202
|
-
- lib/rails_template18f/app_updater.rb
|
203
207
|
- lib/rails_template18f/generators.rb
|
204
208
|
- lib/rails_template18f/generators/base.rb
|
205
209
|
- lib/rails_template18f/generators/cloud_gov_options.rb
|
210
|
+
- lib/rails_template18f/generators/cloud_gov_parsing.rb
|
206
211
|
- lib/rails_template18f/generators/pipeline_options.rb
|
207
212
|
- lib/rails_template18f/version.rb
|
208
213
|
- lib/rails_template_18f.rb
|
@@ -273,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
278
|
- !ruby/object:Gem::Version
|
274
279
|
version: '0'
|
275
280
|
requirements: []
|
276
|
-
rubygems_version: 3.5.
|
281
|
+
rubygems_version: 3.5.11
|
277
282
|
signing_key:
|
278
283
|
specification_version: 4
|
279
284
|
summary: Generators for creating an 18F-flavored Rails app
|
data/lib/generators/rails_template18f/github_actions/templates/github/actions/trestle-cmd/action.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
name: "Run a docker-trestle command"
|
2
|
-
description: "Sets up workspace for running a single command in docker-trestle"
|
3
|
-
inputs:
|
4
|
-
tag:
|
5
|
-
description: docker-trestle tag to use. Defaults to latest
|
6
|
-
required: false
|
7
|
-
default: latest
|
8
|
-
cmd:
|
9
|
-
description: Command to run within docker-trestle
|
10
|
-
required: true
|
11
|
-
runs:
|
12
|
-
using: "composite"
|
13
|
-
steps:
|
14
|
-
- name: Enable writing to trestle directories
|
15
|
-
shell: bash
|
16
|
-
run: chmod -R a+w $GITHUB_WORKSPACE/doc/compliance/oscal
|
17
|
-
|
18
|
-
- name: Run cmd
|
19
|
-
shell: bash
|
20
|
-
run: docker run -v $GITHUB_WORKSPACE/doc/compliance/oscal:/app/docs:rw ghcr.io/gsa-tts/trestle:latest ${{ inputs.cmd }}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require "rails/app_updater"
|
2
|
-
|
3
|
-
module AppUpdaterOptions
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
|
6
|
-
class_methods do
|
7
|
-
def generator_options
|
8
|
-
options = super
|
9
|
-
# These options all end up hardcoded to true in the default `rails app:update`
|
10
|
-
options[:skip_active_job] = !defined?(ActiveJob::Railtie)
|
11
|
-
options[:skip_action_mailbox] = !defined?(ActionMailbox::Engine)
|
12
|
-
options[:skip_action_text] = !defined?(ActionText::Engine)
|
13
|
-
options[:skip_test] = !defined?(Rails::TestUnitRailtie)
|
14
|
-
options
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
Rails::AppUpdater.prepend(AppUpdaterOptions)
|
File without changes
|
File without changes
|