From b5a5a20ca9144c2d0008a89cc5b7f1b7a221296b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:44:16 +0000 Subject: [PATCH 1/2] Update dependency tucana to v0.0.11 --- Gemfile | 2 +- Gemfile.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 94e78f6..65de2fa 100644 --- a/Gemfile +++ b/Gemfile @@ -79,7 +79,7 @@ gem 'good_job', '~> 4.0' gem 'rotp' gem 'grpc', '~> 1.67' -gem 'tucana', '0.0.8' +gem 'tucana', '0.0.11' gem 'code0-identities', '~> 0.0.1' diff --git a/Gemfile.lock b/Gemfile.lock index 4fbe8b3..d8494ca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -327,7 +327,7 @@ GEM test-prof (1.4.2) thor (1.3.2) timeout (0.4.2) - tucana (0.0.8) + tucana (0.0.11) grpc (~> 1.64) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -377,7 +377,7 @@ DEPENDENCIES simplecov (~> 0.22.0) simplecov-cobertura (~> 2.1) test-prof (~> 1.0) - tucana (= 0.0.8) + tucana (= 0.0.11) tzinfo-data RUBY VERSION From e2ee53c84361181b5102832d87a748fd649172e5 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Mon, 16 Dec 2024 16:06:54 +0100 Subject: [PATCH 2/2] Migrate to new tucana protocol names --- app/grpc/ping_handler.rb | 4 ++-- config/initializers/tucana.rb | 2 +- spec/grpc/ping_handler_spec.rb | 2 +- spec/requests/grpc/internal/ping_service_spec.rb | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/grpc/ping_handler.rb b/app/grpc/ping_handler.rb index 796b912..d845386 100644 --- a/app/grpc/ping_handler.rb +++ b/app/grpc/ping_handler.rb @@ -1,9 +1,9 @@ # frozen_string_literal: true -class PingHandler < Tucana::Internal::PingService::Service +class PingHandler < Tucana::Sagittarius::PingService::Service include GrpcHandler def ping(request, _call) - Tucana::Internal::PingMessage.new(ping_id: request.ping_id) + Tucana::Sagittarius::PingMessage.new(ping_id: request.ping_id) end end diff --git a/config/initializers/tucana.rb b/config/initializers/tucana.rb index 8d8e7ad..d545a05 100644 --- a/config/initializers/tucana.rb +++ b/config/initializers/tucana.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true Rails.application.config.to_prepare do - Tucana.load_protocol(:internal) + Tucana.load_protocol(:sagittarius) end diff --git a/spec/grpc/ping_handler_spec.rb b/spec/grpc/ping_handler_spec.rb index 0357350..1feb85d 100644 --- a/spec/grpc/ping_handler_spec.rb +++ b/spec/grpc/ping_handler_spec.rb @@ -6,7 +6,7 @@ subject(:handler) { described_class.new } describe '.ping' do - let(:message) { Tucana::Internal::PingMessage.new(ping_id: 1) } + let(:message) { Tucana::Sagittarius::PingMessage.new(ping_id: 1) } it 'returns message with same id' do expect(handler.ping(message, nil).ping_id).to eq(message.ping_id) diff --git a/spec/requests/grpc/internal/ping_service_spec.rb b/spec/requests/grpc/internal/ping_service_spec.rb index 33b5e49..2dc5f52 100644 --- a/spec/requests/grpc/internal/ping_service_spec.rb +++ b/spec/requests/grpc/internal/ping_service_spec.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true -RSpec.describe 'internal.PingService', :need_grpc_server do +RSpec.describe 'sagittarius.PingService', :need_grpc_server do include GrpcHelpers - let(:stub) { create_stub Tucana::Internal::PingService } + let(:stub) { create_stub Tucana::Sagittarius::PingService } describe 'Ping' do it 'returns the same ping id' do - message = Tucana::Internal::PingMessage.new(ping_id: 42) + message = Tucana::Sagittarius::PingMessage.new(ping_id: 42) expect(stub.ping(message, authorization).ping_id).to eq(message.ping_id) end end