schienenzeppelin 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/main.yml +17 -0
  3. data/.github/workflows/outdated.yml +20 -0
  4. data/.gitignore +282 -0
  5. data/.rspec_status +3 -0
  6. data/.rubocop.yml +28 -0
  7. data/.tool-versions +1 -0
  8. data/CODE_OF_CONDUCT.md +84 -0
  9. data/GALLERY.md +29 -0
  10. data/Gemfile +13 -0
  11. data/Gemfile.lock +184 -0
  12. data/LICENSE +21 -0
  13. data/LICENSE.txt +21 -0
  14. data/README.md +174 -0
  15. data/Rakefile +12 -0
  16. data/TODO.md +32 -0
  17. data/bin/console +15 -0
  18. data/bin/setup +8 -0
  19. data/exe/sz +25 -0
  20. data/images/create.png +0 -0
  21. data/images/error.png +0 -0
  22. data/images/home.png +0 -0
  23. data/images/index.png +0 -0
  24. data/images/login.png +0 -0
  25. data/images/mobile.png +0 -0
  26. data/lib/schienenzeppelin.rb +18 -0
  27. data/lib/schienenzeppelin/app_builder.rb +88 -0
  28. data/lib/schienenzeppelin/app_generator.rb +95 -0
  29. data/lib/schienenzeppelin/helper_base.rb +28 -0
  30. data/lib/schienenzeppelin/helpers/annotate.rb +11 -0
  31. data/lib/schienenzeppelin/helpers/capistrano.rb +35 -0
  32. data/lib/schienenzeppelin/helpers/continuous_integration.rb +12 -0
  33. data/lib/schienenzeppelin/helpers/credentials.rb +49 -0
  34. data/lib/schienenzeppelin/helpers/devise.rb +45 -0
  35. data/lib/schienenzeppelin/helpers/errors.rb +67 -0
  36. data/lib/schienenzeppelin/helpers/factory_bot.rb +13 -0
  37. data/lib/schienenzeppelin/helpers/generators.rb +26 -0
  38. data/lib/schienenzeppelin/helpers/high_voltage.rb +11 -0
  39. data/lib/schienenzeppelin/helpers/home.rb +17 -0
  40. data/lib/schienenzeppelin/helpers/hotwire.rb +11 -0
  41. data/lib/schienenzeppelin/helpers/pundit.rb +12 -0
  42. data/lib/schienenzeppelin/helpers/rspec.rb +13 -0
  43. data/lib/schienenzeppelin/helpers/rubocop.rb +11 -0
  44. data/lib/schienenzeppelin/helpers/scaffold.rb +11 -0
  45. data/lib/schienenzeppelin/helpers/services.rb +11 -0
  46. data/lib/schienenzeppelin/helpers/sidekiq.rb +13 -0
  47. data/lib/schienenzeppelin/helpers/stimulus.rb +11 -0
  48. data/lib/schienenzeppelin/helpers/stimulus_components.rb +29 -0
  49. data/lib/schienenzeppelin/helpers/tailwind.rb +18 -0
  50. data/lib/schienenzeppelin/version.rb +7 -0
  51. data/schienenzeppelin.gemspec +37 -0
  52. data/schienenzeppelin.jpg +0 -0
  53. data/script.md +104 -0
  54. data/templates/.dockerignore.erb +51 -0
  55. data/templates/.entrypoint.sh.erb +16 -0
  56. data/templates/.env.development.erb +3 -0
  57. data/templates/.foreman.erb +1 -0
  58. data/templates/.github/workflows/build.yml.erb +49 -0
  59. data/templates/.gitignore.erb +285 -0
  60. data/templates/.irbrc.erb +12 -0
  61. data/templates/.rubocop.yml.erb +37 -0
  62. data/templates/.tool-versions.erb +1 -0
  63. data/templates/Capfile.erb +24 -0
  64. data/templates/Dockerfile.erb +45 -0
  65. data/templates/Gemfile.erb +122 -0
  66. data/templates/Procfile.dev.erb +6 -0
  67. data/templates/Procfile.erb +2 -0
  68. data/templates/README.md.erb +43 -0
  69. data/templates/app/controllers/authorized_controller.rb.erb +10 -0
  70. data/templates/app/controllers/errors_controller.rb.erb +24 -0
  71. data/templates/app/javascript/images/checkmark.svg +1 -0
  72. data/templates/app/javascript/images/logo.svg +1 -0
  73. data/templates/app/javascript/stylesheets/components.scss +206 -0
  74. data/templates/app/policies/application_policy.rb +55 -0
  75. data/templates/app/services/application_service.rb +14 -0
  76. data/templates/app/views/devise/confirmations/new.html.erb +24 -0
  77. data/templates/app/views/devise/passwords/edit.html.erb +34 -0
  78. data/templates/app/views/devise/passwords/new.html.erb +23 -0
  79. data/templates/app/views/devise/registrations/edit.html.erb +62 -0
  80. data/templates/app/views/devise/registrations/new.html.erb +45 -0
  81. data/templates/app/views/devise/sessions/new.html.erb +33 -0
  82. data/templates/app/views/devise/shared/_error_messages.html.erb +15 -0
  83. data/templates/app/views/devise/shared/_form_wrap.html.erb +5 -0
  84. data/templates/app/views/devise/shared/_links.html.erb +25 -0
  85. data/templates/app/views/devise/unlocks/new.html.erb +22 -0
  86. data/templates/app/views/errors/internal_error.html.erb +14 -0
  87. data/templates/app/views/errors/not_found.html.erb +14 -0
  88. data/templates/app/views/errors/unacceptable.html.erb +14 -0
  89. data/templates/app/views/layouts/application.html.erb.tt +30 -0
  90. data/templates/app/views/pages/home.html.erb.tt +20 -0
  91. data/templates/app/views/shared/_flashes.html.erb.tt +12 -0
  92. data/templates/app/views/shared/_footer.html.erb.tt +21 -0
  93. data/templates/app/views/shared/_navbar.html.erb.tt +40 -0
  94. data/templates/bin/setup.erb +146 -0
  95. data/templates/config/credentials.yml.erb +7 -0
  96. data/templates/config/initializers/high_voltage.rb +6 -0
  97. data/templates/config/initializers/lograge.rb +5 -0
  98. data/templates/config/initializers/sidekiq.rb +10 -0
  99. data/templates/config/postgresql.yml.erb +23 -0
  100. data/templates/docker-compose.yml.erb +21 -0
  101. data/templates/lib/capistrano/tasks/seeds.rake +12 -0
  102. data/templates/lib/capistrano/tasks/sidekiq.rake +36 -0
  103. data/templates/lib/generators/rails/navigation/USAGE +6 -0
  104. data/templates/lib/generators/rails/navigation/navigation_generator.rb +15 -0
  105. data/templates/lib/generators/rails/scaffold_controller_generator.rb +12 -0
  106. data/templates/lib/tasks/auto_annotate_models.rake +58 -0
  107. data/templates/lib/templates/erb/scaffold/_form.html.erb +39 -0
  108. data/templates/lib/templates/erb/scaffold/edit.html.erb +7 -0
  109. data/templates/lib/templates/erb/scaffold/index.html.erb +34 -0
  110. data/templates/lib/templates/erb/scaffold/new.html.erb +7 -0
  111. data/templates/lib/templates/erb/scaffold/show.html.erb +18 -0
  112. data/templates/public/500.html.erb +26 -0
  113. data/templates/spec/rails_helper.rb +26 -0
  114. data/templates/spec/spec_helper.rb +61 -0
  115. data/templates/spec/support/factory_bot.rb +5 -0
  116. data/templates/spec/support/shoulda_matchers.rb +8 -0
  117. metadata +179 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7adad707ab6089892e02096e9cb15114ef2bb10b3c3d44d57d2a1eee7e9e1575
