protobuf 2.4.4-java → 2.4.5-java
Sign up to get free protection for your applications and to get access to all the features.
@@ -44,6 +44,8 @@ module Protobuf
|
|
44
44
|
@values.delete(field.name)
|
45
45
|
when val.is_a?(field.type) then
|
46
46
|
@values[field.name] = val
|
47
|
+
when val.respond_to?(:to_proto) then
|
48
|
+
@values[field.name] = val.to_proto
|
47
49
|
when val.respond_to?(:to_hash) then
|
48
50
|
@values[field.name] = field.type.new(val.to_hash)
|
49
51
|
else
|
data/lib/protobuf/rpc/service.rb
CHANGED
@@ -11,8 +11,8 @@ module Protobuf
|
|
11
11
|
RpcMethod = Struct.new("RpcMethod", :method, :request_type, :response_type)
|
12
12
|
|
13
13
|
class Service
|
14
|
-
include Protobuf::Rpc::ServiceFilters
|
15
|
-
include Protobuf::Logger::LogMethods
|
14
|
+
include ::Protobuf::Rpc::ServiceFilters
|
15
|
+
include ::Protobuf::Logger::LogMethods
|
16
16
|
|
17
17
|
|
18
18
|
attr_reader :response, :rpc
|
@@ -98,7 +98,6 @@ module Protobuf
|
|
98
98
|
rpcs.key?(name)
|
99
99
|
end
|
100
100
|
|
101
|
-
|
102
101
|
##
|
103
102
|
# Instance Methods
|
104
103
|
#
|
data/lib/protobuf/version.rb
CHANGED