From ce63ab2cfa882119473986e99ef6e9116d92ebdd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:40:45 +0000 Subject: [PATCH] Bump jsonb_accessor from 1.3.4 to 1.4 (#2288) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Pepler --- Gemfile | 2 +- Gemfile.lock | 16 ++++++++-------- app/models/case/sar/offender_complaint.rb | 2 +- .../offender_sar_complaint_controller_spec.rb | 2 +- .../sar/offender_complaint_decorator_spec.rb | 2 +- .../offender_sar_complaint/case_viewing_spec.rb | 6 +++--- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Gemfile b/Gemfile index be639a7326..145e7823e5 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,7 @@ gem "humanize_boolean" gem "jbuilder", "~> 2.11" gem "jquery-rails", "~> 4.5" gem "jquery-ui-rails" -gem "jsonb_accessor", "~> 1.3.2" +gem "jsonb_accessor", "~> 1.4" gem "jwe" gem "kaminari" gem "libreconv", "~> 0.9.5" diff --git a/Gemfile.lock b/Gemfile.lock index fbd79c82ac..7825d5b5b0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -136,7 +136,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties - bigdecimal (3.1.8) + bigdecimal (3.1.9) binding_of_caller (1.0.0) debug_inspector (>= 0.0.1) bootsnap (1.11.1) @@ -268,9 +268,9 @@ GEM jquery-ui-rails (7.0.0) railties (>= 3.2.16) json (2.8.2) - jsonb_accessor (1.3.4) - activerecord (>= 5.0) - activesupport (>= 5.0) + jsonb_accessor (1.4) + activerecord (>= 6.1) + activesupport (>= 6.1) pg (>= 0.18.1) jwe (0.4.0) jwt (2.7.0) @@ -307,11 +307,11 @@ GEM matrix (0.4.2) mini_mime (1.1.5) mini_portile2 (2.8.8) - minitest (5.25.1) + minitest (5.25.4) msgpack (1.5.1) multi_json (1.15.0) multi_xml (0.6.0) - mutex_m (0.2.0) + mutex_m (0.3.0) net-imap (0.4.10) date net-protocol @@ -589,7 +589,7 @@ GEM thor (1.3.1) tilt (2.1.0) timecop (0.9.6) - timeout (0.4.1) + timeout (0.4.3) ttfunk (1.7.0) turbolinks (5.2.1) turbolinks-source (~> 5.2) @@ -655,7 +655,7 @@ DEPENDENCIES jbuilder (~> 2.11) jquery-rails (~> 4.5) jquery-ui-rails - jsonb_accessor (~> 1.3.2) + jsonb_accessor (~> 1.4) jwe kaminari libreconv (~> 0.9.5) diff --git a/app/models/case/sar/offender_complaint.rb b/app/models/case/sar/offender_complaint.rb index 4cfbab00af..6a4810ab6e 100644 --- a/app/models/case/sar/offender_complaint.rb +++ b/app/models/case/sar/offender_complaint.rb @@ -70,7 +70,7 @@ class Case::SAR::OffenderComplaint < Case::SAR::Offender enum complaint_type: { standard_complaint: "standard_complaint", ico_complaint: "ico_complaint", - litigation_complaint: "litigation", + litigation_complaint: "litigation_complaint", } enum complaint_subtype: { diff --git a/spec/controllers/cases/offender_sar_complaint_controller_spec.rb b/spec/controllers/cases/offender_sar_complaint_controller_spec.rb index a41c7c50f4..8cff0dcc59 100644 --- a/spec/controllers/cases/offender_sar_complaint_controller_spec.rb +++ b/spec/controllers/cases/offender_sar_complaint_controller_spec.rb @@ -175,7 +175,7 @@ let(:params) do { current_step: "complaint-type", - offender_sar_complaint: offender_sar_base_params.merge(complaint_type: "litigation"), + offender_sar_complaint: offender_sar_base_params.merge(complaint_type: "litigation_complaint"), } end diff --git a/spec/decorators/case/sar/offender_complaint_decorator_spec.rb b/spec/decorators/case/sar/offender_complaint_decorator_spec.rb index 25a7fbb173..49332db821 100644 --- a/spec/decorators/case/sar/offender_complaint_decorator_spec.rb +++ b/spec/decorators/case/sar/offender_complaint_decorator_spec.rb @@ -67,7 +67,7 @@ end context "when litigation complaint" do - let(:offender_sar_complaint) { build_stubbed(:offender_sar_complaint, complaint_type: "litigation", date_responded: Date.new(2020, 1, 10), received_date: Date.new(2020, 1, 1)).decorate } + let(:offender_sar_complaint) { build_stubbed(:offender_sar_complaint, complaint_type: "litigation_complaint", date_responded: Date.new(2020, 1, 10), received_date: Date.new(2020, 1, 1)).decorate } it "returns Litigation" do expect(offender_sar_complaint.complaint_type).to eq "Litigation" diff --git a/spec/features/cases/offender_sar_complaint/case_viewing_spec.rb b/spec/features/cases/offender_sar_complaint/case_viewing_spec.rb index 9e56c253a7..986ec5dfc5 100644 --- a/spec/features/cases/offender_sar_complaint/case_viewing_spec.rb +++ b/spec/features/cases/offender_sar_complaint/case_viewing_spec.rb @@ -34,14 +34,14 @@ def set_up_cases create(:accepted_complaint_case) make_case_late(create(:accepted_complaint_case)) - create(:accepted_complaint_case, complaint_type: "litigation") - create(:accepted_complaint_case, complaint_type: "litigation") + create(:accepted_complaint_case, complaint_type: "litigation_complaint") + create(:accepted_complaint_case, complaint_type: "litigation_complaint") 3.times do make_case_late( create( :accepted_complaint_case, - complaint_type: "litigation", + complaint_type: "litigation_complaint", ), ) end