rails_template_18f 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.standard.yml +2 -0
  4. data/CHANGELOG.md +6 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Gemfile +10 -0
  7. data/Gemfile.lock +132 -0
  8. data/LICENSE.md +21 -0
  9. data/README.md +140 -0
  10. data/Rakefile +10 -0
  11. data/bin/console +16 -0
  12. data/bin/setup +8 -0
  13. data/lib/generators/rails_template18f/circleci/circleci_generator.rb +116 -0
  14. data/lib/generators/rails_template18f/circleci/templates/Dockerfile.tt +13 -0
  15. data/lib/generators/rails_template18f/circleci/templates/bin/ci-server-start +8 -0
  16. data/lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt +413 -0
  17. data/lib/generators/rails_template18f/circleci/templates/docker-compose.ci.yml +26 -0
  18. data/lib/generators/rails_template18f/github_actions/github_actions_generator.rb +137 -0
  19. data/lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml +28 -0
  20. data/lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt +20 -0
  21. data/lib/generators/rails_template18f/github_actions/templates/github/actions/setup-project/action.yml.tt +33 -0
  22. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml +44 -0
  23. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml +39 -0
  24. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-production.yml.tt +53 -0
  25. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-staging.yml.tt +53 -0
  26. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-daily-scan.yml.tt +44 -0
  27. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-scan.yml.tt +47 -0
  28. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt +65 -0
  29. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt +34 -0
  30. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml +79 -0
  31. data/lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-staging.yml +79 -0
  32. data/lib/rails_template18f/terraform_options.rb +68 -0
  33. data/lib/rails_template18f/version.rb +5 -0
  34. data/lib/rails_template_18f.rb +13 -0
  35. data/rails-template-18f.gemspec +40 -0
  36. data/railsrc +10 -0
  37. data/railsrc-hotwire +8 -0
  38. data/template.rb +506 -0
  39. data/templates/README.md.tt +213 -0
  40. data/templates/app/assets/images/uswds.js +5 -0
  41. data/templates/app/assets/stylesheets/uswds-settings.scss +7 -0
  42. data/templates/app/views/application/_banner_lock_icon.html.erb +19 -0
  43. data/templates/app/views/application/_demo_site_banner.html.erb +3 -0
  44. data/templates/app/views/application/_header.html.erb +26 -0
  45. data/templates/app/views/application/_usa_banner.html.erb +51 -0
  46. data/templates/bin/owasp-scan +49 -0
  47. data/templates/bin/pa11y-scan +10 -0
  48. data/templates/bin/with-server +35 -0
  49. data/templates/browserslistrc +5 -0
  50. data/templates/config/deployment/production.yml +3 -0
  51. data/templates/config/deployment/staging.yml +3 -0
  52. data/templates/config/environments/ci.rb +10 -0
  53. data/templates/config/environments/staging.rb +6 -0
  54. data/templates/config/locales/en.yml.tt +25 -0
  55. data/templates/config/locales/es.yml +19 -0
  56. data/templates/config/locales/fr.yml +22 -0
  57. data/templates/config/locales/zh.yml +16 -0
  58. data/templates/config/newrelic.yml +65 -0
  59. data/templates/doc/adr/0001-record-architecture-decisions.md.tt +21 -0
  60. data/templates/doc/adr/0002-initial-architecture-decisions.md.tt +24 -0
  61. data/templates/doc/adr/0003-security-scans.md.tt +44 -0
  62. data/templates/doc/adr/0004-rails-csp-compliant-script-tag-helpers.md.tt +53 -0
  63. data/templates/doc/compliance/README.md +37 -0
  64. data/templates/doc/compliance/apps/application.boundary.md.tt +80 -0
  65. data/templates/doc/compliance/apps/data.logical.md +21 -0
  66. data/templates/doc/compliance/rendered/apps/.keep +0 -0
  67. data/templates/editorconfig +5 -0
  68. data/templates/env +10 -0
  69. data/templates/githooks/pre-commit.tt +35 -0
  70. data/templates/lib/tasks/cf.rake +9 -0
  71. data/templates/lib/tasks/scanning.rake +63 -0
  72. data/templates/manifest.yml.tt +19 -0
  73. data/templates/pa11yci +9 -0
  74. data/templates/terraform/README.md.tt +148 -0
  75. data/templates/terraform/bootstrap/import.sh +12 -0
  76. data/templates/terraform/bootstrap/main.tf.tt +25 -0
  77. data/templates/terraform/bootstrap/providers.tf +16 -0
  78. data/templates/terraform/bootstrap/run.sh.tt +12 -0
  79. data/templates/terraform/bootstrap/teardown_creds.sh.tt +5 -0
  80. data/templates/terraform/bootstrap/variables.tf +2 -0
  81. data/templates/terraform/create_space_deployer.sh +33 -0
  82. data/templates/terraform/destroy_space_deployer.sh +19 -0
  83. data/templates/terraform/production/main.tf.tt +50 -0
  84. data/templates/terraform/production/providers.tf.tt +17 -0
  85. data/templates/terraform/production/variables.tf +2 -0
  86. data/templates/terraform/shared/database/main.tf.tt +23 -0
  87. data/templates/terraform/shared/database/providers.tf +16 -0
  88. data/templates/terraform/shared/database/variables.tf +42 -0
  89. data/templates/terraform/shared/domain/main.tf.tt +46 -0
  90. data/templates/terraform/shared/domain/providers.tf +16 -0
  91. data/templates/terraform/shared/domain/variables.tf +47 -0
  92. data/templates/terraform/shared/s3/main.tf +27 -0
  93. data/templates/terraform/shared/s3/providers.tf +16 -0
  94. data/templates/terraform/shared/s3/variables.tf +43 -0
  95. data/templates/terraform/staging/main.tf.tt +30 -0
  96. data/templates/terraform/staging/providers.tf.tt +17 -0
  97. data/templates/terraform/staging/variables.tf +2 -0
  98. data/templates/zap.conf +121 -0
  99. metadata +213 -0
