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 +4 -4
- data/elastic_record.gemspec +1 -1
- data/lib/elastic_record/callbacks.rb +3 -2
- 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: 43d163448ac2df0ed13d06df549e2f986f812491
|
4
|
+
data.tar.gz: 99603b58b72f7d4c74d49cd99e0c9877ad9a32a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ff3c68ddab4c46310bef51356c2f7c164f2aac953103c92bd7471854c5ee8feede0824f5e472db227404f0af560fc58247b474ec39d0484680a96158af73f1
|
7
|
+
data.tar.gz: 97198a8a88d57eab1fc7b8ecc12ebfd368f172f5f3fd6548765e83d35bb8b53d4bc2ace3a2da001ac8392288421590c1cae5203f67c24e670260c34db87bb581
|
data/elastic_record.gemspec
CHANGED
@@ -14,8 +14,9 @@ module ElasticRecord
|
|
14
14
|
|
15
15
|
def as_search
|
16
16
|
json = {}
|
17
|
-
|
18
|
-
|
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.
|
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
|
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.
|
146
|
+
rubygems_version: 2.0.2
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Use Elastic Search with your objects
|