endeca_on_demand 0.9.9.1 → 0.9.9.2

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.
@@ -13,13 +13,13 @@ Gem::Specification.new do |s|
13
13
  s.description = 'EndecaOnDemand will take a query-string and construct an XML query and send it to an hosted Endeca On-Demand Cluster. It will then parse the response and expose an API for using the response data.'
14
14
 
15
15
  s.rubyforge_project = "endeca_on_demand"
16
-
17
- s.add_dependency 'nokogiri'
18
-
19
- s.add_development_dependency 'rspec'
20
16
 
21
17
  s.files = `git ls-files`.split("\n")
22
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
20
  s.require_paths = ["lib"]
21
+
22
+ s.add_development_dependency 'rspec'
23
+
24
+ s.add_dependency 'nokogiri'
25
25
  end
@@ -1,3 +1,3 @@
1
1
  class EndecaOnDemand
2
- VERSION = "0.9.9.1"
2
+ VERSION = "0.9.9.2"
3
3
  end
@@ -10,22 +10,26 @@ require 'uri'
10
10
  class EndecaOnDemand
11
11
 
12
12
  def initialize(host, options)
13
- @body = Builder::XmlMarkup.new(:indent => 2)
13
+ unless host.blank?
14
+ @body = Builder::XmlMarkup.new(:indent => 2)
14
15
 
15
- #
16
- set_host(host)
17
-
18
- #
19
- options.each do |key, value|
20
- self.send(key.to_sym, value) unless value.empty?
21
- end
22
-
23
- #
24
- send_request
25
-
26
- self.instance_variables.each do |instance_variable|
27
- # puts "VARS: #{instance_variable}"
28
- # self.class_eval("attr_reader :#{instance_variable}")
16
+ #
17
+ set_host(host)
18
+
19
+ #
20
+ options.each do |key, value|
21
+ self.send(key.to_sym, value) unless value.empty?
22
+ end
23
+
24
+ #
25
+ send_request
26
+
27
+ self.instance_variables.each do |instance_variable|
28
+ # puts "VARS: #{instance_variable}"
29
+ # self.class_eval("attr_reader :#{instance_variable}")
30
+ end
31
+ else
32
+ puts "Unable to continue... Make sure \"#{host}\" is a valid thanxmedia host."
29
33
  end
30
34
  end
31
35
 
@@ -34,7 +38,7 @@ class EndecaOnDemand
34
38
  attr_reader :breadcrumbs, :filtercrumbs
35
39
  attr_reader :dimensions
36
40
  attr_reader :rules
37
- attr_reader :searchs, :matchedrecordcount, :matchedmode, :applied_search_adjustments, :suggested_search_adjustments
41
+ attr_reader :searches, :matchedrecordcount, :matchedmode, :applied_search_adjustments, :suggested_search_adjustments
38
42
  attr_reader :selected_dimension_value_ids
39
43
 
40
44
  ## DEBUG
@@ -81,7 +85,6 @@ class EndecaOnDemand
81
85
 
82
86
  build_records
83
87
  build_breadcrumbs
84
- build_filtercrumbs
85
88
  build_dimensions
86
89
  build_business_rules
87
90
  build_applied_filters
@@ -259,7 +262,7 @@ class EndecaOnDemand
259
262
 
260
263
  # Builds an array of SEARCH REPORTS
261
264
  unless @response.xpath("//AppliedFilters//SearchReports").nil?
262
- @searchs = []
265
+ @searches = []
263
266
 
264
267
  @matchedrecordcount = @response.xpath("//AppliedFilters//SearchReports//SearchReport//matchedrecordcount")
265
268
  @matchedmode = @response.xpath("//AppliedFilters//SearchReports//SearchReport//matchedmode")
@@ -267,7 +270,7 @@ class EndecaOnDemand
267
270
  @applied_search_adjustments = @response.xpath("//AppliedFilters//SearchReports//SearchReport//AppliedSearchAdjustments")
268
271
  @suggested_search_adjustments = @response.xpath("//AppliedFilters//SearchReports//SearchReport//SuggestedSearchAdjustments")
269
272
 
270
- @searchs.push(EndecaOnDemand::Search.new(@response.xpath("//AppliedFilters//SearchReports//SearchReport//Search")))
273
+ @searches.push(EndecaOnDemand::Search.new(@response.xpath("//AppliedFilters//SearchReports//SearchReport//Search")))
271
274
  else
272
275
  puts 'There are no search reports with this response!'
273
276
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: endeca_on_demand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.1
4
+ version: 0.9.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-07 00:00:00.000000000Z
12
+ date: 2011-09-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: nokogiri
16
- requirement: &70172325736400 !ruby/object:Gem::Requirement
15
+ name: rspec
16
+ requirement: &70323819948660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
- type: :runtime
22
+ type: :development
23
23
  prerelease: false
24
- version_requirements: *70172325736400
24
+ version_requirements: *70323819948660
25
25
  - !ruby/object:Gem::Dependency
26
- name: rspec
27
- requirement: &70172325704300 !ruby/object:Gem::Requirement
26
+ name: nokogiri
27
+ requirement: &70323819948140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
- type: :development
33
+ type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70172325704300
35
+ version_requirements: *70323819948140
36
36
  description: EndecaOnDemand will take a query-string and construct an XML query and
37
37
  send it to an hosted Endeca On-Demand Cluster. It will then parse the response and
38
38
  expose an API for using the response data.