stretchy 0.3.5 → 0.3.6

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: 758cd7bb41f505f1f9e4d0ce0faffe4990f67bf1
4
- data.tar.gz: 497dea4fe5d9dc1f5a9ab87b5e62db499022a22e
3
+ metadata.gz: 5822801c4cec4719808f4679f787570f97524b29
4
+ data.tar.gz: 4684f243aee61ab42f4cc0032163301674afe5df
5
5
  SHA512:
6
- metadata.gz: 6df1715ae65dcb706603afdf6f9bc96e812c4f36c6408af3ec95da37d3c2db73fe1fe80315411448c4f13483e3c224005cde41511311c95b706b717127c59e95
7
- data.tar.gz: 5df44ca59f891c1973f2202fb013549faf1dd5d2a098eb87bde5af5696ddf0e5ab66c4a416e4ad64d1a04f9a7aae1d86e6d5c730b8eda38efd944e80d7b95779
6
+ metadata.gz: 5ab85cf648c091546af556e5a4d86efa91f92889fdc155496be089087f546b8b1b0da6cc72e3868fde31f4b9178b8371211bf96f5deda5f730b2f6fe4af4c2c3
7
+ data.tar.gz: 21ccd5b5e9178dddd2c9a5fefe1ce056a56458a62b9d3f3a0777b225c6bb3756c2a8788909b5822f419343e8d9d03567fe06cdb39ac1ff7840351b8062c3232e
@@ -24,9 +24,11 @@ module Stretchy
24
24
  def search(options = {})
25
25
  params = {}
26
26
  params[:index] = options[:index] || index_name
27
- params[:type] = options[:type]
28
27
  params[:fields] = Array(options[:fields]) if options[:fields]
29
- params[:body] = options[:body]
28
+
29
+ [:type, :body, :from, :size, :explain].each do |field|
30
+ params[field] = options[field] if options[field]
31
+ end
30
32
 
31
33
  client.search(params)
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module Stretchy
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stretchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - agius
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-13 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch