boutons 0.4.1 → 0.4.2

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: 86a1ce111eb90683d1e8922f6b776aeb37903c97
4
- data.tar.gz: 78a187d679515dee674312cd0d0f90c0278f80d3
3
+ metadata.gz: 987550e81d14e582f8d1dc69eb4eea04deb81d2e
4
+ data.tar.gz: 60b5f7452c7ff9732990d7a81ac1da618c3dab92
5
5
  SHA512:
6
- metadata.gz: c56f9eb344d590add4ce3894d64588c394642c9b487eab1f54b2e93c3f4b4207869674503038fa8b37b9fa4c384cb64fe9b8fda16103f766a0984989ab8b5604
7
- data.tar.gz: ea8e9797f03a1b9b93cdfdec3cd7e5c3f502390d772768241473ca0760090dc5f5daee77aef5fb3b274e5e7b12261e4e44a051a34a77d2a9cbb99ad9c665c915
6
+ metadata.gz: 025a45a4a250b7b9bef1c2231eadccc8554374e80eff5964e83868f4a1586965b4636d7a7a7ce27f0237d2296176ab44601f32f128a4b2a373d7d3eb39adbc59
7
+ data.tar.gz: 30642634b16804ce9abf221582634a6dc5e80728641086b5f7d4574a0536d6b199083df5d98f7175182bcc0b8f28ce40aa408bdd8fcaa1a56d895e5bd02894f3
data/lib/boutons/uri.rb CHANGED
@@ -10,7 +10,12 @@ module Boutons
10
10
  def service
11
11
  @uri.scheme
12
12
  end
13
-
13
+ def method
14
+ @uri.scheme.split("+")[0]
15
+ end
16
+ def type
17
+ @uri.scheme.split("+")[1] || "tcp"
18
+ end
14
19
  def zk_hosts
15
20
  @hosts = []
16
21
  if @uri.host
@@ -1,3 +1,3 @@
1
1
  module Boutons
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/lib/boutons.rb CHANGED
@@ -125,7 +125,8 @@ module Boutons
125
125
  uri = Boutons::URI.new service_uri
126
126
  params = {}
127
127
  params[:application] = uri.host
128
- params[:method] = uri.registry.service
128
+ params[:method] = uri.registry.method
129
+ params[:type] = uri.registry.type
129
130
  params[:path] = uri.registry.zk_path
130
131
  params[:hosts] = uri.registry.zk_hosts
131
132
  params[:name] = service
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boutons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann