gom-elasticsearch-adapter 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  class GOM::Storage::ElasticSearch::Draft::Builder
4
4
 
5
5
  def initialize(item)
6
- @item = item.to_hash
6
+ @item = hashed item
7
7
  end
8
8
 
9
9
  def draft
@@ -16,6 +16,14 @@ class GOM::Storage::ElasticSearch::Draft::Builder
16
16
 
17
17
  private
18
18
 
19
+ def hashed(item)
20
+ hash = item.to_hash
21
+ hash.each do |key, value|
22
+ hash[key] = hashed value if value.is_a?(Tire::Results::Item)
23
+ end
24
+ hash
25
+ end
26
+
19
27
  def initialize_draft
20
28
  @draft = GOM::Object::Draft.new
21
29
  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.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-19 00:00:00.000000000Z
12
+ date: 2011-10-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gom
16
- requirement: &18084220 !ruby/object:Gem::Requirement
16
+ requirement: &19893740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.5.0
21
+ version: 0.5.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18084220
24
+ version_requirements: *19893740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gom-couchdb-adapter
27
- requirement: &18083500 !ruby/object:Gem::Requirement
27
+ requirement: &19885480 !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: *18083500
35
+ version_requirements: *19885480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &18082780 !ruby/object:Gem::Requirement
38
+ requirement: &19884600 !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: *18082780
46
+ version_requirements: *19884600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: reek
49
- requirement: &18082120 !ruby/object:Gem::Requirement
49
+ requirement: &19883700 !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: *18082120
57
+ version_requirements: *19883700
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: 41961588728074855
96
+ hash: 4343033503152296945
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: 41961588728074855
105
+ hash: 4343033503152296945
106
106
  requirements: []
107
107
  rubyforge_project: gom-elasticsearch-adapter
108
108
  rubygems_version: 1.8.10