waistband 0.15.1 → 0.15.2

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
- ZGY2N2VmZTYyOTM4MjMzZTk2NTZmNjgyNjRjMjMwODVlMTNkZTAxMQ==
4
+ YjFjYjExMGYzNDE5ZWY0ZWVhMTM2OTY4MWQ2NTljYzg4NjM2MzQ1OA==
5
5
  data.tar.gz: !binary |-
6
- MTRiNmJhMjdkYTliZmU1YWVmMDdhYzk0OTA4N2Q3MmI0NWZiNjk3Yw==
6
+ NTQ1ZTM0NzNmNWVjYmJkMmVmNTM5NzhmOTE3MjE1Yjk3MDVlMDIxMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjliOGI1ZDhjZTAyMmM1ZGJhNWRjOGI0YTFmZjM0MDQ0YThkOTgxMzMxYjA1
10
- MzAzMTBhYTQzNzk0MDRjYTA5ZTAxOGVmMjlkOTVlMzk4MDk5YTA1OWQ5YzAx
11
- YmM4NmRlNzk3ZjM0N2YxYmEzYzBkZjY4NjY4OGQwNmM1YWI2NWM=
9
+ MDk2NmYzYThhZDc4ZWEwNTM1M2I0OTQ2MmJhNTM3YjAxMTAwZjU2YzU3MWRj
10
+ NzlhM2VhZTk0NGRkZDZmZGRiNGM0ZDFkNGU3MTAxZTVmNTgxMDc0ZTQ1YTZh
11
+ OWI0YTRmNDljN2FiNTg0MzE1NmZlYzNlZmNjZDFiYjI3NDU1MmE=
12
12
  data.tar.gz: !binary |-
13
- MjFjNTllOTExNDYwNzU0MGIwNWI4Yjg1Zjg4ZDZkZjJiZDUzY2I2MWE0NmEz
14
- MjAzNjM4MWI3MTc2MzVlOTMzOWNmZDQ2ZWI5NGU1NDQwY2NmZjU1MWJjODNl
15
- MjE4YTFmMDIzMmY2YTliMmRkNzE2MDZhZmFhMTU2MTUxYjgxNmM=
13
+ NWYwNjZiODQyZTgyZDI5OGRiY2NhOTg5ZmJmYjBlNjg2ZjkxZmMzNDI1M2E3
14
+ ODI0N2NkNmY1NjFjNjc2Y2I3MWUxNjUzZmQ4ODNhZDFmYTEyMzgyYjBjYTlm
15
+ MzYwNWJiMTQ0MGQ5NjAyMmI5YmMwMmI4MmYyMTI5MjEyNTAzMGE=
@@ -15,6 +15,8 @@ module Waistband
15
15
 
16
16
  end
17
17
 
18
+ attr_reader :servers
19
+
18
20
  def initialize(servers, options = {})
19
21
  @servers = servers
20
22
  @randomize_hosts = options.fetch(:randomize_hosts, true)
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.15.1"
2
+ VERSION = "0.15.2"
3
3
  end
@@ -15,6 +15,10 @@ describe Waistband::Index do
15
15
  expect(client.send(:config_hash)[:hosts]).to eql([{"host"=>"127.0.0.1", "port"=>9200, "protocol"=>"http"}])
16
16
  end
17
17
 
18
+ it "exposes servers correctly" do
19
+ expect(client.servers).to eql({"server1"=>{"host"=>"127.0.0.1", "port"=>9200, "protocol"=>"http"}})
20
+ end
21
+
18
22
  it "works" do
19
23
  index.delete
20
24
  index.create
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waistband
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jairala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-15 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport