endeca_xml 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,10 +1,12 @@
1
1
  = endeca_xml
2
2
 
3
- endeca_xml provides a way for you to make http requests via the endeca XML API.
3
+ endeca_xml provides an interface between your web application and the Endeca (via thankxmedia) XML API
4
4
 
5
5
  == Features
6
6
 
7
- not much right now, but it will get there... hopefully
7
+ * Builds an XML query, formatted to thanxmedia specifications, via form filed hidden inputs which specify all the desired settings
8
+ * Parses the settings parameters and sends a completed XML query to thanxmedia API
9
+ * Handles the response XML and exposes methods to retrieve response data
8
10
 
9
11
  == Install
10
12
 
@@ -22,20 +24,31 @@ Then bundle install:
22
24
 
23
25
  === Non Rails
24
26
 
25
- gem install compressit
27
+ gem install endeca_xml
26
28
 
27
29
  == Usage
28
30
 
29
- The gem provides examples of each of the methods available. Right now its kind of clunky and you have to call each method individually to construct the XML request, then submit it. The response is returned as a 'cracked' ruby hash.
31
+ A lot more work has been done since the previous version. endeca_xml now constructs an XML query to send to thanxmedia via a form submission. An example of how the form is formatted is below:
32
+
33
+ <form action="/endeca" method="post">
34
+ <input type="hidden" name="endeca[base]" value="{'RecordsSet' => true, 'Dimensions' => true, 'BusinessRulesResult' => true, 'AppliedFilters' => true}" />
35
+ <input type="hidden" name="endeca[nav]" value="{'type' => '', 'ids' => [1, 2, 3, 4]}" />
36
+ <input type="hidden" name="endeca[search]" value="{'search-key' => 'key', 'search-term' => 'term'}" />
37
+ <input type="hidden" name="endeca[sort]" value="{'sort-key' => 'key', 'direction' => 'direction'}" />
38
+ <input type="hidden" name="endeca[paging]" value="{'RecordsOffset' => 0, 'RecordsPerPage' => 10}" />
39
+ <input type="hidden" name="endeca[parameters]" value="{'AggregationKey' => 'key'}" />
40
+ <input type="hidden" name="endeca[profiles]" value="{'profiles' => [1, 2, 3, 4]}" />
41
+ <input type="hidden" name="endeca[filters]" value="{'filter' => {'option' => 'option', 'option' => 'option'}}" />
42
+ <input type="submit" />
43
+ </form>
30
44
 
31
45
  == TODO
32
46
 
33
- * Pass all parameters into the initializer and have EndecaXml deconstruct the url and reconstruct it as XML rather than having the developer use each method individually.
34
- * Have EndecaXml make the request after its all done constructing the query rather than requiring that the developer use the request method.
47
+ * <s>Pass all parameters into the initializer and have EndecaXml deconstruct the url and reconstruct it as XML rather than having the developer use each method individually.</s>
48
+ * <s>Have EndecaXml make the request after its all done constructing the query rather than requiring that the developer use the request method.</s>
35
49
  * Review the code and clean things up, making it nice and sugary sweet.
36
50
  * The add_filters method needs some documentation, an example, and to be tested in a query.
37
-
38
- ---
51
+ * It occurred to me that the name is a little too ambiguous as this gem deals more specifically with thanxmedia's XML API and not Endeca directly, so a change of name is in order
39
52
 
40
53
  == Copyright
41
54
 
data/endeca_xml.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ['sdomino']
10
10
  s.email = ['sdomino@pagodabox.com']
11
11
  s.homepage = 'http://www.pagodabox.com'
12
- s.summary = 'endeca_xml provides a way for you to make http requests via the endeca XML API. '
13
- s.description = 'endeca_xml provides a way for you to make http requests via the endeca XML API. '
12
+ s.summary = 'endeca_xml provides an interface between your web application and the thanxmedia Endeca XML API'
13
+ s.description = 'endeca_xml provides an interface between your web application and the thanxmedia Endeca XML API'
14
14
 
15
15
  s.rubyforge_project = 'endeca_xml'
16
16
 
@@ -1,3 +1,3 @@
1
1
  class EndecaXml
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: endeca_xml
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - sdomino
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: "0"
46
46
  type: :development
47
47
  version_requirements: *id003
48
- description: "endeca_xml provides a way for you to make http requests via the endeca XML API. "
48
+ description: endeca_xml provides an interface between your web application and the thanxmedia Endeca XML API
49
49
  email:
50
50
  - sdomino@pagodabox.com
51
51
  executables: []
@@ -89,6 +89,6 @@ rubyforge_project: endeca_xml
89
89
  rubygems_version: 1.7.2
90
90
  signing_key:
91
91
  specification_version: 3
92
- summary: endeca_xml provides a way for you to make http requests via the endeca XML API.
92
+ summary: endeca_xml provides an interface between your web application and the thanxmedia Endeca XML API
93
93
  test_files: []
94
94