protobuf 3.10.0.pre0 → 3.10.0

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
  SHA256:
3
- metadata.gz: 5f251d88d7525ca68f3757e5d15b3bf553f23e16c22b67f0cb501b4b7c57f9cf
4
- data.tar.gz: 78bba5d0b84d72805c158498b0c707975b2b81c4e1a2f3537ba5eeca9c5f3b67
3
+ metadata.gz: 278b7883f457cfa823f9c9d0d4330b1978086a0ad4d1b3e08cb479fbde256f15
4
+ data.tar.gz: d1e6232e9a9b1074d66f35c4790d5590f48775f5dec73fb2f15777f11b505ddf
5
5
  SHA512:
6
- metadata.gz: 98f9d860e46359e348313e2c6e1093c39911b40ff7227d3b2e953e3fa574234f8c518427f9e26797ca50de2d7d5599a8ba78232826288f2255600bc27ad58ad9
7
- data.tar.gz: 80643f875d7736c5883ce43b1903a61e08c78d9d11459621ca94f502f4f2e84748f85fbb6df2604886de0a708d11c0e6b7e80df9e03aa3bac7f65075cd795c2c
6
+ metadata.gz: ce7aac680a1638e2dd848869ee2d002bc1c0554f9d37831843cbdfd18fff370377958e3f5ae8d72e610256e4e7bc83ff23bf3062fef05bb7985e9670d6855f01
7
+ data.tar.gz: caaae07d19d4299b3d216c803151ce2965604723ba6e5fa6cbcfb246c8ae1d2eefc0413be02d5d196b7189cf134cbe070d1be1ccb7d29bea1072074c22347b3a
data/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Stable (3.8.x)
2
2
 
3
+
4
+ 3.10.0
5
+ ------
6
+ - Add headers to request proto
7
+
8
+ 3.9.0
9
+ -----
10
+ - Performance improvements
11
+
3
12
  3.8.0
4
13
  -----
5
14
  - Map types now supported (#367)
@@ -139,12 +139,7 @@ module Protobuf
139
139
 
140
140
  def request_bytes
141
141
  validate_request_type!
142
- fields = { :service_name => @options[:service].name,
143
- :method_name => @options[:method].to_s,
144
- :request_proto => @options[:request],
145
- :caller => request_caller }
146
-
147
- return ::Protobuf::Socketrpc::Request.encode(fields)
142
+ return ::Protobuf::Socketrpc::Request.encode(request_fields)
148
143
  rescue => e
149
144
  failure(:INVALID_REQUEST_PROTO, "Could not set request proto: #{e.message}")
150
145
  end
@@ -153,6 +148,13 @@ module Protobuf
153
148
  @options[:client_host] || ::Protobuf.client_host
154
149
  end
155
150
 
151
+ def request_fields
152
+ { :service_name => @options[:service].name,
153
+ :method_name => @options[:method].to_s,
154
+ :request_proto => @options[:request],
155
+ :caller => request_caller }
156
+ end
157
+
156
158
  def send_request
157
159
  fail 'If you inherit a Connector from Base you must implement send_request'
158
160
  end
@@ -1,3 +1,3 @@
1
1
  module Protobuf
2
- VERSION = '3.10.0.pre0' # rubocop:disable Style/MutableConstant
2
+ VERSION = '3.10.0' # rubocop:disable Style/MutableConstant
3
3
  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.10.0.pre0
4
+ version: 3.10.0
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: 2019-02-08 00:00:00.000000000 Z
14
+ date: 2019-03-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -480,9 +480,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
480
480
  version: '0'
481
481
  required_rubygems_version: !ruby/object:Gem::Requirement
482
482
  requirements:
483
- - - ">"
483
+ - - ">="
484
484
  - !ruby/object:Gem::Version
485
- version: 1.3.1
485
+ version: '0'
486
486
  requirements: []
487
487
  rubyforge_project:
488
488
  rubygems_version: 2.7.6