protobuf 3.6.9 → 3.6.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfbfae9ba4f307ba0f2091a771eb7718ba00dad1
4
- data.tar.gz: 92883270fb2dc1d4a2956f10eb4ab0aa8f12bad0
3
+ metadata.gz: 35210ca10c85eb3a8f769e223c53420c51d778ba
4
+ data.tar.gz: 68cd7f756d8e2cacf66ba4bd28f4d51dd83419a9
5
5
  SHA512:
6
- metadata.gz: 302ef108feeecbb2a47d513e61450760d422381a669b160223ee1b17767d8ef87631d4598bc2bbefdef56d42c081119cd824fcbb8fadfea7dda65687f6c22474
7
- data.tar.gz: 5ddf314f935257add99bec05c9447573872515406bab567e45a672d49051493e0c4b2ea7e6ee30c9fe72408f3520a22ee3c200d57e684992aeed1768ad5e62ca
6
+ metadata.gz: a3d36aa1c336979c36ef24a3131d59c6013cdd4c87598b913155ab973ef2c9b9b88273c1f3b16a90a5c45d29728df9bd613c89f67d4c624604139553300f879b
7
+ data.tar.gz: 81c975787fe88dc9eefd228931f02ed7cbedf8a90e75e9f97d5010570175c2d0500d1bfe7d1119f462fb5ffb8b2e5bd03c0d75b0a3d7038a3e0de49c4eaef786
@@ -29,9 +29,9 @@ module Protobuf
29
29
  def timeout
30
30
  @timeout ||= begin
31
31
  if ::ENV.key?("PB_RPC_PING_PORT_TIMEOUT")
32
- ::ENV["PB_RPC_PING_PORT_TIMEOUT"].to_i
32
+ ::ENV["PB_RPC_PING_PORT_TIMEOUT"].to_f / 1000
33
33
  else
34
- 5 # 5 seconds
34
+ 0.2 # 200 ms
35
35
  end
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Protobuf
2
- VERSION = '3.6.9'
2
+ VERSION = '3.6.10'
3
3
  end
@@ -55,14 +55,14 @@ require "protobuf/zmq"
55
55
 
56
56
  describe "#timeout" do
57
57
  it "uses the default value" do
58
- expect(subject.timeout).to eq(5)
58
+ expect(subject.timeout).to eq(0.2)
59
59
  end
60
60
 
61
61
  context "when environment variable is set" do
62
- before { ::ENV["PB_RPC_PING_PORT_TIMEOUT"] = "1" }
62
+ before { ::ENV["PB_RPC_PING_PORT_TIMEOUT"] = "100" }
63
63
 
64
64
  it "uses the environmet variable" do
65
- expect(subject.timeout).to eq(1)
65
+ expect(subject.timeout).to eq(0.1)
66
66
  end
67
67
  end
68
68
  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.9
4
+ version: 3.6.10
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-05-20 00:00:00.000000000 Z
14
+ date: 2016-07-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport