rails_template_18f 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +49 -45
  4. data/README.md +102 -29
  5. data/exe/rails_template_18f +0 -21
  6. data/lib/generators/rails_template18f/active_storage/active_storage_generator.rb +2 -2
  7. data/lib/generators/rails_template18f/auditree/auditree_generator.rb +115 -0
  8. data/lib/generators/rails_template18f/auditree/templates/bin/auditree.tt +103 -0
  9. data/lib/generators/rails_template18f/auditree/templates/github/actions/auditree-cmd/action.yml.tt +42 -0
  10. data/lib/generators/rails_template18f/auditree/templates/github/workflows/auditree-validation.yml.tt +38 -0
  11. data/lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt +8 -7
  12. data/lib/generators/rails_template18f/cloud_gov_config/cloud_gov_config_generator.rb +1 -1
  13. data/lib/generators/rails_template18f/github_actions/github_actions_generator.rb +0 -1
  14. data/lib/generators/rails_template18f/github_actions/templates/github/dependabot.yml.tt +25 -0
  15. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt +12 -3
  16. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml +1 -1
  17. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt +9 -1
  18. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/{validate-ssp.yml.tt → validate-ssp.yml} +1 -1
  19. data/lib/generators/rails_template18f/newrelic/newrelic_generator.rb +1 -1
  20. data/lib/generators/rails_template18f/oscal/oscal_generator.rb +14 -1
  21. data/lib/generators/rails_template18f/oscal/templates/bin/trestle.tt +4 -1
  22. data/lib/generators/rails_template18f/oscal/templates/github/actions/trestle-cmd/action.yml.tt +16 -0
  23. data/lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb +1 -1
  24. data/lib/rails_template18f/version.rb +1 -1
  25. data/rails-template-18f.gemspec +3 -3
  26. data/railsrc +2 -0
  27. data/railsrc-hotwire +2 -0
  28. data/template.rb +26 -11
  29. data/templates/lib/tasks/scanning.rake +1 -1
  30. data/templates/manifest.yml.tt +0 -1
  31. metadata +16 -12
  32. data/lib/generators/rails_template18f/github_actions/templates/github/actions/trestle-cmd/action.yml +0 -20
  33. data/lib/rails_template18f/app_updater.rb +0 -19
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.0.0
4
+ version: 1.2.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-27 00:00:00.000000000 Z
11
+ date: 2024-09-20 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.1.0
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.1.0
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.1.0
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.1.0
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.36'
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.36'
110
+ version: '1.40'
111
111
  description:
112
112
  email:
113
113
  - ryan.ahearn@gsa.gov
@@ -136,6 +136,10 @@ files:
136
136
  - lib/generators/rails_template18f/active_storage/templates/oscal/component-definitions/active_storage/component-definition.json
137
137
  - lib/generators/rails_template18f/active_storage/templates/spec/jobs/file_scan_job_spec.rb
138
138
  - lib/generators/rails_template18f/active_storage/templates/spec/models/file_upload_spec.rb
139
+ - lib/generators/rails_template18f/auditree/auditree_generator.rb
140
+ - lib/generators/rails_template18f/auditree/templates/bin/auditree.tt
141
+ - lib/generators/rails_template18f/auditree/templates/github/actions/auditree-cmd/action.yml.tt
142
+ - lib/generators/rails_template18f/auditree/templates/github/workflows/auditree-validation.yml.tt
139
143
  - lib/generators/rails_template18f/circleci/circleci_generator.rb
140
144
  - lib/generators/rails_template18f/circleci/templates/Dockerfile.ci.tt
141
145
  - lib/generators/rails_template18f/circleci/templates/bin/ci-server-start
@@ -150,7 +154,7 @@ files:
150
154
  - lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
151
155
  - lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt
152
156
  - 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
157
+ - lib/generators/rails_template18f/github_actions/templates/github/dependabot.yml.tt
154
158
  - lib/generators/rails_template18f/github_actions/templates/github/workflows/assemble-ssp.yml.tt
155
159
  - lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml
156
160
  - lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml
@@ -162,7 +166,7 @@ files:
162
166
  - lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt
163
167
  - lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml
164
168
  - 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
169
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/validate-ssp.yml
166
170
  - lib/generators/rails_template18f/github_actions/templates/oscal/component-definitions/github_actions/component-definition.json.tt
167
171
  - lib/generators/rails_template18f/i18n/i18n_generator.rb
168
172
  - lib/generators/rails_template18f/i18n/templates/config/locales/en.yml.tt
@@ -177,6 +181,7 @@ files:
177
181
  - lib/generators/rails_template18f/oscal/oscal_generator.rb
178
182
  - lib/generators/rails_template18f/oscal/templates/bin/trestle.tt
179
183
  - lib/generators/rails_template18f/oscal/templates/doc/compliance/oscal/trestle-config.yaml.tt
184
+ - lib/generators/rails_template18f/oscal/templates/github/actions/trestle-cmd/action.yml.tt
180
185
  - lib/generators/rails_template18f/rails_erd/rails_erd_generator.rb
181
186
  - lib/generators/rails_template18f/rails_erd/templates/erdconfig
182
187
  - lib/generators/rails_template18f/sidekiq/sidekiq_generator.rb
@@ -195,7 +200,6 @@ files:
195
200
  - lib/generators/rails_template18f/terraform/templates/terraform/staging/providers.tf.tt
196
201
  - lib/generators/rails_template18f/terraform/templates/terraform/staging/variables.tf
197
202
  - lib/generators/rails_template18f/terraform/terraform_generator.rb
198
- - lib/rails_template18f/app_updater.rb
199
203
  - lib/rails_template18f/generators.rb
200
204
  - lib/rails_template18f/generators/base.rb
201
205
  - lib/rails_template18f/generators/cloud_gov_options.rb
@@ -269,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
273
  - !ruby/object:Gem::Version
270
274
  version: '0'
271
275
  requirements: []
272
- rubygems_version: 3.5.9
276
+ rubygems_version: 3.5.11
273
277
  signing_key:
274
278
  specification_version: 4
275
279
  summary: Generators for creating an 18F-flavored Rails app
@@ -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)