waistband 0.8.2 → 0.8.3

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.
@@ -111,7 +111,7 @@ module Waistband
111
111
  fetched = execute! 'put', "#{@index.config_name}/_alias/#{alias_name}"
112
112
  parsed = JSON.parse(fetched)
113
113
 
114
- error_with('Alias not OK', result: parsed, kind: 'AliasNotOk') unless parsed['ok'] == true
114
+ error_with('Alias not OK', result: parsed, kind: 'AliasNotOk') unless parsed.keys.include?('ok') && parsed['ok'] == true
115
115
 
116
116
  true
117
117
  end
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
@@ -63,6 +63,7 @@ describe Waistband::Connection do
63
63
  describe '#read' do
64
64
 
65
65
  it "targets the correct url" do
66
+ index.refresh
66
67
  RestClient.should_receive(:send).with('get', "http://localhost:9200/events_test__2013_01/event/my_key", nil).once.and_call_original
67
68
  connection.read 'my_key'
68
69
  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.8.2
4
+ version: 0.8.3
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-02-06 00:00:00.000000000 Z
12
+ date: 2014-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport