mongoid-elasticsearch 0.3.1 → 0.3.2

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: d6ddc81ca8a60464402cee8f9b312a60386c203c
4
- data.tar.gz: 772a4c6a18512ccaddcb0f334e20fe1596c6ec24
3
+ metadata.gz: 88487cee6ea854abe2c5d830e319fba9a6ecf76a
4
+ data.tar.gz: 13d3d7ec572729e6b24616cfec05bc12627e64b5
5
5
  SHA512:
6
- metadata.gz: c438080f5c384aa026249dcd58c3ba94b75e0713539e54a91f79db8d43db52db6c394bfc942fd27c2b5e79cdf45bf274a666df990efdc4b56359091a5cb882ca
7
- data.tar.gz: f1687552273b2f52af268a5c4c12705f31bde5162f65f1881f138b4edc304e983cb4036eec4cb71eccb242ac7bfaa50cdd281534ce7591638d92bd0d2bad48c4
6
+ metadata.gz: 780cf948874da57f3c455603a1314110b02e1c5361c2ef0c1db24820cdca31cb351b04cd98eec5309d98fe28f6fd53cfdada970423f8eae27598b5a84116e96e
7
+ data.tar.gz: b7eb6e71cf359e7b781b53fe5e532939d808238b309f6ce5fb206c8dae43da5b4c85b4c60502863bdf31c40cb62b309c351813ab160e1ea061fa3f130249fa2f
@@ -23,7 +23,6 @@ module Mongoid
23
23
  end
24
24
 
25
25
  page = options[:page]
26
- options[:per_page] ||= 50
27
26
  per_page = options[:per_page]
28
27
 
29
28
  query[:size] = ( per_page.to_i ) if per_page
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Elasticsearch
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
@@ -95,7 +95,6 @@ module Mongoid
95
95
  end
96
96
 
97
97
  page = options[:page]
98
- options[:per_page] ||= 50
99
98
  per_page = options[:per_page]
100
99
 
101
100
  query[:size] = ( per_page.to_i ) if per_page
@@ -301,7 +301,7 @@ describe Namespaced::Model do
301
301
 
302
302
  it '#search ignores irrelevant' do
303
303
  Namespaced::Model.es.search('irrelevant').to_a.size.should eq 1
304
- Namespaced::Model.es.search('test').to_a.size.should eq 20
304
+ Namespaced::Model.es.search('test', per_page: 30).to_a.size.should eq 20
305
305
  end
306
306
 
307
307
  it '#search dynamic wrapper' do
@@ -314,7 +314,7 @@ describe Namespaced::Model do
314
314
  Namespaced::Model.es.search('test', per_page: 10, page: 2).to_a.size.should eq 10
315
315
  Namespaced::Model.es.search('test', per_page: 30, page: 2).to_a.size.should eq 0
316
316
  Namespaced::Model.es.search('test', per_page: 2, page: 2).to_a.size.should eq 2
317
- Namespaced::Model.es.search(body: {query: {query_string: {query: 'test'}}}).to_a.length.should eq 20
317
+ Namespaced::Model.es.search(body: {query: {query_string: {query: 'test'}}}, size: 50).to_a.length.should eq 20
318
318
  end
319
319
 
320
320
  it '#all' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv