waistband 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,23 +16,23 @@ module Waistband
16
16
  attr_accessor :result, :kind
17
17
 
18
18
  def index_already_exists?
19
- kind == "IndexAlreadyExistsException"
19
+ !!message.match("IndexAlreadyExistsException")
20
20
  end
21
21
 
22
22
  def alias_with_name_exists?
23
- kind == "InvalidIndexNameException" && !!message.match("an alias with the same name already exists")
23
+ !!message.match("InvalidIndexNameException") && !!message.match("an alias with the same name already exists")
24
24
  end
25
25
 
26
26
  def index_missing?
27
- kind == "IndexMissingException"
27
+ !!message.match("IndexMissingException")
28
28
  end
29
29
 
30
30
  def key_missing?
31
- kind == "KeyMissing"
31
+ !!message.match("KeyMissing")
32
32
  end
33
33
 
34
34
  def alias_not_ok?
35
- kind == "AliasNotOk"
35
+ !!message.match("AliasNotOk")
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  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.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: