es-elasticity 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/CHANGELOG +2 -0
- data/lib/elasticity/search.rb +1 -1
- data/lib/elasticity/version.rb +1 -1
- data/spec/functional/segmented_spec.rb +9 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b30428e6913d8edd82b5db7963dce7e372ea2f27
|
4
|
+
data.tar.gz: 213ba5a4a695cc18ac1c16f1c050988de0ec28b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f09521d34b7098daf93748d5ccd9423c34138389d98e0cd42767a9a7e2713dcf0c3923ea51c2dbfb7b455d2d776ae9167ed7c68ea4b84bfca551d9e44b0e24
|
7
|
+
data.tar.gz: 6c1596b4b9a3d7f3ceae0bc52a5ff281d2102530af49f12b67f5524596ac95bff6783154ab8db260b6898eb9543f5ac8a7427c1b16680854d13d1b2d9b43f5e4
|
data/.travis.yml
CHANGED
@@ -10,6 +10,8 @@ rvm:
|
|
10
10
|
- 2.2.3
|
11
11
|
services:
|
12
12
|
- elasticsearch
|
13
|
+
before_script:
|
14
|
+
- sleep 5
|
13
15
|
env:
|
14
16
|
global:
|
15
17
|
- secure: "HZa3D2GGwC6Jl062LJulbWZLTCieeBFC3FOJrArC5ul7ACGR5CEtANe0/UTnIf/Ad40p7I5VhiTdNFTcHunTbNc7Ae7dE5fOkiBHtxo/zwgpvHZK0iPvIoxsSfdcHobHeaF7NvfcXUkYUKcdRUyplHdB56eHQqYPVsah66K/4XA="
|
data/CHANGELOG
CHANGED
data/lib/elasticity/search.rb
CHANGED
data/lib/elasticity/version.rb
CHANGED
@@ -43,8 +43,9 @@ RSpec.describe "Segmented indexes", elasticsearch: true do
|
|
43
43
|
expect(success).to be true
|
44
44
|
|
45
45
|
seg.flush_index
|
46
|
-
results = seg.by_name("rodrigo").to_a
|
47
|
-
expect(results).to eq
|
46
|
+
results = seg.by_name("rodrigo").to_a.first
|
47
|
+
expect(results.class).to eq rodrigo.class
|
48
|
+
expect(results.name).to eq rodrigo.name
|
48
49
|
|
49
50
|
rodrigo.delete
|
50
51
|
seg.flush_index
|
@@ -69,10 +70,12 @@ RSpec.describe "Segmented indexes", elasticsearch: true do
|
|
69
70
|
seg_a.flush_index
|
70
71
|
seg_b.flush_index
|
71
72
|
|
72
|
-
res_a = seg_a.by_name("doc").to_a
|
73
|
-
expect(res_a).to eq
|
73
|
+
res_a = seg_a.by_name("doc").to_a.first
|
74
|
+
expect(res_a.class).to eq doc_a.class
|
75
|
+
expect(res_a.name).to eq doc_a.name
|
74
76
|
|
75
|
-
res_b = seg_b.by_name("doc").to_a
|
76
|
-
expect(res_b).to eq
|
77
|
+
res_b = seg_b.by_name("doc").to_a.first
|
78
|
+
expect(res_b.class).to eq doc_b.class
|
79
|
+
expect(res_b.name).to eq doc_b.name
|
77
80
|
end
|
78
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: es-elasticity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Kochenburger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.4.5.1
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: ActiveModel-based library for working with Elasticsearch
|