-
Notifications
You must be signed in to change notification settings - Fork 1
Ruby & Rails Updates #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Ruby & Rails Updates #152
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
ecae93e
Initialer Zwischenstand zur Dockerisierung der Client Anwendung
nbennke 0b60b2c
Use Default Actions
ro3t ed6699c
Image-Namen aus docker-compose service erzeugen
ro3t 7113df8
Image-Namen vorgeben
ro3t 1a30f75
Image-Namen aus docker-compose service erzeugen
ro3t dd744f6
latest-Tag beim docker-branch setzen
ro3t 9238a13
latest-Tag beim docker-branch setzen
ro3t 3c9af3c
latest-Tag beim docker-branch setzen
ro3t 3c389d4
latest-Tag beim docker-branch setzen
ro3t 4146010
reformat
ro3t 72cb296
Service-Bezeichnung in docker-compose.yml vereinheitlicht
ro3t 5aa1154
Resouces-Symlink erlauben
ro3t 3a3fe1f
Ruby & Rails-Update
ro3t 14fbd3c
Docker-Build-Branches erweitert
ro3t 1573cd8
Ruby-Version
ro3t b77466c
Workflows nur ausführen wenn diese extra aufgerufen werden
ro3t 81555dd
Fix: Stylesheet
ro3t 4a97d4e
RefreshStaticJob ins Backoffice verschoben
ro3t 65f74a9
nur `mri` Plattform unterstützt
nbennke 5474f8e
Node Version aus Version File lesen
nbennke 299cb9d
fix indent
nbennke b6187ef
fix codestyle nach auto correct
nbennke 823c346
Introduce ApplicationResource base class and make ActiveResource mode…
nbennke 0360c4c
nicht mehr notwendige Konfiguration entfernt
nbennke 78946d0
test ohne Inhalt entfernt
nbennke 43b21bc
Metrics/ClassLength für Tests deaktiviert
nbennke 2b165ee
fix frozen string literal issue
nbennke 1aa90b8
rubocop regeln angepasst
nbennke 994652b
einfache Tests für Request Model Logiken ergänzt
nbennke fdb0b90
Structure Patch für ActiveResource CitySDK nach `/lib` verschoben und…
nbennke 7ea8fb0
fix: rubocop issues
nbennke 86b74ba
Builds mit zugehörigen Tags auf Master, PRs und Tags
nbennke 62bcb0d
Merge branch 'docker' into updates
nbennke 6bd4531
fix: uninitialized constant ActiveresourceCitysdkStructurePatch (Name…
nbennke 6ff866b
Merge branch 'master' into updates
nbennke dfb614d
fix: Potential CSRF vulnerability due to forgery protection being dis…
nbennke e7277af
fix: Gems & Dependencies
nbennke 3ef070f
fix: https://github.com/bfpi/klarschiff-client/security/code-scanning/6
nbennke 0c5260b
bundle update --all
nbennke 65d9859
drop custom CodeQL workflow while GitHub's default CodeQL setup is al…
nbennke 7fc7123
fix: Docker build error:
nbennke 309c461
fix syntax für BUNDLE_WITHOUT
nbennke 7e6037c
Merge branch 'master' into updates
nbennke 35c3aec
Apply suggestions from code review
nbennke 9f6c169
Fix: wechsel zu Static Pages nach der Statistik-Seite
ro3t 79e3749
ErbLint Issues
ro3t 7c5f4b2
RuboCop Konfiguration
ro3t 2eb11b8
RuboCop: Style/FrozenStringLiteralComment
ro3t ade7be4
RuboCop: Style/StringLiterals
ro3t 6f02e47
RuboCop: Layout/EmptyLineAfterMagicComment
ro3t 2ab2150
RuboCop: Style/StringConcatenation
ro3t d3ad5df
RuboCop: Layout/EmptyLineAfterGuardClause
ro3t f3be57c
RuboCop: Layout/EmptyLinesAroundClassBody
ro3t 21f491d
RuboCop: Style/SpecialGlobalVars
ro3t 0405f22
RuboCop: Layout/EmptyLinesAfterModuleInclusion
ro3t 2ab9a69
RuboCop: Rails/ApplicationMailer
ro3t 047a5ec
RuboCop: Style/InverseMethods
ro3t 3111f17
RuboCop: Style/RedundantArgument
ro3t 67e87ac
RuboCop: Layout/CommentIndentation
ro3t e31f2d8
RuboCop: Rails/Date
ro3t a29dfe6
RuboCop: Performance/StringIdentifierArgument
ro3t 2265d49
RuboCop: Style/HashSyntax
ro3t 9988687
RuboCop: Style/PercentLiteralDelimiters
ro3t 1e3848f
RuboCop: Rails/Blank
ro3t 2c51a73
RuboCop: Style/NumericPredicate
ro3t 5c0b5b1
RuboCop: Style/SafeNavigation
ro3t a6c755f
RuboCop: Style/MapIntoArray
ro3t 0a6cc13
RuboCop: Lint/AssignmentInCondition
ro3t f54428a
RuboCop: Lint/UselessOr
ro3t 2d54cb1
RuboCop: Style/SymbolProc
ro3t 4863898
RuboCop: Performance/Detect
ro3t 666268e
RuboCop: Style/IfWithBooleanLiteralBranches
ro3t eb390ae
Merge branch 'master' into updates
ro3t 102ed29
Pfad via `join`; false positive Brakeman issue ignoriert
nbennke 4e34d32
use ignore file for brakeman
nbennke 635fb42
Gems aktualisiert
ro3t 5067066
Anpassung Rubcop Konfiguration: keine Leerzeile nach GuardClause erzw…
nbennke c52c60a
Deaktivierung ParseError Prüfung für ERBLint zur Vermeidung von False…
nbennke 6148c7c
fix Lint/RescueException: Avoid rescuing the `Exception` class. Perha…
nbennke 8b16ceb
fix Lint/ReturnInVoidContext: Do not return a value in `initialize`.
nbennke 6234720
fix: Layout/LineLength: Line is too long.
nbennke 7b98750
Revert "RuboCop: Rails/ApplicationMailer"
ro3t 3177b23
Kamera bei Mobilgeräten anfordern
ro3t 586c0b3
Fix RuboCop: Rails/ApplicationMailer
nbennke a40a6d8
Fix Layout/BlockAlignment & Indent
nbennke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| EnableDefaultLinters: true | ||
| glob: "**/*.{html,text,js}{+*,}.erb" | ||
| exclude: | ||
| - '**/vendor/**/*' | ||
| - '**/node_modules/**/*' | ||
| - 'app/views/*_mailer/*.text.erb' | ||
| linters: | ||
| ErbSafety: | ||
| enabled: true | ||
| ParserErrors: | ||
| enabled: false | ||
| Rubocop: | ||
| enabled: true | ||
| rubocop_config: | ||
| inherit_from: | ||
| - .rubocop.yml | ||
| Layout/InitialIndentation: | ||
| Enabled: false | ||
| Layout/LineLength: | ||
| Enabled: false | ||
| Layout/TrailingEmptyLines: | ||
| Enabled: false | ||
| Lint/UselessAssignment: | ||
| Enabled: false | ||
| Naming/VariableNumber: | ||
| Enabled: false | ||
| Style/FrozenStringLiteralComment: | ||
| Enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow integrates Brakeman with GitHub's Code Scanning feature | ||
| # Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications | ||
|
|
||
| name: Brakeman Scan | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ master ] | ||
| schedule: | ||
| - cron: '27 8 * * 5' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| RAILS_ENV: test | ||
|
|
||
| jobs: | ||
| brakeman-scan: | ||
| permissions: | ||
| contents: read # for actions/checkout to fetch code | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| name: Brakeman Scan | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # Checkout the repository to the GitHub Actions runner | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| # Customize the ruby version depending on your needs | ||
| - name: Setup Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
|
||
| # Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis | ||
| - name: Scan | ||
| continue-on-error: true | ||
| run: | | ||
| bundle exec brakeman --ignore-config config/brakeman.ignore --format sarif --output tmp/output.sarif.json | ||
|
|
||
| # Upload the SARIF file generated in the previous step | ||
| - name: Upload SARIF | ||
| uses: github/codeql-action/upload-sarif@v4 | ||
| with: | ||
| sarif_file: tmp/output.sarif.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Stylesheets | ||
|
|
||
| on: | ||
| - workflow_dispatch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| stylelint: | ||
| name: CSS files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| - run: bin/stylelint | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: ERB Templates | ||
|
|
||
| on: | ||
| - workflow_dispatch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| RAILS_ENV: test | ||
|
|
||
| jobs: | ||
| erblint: | ||
| name: ERB files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
| - name: Run ERB Lint | ||
| run: bin/erblint | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Javascripts | ||
|
|
||
| on: | ||
| - workflow_dispatch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| eslint: | ||
| name: Plain JS files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| - run: bin/eslint | ||
| coffeelint: | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| name: Coffee JS files | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| - run: bin/coffeelint | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: RuboCop | ||
|
|
||
| on: | ||
| - workflow_dispatch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| RAILS_ENV: test | ||
|
|
||
| jobs: | ||
| rubocop: | ||
| name: Run | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
| - name: Run RuboCop | ||
| run: bin/rubocop | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Rails Tests | ||
|
|
||
| on: | ||
| - workflow_dispatch | ||
|
|
||
| env: | ||
| RAILS_ENV: test | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| submodules: true | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| - run: yarn install | ||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
| - name: Prepare Assets | ||
| run: bundle exec rails assets:precompile | ||
| - name: Run Rails Tests | ||
| run: bundle exec rails test -b -d | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| plugins: | ||
| - rubocop-capybara | ||
| - rubocop-minitest | ||
| - rubocop-performance | ||
| - rubocop-rails | ||
|
|
||
| AllCops: | ||
| Exclude: | ||
| - 'bin/*' | ||
| - 'config/ci.rb' | ||
| - 'config.ru' | ||
| - 'db/schema.rb' | ||
| - 'Rakefile' | ||
| - 'vendor/**/**' | ||
| NewCops: enable | ||
|
|
||
| Layout/EmptyLineAfterGuardClause: | ||
| Enabled: false | ||
|
|
||
| Layout/SpaceInsideArrayLiteralBrackets: | ||
| Exclude: ['config/environments/*'] | ||
|
|
||
| Metrics/BlockLength: | ||
| Exclude: | ||
| - 'config/routes.rb' | ||
|
|
||
| Metrics/ClassLength: | ||
| Exclude: | ||
| - 'test/**/*' | ||
|
|
||
| Minitest/EmptyLineBeforeAssertionMethods: | ||
| Enabled: false | ||
|
|
||
| Style/Documentation: | ||
| Enabled: false | ||
|
|
||
| Style/FrozenStringLiteralComment: | ||
| Exclude: | ||
| - 'config/application.rb' | ||
| - 'config/boot.rb' | ||
| - 'config/environment.rb' | ||
| - 'config/environments/*' | ||
| - 'config/initializers/assets.rb' | ||
| - 'config/initializers/content_security_policy.rb' | ||
| - 'config/initializers/filter_parameter_logging.rb' | ||
| - 'config/initializers/inflections.rb' | ||
| - 'config/initializers/permissions_policy.rb' | ||
| - 'config/puma.rb' | ||
| - 'Gemfile' | ||
|
|
||
| Style/GlobalStdStream: | ||
| Exclude: | ||
| - 'config/environments/*' | ||
|
|
||
| Style/StringLiterals: | ||
| Exclude: | ||
| - 'config/application.rb' | ||
| - 'config/boot.rb' | ||
| - 'config/environment.rb' | ||
| - 'config/environments/*' | ||
| - 'config/initializers/assets.rb' | ||
| - 'config/puma.rb' | ||
|
|
||
| Style/SymbolArray: | ||
| Exclude: | ||
| - 'config/initializers/filter_parameter_logging.rb' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| ruby-3.2.2 | ||
| ruby-4.0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| lib/assets/**/* | ||
| vendor/assets/**/* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.