waistband 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -147,7 +147,7 @@ module Waistband
147
147
 
148
148
  def alias_exists?(alias_name)
149
149
  alias_name = full_alias_name alias_name
150
- client.indices.alias_exists?(
150
+ client.indices.exists_alias(
151
151
  index: config_name,
152
152
  name: alias_name
153
153
  )
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
@@ -160,6 +160,12 @@ describe Waistband::Index do
160
160
  expect(index.send(:full_alias_name, 'all_events')).to eql 'all_events'
161
161
  end
162
162
 
163
+ it "creates aliases" do
164
+ expect(index.alias_exists?('events_alias_yo')).to be_false
165
+ index.alias 'events_alias_yo'
166
+ expect(index.alias_exists?('events_alias_yo')).to be_true
167
+ end
168
+
163
169
  end
164
170
 
165
171
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waistband
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-20 00:00:00.000000000 Z
12
+ date: 2014-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport