gom-elasticsearch-adapter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,9 +17,10 @@ class GOM::Storage::ElasticSearch::Draft::Builder
17
17
  private
18
18
 
19
19
  def hashed(item)
20
+ return item unless item.is_a?(Tire::Results::Item)
20
21
  hash = item.to_hash
21
22
  hash.each do |key, value|
22
- hash[key] = hashed value if value.is_a?(Tire::Results::Item)
23
+ hash[key] = value.is_a?(Array) ? value.map{ |entry| hashed entry } : hashed(value)
23
24
  end
24
25
  hash
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gom-elasticsearch-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gom
16
- requirement: &19893740 !ruby/object:Gem::Requirement
16
+ requirement: &19332040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.5.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19893740
24
+ version_requirements: *19332040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gom-couchdb-adapter
27
- requirement: &19885480 !ruby/object:Gem::Requirement
27
+ requirement: &19330900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.5.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *19885480
35
+ version_requirements: *19330900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &19884600 !ruby/object:Gem::Requirement
38
+ requirement: &19330300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *19884600
46
+ version_requirements: *19330300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: reek
49
- requirement: &19883700 !ruby/object:Gem::Requirement
49
+ requirement: &19329740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '1.2'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *19883700
57
+ version_requirements: *19329740
58
58
  description: ElasticSearch adapter for the General Object Mapper. Current versions
59
59
  of ElasticSearch are supported.
60
60
  email: b.phifty@gmail.com
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 4343033503152296945
96
+ hash: 4441169262151666751
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 4343033503152296945
105
+ hash: 4441169262151666751
106
106
  requirements: []
107
107
  rubyforge_project: gom-elasticsearch-adapter
108
108
  rubygems_version: 1.8.10