diff --git a/.ruby-version b/.ruby-version index be94e6f5..15a27998 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.2 +3.3.0 diff --git a/Dockerfile b/Dockerfile index 4d693600..a390950a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ruby:3.2.2-alpine3.18@sha256:198e97ccb12cd0297c274d10e504138f412f90bed50c36ebde0a466ab89cf526 AS build +FROM ruby:3.3.0-alpine3.19@sha256:203b3087530e9cb117d8aab9b49bb766253fd8a6606a0d7520a591c7a3d992f7 AS build WORKDIR /app @@ -26,7 +26,7 @@ ENV RAILS_ENV="${RAILS_ENV:-production}" \ COPY --chown=ruby:ruby . . -FROM ruby:3.2.2-alpine3.18@sha256:198e97ccb12cd0297c274d10e504138f412f90bed50c36ebde0a466ab89cf526 AS app +FROM ruby:3.3.0-alpine3.19@sha256:203b3087530e9cb117d8aab9b49bb766253fd8a6606a0d7520a591c7a3d992f7 AS app ENV RAILS_ENV="${RAILS_ENV:-production}" \ PATH="${PATH}:/home/ruby/.local/bin" \ diff --git a/Gemfile b/Gemfile index 5fea6ea4..00d53b49 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby "3.2.2" +ruby "3.3.0" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "~> 7.0.8" diff --git a/Gemfile.lock b/Gemfile.lock index ba9ab3f6..68bb043c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -163,6 +163,7 @@ GEM marcel (1.0.2) method_source (1.0.0) mini_mime (1.1.5) + mini_portile2 (2.8.5) minitest (5.20.0) msgpack (1.7.2) net-imap (0.3.7) @@ -175,11 +176,8 @@ GEM net-smtp (0.3.3) net-protocol nio4r (2.5.9) - nokogiri (1.15.5-arm64-darwin) - racc (~> 1.4) - nokogiri (1.15.5-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.15.5-x86_64-linux) + nokogiri (1.15.5) + mini_portile2 (~> 2.8.2) racc (~> 1.4) paper_trail (15.1.0) activerecord (>= 6.1) @@ -317,6 +315,7 @@ GEM PLATFORMS arm64-darwin-21 arm64-darwin-22 + arm64-darwin-23 x86_64-darwin-21 x86_64-darwin-22 x86_64-linux @@ -346,7 +345,7 @@ DEPENDENCIES tzinfo-data RUBY VERSION - ruby 3.2.2p53 + ruby 3.3.0p0 BUNDLED WITH 2.4.10 diff --git a/spec/integration/sentry_spec.rb b/spec/integration/sentry_spec.rb index a88ea0cd..f46ed7de 100644 --- a/spec/integration/sentry_spec.rb +++ b/spec/integration/sentry_spec.rb @@ -44,12 +44,8 @@ expect(filtered_event.to_hash.to_s).not_to include "submission-email@test.example" end - it "replaces the email address in the exception with a comment" do - expect(filtered_event.to_hash[:exception][:values].first[:value]).to include "[Filtered (client-side)]" - end - it "keeps the rest of the exception message" do - expect(filtered_event.to_hash[:exception][:values].first[:value]).to include "undefined method" + expect(filtered_event.to_hash[:exception][:values].first[:value]).to eq "undefined method `not_a_method' for an instance of Form (NoMethodError)" end end