primedia-endeca 0.9.11 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/endeca.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{endeca}
5
- s.version = "0.9.11"
5
+ s.version = "0.9.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rein Henrichs", "Andy Stone"]
data/lib/endeca.rb CHANGED
@@ -20,7 +20,7 @@ require 'endeca/document'
20
20
  module Endeca
21
21
 
22
22
  # :stopdoc:
23
- VERSION = '0.9.11'
23
+ VERSION = '0.9.12'
24
24
  # :startdoc:
25
25
 
26
26
  # Returns the version string for the library.
@@ -62,7 +62,7 @@ module Endeca
62
62
  if @raw['Records']
63
63
  @documents ||= @raw['Records'].map(&@document_klass)
64
64
  elsif @raw['AggrRecords']
65
- @documents ||= @raw['AggrRecords']['Records'].map(&@document_klass)
65
+ @documents ||= @raw['AggrRecords'].map{|aggregate| aggregate['Records'].first}.map(&@document_klass)
66
66
  else
67
67
  []
68
68
  end
@@ -21,7 +21,7 @@ describe Endeca::DocumentCollection do
21
21
  }
22
22
 
23
23
  @aggregate_raw = {
24
- 'AggrRecords' => {'Records' => [@document]}
24
+ 'AggrRecords' => [{'Records' => [@document]}]
25
25
  }
26
26
 
27
27
  @document_collection = Endeca::DocumentCollection.new(@raw)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primedia-endeca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rein Henrichs