4
+ data.tar.gz: 8363a2a2e485cf173e29586de11f23dfdfaace4817bf442495f9d2b8a0f5cc64
5
+ SHA512:
6
+ metadata.gz: 17e4aedfd3e0b09c61cda41bd06fa8983f5e1f9ed675ad64351953a40de40024f99ad9aabf851c3af065f403b763a57937ee1a08fbc10b5dc2086a10a34b5ff2
7
+ data.tar.gz: b599d828c04e3a0121350c9c6356eddc3b209e011501fcde4ea17da3a8cdc1d583323addaf3d10d8c526caa8f892eff583bc0f868cb39803aa346b3c0eb35680
@@ -0,0 +1,17 @@
1
+ name: Main
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0.0
14
+ bundler-cache: true
15
+ - name: Run the default task
16
+ run: |
17
+ bundle exec rake
@@ -0,0 +1,20 @@
1
+ name: Check Outdated
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 12 * * 1'
6
+
7
+ jobs:
8
+ check_updates:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout repository
12
+ uses: actions/checkout@v2
13
+ - name: Set up ruby
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.0.0
17
+ - name: Check Outdated
18
+ run: |
19
+ bundle install
20
+ bundle outdated rails
data/.gitignore ADDED
@@ -0,0 +1,282 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/ruby,rails,rubymine+all,vim,emacs
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=ruby,rails,rubymine+all,vim,emacs
3
+
4
+ ### Emacs ###
5
+ # -*- mode: gitignore; -*-
6
+ *~
7
+ \#*\#
8
+ /.emacs.desktop
9
+ /.emacs.desktop.lock
10
+ *.elc
11
+ auto-save-list
12
+ tramp
13
+ .\#*
14
+
15
+ # Org-mode
16
+ .org-id-locations
17
+ *_archive
18
+ ltximg/**
19
+
20
+ # flymake-mode
21
+ *_flymake.*
22
+
23
+ # eshell files
24
+ /eshell/history
25
+ /eshell/lastdir
26
+
27
+ # elpa packages
28
+ /elpa/
29
+
30
+ # reftex files
31
+ *.rel
32
+
33
+ # AUCTeX auto folder
34
+ /auto/
35
+
36
+ # cask packages
37
+ .cask/
38
+ dist/
39
+
40
+ # Flycheck
41
+ flycheck_*.el
42
+
43
+ # server auth directory
44
+ /server/
45
+
46
+ # projectiles files
47
+ .projectile
48
+
49
+ # directory configuration
50
+ .dir-locals.el
51
+
52
+ # network security
53
+ /network-security.data
54
+
55
+
56
+ ### Rails ###
57
+ *.rbc
58
+ capybara-*.html
59
+ .rspec
60
+ /db/*.sqlite3
61
+ /db/*.sqlite3-journal
62
+ /db/*.sqlite3-[0-9]*
63
+ /public/system
64
+ /coverage/
65
+ /spec/tmp
66
+ *.orig
67
+ rerun.txt
68
+ pickle-email-*.html
69
+
70
+ # Ignore all logfiles and tempfiles.
71
+ /log/*
72
+ /tmp/*
73
+ !/log/.keep
74
+ !/tmp/.keep
75
+
76
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
77
+ config/initializers/secret_token.rb
78
+ config/**/*.key
79
+
80
+ ## Environment normalization:
81
+ /.bundle
82
+ /vendor/bundle
83
+
84
+ # these should all be checked in to normalize the environment:
85
+ # Gemfile.lock, .ruby-version, .ruby-gemset
86
+
87
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
88
+ .rvmrc
89
+
90
+ # if using bower-rails ignore default bower_components path bower.json files
91
+ /vendor/assets/bower_components
92
+ *.bowerrc
93
+ bower.json
94
+
95
+ # Ignore pow environment settings
96
+ .powenv
97
+
98
+ # Ignore Byebug command history file.
99
+ .byebug_history
100
+
101
+ # Ignore node_modules
102
+ node_modules/
103
+
104
+ # Ignore precompiled javascript packs
105
+ /public/packs
106
+ /public/packs-test
107
+ /public/assets
108
+
109
+ # Ignore yarn files
110
+ /yarn-error.log
111
+ yarn-debug.log*
112
+ .yarn-integrity
113
+
114
+ # Ignore uploaded files in development
115
+ /storage/*
116
+ !/storage/.keep
117
+
118
+ ### Ruby ###
119
+ *.gem
120
+ /.config
121
+ /InstalledFiles
122
+ /pkg/
123
+ /spec/reports/
124
+ /spec/examples.txt
125
+ /test/tmp/
126
+ /test/version_tmp/
127
+ /tmp/
128
+
129
+ # Used by dotenv library to load environment variables.
130
+ # .env
131
+
132
+ # Ignore Byebug command history file.
133
+
134
+ ## Specific to RubyMotion:
135
+ .dat*
136
+ .repl_history
137
+ build/
138
+ *.bridgesupport
139
+ build-iPhoneOS/
140
+ build-iPhoneSimulator/
141
+
142
+ ## Specific to RubyMotion (use of CocoaPods):
143
+ #
144
+ # We recommend against adding the Pods directory to your .gitignore. However
145
+ # you should judge for yourself, the pros and cons are mentioned at:
146
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
147
+ # vendor/Pods/
148
+
149
+ ## Documentation cache and generated files:
150
+ /.yardoc/
151
+ /_yardoc/
152
+ /doc/
153
+ /rdoc/
154
+
155
+ /.bundle/
156
+ /lib/bundler/man/
157
+
158
+ # for a library or gem, you might want to ignore these files since the code is
159
+ # intended to run in multiple environments; otherwise, check them in:
160
+ # Gemfile.lock
161
+ # .ruby-version
162
+ # .ruby-gemset
163
+
164
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
165
+
166
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
167
+ # .rubocop-https?--*
168
+
169
+ ### RubyMine+all ###
170
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
171
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
172
+
173
+ # User-specific stuff
174
+ .idea/**/workspace.xml
175
+ .idea/**/tasks.xml
176
+ .idea/**/usage.statistics.xml
177
+ .idea/**/dictionaries
178
+ .idea/**/shelf
179
+
180
+ # Generated files
181
+ .idea/**/contentModel.xml
182
+
183
+ # Sensitive or high-churn files
184
+ .idea/**/dataSources/
185
+ .idea/**/dataSources.ids
186
+ .idea/**/dataSources.local.xml
187
+ .idea/**/sqlDataSources.xml
188
+ .idea/**/dynamic.xml
189
+ .idea/**/uiDesigner.xml
190
+ .idea/**/dbnavigator.xml
191
+
192
+ # Gradle
193
+ .idea/**/gradle.xml
194
+ .idea/**/libraries
195
+
196
+ # Gradle and Maven with auto-import
197
+ # When using Gradle or Maven with auto-import, you should exclude module files,
198
+ # since they will be recreated, and may cause churn. Uncomment if using
199
+ # auto-import.
200
+ # .idea/artifacts
201
+ # .idea/compiler.xml
202
+ # .idea/jarRepositories.xml
203
+ # .idea/modules.xml
204
+ # .idea/*.iml
205
+ # .idea/modules
206
+ # *.iml
207
+ # *.ipr
208
+
209
+ # CMake
210
+ cmake-build-*/
211
+
212
+ # Mongo Explorer plugin
213
+ .idea/**/mongoSettings.xml
214
+
215
+ # File-based project format
216
+ *.iws
217
+
218
+ # IntelliJ
219
+ out/
220
+
221
+ # mpeltonen/sbt-idea plugin
222
+ .idea_modules/
223
+
224
+ # JIRA plugin
225
+ atlassian-ide-plugin.xml
226
+
227
+ # Cursive Clojure plugin
228
+ .idea/replstate.xml
229
+
230
+ # Crashlytics plugin (for Android Studio and IntelliJ)
231
+ com_crashlytics_export_strings.xml
232
+ crashlytics.properties
233
+ crashlytics-build.properties
234
+ fabric.properties
235
+
236
+ # Editor-based Rest Client
237
+ .idea/httpRequests
238
+
239
+ # Android studio 3.1+ serialized cache file
240
+ .idea/caches/build_file_checksums.ser
241
+
242
+ ### RubyMine+all Patch ###
243
+ # Ignores the whole .idea folder and all .iml files
244
+ # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
245
+
246
+ .idea/
247
+
248
+ # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
249
+
250
+ *.iml
251
+ modules.xml
252
+ .idea/misc.xml
253
+ *.ipr
254
+
255
+ # Sonarlint plugin
256
+ .idea/sonarlint
257
+
258
+ ### Vim ###
259
+ # Swap
260
+ [._]*.s[a-v][a-z]
261
+ !*.svg # comment out if you don't need vector files
262
+ [._]*.sw[a-p]
263
+ [._]s[a-rt-v][a-z]
264
+ [._]ss[a-gi-z]
265
+ [._]sw[a-p]
266
+
267
+ # Session
268
+ Session.vim
269
+ Sessionx.vim
270
+
271
+ # Temporary
272
+ .netrwhist
273
+ # Auto-generated tag files
274
+ tags
275
+ # Persistent undo
276
+ [._]*.un~
277
+
278
+ # End of https://www.toptal.com/developers/gitignore/api/ruby,rails,rubymine+all,vim,emacs
279
+ #
280
+
281
+ .bridgetown-cache/
282
+ .bridgetown-webpack/
data/.rspec_status ADDED
@@ -0,0 +1,3 @@
1
+ example_id | status | run_time |
2
+ ------------------------------------ | ------ | --------------- |
3
+ ./spec/schienenzeppelin_spec.rb[1:1] | passed | 0.00034 seconds |
data/.rubocop.yml ADDED
@@ -0,0 +1,28 @@
1
+
2
+ AllCops:
3
+ NewCops: enable
4
+
5
+ Naming/AccessorMethodName:
6
+ Enabled: false
7
+
8
+ Metrics/MethodLength:
9
+ CountAsOne: ['array', 'heredoc']
10
+ IgnoredMethods: ['describe', 'context']
11
+
12
+ Metrics/BlockLength:
13
+ IgnoredMethods: ['describe', 'context']
14
+ Exclude: ['**/*.rake']
15
+
16
+ Layout/LineLength:
17
+ Max: 120
18
+
19
+ Layout/MultilineMethodCallIndentation:
20
+ EnforcedStyle: indented
21
+
22
+ Style/BlockDelimiters:
23
+ Exclude:
24
+ - spec/**/*
25
+
26
+ Style/Documentation:
27
+ Enabled: false
28
+
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.6.6
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at hans.schnedlitz@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.