elementary-rpc 2.2.0.49 → 2.3.0.54

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGIxNjA2Yjk0OTRlMTUwZDE3ZDViZTMwYmUwYzg1MmQ4ZTdjNWI5Nw==
4
+ OTM1MTYyZjg5MjY5YmRlZTVmZGZhNzExMGIyOTNjYjYyY2M3ZDI2Mw==
5
5
  data.tar.gz: !binary |-
6
- ZTgwM2JjMjZhMDY2YmEzOWM2ODUyNWUzNzczNjdiMGRkM2YyOTRlZg==
6
+ ZTg3ZTcwYjEzOWQ0N2RhN2E2OTgyMDNiNTFiYWMwZTJiMjdiMTQyZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmE5NjVmNzAyOWIzNzliNTk1MDFiMzIyMjdlNGEwNjQ3MDVlZDVhMDE2MDgw
10
- OGFiOWQ1YWJlMzExNDI2YTQ4OTE3NTYzNmQ3MWRkNjdmOTMyNjk3NDZiZDkw
11
- NTM5MmVhMzI2ODIyODBkYzIzZWU0MTc0NTRjYWZhYzU4NTg1OGI=
9
+ M2MyYjJhMDdlZDU0ZjY3ODY1YmY1MWJlMzQxMjc0ZjMwNWNjNzg1YTRiN2Vl
10
+ ZmZhMzEyMmQzMThkNjI4ZTExYTZkN2RkN2Q3MWVhYWNjMjJlYmM1YTYxODk4
11
+ NzU4MjEwM2JiZjEzZTA3OGVlZWVmZTY1MmVkYjNhNzE0MDQ1NGI=
12
12
  data.tar.gz: !binary |-
13
- ZTEyOGNiNTg0ZGJlOTdlZjdjYjJjNWFkNDUyYjA0ZDVmNzY4YmQ2MWFhZjJl
14
- OTdkZWU1ODgyZmM0NzhjNDMxMDUwNmQ4OGRiMmNkYzE1MmNmNGRjYzRjYzky
15
- MGQ1ODkxODM2YjIyODhlYTUyMDBkYjM5OTUzZTMyNzZkZGM5NTU=
13
+ ZDBhNDE4YWM2N2FlMWIwY2E5MzU2Mzg3NzkwYWI0MWE1ZmZkMTNkODBkNTdi
14
+ NWM2NmI5ZWFmMGY2ZmRlY2M0NGMzNWRjY2RmNTE4OGYyZDQ0YWM5ZDY5YzIx
15
+ OTU0MzY3ZTE0YTdiMDAzMmUxOTU4MDEzNDFjYjk2ZDZlNmE3YTY=
@@ -7,3 +7,5 @@ deploy:
7
7
  provider: rubygems
8
8
  api_key:
9
9
  secure: MBokHfxas7tg/cZe1KXWVIjIoVgf4acZuzQ6D7GZW9WWxz2N03VzTGo3k4YF3oFdv+P3EfjwOTp3JUtrgm65EfvtTs7K+5lttU/D8JBeQagbZqCT8PlFUkNyxp0YPkZ5yNRjKxDgHKfTZ0YfEn+2j3qNLD/zdWomSm6iLOdLo6c=
10
+ before_install:
11
+ - gem install bundler
@@ -38,6 +38,8 @@ module Elementary
38
38
  @hosts = opts[:hosts] || DEFAULT_HOSTS
39
39
  @transport_opts = opts[:transport_options] || {}
40
40
  @future_opts = opts[:future_options] || {}
41
+ # Create exectutor here to avoid threading issues later. See Issue #43
42
+ rpc
41
43
  end
42
44
 
43
45
  def rpc
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Elementary
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -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.select_transport }
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
- :timeout => 3,
73
- :open_timeout => 1,
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.2.0.49
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: 2015-12-09 00:00:00.000000000 Z
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.4.5
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