protobuf 2.4.4-java → 2.4.5-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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