stretcher 1.21.0.beta1 → 1.21.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bd29c29360c6f877954a21a4e2dc59d9e54ffaf
4
- data.tar.gz: 9483c1bdd153901d0da9992c5c5717760d939b3f
3
+ metadata.gz: 0ce236606130c06da32f892b0dc2b65bae05118f
4
+ data.tar.gz: d609025a35624c98fa675dfe4fa878a8900f7e61
5
5
  SHA512:
6
- metadata.gz: 2440f80c955244239e3b4ad08bd0827c0f98c69ad694e5f9b7b885118b1ca209275b252ad0b2615725282661f3b1ac9ed30f6ab926fc224244b289ddc83438f0
7
- data.tar.gz: ce5a0ece0c91eac96c0a9b66d9ec4ae7fd903870485494e7e0b0e21de1fcf6c54841edeba0c7c0cd444dda218459550a4e568813ccebcd19d62a7cdd6f4beca4
6
+ metadata.gz: fbc088865620e42c268673837cd6c66ac8398f7643ff00be75e12a8310b15050010355f86d3e3d4c1fd64d0c1b325b2c6fdad51f2393d0b0c6712bf25ca25eee
7
+ data.tar.gz: 6e54d0d191f3a7adfc507ad7c1f3743b3bb11132198b4d84e4c01b303544b109b673d02de6a03eb108910ce49653b1e878773ec6e939d59ce9e6307ffb162231
@@ -197,7 +197,7 @@ module Stretcher
197
197
  # suggest("band_complete", "a", field: :suggest)
198
198
  # Use the new completion suggest API per http://www.elasticsearch.org/guide/reference/api/search/completion-suggest/
199
199
  def suggest(name, text, completion={})
200
- request(:post, "_suggest", {name => {:text => text, :completion => completion}})
200
+ request(:post, "_suggest", nil, {name => {:text => text, :completion => completion}})
201
201
  end
202
202
 
203
203
  # Full path to this index
@@ -1,3 +1,3 @@
1
1
  module Stretcher
2
- VERSION = "1.21.0.beta1"
2
+ VERSION = "1.21.0.beta2"
3
3
  end
@@ -156,7 +156,7 @@ describe Stretcher::Index do
156
156
  :completion => {:field => "sug-field"}}}
157
157
  index.
158
158
  should_receive(:request).
159
- with(:post, "_suggest", expected).once.and_return(:result)
159
+ with(:post, "_suggest", nil, expected).once.and_return(:result)
160
160
  index.suggest("sug-alias", "prefix", field: "sug-field").should == :result
161
161
  end
162
162
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stretcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0.beta1
4
+ version: 1.21.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Cholakian