Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar authored Dec 14, 2024
2 parents 8b06bf7 + d121e3f commit 216d42a
Show file tree
Hide file tree
Showing 123 changed files with 2,076 additions and 877 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax = docker/dockerfile:1.4

ARG RUBY_VERSION=3.3.5
ARG RUBY_VERSION=3.3.6
FROM ghcr.io/rails/devcontainer/images/ruby:$RUBY_VERSION

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-rubygems.org/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
if: github.secret_source != 'None' && inputs.install-avo-pro == 'true'
run: |
printf "BUNDLE_WITH=avo\nRAILS_GROUPS=avo\n" >> $GITHUB_ENV
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # v1.191.0
- uses: ruby/setup-ruby@217c988b8c2bf2bacb2d5c78a7e7b18f8c34daed # v1.200.0
with:
ruby-version: ${{ inputs.ruby-version }}
bundler-cache: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
uses: github/codeql-action/autobuild@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -71,6 +71,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-24.04
env:
RUBYGEMS_VERSION: "3.5.20"
RUBY_VERSION: "3.3.5"
RUBY_VERSION: "3.3.6"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # master
- name: Cache Docker layers
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-rubygems-${{ hashFiles('**/Gemfile.lock') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
- uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0
with:
bundler-cache: true
- name: Rubocop
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
- uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0
with:
bundler-cache: true
- name: Brakeman
Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
- uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0
with:
bundler-cache: true
- name: Importmap Verify
Expand All @@ -51,7 +51,7 @@ jobs:
- name: login to Github Packages
run: echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
- uses: ruby/setup-ruby@2a18b06812b0e15bb916e1df298d3e740422c47e # v1.203.0
with:
bundler-cache: true
- name: krane render
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@ea9e4e37992a54ee68a9622e985e60c8e8f12d9f # v3.27.4
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
sarif_file: results.sarif
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
version: "3.5.20"
- name: latest
version: latest
ruby_version: ["3.3.5"]
ruby_version: ["3.3.6"]
tests:
- name: general
command: test
- name: system
command: test:system
include:
- rubygems: { name: latest, version: latest }
ruby_version: "3.3.5"
ruby_version: "3.3.6"
tests: { name: "avo without pro", command: "test test/*/avo" }
name: Rails tests ${{ matrix.tests.name }} (RubyGems ${{ matrix.rubygems.name }}, Ruby ${{ matrix.ruby_version }})
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -72,6 +72,6 @@ jobs:

- name: Upload coverage to Codecov
if: matrix.rubygems.name == 'locked' && (success() || failure())
uses: codecov/codecov-action@985343d70564a82044c1b7fcb84c2fa05405c1a2 # v5.0.4
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e # v5.1.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7 changes: 3 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
inherit_from: .rubocop_todo.yml
require:
- ./lib/cops/safe_navigation_cop.rb
- rubocop-performance
- rubocop-rails
- rubocop-minitest
Expand Down Expand Up @@ -130,9 +129,9 @@ Naming/AccessorMethodName:
Exclude:
- app/controllers/application_controller.rb

Style/CustomSafeNavigationCop:
Exclude:
- app/models/links.rb
Rails/SafeNavigation:
Enabled: true
ConvertTry: true

Style/Documentation:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.5
3.3.6
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1.10

# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.3.5
ARG RUBY_VERSION=3.3.6
ARG ALPINE_VERSION=3.20
FROM ruby:$RUBY_VERSION-alpine${ALPINE_VERSION} as base

Expand Down
26 changes: 13 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ruby file: ".ruby-version"
gem "rails", "~> 7.2.1"
gem "rails-i18n", "~> 7.0"

gem "aws-sdk-s3", "~> 1.172"
gem "aws-sdk-s3", "~> 1.176"
gem "aws-sdk-sqs", "~> 1.89"
gem "bootsnap", "~> 1.18"
gem "clearance", "~> 2.9"
gem "dalli", "~> 3.2"
gem "datadog", "~> 2.7"
gem "datadog", "~> 2.8"
gem "dogstatsd-ruby", "~> 5.6"
gem "google-protobuf", "~> 4.28"
gem "google-protobuf", "~> 4.29"
gem "faraday", "~> 2.12"
gem "faraday-retry", "~> 2.2"
gem "faraday-restrict-ip-addresses", "~> 0.3.0", require: "faraday/restrict_ip_addresses"
Expand All @@ -29,7 +29,7 @@ gem "omniauth", "~> 2.1"
gem "omniauth-rails_csrf_protection", "~> 1.0"
gem "openid_connect", "~> 2.3"
gem "pg", "~> 1.5"
gem "puma", "~> 6.4"
gem "puma", "~> 6.5"
gem "rack", "~> 3.1"
gem "rackup", "~> 2.2"
gem "rack-sanitizer", "~> 2.0"
Expand All @@ -50,9 +50,9 @@ gem "rqrcode", "~> 2.1"
gem "rotp", "~> 6.2"
gem "unpwn", "~> 1.0"
gem "webauthn", "~> 3.2"
gem "browser", "~> 6.1"
gem "browser", "~> 6.2"
gem "bcrypt", "~> 3.1"
gem "maintenance_tasks", "~> 2.9"
gem "maintenance_tasks", "~> 2.10"
gem "strong_migrations", "~> 2.1"
gem "phlex-rails", "~> 1.2"
gem "discard", "~> 1.4"
Expand All @@ -65,22 +65,22 @@ gem "sigstore", "~> 0.2.1"
# Admin dashboard
gem "avo", "~> 3.13"
gem "pagy", "~> 8.4"
gem "view_component", "~> 3.14.0"
gem "view_component", "~> 3.20.0"
gem "pundit", "~> 2.4"
gem "chartkick", "~> 5.1"
gem "groupdate", "~> 6.5"
gem "prop_initializer", "~> 0.2"

group :avo, optional: true do
source "https://packager.dev/avo-hq/" do
gem "avo-advanced", "~> 3.14"
gem "avo-advanced", "~> 3.15"
end
end

# Logging
gem "amazing_print", "~> 1.6"
gem "rails_semantic_logger", "~> 4.17"
gem "pp", "0.6.1"
gem "pp", "0.6.2"

# Former default gems
gem "csv", "~> 3.3" # zeitwerk-2.6.12
Expand Down Expand Up @@ -108,7 +108,7 @@ group :development, :test do

# used to find n+1 queries
gem "prosopite", "~> 1.4"
gem "pg_query", "~> 5.1"
gem "pg_query", "~> 6.0"

# bundle show | rg rubocop | cut -d' ' -f4 | xargs bundle update
gem "rubocop", "~> 1.64", require: false
Expand All @@ -129,17 +129,17 @@ group :development do
end

group :test do
gem "datadog-ci", "~> 1.8"
gem "datadog-ci", "~> 1.10"
gem "minitest", "~> 5.25", require: false
gem "minitest-retry", "~> 0.2.3"
gem "capybara", "~> 3.40"
gem "launchy", "~> 3.0"
gem "rack-test", "~> 2.1", require: "rack/test"
gem "rails-controller-testing", "~> 1.0"
gem "mocha", "~> 2.5", require: false
gem "mocha", "~> 2.7", require: false
gem "shoulda-context", "~> 3.0.0.rc1"
gem "shoulda-matchers", "~> 6.4"
gem "selenium-webdriver", "~> 4.26"
gem "selenium-webdriver", "~> 4.27"
gem "webmock", "~> 3.24"
gem "simplecov", "~> 0.22", require: false
gem "simplecov-cobertura", "~> 2.1", require: false
Expand Down
Loading

0 comments on commit 216d42a

Please sign in to comment.