nats-rpc 0.0.4 → 0.0.5

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: 255aae6d3d49c3911d45e4b696c87ba955cefa08e68553247e632b23045f3c58
4
- data.tar.gz: 63eba4d3d4de9b4872451076ddf3bff941e14224ec8047a148449c76deef9097
3
+ metadata.gz: 67bf64491db922669d63fb1d600dadf236e34600b5d5836412d3fce8a8f37ac0
4
+ data.tar.gz: 9e2fe08574804379047d5fff808b652cf793d0df1f11b27a7399c2ab5c8af5e7
5
5
  SHA512:
6
- metadata.gz: 109a1adf1699aebcf71a9fee2cc9ca316d8a75116147029407ef12c07e92042aba4a9830f387a49ebdaf88b0feea5e625ccc2ff58d8eedb17089a53f1fb5abbd
7
- data.tar.gz: 0f1cab8437758c93428132a91335f69ff8feb10bf76768df35656e3f69dd5b1b0c69a566c7bef343c28cabde3bc01e4eafc4fbc9a8fbe922b7c877c199e4531b
6
+ metadata.gz: c761af0486194d2ac948375e5e9ea9a7d890b535e538258479ec7c293b1df78f1d1813d6547cec3d37dcaa4604dc01cffc2db751058e8ea0cba8e3bd01f15dfd
7
+ data.tar.gz: '095faca1a3e9df4b422700af6e3593d3104d1c80b0144ddf5602cb3f6402cc147b2e048d5c2a3f15b611756aab4e9f728f8362e248f2be964fc671aadc4d3f8c'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nats-rpc (0.0.4)
4
+ nats-rpc (0.0.5)
5
5
  nats-pure
6
6
 
7
7
  GEM
@@ -1,9 +1,13 @@
1
1
  module NATS
2
2
  module RPC
3
3
  class Client
4
- def initialize(servers: ["nats://127.0.0.1:4222"])
4
+ def initialize(cluster_opts=nil)
5
+ cluster_opts = {
6
+ servers: ["nats://127.0.0.1:4222"]
7
+ } unless cluster_opts
8
+
5
9
  @nats = NATS::IO::Client.new
6
- @nats.connect servers: servers
10
+ @nats.connect cluster_opts
7
11
  end
8
12
 
9
13
  def request(subscription, obj, opts)
@@ -1,5 +1,5 @@
1
1
  module NATS
2
2
  module RPC
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nats-rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula