package_tracker 0.0.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.
@@ -0,0 +1,317 @@
1
+ <?xml version="1.0"?>
2
+ <TrackResponse>
3
+ <Response>
4
+ <TransactionReference>
5
+ <XpciVersion>1.0</XpciVersion>
6
+ </TransactionReference>
7
+ <ResponseStatusCode>1</ResponseStatusCode>
8
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
9
+ </Response>
10
+ <Shipment>
11
+ <Shipper>
12
+ <ShipperNumber>A2552X</ShipperNumber>
13
+ <Address>
14
+ <AddressLine1>4005 N NORFLEET RD</AddressLine1>
15
+ <City>KANSAS CITY</City>
16
+ <StateProvinceCode>MO</StateProvinceCode>
17
+ <PostalCode>64161 9231</PostalCode>
18
+ <CountryCode>US</CountryCode>
19
+ </Address>
20
+ </Shipper>
21
+ <ShipTo>
22
+ <Address>
23
+ <City>SAN FRANCISCO</City>
24
+ <StateProvinceCode>CA</StateProvinceCode>
25
+ <PostalCode>941050936</PostalCode>
26
+ <CountryCode>US</CountryCode>
27
+ </Address>
28
+ </ShipTo>
29
+ <ShipmentWeight>
30
+ <UnitOfMeasurement>
31
+ <Code>LBS</Code>
32
+ </UnitOfMeasurement>
33
+ <Weight>15.90</Weight>
34
+ </ShipmentWeight>
35
+ <Service>
36
+ <Code>003</Code>
37
+ <Description>GROUND</Description>
38
+ </Service>
39
+ <ReferenceNumber>
40
+ <Code>01</Code>
41
+ <Value>M013562037</Value>
42
+ </ReferenceNumber>
43
+ <ShipmentIdentificationNumber>1ZA2552X0397250131</ShipmentIdentificationNumber>
44
+ <PickupDate>20110418</PickupDate>
45
+ <Package>
46
+ <TrackingNumber>1ZA2552X0397250131</TrackingNumber>
47
+ <Activity>
48
+ <ActivityLocation>
49
+ <Address>
50
+ <City>SAN FRANCISCO</City>
51
+ <StateProvinceCode>CA</StateProvinceCode>
52
+ <PostalCode>94105</PostalCode>
53
+ <CountryCode>US</CountryCode>
54
+ </Address>
55
+ <Code>M5</Code>
56
+ <Description>MAIL ROOM</Description>
57
+ <SignedForByName>GULDBECH</SignedForByName>
58
+ </ActivityLocation>
59
+ <Status>
60
+ <StatusType>
61
+ <Code>D</Code>
62
+ <Description>DELIVERED</Description>
63
+ </StatusType>
64
+ <StatusCode>
65
+ <Code>KB</Code>
66
+ </StatusCode>
67
+ </Status>
68
+ <Date>20110422</Date>
69
+ <Time>144200</Time>
70
+ </Activity>
71
+ <Activity>
72
+ <ActivityLocation>
73
+ <Address>
74
+ <City>SAN FRANCISCO</City>
75
+ <StateProvinceCode>CA</StateProvinceCode>
76
+ <CountryCode>US</CountryCode>
77
+ </Address>
78
+ </ActivityLocation>
79
+ <Status>
80
+ <StatusType>
81
+ <Code>I</Code>
82
+ <Description>OUT FOR DELIVERY</Description>
83
+ </StatusType>
84
+ <StatusCode>
85
+ <Code>DS</Code>
86
+ </StatusCode>
87
+ </Status>
88
+ <Date>20110422</Date>
89
+ <Time>044400</Time>
90
+ </Activity>
91
+ <Activity>
92
+ <ActivityLocation>
93
+ <Address>
94
+ <City>SAN FRANCISCO</City>
95
+ <StateProvinceCode>CA</StateProvinceCode>
96
+ <CountryCode>US</CountryCode>
97
+ </Address>
98
+ </ActivityLocation>
99
+ <Status>
100
+ <StatusType>
101
+ <Code>I</Code>
102
+ <Description>ARRIVAL SCAN</Description>
103
+ </StatusType>
104
+ <StatusCode>
105
+ <Code>AR</Code>
106
+ </StatusCode>
107
+ </Status>
108
+ <Date>20110422</Date>
109
+ <Time>030500</Time>
110
+ </Activity>
111
+ <Activity>
112
+ <ActivityLocation>
113
+ <Address>
114
+ <City>SOUTH SAN FRANCISCO</City>
115
+ <StateProvinceCode>CA</StateProvinceCode>
116
+ <CountryCode>US</CountryCode>
117
+ </Address>
118
+ </ActivityLocation>
119
+ <Status>
120
+ <StatusType>
121
+ <Code>I</Code>
122
+ <Description>DEPARTURE SCAN</Description>
123
+ </StatusType>
124
+ <StatusCode>
125
+ <Code>DP</Code>
126
+ </StatusCode>
127
+ </Status>
128
+ <Date>20110422</Date>
129
+ <Time>024100</Time>
130
+ </Activity>
131
+ <Activity>
132
+ <ActivityLocation>
133
+ <Address>
134
+ <City>SOUTH SAN FRANCISCO</City>
135
+ <StateProvinceCode>CA</StateProvinceCode>
136
+ <CountryCode>US</CountryCode>
137
+ </Address>
138
+ </ActivityLocation>
139
+ <Status>
140
+ <StatusType>
141
+ <Code>I</Code>
142
+ <Description>LOCATION SCAN</Description>
143
+ </StatusType>
144
+ <StatusCode>
145
+ <Code>LC</Code>
146
+ </StatusCode>
147
+ </Status>
148
+ <Date>20110422</Date>
149
+ <Time>000400</Time>
150
+ </Activity>
151
+ <Activity>
152
+ <ActivityLocation>
153
+ <Address>
154
+ <City>SOUTH SAN FRANCISCO</City>
155
+ <StateProvinceCode>CA</StateProvinceCode>
156
+ <CountryCode>US</CountryCode>
157
+ </Address>
158
+ </ActivityLocation>
159
+ <Status>
160
+ <StatusType>
161
+ <Code>I</Code>
162
+ <Description>ARRIVAL SCAN</Description>
163
+ </StatusType>
164
+ <StatusCode>
165
+ <Code>AR</Code>
166
+ </StatusCode>
167
+ </Status>
168
+ <Date>20110421</Date>
169
+ <Time>225400</Time>
170
+ </Activity>
171
+ <Activity>
172
+ <ActivityLocation>
173
+ <Address>
174
+ <City>SAN PABLO</City>
175
+ <StateProvinceCode>CA</StateProvinceCode>
176
+ <CountryCode>US</CountryCode>
177
+ </Address>
178
+ </ActivityLocation>
179
+ <Status>
180
+ <StatusType>
181
+ <Code>I</Code>
182
+ <Description>DEPARTURE SCAN</Description>
183
+ </StatusType>
184
+ <StatusCode>
185
+ <Code>DP</Code>
186
+ </StatusCode>
187
+ </Status>
188
+ <Date>20110421</Date>
189
+ <Time>221100</Time>
190
+ </Activity>
191
+ <Activity>
192
+ <ActivityLocation>
193
+ <Address>
194
+ <City>SAN PABLO</City>
195
+ <StateProvinceCode>CA</StateProvinceCode>
196
+ <CountryCode>US</CountryCode>
197
+ </Address>
198
+ </ActivityLocation>
199
+ <Status>
200
+ <StatusType>
201
+ <Code>I</Code>
202
+ <Description>ARRIVAL SCAN</Description>
203
+ </StatusType>
204
+ <StatusCode>
205
+ <Code>AR</Code>
206
+ </StatusCode>
207
+ </Status>
208
+ <Date>20110421</Date>
209
+ <Time>180300</Time>
210
+ </Activity>
211
+ <Activity>
212
+ <ActivityLocation>
213
+ <Address>
214
+ <City>SPARKS</City>
215
+ <StateProvinceCode>NV</StateProvinceCode>
216
+ <CountryCode>US</CountryCode>
217
+ </Address>
218
+ </ActivityLocation>
219
+ <Status>
220
+ <StatusType>
221
+ <Code>I</Code>
222
+ <Description>DEPARTURE SCAN</Description>
223
+ </StatusType>
224
+ <StatusCode>
225
+ <Code>DP</Code>
226
+ </StatusCode>
227
+ </Status>
228
+ <Date>20110421</Date>
229
+ <Time>140500</Time>
230
+ </Activity>
231
+ <Activity>
232
+ <ActivityLocation>
233
+ <Address>
234
+ <City>SPARKS</City>
235
+ <StateProvinceCode>NV</StateProvinceCode>
236
+ <CountryCode>US</CountryCode>
237
+ </Address>
238
+ </ActivityLocation>
239
+ <Status>
240
+ <StatusType>
241
+ <Code>I</Code>
242
+ <Description>ARRIVAL SCAN</Description>
243
+ </StatusType>
244
+ <StatusCode>
245
+ <Code>AR</Code>
246
+ </StatusCode>
247
+ </Status>
248
+ <Date>20110421</Date>
249
+ <Time>125200</Time>
250
+ </Activity>
251
+ <Activity>
252
+ <ActivityLocation>
253
+ <Address>
254
+ <City>SALT LAKE CITY</City>
255
+ <StateProvinceCode>UT</StateProvinceCode>
256
+ <CountryCode>US</CountryCode>
257
+ </Address>
258
+ </ActivityLocation>
259
+ <Status>
260
+ <StatusType>
261
+ <Code>I</Code>
262
+ <Description>DEPARTURE SCAN</Description>
263
+ </StatusType>
264
+ <StatusCode>
265
+ <Code>DP</Code>
266
+ </StatusCode>
267
+ </Status>
268
+ <Date>20110421</Date>
269
+ <Time>035500</Time>
270
+ </Activity>
271
+ <Activity>
272
+ <ActivityLocation>
273
+ <Address>
274
+ <City>SALT LAKE CITY</City>
275
+ <StateProvinceCode>UT</StateProvinceCode>
276
+ <CountryCode>US</CountryCode>
277
+ </Address>
278
+ </ActivityLocation>
279
+ <Status>
280
+ <StatusType>
281
+ <Code>I</Code>
282
+ <Description>ORIGIN SCAN</Description>
283
+ </StatusType>
284
+ <StatusCode>
285
+ <Code>OR</Code>
286
+ </StatusCode>
287
+ </Status>
288
+ <Date>20110420</Date>
289
+ <Time>190600</Time>
290
+ </Activity>
291
+ <Activity>
292
+ <ActivityLocation>
293
+ <Address>
294
+ <CountryCode>US</CountryCode>
295
+ </Address>
296
+ </ActivityLocation>
297
+ <Status>
298
+ <StatusType>
299
+ <Code>M</Code>
300
+ <Description>BILLING INFORMATION RECEIVED</Description>
301
+ </StatusType>
302
+ <StatusCode>
303
+ <Code>MP</Code>
304
+ </StatusCode>
305
+ </Status>
306
+ <Date>20110418</Date>
307
+ <Time>193139</Time>
308
+ </Activity>
309
+ <PackageWeight>
310
+ <UnitOfMeasurement>
311
+ <Code>LBS</Code>
312
+ </UnitOfMeasurement>
313
+ <Weight>15.90</Weight>
314
+ </PackageWeight>
315
+ </Package>
316
+ </Shipment>
317
+ </TrackResponse>
@@ -0,0 +1 @@
1
+ require_relative 'spec_helper'
@@ -0,0 +1,15 @@
1
+ # Gems
2
+ require 'rubygems'
3
+ require 'rspec'
4
+ require 'webmock'
5
+ require 'webmock/rspec'
6
+
7
+ # Standard Lib
8
+ require 'yaml'
9
+
10
+ # App
11
+ require 'package_tracker'
12
+
13
+ RSpec.configure do |config|
14
+ # nothing here yet
15
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: package_tracker
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
10
+ platform: ruby
11
+ authors:
12
+ - Michael Taras
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-05-18 00:00:00 -07:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: nokogiri
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ prerelease: false
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: facets
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 1
55
+ - 0
56
+ - 0
57
+ version: 1.0.0
58
+ type: :development
59
+ prerelease: false
60
+ version_requirements: *id003
61
+ - !ruby/object:Gem::Dependency
62
+ name: jeweler
63
+ requirement: &id004 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 1
70
+ - 6
71
+ - 0
72
+ version: 1.6.0
73
+ type: :development
74
+ prerelease: false
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: rcov
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: *id005
89
+ - !ruby/object:Gem::Dependency
90
+ name: rspec
91
+ requirement: &id006 !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 2
98
+ - 6
99
+ - 0
100
+ version: 2.6.0
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id006
104
+ - !ruby/object:Gem::Dependency
105
+ name: webmock
106
+ requirement: &id007 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: *id007
117
+ description: PackageTracker is a ruby gem for fetching the status of a packages(UPS, FedEx, etc...) with a simple API.
118
+ email: michaeltaras@gmail.com
119
+ executables: []
120
+
121
+ extensions: []
122
+
123
+ extra_rdoc_files:
124
+ - LICENSE.txt
125
+ - README.rdoc
126
+ files:
127
+ - .Gemfile
128
+ - .autotest
129
+ - .document
130
+ - .rspec
131
+ - .rvmrc
132
+ - Gemfile
133
+ - Gemfile.lock
134
+ - LICENSE.txt
135
+ - README.rdoc
136
+ - Rakefile
137
+ - VERSION
138
+ - lib/package_tracker.rb
139
+ - lib/package_tracker/carrier.rb
140
+ - lib/package_tracker/carriers/fedex.rb
141
+ - lib/package_tracker/carriers/ups.rb
142
+ - lib/package_tracker/carriers/usps.rb
143
+ - lib/package_tracker/client.rb
144
+ - lib/package_tracker/exceptions.rb
145
+ - lib/package_tracker/request.rb
146
+ - lib/package_tracker/response.rb
147
+ - package_tracker.gemspec
148
+ - spec/carrier/fedex_spec.rb
149
+ - spec/carrier/ups_spec.rb
150
+ - spec/carrier_spec.rb
151
+ - spec/fixtures/requests/ups/invalid_credentials.xml
152
+ - spec/fixtures/requests/ups/invalid_tracking_number.xml
153
+ - spec/fixtures/requests/ups/valid.xml
154
+ - spec/fixtures/responses/fedex/invalid_credentials.xml
155
+ - spec/fixtures/responses/fedex/invalid_tracking_number.xml
156
+ - spec/fixtures/responses/fedex/valid.xml
157
+ - spec/fixtures/responses/ups/invalid_credentials.xml
158
+ - spec/fixtures/responses/ups/invalid_tracking_number.xml
159
+ - spec/fixtures/responses/ups/valid.xml
160
+ - spec/request_spec.rb
161
+ - spec/spec_helper.rb
162
+ has_rdoc: true
163
+ homepage: http://github.com/michaeltaras/package_tracker
164
+ licenses:
165
+ - MIT
166
+ post_install_message:
167
+ rdoc_options: []
168
+
169
+ require_paths:
170
+ - lib
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ hash: 1645987359859065376
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ none: false
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ segments:
186
+ - 0
187
+ version: "0"
188
+ requirements: []
189
+
190
+ rubyforge_project:
191
+ rubygems_version: 1.3.7
192
+ signing_key:
193
+ specification_version: 3
194
+ summary: PackageTracker is a ruby gem for fetching the status of a packages(UPS, FedEx, etc...) with a simple API.
195
+ test_files: []
196
+