protobuf 3.6.11 → 3.6.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7ec12754d8e386bf82f3a710819b2f443932e5
|
4
|
+
data.tar.gz: 527a850ab4d8a1f01469adfc60047c5d2d21b536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0059ae03b3dfdb3119542ad22afa6cbc0d9132f1d1733853ca97b4a690359ff0f796863770fafab961733807389d251e81a7ae5962c0117087447c2811980b
|
7
|
+
data.tar.gz: 49fa4a8044113cf26b7e9b42c70bd3edbef04699c4e34c1938bbe6b3a6111ad8ad135b1439348ad8405d2af6f100f8d2a0bff9aecf24ed88df037fcaa3046849
|
@@ -28,12 +28,9 @@ module Protobuf
|
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
|
-
# Call the given service method.
|
32
31
|
def dispatch_rpc_request
|
33
32
|
rpc_service.call(method_name)
|
34
33
|
rpc_service.response
|
35
|
-
rescue NoMethodError
|
36
|
-
raise MethodNotFound, "#{service_name}##{method_name} is not a defined RPC method."
|
37
34
|
end
|
38
35
|
|
39
36
|
def method_name
|
data/lib/protobuf/version.rb
CHANGED
@@ -16,7 +16,6 @@ RSpec.describe Protobuf::Rpc::ServiceDispatcher do
|
|
16
16
|
let(:request_type) { service_class.rpcs[method_name].request_type }
|
17
17
|
let(:response) { response_type.new(:name => 'required') }
|
18
18
|
let(:response_type) { service_class.rpcs[method_name].response_type }
|
19
|
-
|
20
19
|
let(:rpc_service) { service_class.new(env) }
|
21
20
|
let(:service_class) { Test::ResourceService }
|
22
21
|
let(:service_name) { service_class.to_s }
|
@@ -32,21 +31,5 @@ RSpec.describe Protobuf::Rpc::ServiceDispatcher do
|
|
32
31
|
stack_env = subject._call(env)
|
33
32
|
expect(stack_env.response).to eq response
|
34
33
|
end
|
35
|
-
|
36
|
-
context "when the given RPC method is not implemented" do
|
37
|
-
let(:method_name) { :find_not_implemented }
|
38
|
-
|
39
|
-
it "raises a method not found exception" do
|
40
|
-
expect { subject.call(env) }.to raise_exception(Protobuf::Rpc::MethodNotFound)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
context "when the given RPC method is implemented and a NoMethodError is raised" do
|
45
|
-
before { allow(rpc_service).to receive(:call).and_raise(NoMethodError) }
|
46
|
-
|
47
|
-
it "raises the exeception" do
|
48
|
-
expect { subject.call(env) }.to raise_exception(Protobuf::Rpc::MethodNotFound)
|
49
|
-
end
|
50
|
-
end
|
51
34
|
end
|
52
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BJ Neilsen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-08-
|
14
|
+
date: 2016-08-17 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -435,79 +435,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
435
|
version: '0'
|
436
436
|
requirements: []
|
437
437
|
rubyforge_project:
|
438
|
-
rubygems_version: 2.
|
438
|
+
rubygems_version: 2.5.1
|
439
439
|
signing_key:
|
440
440
|
specification_version: 4
|
441
441
|
summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
|
442
|
-
test_files:
|
443
|
-
- spec/benchmark/tasks.rb
|
444
|
-
- spec/bin/protoc-gen-ruby_spec.rb
|
445
|
-
- spec/encoding/all_types_spec.rb
|
446
|
-
- spec/encoding/extreme_values_spec.rb
|
447
|
-
- spec/functional/class_inheritance_spec.rb
|
448
|
-
- spec/functional/socket_server_spec.rb
|
449
|
-
- spec/functional/zmq_server_spec.rb
|
450
|
-
- spec/lib/protobuf/cli_spec.rb
|
451
|
-
- spec/lib/protobuf/code_generator_spec.rb
|
452
|
-
- spec/lib/protobuf/enum_spec.rb
|
453
|
-
- spec/lib/protobuf/field/bool_field_spec.rb
|
454
|
-
- spec/lib/protobuf/field/field_array_spec.rb
|
455
|
-
- spec/lib/protobuf/field/float_field_spec.rb
|
456
|
-
- spec/lib/protobuf/field/int32_field_spec.rb
|
457
|
-
- spec/lib/protobuf/field/string_field_spec.rb
|
458
|
-
- spec/lib/protobuf/field_spec.rb
|
459
|
-
- spec/lib/protobuf/generators/base_spec.rb
|
460
|
-
- spec/lib/protobuf/generators/enum_generator_spec.rb
|
461
|
-
- spec/lib/protobuf/generators/extension_generator_spec.rb
|
462
|
-
- spec/lib/protobuf/generators/field_generator_spec.rb
|
463
|
-
- spec/lib/protobuf/generators/file_generator_spec.rb
|
464
|
-
- spec/lib/protobuf/generators/message_generator_spec.rb
|
465
|
-
- spec/lib/protobuf/generators/service_generator_spec.rb
|
466
|
-
- spec/lib/protobuf/lifecycle_spec.rb
|
467
|
-
- spec/lib/protobuf/message_spec.rb
|
468
|
-
- spec/lib/protobuf/optionable_spec.rb
|
469
|
-
- spec/lib/protobuf/rpc/client_spec.rb
|
470
|
-
- spec/lib/protobuf/rpc/connector_spec.rb
|
471
|
-
- spec/lib/protobuf/rpc/connectors/base_spec.rb
|
472
|
-
- spec/lib/protobuf/rpc/connectors/common_spec.rb
|
473
|
-
- spec/lib/protobuf/rpc/connectors/ping_spec.rb
|
474
|
-
- spec/lib/protobuf/rpc/connectors/socket_spec.rb
|
475
|
-
- spec/lib/protobuf/rpc/connectors/zmq_spec.rb
|
476
|
-
- spec/lib/protobuf/rpc/middleware/exception_handler_spec.rb
|
477
|
-
- spec/lib/protobuf/rpc/middleware/logger_spec.rb
|
478
|
-
- spec/lib/protobuf/rpc/middleware/request_decoder_spec.rb
|
479
|
-
- spec/lib/protobuf/rpc/middleware/response_encoder_spec.rb
|
480
|
-
- spec/lib/protobuf/rpc/servers/socket_server_spec.rb
|
481
|
-
- spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
|
482
|
-
- spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
|
483
|
-
- spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
|
484
|
-
- spec/lib/protobuf/rpc/service_directory_spec.rb
|
485
|
-
- spec/lib/protobuf/rpc/service_dispatcher_spec.rb
|
486
|
-
- spec/lib/protobuf/rpc/service_filters_spec.rb
|
487
|
-
- spec/lib/protobuf/rpc/service_spec.rb
|
488
|
-
- spec/lib/protobuf/rpc/stat_spec.rb
|
489
|
-
- spec/lib/protobuf/varint_spec.rb
|
490
|
-
- spec/lib/protobuf_spec.rb
|
491
|
-
- spec/spec_helper.rb
|
492
|
-
- spec/support/all.rb
|
493
|
-
- spec/support/packed_field.rb
|
494
|
-
- spec/support/protos/all_types.data.bin
|
495
|
-
- spec/support/protos/all_types.data.txt
|
496
|
-
- spec/support/protos/enum.pb.rb
|
497
|
-
- spec/support/protos/enum.proto
|
498
|
-
- spec/support/protos/extreme_values.data.bin
|
499
|
-
- spec/support/protos/google_unittest.bin
|
500
|
-
- spec/support/protos/google_unittest.pb.rb
|
501
|
-
- spec/support/protos/google_unittest.proto
|
502
|
-
- spec/support/protos/google_unittest_import.pb.rb
|
503
|
-
- spec/support/protos/google_unittest_import.proto
|
504
|
-
- spec/support/protos/google_unittest_import_public.pb.rb
|
505
|
-
- spec/support/protos/google_unittest_import_public.proto
|
506
|
-
- spec/support/protos/multi_field_extensions.pb.rb
|
507
|
-
- spec/support/protos/multi_field_extensions.proto
|
508
|
-
- spec/support/protos/resource.pb.rb
|
509
|
-
- spec/support/protos/resource.proto
|
510
|
-
- spec/support/resource_service.rb
|
511
|
-
- spec/support/server.rb
|
512
|
-
- spec/support/test_app_file.rb
|
442
|
+
test_files: []
|
513
443
|
has_rdoc:
|