waistband 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -164,6 +164,7 @@ results = index.search({
164
164
 
165
165
  results.hits # => returns a search results object
166
166
  results.total_hits # => 28481
167
+ ```
167
168
 
168
169
  For paginating the results, you can use the `#paginated_results` method, which requires the [Kaminari](https://github.com/amatsuda/kaminari), gem. If you use another gem, you can just override the method, etc.
169
170
 
@@ -64,14 +64,14 @@ module Waistband
64
64
  def save(*args)
65
65
  body_hash = args.extract_options!
66
66
  id = args.first
67
- type = body_hash.delete(:type) || default_type_name
67
+ _type = body_hash.delete(:_type) || default_type_name
68
68
 
69
69
  # map everything to strings if need be
70
70
  body_hash = stringify_all(body_hash) if @stringify
71
71
 
72
72
  saved = client.index(
73
73
  index: config_name,
74
- type: type,
74
+ type: _type,
75
75
  id: id,
76
76
  body: body_hash
77
77
  )
@@ -1,3 +1,3 @@
1
1
  module Waistband
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.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.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: