elastic_record 1.1.3 → 1.1.4

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: b6bfba08e1902bc979309fb76e3a65863aac0fcc
4
- data.tar.gz: a749ec6deb016dab7932bac24e448abd078657e2
3
+ metadata.gz: 43d163448ac2df0ed13d06df549e2f986f812491
4
+ data.tar.gz: 99603b58b72f7d4c74d49cd99e0c9877ad9a32a9
5
5
  SHA512:
6
- metadata.gz: 34e651e0c1c2f779a16f417f065645bb924e674f5038f9219e368e2d09c6f98a803d4b7d176c1477cec34c61a5bea74feafbc6bbb5dcb8c0fa9b97cb20b898e6
7
- data.tar.gz: 6870c79bcf0d75bdd0692bea7af511477d3cbe846cec72676db217d89273db6606a112dab00b57b287983a648ba1c95ba824fe27068a4f51b0d0589a8ab6f31c
6
+ metadata.gz: 65ff3c68ddab4c46310bef51356c2f7c164f2aac953103c92bd7471854c5ee8feede0824f5e472db227404f0af560fc58247b474ec39d0484680a96158af73f1
7
+ data.tar.gz: 97198a8a88d57eab1fc7b8ecc12ebfd368f172f5f3fd6548765e83d35bb8b53d4bc2ace3a2da001ac8392288421590c1cae5203f67c24e670260c34db87bb581
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'elastic_record'
5
- s.version = '1.1.3'
5
+ s.version = '1.1.4'
6
6
  s.summary = 'Use Elastic Search with your objects'
7
7
  s.description = 'Find your records with elastic search'
8
8
 
@@ -14,8 +14,9 @@ module ElasticRecord
14
14
 
15
15
  def as_search
16
16
  json = {}
17
- elastic_index.mapping[:properties].each_key do |key|
18
- next unless respond_to?(key)
17
+
18
+ elastic_index.mapping[:properties].each do |key, value|
19
+ next if !respond_to?(key) || value[:type] == 'object'
19
20
  value = send(key)
20
21
 
21
22
  if value.present? || value == false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infogroup
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: 1.8.11
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.0.0
146
+ rubygems_version: 2.0.2
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Use Elastic Search with your objects