macasek-happymapper 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History +59 -0
- data/License +20 -0
- data/Manifest +38 -0
- data/README +49 -0
- data/Rakefile +43 -0
- data/TODO +0 -0
- data/examples/amazon.rb +34 -0
- data/examples/current_weather.rb +21 -0
- data/examples/dashed_elements.rb +20 -0
- data/examples/post.rb +19 -0
- data/examples/twitter.rb +37 -0
- data/happymapper.gemspec +38 -0
- data/lib/happymapper/attribute.rb +3 -0
- data/lib/happymapper/element.rb +3 -0
- data/lib/happymapper/item.rb +178 -0
- data/lib/happymapper/version.rb +3 -0
- data/lib/happymapper.rb +130 -0
- data/spec/fixtures/address.xml +8 -0
- data/spec/fixtures/analytics.xml +61 -0
- data/spec/fixtures/commit.xml +52 -0
- data/spec/fixtures/current_weather.xml +89 -0
- data/spec/fixtures/family_tree.xml +7 -0
- data/spec/fixtures/multiple_namespaces.xml +170 -0
- data/spec/fixtures/pita.xml +133 -0
- data/spec/fixtures/posts.xml +23 -0
- data/spec/fixtures/product_default_namespace.xml +10 -0
- data/spec/fixtures/product_no_namespace.xml +10 -0
- data/spec/fixtures/product_single_namespace.xml +10 -0
- data/spec/fixtures/radar.xml +21 -0
- data/spec/fixtures/statuses.xml +422 -0
- data/spec/happymapper_attribute_spec.rb +17 -0
- data/spec/happymapper_element_spec.rb +17 -0
- data/spec/happymapper_item_spec.rb +115 -0
- data/spec/happymapper_spec.rb +581 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +13 -0
- data/website/css/common.css +47 -0
- data/website/index.html +98 -0
- metadata +120 -0
data/lib/happymapper.rb
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
dir = File.dirname(__FILE__)
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
require 'time'
|
5
|
+
require 'rubygems'
|
6
|
+
gem 'libxml-ruby', '= 1.1.3'
|
7
|
+
require 'xml'
|
8
|
+
|
9
|
+
class Boolean; end
|
10
|
+
|
11
|
+
module HappyMapper
|
12
|
+
|
13
|
+
DEFAULT_NS = "happymapper"
|
14
|
+
|
15
|
+
def self.included(base)
|
16
|
+
base.instance_variable_set("@attributes", {})
|
17
|
+
base.instance_variable_set("@elements", {})
|
18
|
+
base.extend ClassMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
def attribute(name, type, options={})
|
23
|
+
attribute = Attribute.new(name, type, options)
|
24
|
+
@attributes[to_s] ||= []
|
25
|
+
@attributes[to_s] << attribute
|
26
|
+
attr_accessor attribute.method_name.intern
|
27
|
+
end
|
28
|
+
|
29
|
+
def attributes
|
30
|
+
@attributes[to_s] || []
|
31
|
+
end
|
32
|
+
|
33
|
+
def element(name, type, options={})
|
34
|
+
element = Element.new(name, type, options)
|
35
|
+
@elements[to_s] ||= []
|
36
|
+
@elements[to_s] << element
|
37
|
+
attr_accessor element.method_name.intern
|
38
|
+
end
|
39
|
+
|
40
|
+
def elements
|
41
|
+
@elements[to_s] || []
|
42
|
+
end
|
43
|
+
|
44
|
+
def has_one(name, type, options={})
|
45
|
+
element name, type, {:single => true}.merge(options)
|
46
|
+
end
|
47
|
+
|
48
|
+
def has_many(name, type, options={})
|
49
|
+
element name, type, {:single => false}.merge(options)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Specify a namespace if a node and all its children are all namespaced
|
53
|
+
# elements. This is simpler than passing the :namespace option to each
|
54
|
+
# defined element.
|
55
|
+
def namespace(namespace = nil)
|
56
|
+
@namespace = namespace if namespace
|
57
|
+
@namespace
|
58
|
+
end
|
59
|
+
|
60
|
+
def tag(new_tag_name)
|
61
|
+
@tag_name = new_tag_name.to_s
|
62
|
+
end
|
63
|
+
|
64
|
+
def tag_name
|
65
|
+
@tag_name ||= to_s.split('::')[-1].downcase
|
66
|
+
end
|
67
|
+
|
68
|
+
def parse(xml, options = {})
|
69
|
+
# locally scoped copy of namespace for this parse run
|
70
|
+
namespace = @namespace
|
71
|
+
|
72
|
+
if xml.is_a?(XML::Node)
|
73
|
+
node = xml
|
74
|
+
else
|
75
|
+
if xml.is_a?(XML::Document)
|
76
|
+
node = xml.root
|
77
|
+
else
|
78
|
+
node = XML::Parser.string(xml).parse.root
|
79
|
+
end
|
80
|
+
|
81
|
+
root = node.name == tag_name
|
82
|
+
end
|
83
|
+
|
84
|
+
# This is the entry point into the parsing pipeline, so the default
|
85
|
+
# namespace prefix registered here will propagate down
|
86
|
+
namespaces = node.namespaces
|
87
|
+
if namespaces && namespaces.default
|
88
|
+
already_assigned = namespaces.definitions.detect do |defn|
|
89
|
+
namespaces.default && namespaces.default.href == defn.href && defn.prefix
|
90
|
+
end
|
91
|
+
namespaces.default_prefix = DEFAULT_NS unless already_assigned
|
92
|
+
namespace ||= DEFAULT_NS
|
93
|
+
end
|
94
|
+
|
95
|
+
xpath = root ? '/' : './/'
|
96
|
+
xpath += "#{namespace}:" if namespace
|
97
|
+
xpath += options[:tag] ? options[:tag] : tag_name
|
98
|
+
|
99
|
+
nodes = node.find(xpath)
|
100
|
+
collection = nodes.collect do |n|
|
101
|
+
obj = new
|
102
|
+
|
103
|
+
attributes.each do |attr|
|
104
|
+
obj.send("#{attr.method_name}=",
|
105
|
+
attr.from_xml_node(n, namespace))
|
106
|
+
end
|
107
|
+
|
108
|
+
elements.each do |elem|
|
109
|
+
obj.send("#{elem.method_name}=",
|
110
|
+
elem.from_xml_node(n, namespace))
|
111
|
+
end
|
112
|
+
|
113
|
+
obj
|
114
|
+
end
|
115
|
+
|
116
|
+
# per http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Document.html#M000354
|
117
|
+
nodes = nil
|
118
|
+
|
119
|
+
if options[:single] || root
|
120
|
+
collection.first
|
121
|
+
else
|
122
|
+
collection
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
require File.join(dir, 'happymapper/item')
|
129
|
+
require File.join(dir, 'happymapper/attribute')
|
130
|
+
require File.join(dir, 'happymapper/element')
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<feed xmlns="http://www.w3.org/2005/Atom"
|
3
|
+
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"
|
4
|
+
xmlns:dxp="http://schemas.google.com/analytics/2009">
|
5
|
+
<id>http://www.google.com/analytics/feeds/accounts/nunemaker@gmail.com</id>
|
6
|
+
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
7
|
+
<title type="text">Profile list for nunemaker@gmail.com</title>
|
8
|
+
<link rel="self" type="application/atom+xml"
|
9
|
+
href="http://www.google.com/analytics/feeds/accounts/default"/>
|
10
|
+
<author>
|
11
|
+
<name>Google Analytics</name>
|
12
|
+
</author>
|
13
|
+
<generator version="1.0">Google Analytics</generator>
|
14
|
+
<openSearch:totalResults>4</openSearch:totalResults>
|
15
|
+
<openSearch:startIndex>1</openSearch:startIndex>
|
16
|
+
<openSearch:itemsPerPage>4</openSearch:itemsPerPage>
|
17
|
+
<entry>
|
18
|
+
<id>http://www.google.com/analytics/feeds/accounts/ga:47912</id>
|
19
|
+
<updated>2008-11-24T12:11:32.000-08:00</updated>
|
20
|
+
<title type="text">addictedtonew.com</title>
|
21
|
+
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
22
|
+
<dxp:tableId>ga:47912</dxp:tableId>
|
23
|
+
<dxp:property name="ga:accountId" value="85301"/>
|
24
|
+
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
25
|
+
<dxp:property name="ga:profileId" value="47912"/>
|
26
|
+
<dxp:property name="ga:webPropertyId" value="UA-85301-1"/>
|
27
|
+
</entry>
|
28
|
+
<entry>
|
29
|
+
<id>http://www.google.com/analytics/feeds/accounts/ga:1897579</id>
|
30
|
+
<updated>2008-11-24T12:11:32.000-08:00</updated>
|
31
|
+
<title type="text">railstips.org</title>
|
32
|
+
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
33
|
+
<dxp:tableId>ga:1897579</dxp:tableId>
|
34
|
+
<dxp:property name="ga:accountId" value="85301"/>
|
35
|
+
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
36
|
+
<dxp:property name="ga:profileId" value="1897579"/>
|
37
|
+
<dxp:property name="ga:webPropertyId" value="UA-85301-7"/>
|
38
|
+
</entry>
|
39
|
+
<entry>
|
40
|
+
<id>http://www.google.com/analytics/feeds/accounts/ga:17132454</id>
|
41
|
+
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
42
|
+
<title type="text">johnnunemaker.com</title>
|
43
|
+
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
44
|
+
<dxp:tableId>ga:17132454</dxp:tableId>
|
45
|
+
<dxp:property name="ga:accountId" value="85301"/>
|
46
|
+
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
47
|
+
<dxp:property name="ga:profileId" value="17132454"/>
|
48
|
+
<dxp:property name="ga:webPropertyId" value="UA-85301-25"/>
|
49
|
+
</entry>
|
50
|
+
<entry>
|
51
|
+
<id>http://www.google.com/analytics/feeds/accounts/ga:17132478</id>
|
52
|
+
<updated>2009-04-22T23:21:23.000-07:00</updated>
|
53
|
+
<title type="text">harmonyapp.com</title>
|
54
|
+
<link rel="alternate" type="text/html" href="http://www.google.com/analytics"/>
|
55
|
+
<dxp:tableId>ga:17132478</dxp:tableId>
|
56
|
+
<dxp:property name="ga:accountId" value="85301"/>
|
57
|
+
<dxp:property name="ga:accountName" value="addictedtonew.com"/>
|
58
|
+
<dxp:property name="ga:profileId" value="17132478"/>
|
59
|
+
<dxp:property name="ga:webPropertyId" value="UA-85301-26"/>
|
60
|
+
</entry>
|
61
|
+
</feed>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<commit>
|
3
|
+
<removed type="array">
|
4
|
+
<removed>
|
5
|
+
<filename>commands.rb</filename>
|
6
|
+
</removed>
|
7
|
+
<removed>
|
8
|
+
<filename>helpers.rb</filename>
|
9
|
+
</removed>
|
10
|
+
</removed>
|
11
|
+
<added type="array">
|
12
|
+
<added>
|
13
|
+
<filename>commands/commands.rb</filename>
|
14
|
+
</added>
|
15
|
+
<added>
|
16
|
+
<filename>commands/helpers.rb</filename>
|
17
|
+
</added>
|
18
|
+
</added>
|
19
|
+
<message>move commands.rb and helpers.rb into commands/ dir</message>
|
20
|
+
<modified type="array">
|
21
|
+
<modified>
|
22
|
+
<diff>@@ -56,7 +56,7 @@ module GitHub
|
23
|
+
end
|
24
|
+
|
25
|
+
def load(file)
|
26
|
+
- file[0] == ?/ ? super : super(BasePath + "/#{file}")
|
27
|
+
+ file[0] == ?/ ? super : super(BasePath + "/commands/#{file}")
|
28
|
+
end
|
29
|
+
|
30
|
+
def debug(*messages)</diff>
|
31
|
+
<filename>lib/github.rb</filename>
|
32
|
+
</modified>
|
33
|
+
</modified>
|
34
|
+
<parents type="array">
|
35
|
+
<parent>
|
36
|
+
<id>d462d2a2e60438ded3dd9e8e6593ca4146c5a0ba</id>
|
37
|
+
</parent>
|
38
|
+
</parents>
|
39
|
+
<url>http://github.com/defunkt/github-gem/commit/c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b</url>
|
40
|
+
<author>
|
41
|
+
<name>Chris Wanstrath</name>
|
42
|
+
<email>chris@ozmm.org</email>
|
43
|
+
</author>
|
44
|
+
<id>c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b</id>
|
45
|
+
<committed-date>2008-03-02T16:45:41-08:00</committed-date>
|
46
|
+
<authored-date>2008-03-02T16:45:41-08:00</authored-date>
|
47
|
+
<tree>28a1a1ca3e663d35ba8bf07d3f1781af71359b76</tree>
|
48
|
+
<committer>
|
49
|
+
<name>Chris Wanstrath</name>
|
50
|
+
<email>chris@ozmm.org</email>
|
51
|
+
</committer>
|
52
|
+
</commit>
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<aws:weather xmlns:aws="http://www.aws.com/aws">
|
2
|
+
<aws:api version="2.0"/>
|
3
|
+
<aws:WebURL>http://weather.weatherbug.com/IN/Carmel-weather.html?ZCode=Z5546&Units=0&stat=MOCAR</aws:WebURL>
|
4
|
+
<aws:ob>
|
5
|
+
<aws:ob-date>
|
6
|
+
<aws:year number="2008"/>
|
7
|
+
<aws:month number="12" text="December" abbrv="Dec"/>
|
8
|
+
<aws:day number="30" text="Tuesday" abbrv="Tue"/>
|
9
|
+
<aws:hour number="4" hour-24="16"/>
|
10
|
+
<aws:minute number="18"/>
|
11
|
+
<aws:second number="01"/>
|
12
|
+
<aws:am-pm abbrv="PM"/>
|
13
|
+
<aws:time-zone offset="-5" text="Eastern Standard Time" abbrv="EST"/>
|
14
|
+
</aws:ob-date>
|
15
|
+
<aws:requested-station-id>mocar</aws:requested-station-id>
|
16
|
+
<aws:station-id>MOCAR</aws:station-id>
|
17
|
+
<aws:station>Mohawk Trail ES</aws:station>
|
18
|
+
<aws:city-state zipcode="46033">Carmel, IN</aws:city-state>
|
19
|
+
<aws:country>USA</aws:country>
|
20
|
+
<aws:latitude>39.9711111111111</aws:latitude>
|
21
|
+
<aws:longitude>-86.0938888888889</aws:longitude>
|
22
|
+
<aws:site-url>http://www1.ccs.k12.in.us/mte/home</aws:site-url>
|
23
|
+
<aws:aux-temp units="&deg;F">74</aws:aux-temp>
|
24
|
+
<aws:aux-temp-rate units="&deg;F">+0.0</aws:aux-temp-rate>
|
25
|
+
<aws:current-condition icon="http://deskwx.weatherbug.com/images/Forecast/icons/cond007.gif">Sunny</aws:current-condition>
|
26
|
+
<aws:dew-point units="&deg;F">35</aws:dew-point>
|
27
|
+
<aws:elevation units="ft">817</aws:elevation>
|
28
|
+
<aws:feels-like units="&deg;F">51</aws:feels-like>
|
29
|
+
<aws:gust-time>
|
30
|
+
<aws:year number="0001"/>
|
31
|
+
<aws:month number="1" text="January" abbrv="Jan"/>
|
32
|
+
<aws:day number="1" text="Monday" abbrv="Mon"/>
|
33
|
+
<aws:hour number="12" hour-24="00"/>
|
34
|
+
<aws:minute number="00"/>
|
35
|
+
<aws:second number="00"/>
|
36
|
+
<aws:am-pm abbrv="AM"/>
|
37
|
+
<aws:time-zone offset="-5" text="Eastern Standard Time" abbrv="EST"/>
|
38
|
+
</aws:gust-time>
|
39
|
+
<aws:gust-direction>W</aws:gust-direction>
|
40
|
+
<aws:gust-speed units="mph">25</aws:gust-speed>
|
41
|
+
<aws:humidity units="%">53</aws:humidity>
|
42
|
+
<aws:humidity-high units="%">100.0</aws:humidity-high>
|
43
|
+
<aws:humidity-low units="%">42.5</aws:humidity-low>
|
44
|
+
<aws:humidity-rate>-5.0</aws:humidity-rate>
|
45
|
+
<aws:indoor-temp units="&deg;F">75</aws:indoor-temp>
|
46
|
+
<aws:indoor-temp-rate units="&deg;F">+0.0</aws:indoor-temp-rate>
|
47
|
+
<aws:light>28</aws:light>
|
48
|
+
<aws:light-rate>-1.5</aws:light-rate>
|
49
|
+
<aws:moon-phase moon-phase-img="http://api.wxbug.net/images/moonphase/mphase02.gif">-10</aws:moon-phase>
|
50
|
+
<aws:pressure units=""">29.71</aws:pressure>
|
51
|
+
<aws:pressure-high units=""">30.18</aws:pressure-high>
|
52
|
+
<aws:pressure-low units=""">29.71</aws:pressure-low>
|
53
|
+
<aws:pressure-rate units=""/h">-0.04</aws:pressure-rate>
|
54
|
+
<aws:rain-month units=""">6.64</aws:rain-month>
|
55
|
+
<aws:rain-rate units=""/h">0.00</aws:rain-rate>
|
56
|
+
<aws:rain-rate-max units=""/h">0.00</aws:rain-rate-max>
|
57
|
+
<aws:rain-today units=""">0.00</aws:rain-today>
|
58
|
+
<aws:rain-year units=""">53.83</aws:rain-year>
|
59
|
+
<aws:temp units="&deg;F">51.8</aws:temp>
|
60
|
+
<aws:temp-high units="&deg;F">52</aws:temp-high>
|
61
|
+
<aws:temp-low units="&deg;F">29</aws:temp-low>
|
62
|
+
<aws:temp-rate units="&deg;F/h">+2.5</aws:temp-rate>
|
63
|
+
<aws:sunrise>
|
64
|
+
<aws:year number="2008"/>
|
65
|
+
<aws:month number="12" text="December" abbrv="Dec"/>
|
66
|
+
<aws:day number="30" text="Tuesday" abbrv="Tue"/>
|
67
|
+
<aws:hour number="8" hour-24="08"/>
|
68
|
+
<aws:minute number="06"/>
|
69
|
+
<aws:second number="02"/>
|
70
|
+
<aws:am-pm abbrv="AM"/>
|
71
|
+
<aws:time-zone offset="-5" text="Eastern Standard Time" abbrv="EST"/>
|
72
|
+
</aws:sunrise>
|
73
|
+
<aws:sunset>
|
74
|
+
<aws:year number="2008"/>
|
75
|
+
<aws:month number="12" text="December" abbrv="Dec"/>
|
76
|
+
<aws:day number="30" text="Tuesday" abbrv="Tue"/>
|
77
|
+
<aws:hour number="5" hour-24="17"/>
|
78
|
+
<aws:minute number="28"/>
|
79
|
+
<aws:second number="53"/>
|
80
|
+
<aws:am-pm abbrv="PM"/>
|
81
|
+
<aws:time-zone offset="-5" text="Eastern Standard Time" abbrv="EST"/>
|
82
|
+
</aws:sunset>
|
83
|
+
<aws:wet-bulb units="&deg;F">44.24</aws:wet-bulb>
|
84
|
+
<aws:wind-speed units="mph">4</aws:wind-speed>
|
85
|
+
<aws:wind-speed-avg units="mph">7</aws:wind-speed-avg>
|
86
|
+
<aws:wind-direction>SSW</aws:wind-direction>
|
87
|
+
<aws:wind-direction-avg>SW</aws:wind-direction-avg>
|
88
|
+
</aws:ob>
|
89
|
+
</aws:weather>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<familytree xmlns="http://api.familysearch.org/familytree/v1" xmlns:fsapi-v1="http://api.familysearch.org/v1" version="1.0.20071213.942" statusMessage="OK" statusCode="200">
|
3
|
+
<persons>
|
4
|
+
<person version="1199378491000" modified="2008-01-03T09:41:31-07:00" id="KWQS-BBQ">
|
5
|
+
</person>
|
6
|
+
</persons>
|
7
|
+
</familytree>
|
@@ -0,0 +1,170 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<v2:TrackReply xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:v2='http://fedex.com/ws/track/v2'>
|
3
|
+
<v2:HighestSeverity>SUCCESS</v2:HighestSeverity>
|
4
|
+
<v2:Notifications>
|
5
|
+
<v2:Severity>SUCCESS</v2:Severity>
|
6
|
+
<v2:Source>trck</v2:Source>
|
7
|
+
<v2:Code>0</v2:Code>
|
8
|
+
<v2:Message>Request was successfully processed.</v2:Message>
|
9
|
+
<v2:LocalizedMessage>Request was successfully processed.</v2:LocalizedMessage>
|
10
|
+
</v2:Notifications>
|
11
|
+
<ns:TransactionDetail xmlns:ns='http://fedex.com/ws/track/v2'>
|
12
|
+
<ns:CustomerTransactionId>20090102-111321</ns:CustomerTransactionId>
|
13
|
+
</ns:TransactionDetail>
|
14
|
+
<ns:Version xmlns:ns='http://fedex.com/ws/track/v2'>
|
15
|
+
<ns:ServiceId>trck</ns:ServiceId>
|
16
|
+
<ns:Major>2</ns:Major>
|
17
|
+
<ns:Intermediate>0</ns:Intermediate>
|
18
|
+
<ns:Minor>0</ns:Minor>
|
19
|
+
</ns:Version>
|
20
|
+
<v2:DuplicateWaybill>false</v2:DuplicateWaybill>
|
21
|
+
<v2:MoreData>false</v2:MoreData>
|
22
|
+
<v2:TrackDetails>
|
23
|
+
<v2:TrackingNumber>9611018034267800045212</v2:TrackingNumber>
|
24
|
+
<v2:TrackingNumberUniqueIdentifier>120081227094248461000~034267800045212</v2:TrackingNumberUniqueIdentifier>
|
25
|
+
<v2:StatusCode>OD</v2:StatusCode>
|
26
|
+
<v2:StatusDescription>On FedEx vehicle for delivery</v2:StatusDescription>
|
27
|
+
<v2:CarrierCode>FDXG</v2:CarrierCode>
|
28
|
+
<v2:ServiceInfo>Ground-Package Returns Program-Domestic</v2:ServiceInfo>
|
29
|
+
<v2:PackageWeight>
|
30
|
+
<v2:Units>LB</v2:Units>
|
31
|
+
<v2:Value>2.6</v2:Value>
|
32
|
+
</v2:PackageWeight>
|
33
|
+
<v2:Packaging>Package</v2:Packaging>
|
34
|
+
<v2:PackageSequenceNumber>1</v2:PackageSequenceNumber>
|
35
|
+
<v2:PackageCount>1</v2:PackageCount>
|
36
|
+
<v2:OriginLocationAddress>
|
37
|
+
<v2:City>SANFORD</v2:City>
|
38
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
39
|
+
<v2:CountryCode>US</v2:CountryCode>
|
40
|
+
<v2:Residential>false</v2:Residential>
|
41
|
+
</v2:OriginLocationAddress>
|
42
|
+
<v2:ShipTimestamp>2008-12-29T00:00:00</v2:ShipTimestamp>
|
43
|
+
<v2:EstimatedDeliveryTimestamp>2009-01-02T00:00:00</v2:EstimatedDeliveryTimestamp>
|
44
|
+
<v2:SignatureProofOfDeliveryAvailable>false</v2:SignatureProofOfDeliveryAvailable>
|
45
|
+
<v2:ProofOfDeliveryNotificationsAvailable>true</v2:ProofOfDeliveryNotificationsAvailable>
|
46
|
+
<v2:ExceptionNotificationsAvailable>true</v2:ExceptionNotificationsAvailable>
|
47
|
+
<v2:Events>
|
48
|
+
<v2:Timestamp>2009-01-02T06:00:00</v2:Timestamp>
|
49
|
+
<v2:EventType>OD</v2:EventType>
|
50
|
+
<v2:EventDescription>On FedEx vehicle for delivery</v2:EventDescription>
|
51
|
+
<v2:Address>
|
52
|
+
<v2:City>WICHITA</v2:City>
|
53
|
+
<v2:StateOrProvinceCode>KS</v2:StateOrProvinceCode>
|
54
|
+
<v2:PostalCode>67226</v2:PostalCode>
|
55
|
+
<v2:CountryCode>US</v2:CountryCode>
|
56
|
+
<v2:Residential>false</v2:Residential>
|
57
|
+
</v2:Address>
|
58
|
+
</v2:Events>
|
59
|
+
<v2:Events>
|
60
|
+
<v2:Timestamp>2009-01-02T01:17:32</v2:Timestamp>
|
61
|
+
<v2:EventType>AR</v2:EventType>
|
62
|
+
<v2:EventDescription>At local FedEx facility</v2:EventDescription>
|
63
|
+
<v2:Address>
|
64
|
+
<v2:City>WICHITA</v2:City>
|
65
|
+
<v2:StateOrProvinceCode>KS</v2:StateOrProvinceCode>
|
66
|
+
<v2:PostalCode>67226</v2:PostalCode>
|
67
|
+
<v2:CountryCode>US</v2:CountryCode>
|
68
|
+
<v2:Residential>false</v2:Residential>
|
69
|
+
</v2:Address>
|
70
|
+
</v2:Events>
|
71
|
+
<v2:Events>
|
72
|
+
<v2:Timestamp>2009-01-01T21:49:49</v2:Timestamp>
|
73
|
+
<v2:EventType>DP</v2:EventType>
|
74
|
+
<v2:EventDescription>Departed FedEx location</v2:EventDescription>
|
75
|
+
<v2:Address>
|
76
|
+
<v2:City>LENEXA</v2:City>
|
77
|
+
<v2:StateOrProvinceCode>KS</v2:StateOrProvinceCode>
|
78
|
+
<v2:PostalCode>66227</v2:PostalCode>
|
79
|
+
<v2:CountryCode>US</v2:CountryCode>
|
80
|
+
<v2:Residential>false</v2:Residential>
|
81
|
+
</v2:Address>
|
82
|
+
</v2:Events>
|
83
|
+
<v2:Events>
|
84
|
+
<v2:Timestamp>2008-12-31T16:19:00</v2:Timestamp>
|
85
|
+
<v2:EventType>AR</v2:EventType>
|
86
|
+
<v2:EventDescription>Arrived at FedEx location</v2:EventDescription>
|
87
|
+
<v2:Address>
|
88
|
+
<v2:City>LENEXA</v2:City>
|
89
|
+
<v2:StateOrProvinceCode>KS</v2:StateOrProvinceCode>
|
90
|
+
<v2:PostalCode>66227</v2:PostalCode>
|
91
|
+
<v2:CountryCode>US</v2:CountryCode>
|
92
|
+
<v2:Residential>false</v2:Residential>
|
93
|
+
</v2:Address>
|
94
|
+
</v2:Events>
|
95
|
+
<v2:Events>
|
96
|
+
<v2:Timestamp>2008-12-30T11:01:23</v2:Timestamp>
|
97
|
+
<v2:EventType>DP</v2:EventType>
|
98
|
+
<v2:EventDescription>Departed FedEx location</v2:EventDescription>
|
99
|
+
<v2:Address>
|
100
|
+
<v2:City>ORLANDO</v2:City>
|
101
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
102
|
+
<v2:PostalCode>32809</v2:PostalCode>
|
103
|
+
<v2:CountryCode>US</v2:CountryCode>
|
104
|
+
<v2:Residential>false</v2:Residential>
|
105
|
+
</v2:Address>
|
106
|
+
</v2:Events>
|
107
|
+
<v2:Events>
|
108
|
+
<v2:Timestamp>2008-12-30T05:00:00</v2:Timestamp>
|
109
|
+
<v2:EventType>AR</v2:EventType>
|
110
|
+
<v2:EventDescription>Arrived at FedEx location</v2:EventDescription>
|
111
|
+
<v2:Address>
|
112
|
+
<v2:City>ORLANDO</v2:City>
|
113
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
114
|
+
<v2:PostalCode>32809</v2:PostalCode>
|
115
|
+
<v2:CountryCode>US</v2:CountryCode>
|
116
|
+
<v2:Residential>false</v2:Residential>
|
117
|
+
</v2:Address>
|
118
|
+
</v2:Events>
|
119
|
+
<v2:Events>
|
120
|
+
<v2:Timestamp>2008-12-30T03:16:33</v2:Timestamp>
|
121
|
+
<v2:EventType>DP</v2:EventType>
|
122
|
+
<v2:EventDescription>Left FedEx origin facility</v2:EventDescription>
|
123
|
+
<v2:Address>
|
124
|
+
<v2:City>SANFORD</v2:City>
|
125
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
126
|
+
<v2:PostalCode>32771</v2:PostalCode>
|
127
|
+
<v2:CountryCode>US</v2:CountryCode>
|
128
|
+
<v2:Residential>false</v2:Residential>
|
129
|
+
</v2:Address>
|
130
|
+
</v2:Events>
|
131
|
+
<v2:Events>
|
132
|
+
<v2:Timestamp>2008-12-29T22:46:00</v2:Timestamp>
|
133
|
+
<v2:EventType>AR</v2:EventType>
|
134
|
+
<v2:EventDescription>Arrived at FedEx location</v2:EventDescription>
|
135
|
+
<v2:Address>
|
136
|
+
<v2:City>SANFORD</v2:City>
|
137
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
138
|
+
<v2:PostalCode>32771</v2:PostalCode>
|
139
|
+
<v2:CountryCode>US</v2:CountryCode>
|
140
|
+
<v2:Residential>false</v2:Residential>
|
141
|
+
</v2:Address>
|
142
|
+
</v2:Events>
|
143
|
+
<v2:Events>
|
144
|
+
<v2:Timestamp>2008-12-29T17:12:00</v2:Timestamp>
|
145
|
+
<v2:EventType>PU</v2:EventType>
|
146
|
+
<v2:EventDescription>Picked up</v2:EventDescription>
|
147
|
+
<v2:Address>
|
148
|
+
<v2:City>SANFORD</v2:City>
|
149
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
150
|
+
<v2:PostalCode>32771</v2:PostalCode>
|
151
|
+
<v2:CountryCode>US</v2:CountryCode>
|
152
|
+
<v2:Residential>false</v2:Residential>
|
153
|
+
</v2:Address>
|
154
|
+
</v2:Events>
|
155
|
+
<v2:Events>
|
156
|
+
<v2:Timestamp>2008-12-27T09:40:00</v2:Timestamp>
|
157
|
+
<v2:EventType>IP</v2:EventType>
|
158
|
+
<v2:EventDescription>In FedEx possession</v2:EventDescription>
|
159
|
+
<v2:StatusExceptionCode>084</v2:StatusExceptionCode>
|
160
|
+
<v2:StatusExceptionDescription>Tendered at FedEx location</v2:StatusExceptionDescription>
|
161
|
+
<v2:Address>
|
162
|
+
<v2:City>LONGWOOD</v2:City>
|
163
|
+
<v2:StateOrProvinceCode>FL</v2:StateOrProvinceCode>
|
164
|
+
<v2:PostalCode>327506398</v2:PostalCode>
|
165
|
+
<v2:CountryCode>US</v2:CountryCode>
|
166
|
+
<v2:Residential>false</v2:Residential>
|
167
|
+
</v2:Address>
|
168
|
+
</v2:Events>
|
169
|
+
</v2:TrackDetails>
|
170
|
+
</v2:TrackReply>
|
@@ -0,0 +1,133 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2005-10-05" xmlns:georss="http://www.georss.org/georss">
|
3
|
+
<OperationRequest>
|
4
|
+
<HTTPHeaders>
|
5
|
+
<Header Name="UserAgent">
|
6
|
+
</Header>
|
7
|
+
</HTTPHeaders>
|
8
|
+
<RequestId>16WRJBVEM155Q026KCV1</RequestId>
|
9
|
+
<Arguments>
|
10
|
+
<Argument Name="SearchIndex" Value="Books"></Argument>
|
11
|
+
<Argument Name="Service" Value="AWSECommerceService"></Argument>
|
12
|
+
<Argument Name="Title" Value="Ruby on Rails"></Argument>
|
13
|
+
<Argument Name="Operation" Value="ItemSearch"></Argument>
|
14
|
+
<Argument Name="AWSAccessKeyId" Value="dontbeaswoosh"></Argument>
|
15
|
+
</Arguments>
|
16
|
+
<RequestProcessingTime>0.064924955368042</RequestProcessingTime>
|
17
|
+
</OperationRequest>
|
18
|
+
<Items>
|
19
|
+
<Request>
|
20
|
+
<IsValid>True</IsValid>
|
21
|
+
<ItemSearchRequest>
|
22
|
+
<SearchIndex>Books</SearchIndex>
|
23
|
+
<Title>Ruby on Rails</Title>
|
24
|
+
</ItemSearchRequest>
|
25
|
+
</Request>
|
26
|
+
<TotalResults>22</TotalResults>
|
27
|
+
<TotalPages>3</TotalPages>
|
28
|
+
<Item>
|
29
|
+
<ASIN>0321480791</ASIN>
|
30
|
+
<georss:point>38.5351715088 -121.7948684692</georss:point>
|
31
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0321480791%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321480791%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
32
|
+
<ItemAttributes>
|
33
|
+
<Author>Michael Hartl</Author>
|
34
|
+
<Author>Aurelius Prochazka</Author>
|
35
|
+
<Manufacturer>Addison-Wesley Professional</Manufacturer>
|
36
|
+
<ProductGroup>Book</ProductGroup>
|
37
|
+
<Title>RailsSpace: Building a Social Networking Website with Ruby on Rails (Addison-Wesley Professional Ruby Series)</Title>
|
38
|
+
</ItemAttributes>
|
39
|
+
</Item>
|
40
|
+
<Item>
|
41
|
+
<ASIN>047022388X</ASIN>
|
42
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=047022388X%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/047022388X%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
43
|
+
<ItemAttributes>
|
44
|
+
<Author>Noel Rappin</Author>
|
45
|
+
<Manufacturer>Wrox</Manufacturer>
|
46
|
+
<ProductGroup>Book</ProductGroup>
|
47
|
+
<Title>Professional Ruby on Rails</Title>
|
48
|
+
</ItemAttributes>
|
49
|
+
</Item>
|
50
|
+
<Item>
|
51
|
+
<ASIN>1590598814</ASIN>
|
52
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=1590598814%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590598814%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
53
|
+
<ItemAttributes>
|
54
|
+
<Author>Ola Bini</Author>
|
55
|
+
<Manufacturer>Apress</Manufacturer>
|
56
|
+
<ProductGroup>Book</ProductGroup>
|
57
|
+
<Title>Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java</Title>
|
58
|
+
</ItemAttributes>
|
59
|
+
</Item>
|
60
|
+
<Item>
|
61
|
+
<ASIN>0596101325</ASIN>
|
62
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0596101325%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596101325%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
63
|
+
<ItemAttributes>
|
64
|
+
<Author>Bruce Tate</Author>
|
65
|
+
<Author>Curt Hibbs</Author>
|
66
|
+
<Manufacturer>O'Reilly Media, Inc.</Manufacturer>
|
67
|
+
<ProductGroup>Book</ProductGroup>
|
68
|
+
<Title>Ruby on Rails: Up and Running</Title>
|
69
|
+
</ItemAttributes>
|
70
|
+
</Item>
|
71
|
+
<Item>
|
72
|
+
<ASIN>0470081201</ASIN>
|
73
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0470081201%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0470081201%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
74
|
+
<ItemAttributes>
|
75
|
+
<Author>Barry Burd</Author>
|
76
|
+
<Manufacturer>For Dummies</Manufacturer>
|
77
|
+
<ProductGroup>Book</ProductGroup>
|
78
|
+
<Title>Ruby on Rails For Dummies (For Dummies (Computer/Tech))</Title>
|
79
|
+
</ItemAttributes>
|
80
|
+
</Item>
|
81
|
+
<Item>
|
82
|
+
<ASIN>0975841955</ASIN>
|
83
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0975841955%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0975841955%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
84
|
+
<ItemAttributes>
|
85
|
+
<Author>Patrick Lenz</Author>
|
86
|
+
<Manufacturer>SitePoint</Manufacturer>
|
87
|
+
<ProductGroup>Book</ProductGroup>
|
88
|
+
<Title>Build Your Own Ruby on Rails Web Applications</Title>
|
89
|
+
</ItemAttributes>
|
90
|
+
</Item>
|
91
|
+
<Item>
|
92
|
+
<ASIN>0470069155</ASIN>
|
93
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0470069155%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0470069155%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
94
|
+
<ItemAttributes>
|
95
|
+
<Author>Steve, Ph.D. Holzner</Author>
|
96
|
+
<Manufacturer>Wrox</Manufacturer>
|
97
|
+
<ProductGroup>Book</ProductGroup>
|
98
|
+
<Title>Beginning Ruby on Rails (Wrox Beginning Guides)</Title>
|
99
|
+
</ItemAttributes>
|
100
|
+
</Item>
|
101
|
+
<Item>
|
102
|
+
<ASIN>1590597362</ASIN>
|
103
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=1590597362%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590597362%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
104
|
+
<ItemAttributes>
|
105
|
+
<Author>Christian Hellsten</Author>
|
106
|
+
<Author>Jarkko Laine</Author>
|
107
|
+
<Manufacturer>Apress</Manufacturer>
|
108
|
+
<ProductGroup>Book</ProductGroup>
|
109
|
+
<Title>Beginning Ruby on Rails E-Commerce: From Novice to Professional (Rails)</Title>
|
110
|
+
</ItemAttributes>
|
111
|
+
</Item>
|
112
|
+
<Item>
|
113
|
+
<ASIN>1590597524</ASIN>
|
114
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=1590597524%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/1590597524%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
115
|
+
<ItemAttributes>
|
116
|
+
<Author>Justin Williams</Author>
|
117
|
+
<Manufacturer>friends of ED</Manufacturer>
|
118
|
+
<ProductGroup>Book</ProductGroup>
|
119
|
+
<Title>Rails Solutions: Ruby on Rails Made Easy (Solutions)</Title>
|
120
|
+
</ItemAttributes>
|
121
|
+
</Item>
|
122
|
+
<Item>
|
123
|
+
<ASIN>0321517067</ASIN>
|
124
|
+
<DetailPageURL>http://www.amazon.com/gp/redirect.html%3FASIN=0321517067%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0321517067%253FSubscriptionId=dontbeaswoosh</DetailPageURL>
|
125
|
+
<ItemAttributes>
|
126
|
+
<Author>Aurelius Prochazka</Author>
|
127
|
+
<Manufacturer>Addison-Wesley Professional</Manufacturer>
|
128
|
+
<ProductGroup>Book</ProductGroup>
|
129
|
+
<Title>RailsSpace Ruby on Rails Tutorial (Video Training) (LiveLessons)</Title>
|
130
|
+
</ItemAttributes>
|
131
|
+
</Item>
|
132
|
+
</Items>
|
133
|
+
</ItemSearchResponse>
|