Skip to content

Commit

Permalink
Merge pull request #327 from code0-tech/renovate/tucana-0.x
Browse files Browse the repository at this point in the history
Update dependency tucana to v0.0.11
  • Loading branch information
Taucher2003 authored Dec 16, 2024
2 parents 17fae5f + e2ee53c commit a04ccae
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,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)
Expand Down Expand Up @@ -378,7 +378,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
Expand Down
4 changes: 2 additions & 2 deletions app/grpc/ping_handler.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion config/initializers/tucana.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

Rails.application.config.to_prepare do
Tucana.load_protocol(:internal)
Tucana.load_protocol(:sagittarius)
end
2 changes: 1 addition & 1 deletion spec/grpc/ping_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions spec/requests/grpc/internal/ping_service_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a04ccae

Please sign in to comment.