metadata ADDED
@@ -0,0 +1,213 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_template_18f
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Ahearn
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 7.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 7.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ammeter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: standard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ description:
84
+ email:
85
+ - ryan.ahearn@gsa.gov
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rspec"
91
+ - ".standard.yml"
92
+ - CHANGELOG.md
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.md
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - lib/generators/rails_template18f/circleci/circleci_generator.rb
102
+ - lib/generators/rails_template18f/circleci/templates/Dockerfile.tt
103
+ - lib/generators/rails_template18f/circleci/templates/bin/ci-server-start
104
+ - lib/generators/rails_template18f/circleci/templates/circleci/config.yml.tt
105
+ - lib/generators/rails_template18f/circleci/templates/docker-compose.ci.yml
106
+ - lib/generators/rails_template18f/github_actions/github_actions_generator.rb
107
+ - lib/generators/rails_template18f/github_actions/templates/github/actions/run-server/action.yml
108
+ - lib/generators/rails_template18f/github_actions/templates/github/actions/setup-languages/action.yml.tt
109
+ - lib/generators/rails_template18f/github_actions/templates/github/actions/setup-project/action.yml.tt
110
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/brakeman-analysis.yml
111
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/dependency-scans.yml
112
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-production.yml.tt
113
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/deploy-staging.yml.tt
114
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-daily-scan.yml.tt
115
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/owasp-scan.yml.tt
116
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/pa11y.yml.tt
117
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/rspec.yml.tt
118
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-production.yml
119
+ - lib/generators/rails_template18f/github_actions/templates/github/workflows/terraform-staging.yml
120
+ - lib/rails_template18f/terraform_options.rb
121
+ - lib/rails_template18f/version.rb
122
+ - lib/rails_template_18f.rb
123
+ - rails-template-18f.gemspec
124
+ - railsrc
125
+ - railsrc-hotwire
126
+ - template.rb
127
+ - templates/README.md.tt
128
+ - templates/app/assets/images/uswds.js
129
+ - templates/app/assets/stylesheets/uswds-settings.scss
130
+ - templates/app/views/application/_banner_lock_icon.html.erb
131
+ - templates/app/views/application/_demo_site_banner.html.erb
132
+ - templates/app/views/application/_header.html.erb
133
+ - templates/app/views/application/_usa_banner.html.erb
134
+ - templates/bin/owasp-scan
135
+ - templates/bin/pa11y-scan
136
+ - templates/bin/with-server
137
+ - templates/browserslistrc
138
+ - templates/config/deployment/production.yml
139
+ - templates/config/deployment/staging.yml
140
+ - templates/config/environments/ci.rb
141
+ - templates/config/environments/staging.rb
142
+ - templates/config/locales/en.yml.tt
143
+ - templates/config/locales/es.yml
144
+ - templates/config/locales/fr.yml
145
+ - templates/config/locales/zh.yml
146
+ - templates/config/newrelic.yml
147
+ - templates/doc/adr/0001-record-architecture-decisions.md.tt
148
+ - templates/doc/adr/0002-initial-architecture-decisions.md.tt
149
+ - templates/doc/adr/0003-security-scans.md.tt
150
+ - templates/doc/adr/0004-rails-csp-compliant-script-tag-helpers.md.tt
151
+ - templates/doc/compliance/README.md
152
+ - templates/doc/compliance/apps/application.boundary.md.tt
153
+ - templates/doc/compliance/apps/data.logical.md
154
+ - templates/doc/compliance/rendered/apps/.keep
155
+ - templates/editorconfig
156
+ - templates/env
157
+ - templates/githooks/pre-commit.tt
158
+ - templates/lib/tasks/cf.rake
159
+ - templates/lib/tasks/scanning.rake
160
+ - templates/manifest.yml.tt
161
+ - templates/pa11yci
162
+ - templates/terraform/README.md.tt
163
+ - templates/terraform/bootstrap/import.sh
164
+ - templates/terraform/bootstrap/main.tf.tt
165
+ - templates/terraform/bootstrap/providers.tf
166
+ - templates/terraform/bootstrap/run.sh.tt
167
+ - templates/terraform/bootstrap/teardown_creds.sh.tt
168
+ - templates/terraform/bootstrap/variables.tf
169
+ - templates/terraform/create_space_deployer.sh
170
+ - templates/terraform/destroy_space_deployer.sh
171
+ - templates/terraform/production/main.tf.tt
172
+ - templates/terraform/production/providers.tf.tt
173
+ - templates/terraform/production/variables.tf
174
+ - templates/terraform/shared/database/main.tf.tt
175
+ - templates/terraform/shared/database/providers.tf
176
+ - templates/terraform/shared/database/variables.tf
177
+ - templates/terraform/shared/domain/main.tf.tt
178
+ - templates/terraform/shared/domain/providers.tf
179
+ - templates/terraform/shared/domain/variables.tf
180
+ - templates/terraform/shared/s3/main.tf
181
+ - templates/terraform/shared/s3/providers.tf
182
+ - templates/terraform/shared/s3/variables.tf
183
+ - templates/terraform/staging/main.tf.tt
184
+ - templates/terraform/staging/providers.tf.tt
185
+ - templates/terraform/staging/variables.tf
186
+ - templates/zap.conf
187
+ homepage: https://github.com/18f/rails-template
188
+ licenses: []
189
+ metadata:
190
+ allowed_push_host: https://rubygems.org/
191
+ homepage_uri: https://github.com/18f/rails-template
192
+ source_code_uri: https://github.com/18f/rails-template
193
+ changelog_uri: https://github.com/18f/rails-template/blob/main/CHANGELOG.md
194
+ post_install_message:
195
+ rdoc_options: []
196
+ require_paths:
197
+ - lib
198
+ required_ruby_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 2.7.5
203
+ required_rubygems_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ requirements: []
209
+ rubygems_version: 3.2.32
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: Generators for creating an 18F-flavored Rails app
213
+ test_files: []