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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50e49ee213d45f6888663d417c8f019ed79d4c9f
4
- data.tar.gz: 103bb2370e73a3a61e98e92c77491521d95a83f5
3
+ metadata.gz: b30428e6913d8edd82b5db7963dce7e372ea2f27
4
+ data.tar.gz: 213ba5a4a695cc18ac1c16f1c050988de0ec28b5
5
5
  SHA512:
6
- metadata.gz: 766f198bb518a44bd3808ca020bbbff4b98b9449fd0cbf429c41f573fe3f14715c4a31a191c3a4fa5e5ca06f7219c815315c92131e57414681117ac583fd035f
7
- data.tar.gz: 9641a5fbc45325e1468585b8052e931946cfad57adb2012373ac98a3c1343a79c80ed0aca6939b0d7c5a0a766e578d933b8d10d1fae22004f712b2baac502636
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
@@ -1,2 +1,4 @@
1
+ v0.4.5
2
+ - Fix issue with hash strings and pagination
1
3
  v0.4.4
2
4
  - Added support for surfacing document _score on query results.
@@ -13,7 +13,7 @@ module Elasticity
13
13
  def initialize(index_name, document_type, body)
14
14
  @index_name = index_name
15
15
  @document_type = document_type
16
- @body = body
16
+ @body = body.deep_symbolize_keys!
17
17
  end
18
18
 
19
19
  def update(body_changes)
@@ -1,3 +1,3 @@
1
1
  module Elasticity
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
@@ -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 [rodrigo]
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 [doc_a]
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 [doc_b]
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
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-08 00:00:00.000000000 Z
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.2.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