active_shipping 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +5 -0
- data/Rakefile +5 -0
- data/active_shipping.gemspec +1 -0
- data/lib/active_shipping.rb +2 -0
- data/lib/active_shipping/carriers.rb +1 -0
- data/lib/active_shipping/carriers/fedex.rb +1 -1
- data/lib/active_shipping/carriers/ups.rb +19 -2
- data/lib/active_shipping/carriers/usps_returns.rb +86 -0
- data/lib/active_shipping/errors.rb +11 -2
- data/lib/active_shipping/external_return_label_request.rb +421 -0
- data/lib/active_shipping/external_return_label_response.rb +26 -0
- data/lib/active_shipping/version.rb +1 -1
- data/test/console.rb +40 -0
- data/test/credentials.yml +9 -0
- data/test/fixtures/xml/fedex/tracking_response_invalid_tracking_number.xml +52 -0
- data/test/fixtures/xml/usps/invalid_xml_response.xml +10 -0
- data/test/fixtures/xml/usps_returns/external_return_label_response.xml +2 -0
- data/test/fixtures/xml/usps_returns/external_return_label_response_failure.xml +10 -0
- data/test/remote/ups_test.rb +29 -0
- data/test/remote/usps_returns_test.rb +72 -0
- data/test/unit/carriers/fedex_test.rb +12 -0
- data/test/unit/carriers/ups_test.rb +19 -0
- data/test/unit/carriers/usps_returns_test.rb +45 -0
- data/test/unit/external_return_label_request_test.rb +212 -0
- metadata +35 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_shipping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James MacAulay
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-06-
|
14
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: quantified
|
@@ -145,6 +145,20 @@ dependencies:
|
|
145
145
|
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
|
+
- !ruby/object:Gem::Dependency
|
149
|
+
name: pry
|
150
|
+
requirement: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
type: :development
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
148
162
|
description: Get rates and tracking info from various shipping carriers. Extracted
|
149
163
|
from Shopify.
|
150
164
|
email:
|
@@ -182,9 +196,12 @@ files:
|
|
182
196
|
- lib/active_shipping/carriers/stamps.rb
|
183
197
|
- lib/active_shipping/carriers/ups.rb
|
184
198
|
- lib/active_shipping/carriers/usps.rb
|
199
|
+
- lib/active_shipping/carriers/usps_returns.rb
|
185
200
|
- lib/active_shipping/delivery_date_estimate.rb
|
186
201
|
- lib/active_shipping/delivery_date_estimates_response.rb
|
187
202
|
- lib/active_shipping/errors.rb
|
203
|
+
- lib/active_shipping/external_return_label_request.rb
|
204
|
+
- lib/active_shipping/external_return_label_response.rb
|
188
205
|
- lib/active_shipping/label.rb
|
189
206
|
- lib/active_shipping/label_response.rb
|
190
207
|
- lib/active_shipping/location.rb
|
@@ -200,6 +217,7 @@ files:
|
|
200
217
|
- lib/certs/eParcel.dtd
|
201
218
|
- repodb.yml
|
202
219
|
- shipit.rubygems.yml
|
220
|
+
- test/console.rb
|
203
221
|
- test/credentials.yml
|
204
222
|
- test/fixtures/files/label1.pdf
|
205
223
|
- test/fixtures/files/ups-shipping-label.gif
|
@@ -263,6 +281,7 @@ files:
|
|
263
281
|
- test/fixtures/xml/fedex/tracking_response_delivered_at_facility.xml
|
264
282
|
- test/fixtures/xml/fedex/tracking_response_delivered_with_signature.xml
|
265
283
|
- test/fixtures/xml/fedex/tracking_response_in_transit.xml
|
284
|
+
- test/fixtures/xml/fedex/tracking_response_invalid_tracking_number.xml
|
266
285
|
- test/fixtures/xml/fedex/tracking_response_multiple_results.xml
|
267
286
|
- test/fixtures/xml/fedex/tracking_response_not_found.xml
|
268
287
|
- test/fixtures/xml/fedex/tracking_response_shipment_exception.xml
|
@@ -324,6 +343,7 @@ files:
|
|
324
343
|
- test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml
|
325
344
|
- test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml
|
326
345
|
- test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml
|
346
|
+
- test/fixtures/xml/usps/invalid_xml_response.xml
|
327
347
|
- test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml
|
328
348
|
- test/fixtures/xml/usps/tracking_request.xml
|
329
349
|
- test/fixtures/xml/usps/tracking_request_batch.xml
|
@@ -338,6 +358,8 @@ files:
|
|
338
358
|
- test/fixtures/xml/usps/world_rate_request_only_country.xml
|
339
359
|
- test/fixtures/xml/usps/world_rate_request_with_value.xml
|
340
360
|
- test/fixtures/xml/usps/world_rate_request_without_value.xml
|
361
|
+
- test/fixtures/xml/usps_returns/external_return_label_response.xml
|
362
|
+
- test/fixtures/xml/usps_returns/external_return_label_response_failure.xml
|
341
363
|
- test/remote/canada_post_pws_platform_test.rb
|
342
364
|
- test/remote/canada_post_pws_test.rb
|
343
365
|
- test/remote/canada_post_test.rb
|
@@ -348,6 +370,7 @@ files:
|
|
348
370
|
- test/remote/shipwire_test.rb
|
349
371
|
- test/remote/stamps_test.rb
|
350
372
|
- test/remote/ups_test.rb
|
373
|
+
- test/remote/usps_returns_test.rb
|
351
374
|
- test/remote/usps_test.rb
|
352
375
|
- test/test_helper.rb
|
353
376
|
- test/unit/carriers/benchmark_test.rb
|
@@ -363,8 +386,10 @@ files:
|
|
363
386
|
- test/unit/carriers/shipwire_test.rb
|
364
387
|
- test/unit/carriers/stamps_test.rb
|
365
388
|
- test/unit/carriers/ups_test.rb
|
389
|
+
- test/unit/carriers/usps_returns_test.rb
|
366
390
|
- test/unit/carriers/usps_test.rb
|
367
391
|
- test/unit/carriers_test.rb
|
392
|
+
- test/unit/external_return_label_request_test.rb
|
368
393
|
- test/unit/location_test.rb
|
369
394
|
- test/unit/package_test.rb
|
370
395
|
- test/unit/rate_estimate_test.rb
|
@@ -395,6 +420,7 @@ signing_key:
|
|
395
420
|
specification_version: 4
|
396
421
|
summary: Simple shipping abstraction library
|
397
422
|
test_files:
|
423
|
+
- test/console.rb
|
398
424
|
- test/credentials.yml
|
399
425
|
- test/fixtures/files/label1.pdf
|
400
426
|
- test/fixtures/files/ups-shipping-label.gif
|
@@ -458,6 +484,7 @@ test_files:
|
|
458
484
|
- test/fixtures/xml/fedex/tracking_response_delivered_at_facility.xml
|
459
485
|
- test/fixtures/xml/fedex/tracking_response_delivered_with_signature.xml
|
460
486
|
- test/fixtures/xml/fedex/tracking_response_in_transit.xml
|
487
|
+
- test/fixtures/xml/fedex/tracking_response_invalid_tracking_number.xml
|
461
488
|
- test/fixtures/xml/fedex/tracking_response_multiple_results.xml
|
462
489
|
- test/fixtures/xml/fedex/tracking_response_not_found.xml
|
463
490
|
- test/fixtures/xml/fedex/tracking_response_shipment_exception.xml
|
@@ -519,6 +546,7 @@ test_files:
|
|
519
546
|
- test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml
|
520
547
|
- test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml
|
521
548
|
- test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml
|
549
|
+
- test/fixtures/xml/usps/invalid_xml_response.xml
|
522
550
|
- test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml
|
523
551
|
- test/fixtures/xml/usps/tracking_request.xml
|
524
552
|
- test/fixtures/xml/usps/tracking_request_batch.xml
|
@@ -533,6 +561,8 @@ test_files:
|
|
533
561
|
- test/fixtures/xml/usps/world_rate_request_only_country.xml
|
534
562
|
- test/fixtures/xml/usps/world_rate_request_with_value.xml
|
535
563
|
- test/fixtures/xml/usps/world_rate_request_without_value.xml
|
564
|
+
- test/fixtures/xml/usps_returns/external_return_label_response.xml
|
565
|
+
- test/fixtures/xml/usps_returns/external_return_label_response_failure.xml
|
536
566
|
- test/remote/canada_post_pws_platform_test.rb
|
537
567
|
- test/remote/canada_post_pws_test.rb
|
538
568
|
- test/remote/canada_post_test.rb
|
@@ -543,6 +573,7 @@ test_files:
|
|
543
573
|
- test/remote/shipwire_test.rb
|
544
574
|
- test/remote/stamps_test.rb
|
545
575
|
- test/remote/ups_test.rb
|
576
|
+
- test/remote/usps_returns_test.rb
|
546
577
|
- test/remote/usps_test.rb
|
547
578
|
- test/test_helper.rb
|
548
579
|
- test/unit/carriers/benchmark_test.rb
|
@@ -558,8 +589,10 @@ test_files:
|
|
558
589
|
- test/unit/carriers/shipwire_test.rb
|
559
590
|
- test/unit/carriers/stamps_test.rb
|
560
591
|
- test/unit/carriers/ups_test.rb
|
592
|
+
- test/unit/carriers/usps_returns_test.rb
|
561
593
|
- test/unit/carriers/usps_test.rb
|
562
594
|
- test/unit/carriers_test.rb
|
595
|
+
- test/unit/external_return_label_request_test.rb
|
563
596
|
- test/unit/location_test.rb
|
564
597
|
- test/unit/package_test.rb
|
565
598
|
- test/unit/rate_estimate_test.rb
|