elementary-rpc 2.2.0.49 → 2.3.0.54
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 +8 -8
- data/.travis.yml +2 -0
- data/lib/elementary/connection.rb +2 -0
- data/lib/elementary/transport/http.rb +2 -0
- data/lib/elementary/version.rb +1 -1
- data/spec/connection_spec.rb +6 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTM1MTYyZjg5MjY5YmRlZTVmZGZhNzExMGIyOTNjYjYyY2M3ZDI2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTg3ZTcwYjEzOWQ0N2RhN2E2OTgyMDNiNTFiYWMwZTJiMjdiMTQyZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2MyYjJhMDdlZDU0ZjY3ODY1YmY1MWJlMzQxMjc0ZjMwNWNjNzg1YTRiN2Vl
|
10
|
+
ZmZhMzEyMmQzMThkNjI4ZTExYTZkN2RkN2Q3MWVhYWNjMjJlYmM1YTYxODk4
|
11
|
+
NzU4MjEwM2JiZjEzZTA3OGVlZWVmZTY1MmVkYjNhNzE0MDQ1NGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDBhNDE4YWM2N2FlMWIwY2E5MzU2Mzg3NzkwYWI0MWE1ZmZkMTNkODBkNTdi
|
14
|
+
NWM2NmI5ZWFmMGY2ZmRlY2M0NGMzNWRjY2RmNTE4OGYyZDQ0YWM5ZDY5YzIx
|
15
|
+
OTU0MzY3ZTE0YTdiMDAzMmUxOTU4MDEzNDFjYjk2ZDZlNmE3YTY=
|
data/.travis.yml
CHANGED
@@ -20,6 +20,8 @@ module Elementary
|
|
20
20
|
def initialize(hosts, opts={})
|
21
21
|
@hosts = hosts
|
22
22
|
@options = Hashie::Mash.new({:logging => true, :logger => nil}).merge(opts)
|
23
|
+
# Create connection here to avoid threading issues later. See Issue #43
|
24
|
+
client
|
23
25
|
end
|
24
26
|
|
25
27
|
def call(service, rpc_method, *params)
|
data/lib/elementary/version.rb
CHANGED
data/spec/connection_spec.rb
CHANGED
@@ -59,7 +59,7 @@ describe Elementary::Connection do
|
|
59
59
|
described_class.new(Elementary::Rspec::Simple, opts)
|
60
60
|
end
|
61
61
|
describe '#select_transport' do
|
62
|
-
subject(:transport) { connection.
|
62
|
+
subject(:transport) { connection.rpc.transport }
|
63
63
|
|
64
64
|
context 'by default' do
|
65
65
|
it { should be_instance_of Elementary::Transport::HTTP }
|
@@ -69,9 +69,11 @@ describe Elementary::Connection do
|
|
69
69
|
let(:opts) { {:transport_options => transport_opts} }
|
70
70
|
let(:transport_opts) do
|
71
71
|
Hashie::Mash.new({
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
:request => {
|
73
|
+
:timeout => 3,
|
74
|
+
:open_timeout => 1,
|
75
|
+
}
|
76
|
+
})
|
75
77
|
end
|
76
78
|
|
77
79
|
it 'should pass request_options to the transport' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elementary-rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R. Tyler Croy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.5.1
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Gem supporting Protobuf RPC in a simple way
|