endeca_on_demand 0.9.0 → 0.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.
- data/README.rdoc +3 -3
- data/endeca_on_demand.gemspec +1 -1
- data/lib/endeca_on_demand/version.rb +1 -1
- data/lib/endeca_on_demand.rb +7 -6
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
== EndecaOnDemand
|
2
2
|
|
3
|
-
This Endeca On-Demand Web API gem will take a query-string and construct an XML query
|
3
|
+
This Endeca On-Demand Web API gem 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.
|
4
4
|
|
5
5
|
NOTE: There are still some features that may not work completely, see the todo list below to see what I hope to get in as I continue to work on the gem. If there is anything missing let me know.
|
6
6
|
|
@@ -16,7 +16,7 @@ NOTE: There are still some features that may not work completely, see the todo l
|
|
16
16
|
|
17
17
|
Add this line to your Gemfile:
|
18
18
|
|
19
|
-
gem '
|
19
|
+
gem 'endeca_on_demand'
|
20
20
|
|
21
21
|
Then bundle install:
|
22
22
|
|
@@ -26,7 +26,7 @@ Then bundle install:
|
|
26
26
|
|
27
27
|
==== Non Rails
|
28
28
|
|
29
|
-
gem install
|
29
|
+
gem install endeca_on_demand
|
30
30
|
|
31
31
|
=== Usage
|
32
32
|
|
data/endeca_on_demand.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ['sdomino@pagodabox.com']
|
11
11
|
s.homepage = 'http://github.com/sdomino/endeca_on-demand'
|
12
12
|
s.summary = 'Formerly EndecaXml (endeca_xml), This gem provides an easy way for you to use the Thanx Media, Endeca On-Demand Web API'
|
13
|
-
s.description = 'EndecaOnDemand will take a query-string and construct an XML query
|
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
16
|
|
data/lib/endeca_on_demand.rb
CHANGED
@@ -31,10 +31,10 @@ class EndecaOnDemand
|
|
31
31
|
attr_reader :searchs, :matchedrecordcount, :matchedmode, :applied_search_adjustments, :suggested_search_adjustments
|
32
32
|
attr_reader :selected_dimension_value_ids
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
## DEBUG
|
35
|
+
attr_reader :uri, :http
|
36
|
+
attr_reader :base, :query, :request, :raw_response, :response
|
37
|
+
## /DEBUG
|
38
38
|
|
39
39
|
### /API
|
40
40
|
|
@@ -149,8 +149,8 @@ class EndecaOnDemand
|
|
149
149
|
end
|
150
150
|
|
151
151
|
begin
|
152
|
-
request,
|
153
|
-
handle_response(Crackoid::XML.parse(
|
152
|
+
@request, @raw_response = @http.post(@uri.path, @query.target!, 'Content-type' => 'application/xml')
|
153
|
+
handle_response(Crackoid::XML.parse(@raw_response))
|
154
154
|
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, Errno::ECONNREFUSED, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError => error
|
155
155
|
puts "ERROR: #{error.message}"
|
156
156
|
end
|
@@ -160,6 +160,7 @@ class EndecaOnDemand
|
|
160
160
|
|
161
161
|
def handle_response(response)
|
162
162
|
@response = response['Final']
|
163
|
+
|
163
164
|
build_data
|
164
165
|
end
|
165
166
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: endeca_on_demand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.
|
5
|
+
version: 0.9.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- sdomino
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-25 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: crackoid
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: "0"
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id002
|
37
|
-
description: EndecaOnDemand will take a query-string and construct an XML query
|
37
|
+
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.
|
38
38
|
email:
|
39
39
|
- sdomino@pagodabox.com
|
40
40
|
executables: []
|