active_shipping 1.0.0.pre2 → 1.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +12 -0
  5. data/.travis.yml +14 -0
  6. data/.yardopts +14 -0
  7. data/Gemfile +3 -0
  8. data/Gemfile.activesupport32 +4 -0
  9. data/Gemfile.activesupport40 +4 -0
  10. data/Gemfile.activesupport41 +4 -0
  11. data/Gemfile.activesupport42 +4 -0
  12. data/Rakefile +23 -0
  13. data/active_shipping.gemspec +32 -0
  14. data/lib/active_shipping.rb +1 -1
  15. data/lib/active_shipping/carrier.rb +1 -1
  16. data/lib/active_shipping/carriers/shipwire.rb +32 -35
  17. data/lib/active_shipping/carriers/ups.rb +2 -2
  18. data/lib/active_shipping/carriers/usps.rb +103 -101
  19. data/lib/active_shipping/label_response.rb +1 -1
  20. data/lib/active_shipping/rate_estimate.rb +76 -15
  21. data/lib/active_shipping/rate_response.rb +20 -0
  22. data/lib/active_shipping/response.rb +17 -0
  23. data/lib/active_shipping/shipment_packer.rb +2 -2
  24. data/lib/active_shipping/shipping_response.rb +24 -2
  25. data/lib/active_shipping/tracking_response.rb +65 -17
  26. data/lib/active_shipping/version.rb +1 -1
  27. data/shipit.rubygems.yml +1 -0
  28. data/test/credentials.yml +47 -0
  29. data/test/fixtures/files/label1.pdf +0 -0
  30. data/test/fixtures/files/ups-shipping-label.gif +0 -0
  31. data/test/fixtures/json/newzealandpost/domestic_book.json +1 -0
  32. data/test/fixtures/json/newzealandpost/domestic_default.json +1 -0
  33. data/test/fixtures/json/newzealandpost/domestic_error.json +1 -0
  34. data/test/fixtures/json/newzealandpost/domestic_poster.json +1 -0
  35. data/test/fixtures/json/newzealandpost/domestic_small_half_pound.json +1 -0
  36. data/test/fixtures/json/newzealandpost/international_book.json +1 -0
  37. data/test/fixtures/json/newzealandpost/international_new_zealand_wii.json +1 -0
  38. data/test/fixtures/json/newzealandpost/international_small_half_pound.json +1 -0
  39. data/test/fixtures/json/newzealandpost/international_wii.json +1 -0
  40. data/test/fixtures/xml/canadapost/example_request.xml +25 -0
  41. data/test/fixtures/xml/canadapost/example_response.xml +130 -0
  42. data/test/fixtures/xml/canadapost/example_response_error.xml +16 -0
  43. data/test/fixtures/xml/canadapost/example_response_french.xml +122 -0
  44. data/test/fixtures/xml/canadapost/example_response_with_nil_value.xml +164 -0
  45. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml +155 -0
  46. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml +274 -0
  47. data/test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml +130 -0
  48. data/test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml +112 -0
  49. data/test/fixtures/xml/canadapost_pws/merchant_details_error.xml +7 -0
  50. data/test/fixtures/xml/canadapost_pws/merchant_details_response.xml +7 -0
  51. data/test/fixtures/xml/canadapost_pws/option_response.xml +13 -0
  52. data/test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml +7 -0
  53. data/test/fixtures/xml/canadapost_pws/rates_info.xml +190 -0
  54. data/test/fixtures/xml/canadapost_pws/rates_info_error.xml +7 -0
  55. data/test/fixtures/xml/canadapost_pws/receipt_response.xml +42 -0
  56. data/test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml +36 -0
  57. data/test/fixtures/xml/canadapost_pws/register_token_error.xml +7 -0
  58. data/test/fixtures/xml/canadapost_pws/register_token_response.xml +3 -0
  59. data/test/fixtures/xml/canadapost_pws/service_options_response.xml +42 -0
  60. data/test/fixtures/xml/canadapost_pws/services_error.xml +6 -0
  61. data/test/fixtures/xml/canadapost_pws/services_response.xml +32 -0
  62. data/test/fixtures/xml/canadapost_pws/shipment_domestic.xml +69 -0
  63. data/test/fixtures/xml/canadapost_pws/shipment_response.xml +20 -0
  64. data/test/fixtures/xml/canadapost_pws/shipment_us.xml +69 -0
  65. data/test/fixtures/xml/canadapost_pws/tracking_details_en.xml +152 -0
  66. data/test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml +7 -0
  67. data/test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml +116 -0
  68. data/test/fixtures/xml/canadapost_pws/tracking_details_fr.xml +156 -0
  69. data/test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml +40 -0
  70. data/test/fixtures/xml/fedex/freight_rate_request.xml +82 -0
  71. data/test/fixtures/xml/fedex/freight_rate_response.xml +506 -0
  72. data/test/fixtures/xml/fedex/invalid_fedex_reply.xml +27 -0
  73. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml +79 -0
  74. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml +80 -0
  75. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml +214 -0
  76. data/test/fixtures/xml/fedex/raterequest_reply.xml +213 -0
  77. data/test/fixtures/xml/fedex/reply_without_notifications.xml +185 -0
  78. data/test/fixtures/xml/fedex/tracking_request.xml +27 -0
  79. data/test/fixtures/xml/fedex/tracking_response.xml +151 -0
  80. data/test/fixtures/xml/fedex/tracking_response_empty_destination.xml +76 -0
  81. data/test/fixtures/xml/fedex/tracking_response_no_destination.xml +139 -0
  82. data/test/fixtures/xml/fedex/tracking_response_no_ship_time.xml +150 -0
  83. data/test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml +95 -0
  84. data/test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml +71 -0
  85. data/test/fixtures/xml/fedex/unknown_fedex_document_reply.xml +3 -0
  86. data/test/fixtures/xml/kunaki/invalid_state_response.xml +3 -0
  87. data/test/fixtures/xml/kunaki/no_valid_items_response.xml +3 -0
  88. data/test/fixtures/xml/kunaki/successful_rates_response.xml +3 -0
  89. data/test/fixtures/xml/kunaki/unsuccessful_rates_response.xml +9 -0
  90. data/test/fixtures/xml/shipwire/international_rates_response.xml +17 -0
  91. data/test/fixtures/xml/shipwire/new_carrier_rate_response.xml +18 -0
  92. data/test/fixtures/xml/shipwire/no_rates_response.xml +7 -0
  93. data/test/fixtures/xml/shipwire/rates_response.xml +36 -0
  94. data/test/fixtures/xml/shipwire/rates_response_no_estimate.xml +14 -0
  95. data/test/fixtures/xml/stamps/authenticate_user_request.xml +15 -0
  96. data/test/fixtures/xml/stamps/authenticate_user_response.xml +10 -0
  97. data/test/fixtures/xml/stamps/cleanse_address_request.xml +19 -0
  98. data/test/fixtures/xml/stamps/cleanse_address_response.xml +27 -0
  99. data/test/fixtures/xml/stamps/create_indicium_request.xml +69 -0
  100. data/test/fixtures/xml/stamps/create_indicium_response.xml +40 -0
  101. data/test/fixtures/xml/stamps/expired_authenticator_response.xml +15 -0
  102. data/test/fixtures/xml/stamps/get_account_info_request.xml +11 -0
  103. data/test/fixtures/xml/stamps/get_account_info_response.xml +36 -0
  104. data/test/fixtures/xml/stamps/get_purchase_status_request.xml +12 -0
  105. data/test/fixtures/xml/stamps/get_purchase_status_response.xml +16 -0
  106. data/test/fixtures/xml/stamps/get_rates_request.xml +19 -0
  107. data/test/fixtures/xml/stamps/get_rates_response.xml +351 -0
  108. data/test/fixtures/xml/stamps/purchase_postage_request.xml +13 -0
  109. data/test/fixtures/xml/stamps/purchase_postage_response.xml +17 -0
  110. data/test/fixtures/xml/stamps/track_shipment_request.xml +12 -0
  111. data/test/fixtures/xml/stamps/track_shipment_response.xml +45 -0
  112. data/test/fixtures/xml/ups/delivered_shipment_with_refund.xml +290 -0
  113. data/test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml +62 -0
  114. data/test/fixtures/xml/ups/example_tracking_response.xml +53 -0
  115. data/test/fixtures/xml/ups/in_transit_shipment.xml +183 -0
  116. data/test/fixtures/xml/ups/out_for_delivery_shipment.xml +165 -0
  117. data/test/fixtures/xml/ups/shipment_accept_response.xml +42 -0
  118. data/test/fixtures/xml/ups/shipment_confirm_response.xml +33 -0
  119. data/test/fixtures/xml/ups/shipment_from_tiger_direct.xml +222 -0
  120. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +1 -0
  121. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml +289 -0
  122. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml +311 -0
  123. data/test/fixtures/xml/ups/triple_accept_response.xml +72 -0
  124. data/test/fixtures/xml/ups/triple_confirm_response.xml +32 -0
  125. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml +2 -0
  126. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml +258 -0
  127. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml +108 -0
  128. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml +84 -0
  129. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml +212 -0
  130. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml +230 -0
  131. data/test/fixtures/xml/usps/delivered_tracking_response.xml +11 -0
  132. data/test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml +12 -0
  133. data/test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml +16 -0
  134. data/test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml +12 -0
  135. data/test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml +2 -0
  136. data/test/fixtures/xml/usps/tracking_request.xml +3 -0
  137. data/test/fixtures/xml/usps/tracking_response.xml +13 -0
  138. data/test/fixtures/xml/usps/tracking_response_failure.xml +3 -0
  139. data/test/fixtures/xml/usps/tracking_response_not_available.xml +12 -0
  140. data/test/fixtures/xml/usps/tracking_response_test_error.xml +8 -0
  141. data/test/fixtures/xml/usps/us_rate_request.xml +18 -0
  142. data/test/fixtures/xml/usps/world_rate_request_with_value.xml +20 -0
  143. data/test/fixtures/xml/usps/world_rate_request_without_value.xml +20 -0
  144. data/test/remote/canada_post_pws_platform_test.rb +246 -0
  145. data/test/remote/canada_post_pws_test.rb +171 -0
  146. data/test/remote/canada_post_test.rb +53 -0
  147. data/test/remote/fedex_test.rb +216 -0
  148. data/test/remote/kunaki_test.rb +36 -0
  149. data/test/remote/new_zealand_post_test.rb +147 -0
  150. data/test/remote/shipwire_test.rb +82 -0
  151. data/test/remote/stamps_test.rb +394 -0
  152. data/test/remote/ups_test.rb +257 -0
  153. data/test/remote/usps_test.rb +235 -0
  154. data/test/test_helper.rb +220 -0
  155. data/test/unit/carriers/benchmark_test.rb +18 -0
  156. data/test/unit/carriers/canada_post_pws_rating_test.rb +349 -0
  157. data/test/unit/carriers/canada_post_pws_register_test.rb +75 -0
  158. data/test/unit/carriers/canada_post_pws_shipping_test.rb +244 -0
  159. data/test/unit/carriers/canada_post_pws_tracking_test.rb +154 -0
  160. data/test/unit/carriers/canada_post_test.rb +145 -0
  161. data/test/unit/carriers/fedex_test.rb +408 -0
  162. data/test/unit/carriers/kunaki_test.rb +52 -0
  163. data/test/unit/carriers/new_zealand_post_test.rb +174 -0
  164. data/test/unit/carriers/shipwire_test.rb +187 -0
  165. data/test/unit/carriers/stamps_test.rb +241 -0
  166. data/test/unit/carriers/ups_test.rb +311 -0
  167. data/test/unit/carriers/usps_test.rb +484 -0
  168. data/test/unit/carriers_test.rb +17 -0
  169. data/test/unit/label_response_test.rb +15 -0
  170. data/test/unit/location_test.rb +138 -0
  171. data/test/unit/package_test.rb +68 -0
  172. data/test/unit/rate_estimate_test.rb +34 -0
  173. data/test/unit/response_test.rb +14 -0
  174. data/test/unit/shipment_packer_test.rb +174 -0
  175. metadata +331 -35
  176. metadata.gz.sig +0 -0
  177. data/lib/vendor/quantified/MIT-LICENSE +0 -22
  178. data/lib/vendor/quantified/README.markdown +0 -49
  179. data/lib/vendor/quantified/Rakefile +0 -13
  180. data/lib/vendor/quantified/init.rb +0 -0
  181. data/lib/vendor/quantified/lib/quantified.rb +0 -6
  182. data/lib/vendor/quantified/lib/quantified/attribute.rb +0 -211
  183. data/lib/vendor/quantified/lib/quantified/length.rb +0 -20
  184. data/lib/vendor/quantified/lib/quantified/mass.rb +0 -19
  185. data/lib/vendor/quantified/test/length_test.rb +0 -94
  186. data/lib/vendor/quantified/test/mass_test.rb +0 -96
  187. data/lib/vendor/quantified/test/test_helper.rb +0 -19
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.0.0.pre2
4
+ version: 1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James MacAulay
@@ -33,42 +33,42 @@ cert_chain:
33
33
  fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
34
34
  TConQSX2BnZdhIEYW+cKzEC/bLc=
35
35
  -----END CERTIFICATE-----
36
- date: 2015-01-24 00:00:00.000000000 Z
36
+ date: 2015-01-26 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
- name: activesupport
39
+ name: quantified
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: '3.2'
45
- - - "<"
42
+ - - "~>"
46
43
  - !ruby/object:Gem::Version
47
- version: 5.0.0
44
+ version: '1.0'
48
45
  type: :runtime
49
46
  prerelease: false
50
47
  version_requirements: !ruby/object:Gem::Requirement
51
48
  requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '3.2'
55
- - - "<"
49
+ - - "~>"
56
50
  - !ruby/object:Gem::Version
57
- version: 5.0.0
51
+ version: '1.0'
58
52
  - !ruby/object:Gem::Dependency
59
- name: i18n
53
+ name: activesupport
60
54
  requirement: !ruby/object:Gem::Requirement
61
55
  requirements:
62
56
  - - ">="
63
57
  - !ruby/object:Gem::Version
64
- version: 0.6.9
58
+ version: '3.2'
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: 5.0.0
65
62
  type: :runtime
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
66
  - - ">="
70
67
  - !ruby/object:Gem::Version
71
- version: 0.6.9
68
+ version: '3.2'
69
+ - - "<"
70
+ - !ruby/object:Gem::Version
71
+ version: 5.0.0
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: active_utils
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -173,17 +173,28 @@ dependencies:
173
173
  - - ">="
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
- description: Get rates and tracking info from various shipping carriers.
176
+ description: Get rates and tracking info from various shipping carriers. Extracted
177
+ from Shopify.
177
178
  email:
178
179
  - james@shopify.com
179
180
  executables: []
180
181
  extensions: []
181
182
  extra_rdoc_files: []
182
183
  files:
184
+ - ".gitignore"
185
+ - ".travis.yml"
186
+ - ".yardopts"
183
187
  - CHANGELOG.md
184
188
  - CONTRIBUTING.md
189
+ - Gemfile
190
+ - Gemfile.activesupport32
191
+ - Gemfile.activesupport40
192
+ - Gemfile.activesupport41
193
+ - Gemfile.activesupport42
185
194
  - MIT-LICENSE
186
195
  - README.md
196
+ - Rakefile
197
+ - active_shipping.gemspec
187
198
  - lib/active_shipping.rb
188
199
  - lib/active_shipping/carrier.rb
189
200
  - lib/active_shipping/carriers.rb
@@ -211,17 +222,6 @@ files:
211
222
  - lib/active_shipping/tracking_response.rb
212
223
  - lib/active_shipping/version.rb
213
224
  - lib/certs/eParcel.dtd
214
- - lib/vendor/quantified/MIT-LICENSE
215
- - lib/vendor/quantified/README.markdown
216
- - lib/vendor/quantified/Rakefile
217
- - lib/vendor/quantified/init.rb
218
- - lib/vendor/quantified/lib/quantified.rb
219
- - lib/vendor/quantified/lib/quantified/attribute.rb
220
- - lib/vendor/quantified/lib/quantified/length.rb
221
- - lib/vendor/quantified/lib/quantified/mass.rb
222
- - lib/vendor/quantified/test/length_test.rb
223
- - lib/vendor/quantified/test/mass_test.rb
224
- - lib/vendor/quantified/test/test_helper.rb
225
225
  - lib/vendor/test_helper.rb
226
226
  - lib/vendor/xml_node/README
227
227
  - lib/vendor/xml_node/Rakefile
@@ -230,13 +230,162 @@ files:
230
230
  - lib/vendor/xml_node/lib/xml_node.rb
231
231
  - lib/vendor/xml_node/test/test_generating.rb
232
232
  - lib/vendor/xml_node/test/test_parsing.rb
233
+ - shipit.rubygems.yml
234
+ - test/credentials.yml
235
+ - test/fixtures/files/label1.pdf
236
+ - test/fixtures/files/ups-shipping-label.gif
237
+ - test/fixtures/json/newzealandpost/domestic_book.json
238
+ - test/fixtures/json/newzealandpost/domestic_default.json
239
+ - test/fixtures/json/newzealandpost/domestic_error.json
240
+ - test/fixtures/json/newzealandpost/domestic_poster.json
241
+ - test/fixtures/json/newzealandpost/domestic_small_half_pound.json
242
+ - test/fixtures/json/newzealandpost/international_book.json
243
+ - test/fixtures/json/newzealandpost/international_new_zealand_wii.json
244
+ - test/fixtures/json/newzealandpost/international_small_half_pound.json
245
+ - test/fixtures/json/newzealandpost/international_wii.json
246
+ - test/fixtures/xml/canadapost/example_request.xml
247
+ - test/fixtures/xml/canadapost/example_response.xml
248
+ - test/fixtures/xml/canadapost/example_response_error.xml
249
+ - test/fixtures/xml/canadapost/example_response_french.xml
250
+ - test/fixtures/xml/canadapost/example_response_with_nil_value.xml
251
+ - test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml
252
+ - test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml
253
+ - test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml
254
+ - test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml
255
+ - test/fixtures/xml/canadapost_pws/merchant_details_error.xml
256
+ - test/fixtures/xml/canadapost_pws/merchant_details_response.xml
257
+ - test/fixtures/xml/canadapost_pws/option_response.xml
258
+ - test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml
259
+ - test/fixtures/xml/canadapost_pws/rates_info.xml
260
+ - test/fixtures/xml/canadapost_pws/rates_info_error.xml
261
+ - test/fixtures/xml/canadapost_pws/receipt_response.xml
262
+ - test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml
263
+ - test/fixtures/xml/canadapost_pws/register_token_error.xml
264
+ - test/fixtures/xml/canadapost_pws/register_token_response.xml
265
+ - test/fixtures/xml/canadapost_pws/service_options_response.xml
266
+ - test/fixtures/xml/canadapost_pws/services_error.xml
267
+ - test/fixtures/xml/canadapost_pws/services_response.xml
268
+ - test/fixtures/xml/canadapost_pws/shipment_domestic.xml
269
+ - test/fixtures/xml/canadapost_pws/shipment_response.xml
270
+ - test/fixtures/xml/canadapost_pws/shipment_us.xml
271
+ - test/fixtures/xml/canadapost_pws/tracking_details_en.xml
272
+ - test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml
273
+ - test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml
274
+ - test/fixtures/xml/canadapost_pws/tracking_details_fr.xml
275
+ - test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml
276
+ - test/fixtures/xml/fedex/freight_rate_request.xml
277
+ - test/fixtures/xml/fedex/freight_rate_response.xml
278
+ - test/fixtures/xml/fedex/invalid_fedex_reply.xml
279
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml
280
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml
281
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml
282
+ - test/fixtures/xml/fedex/raterequest_reply.xml
283
+ - test/fixtures/xml/fedex/reply_without_notifications.xml
284
+ - test/fixtures/xml/fedex/tracking_request.xml
285
+ - test/fixtures/xml/fedex/tracking_response.xml
286
+ - test/fixtures/xml/fedex/tracking_response_empty_destination.xml
287
+ - test/fixtures/xml/fedex/tracking_response_no_destination.xml
288
+ - test/fixtures/xml/fedex/tracking_response_no_ship_time.xml
289
+ - test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml
290
+ - test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml
291
+ - test/fixtures/xml/fedex/unknown_fedex_document_reply.xml
292
+ - test/fixtures/xml/kunaki/invalid_state_response.xml
293
+ - test/fixtures/xml/kunaki/no_valid_items_response.xml
294
+ - test/fixtures/xml/kunaki/successful_rates_response.xml
295
+ - test/fixtures/xml/kunaki/unsuccessful_rates_response.xml
296
+ - test/fixtures/xml/shipwire/international_rates_response.xml
297
+ - test/fixtures/xml/shipwire/new_carrier_rate_response.xml
298
+ - test/fixtures/xml/shipwire/no_rates_response.xml
299
+ - test/fixtures/xml/shipwire/rates_response.xml
300
+ - test/fixtures/xml/shipwire/rates_response_no_estimate.xml
301
+ - test/fixtures/xml/stamps/authenticate_user_request.xml
302
+ - test/fixtures/xml/stamps/authenticate_user_response.xml
303
+ - test/fixtures/xml/stamps/cleanse_address_request.xml
304
+ - test/fixtures/xml/stamps/cleanse_address_response.xml
305
+ - test/fixtures/xml/stamps/create_indicium_request.xml
306
+ - test/fixtures/xml/stamps/create_indicium_response.xml
307
+ - test/fixtures/xml/stamps/expired_authenticator_response.xml
308
+ - test/fixtures/xml/stamps/get_account_info_request.xml
309
+ - test/fixtures/xml/stamps/get_account_info_response.xml
310
+ - test/fixtures/xml/stamps/get_purchase_status_request.xml
311
+ - test/fixtures/xml/stamps/get_purchase_status_response.xml
312
+ - test/fixtures/xml/stamps/get_rates_request.xml
313
+ - test/fixtures/xml/stamps/get_rates_response.xml
314
+ - test/fixtures/xml/stamps/purchase_postage_request.xml
315
+ - test/fixtures/xml/stamps/purchase_postage_response.xml
316
+ - test/fixtures/xml/stamps/track_shipment_request.xml
317
+ - test/fixtures/xml/stamps/track_shipment_response.xml
318
+ - test/fixtures/xml/ups/delivered_shipment_with_refund.xml
319
+ - test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml
320
+ - test/fixtures/xml/ups/example_tracking_response.xml
321
+ - test/fixtures/xml/ups/in_transit_shipment.xml
322
+ - test/fixtures/xml/ups/out_for_delivery_shipment.xml
323
+ - test/fixtures/xml/ups/shipment_accept_response.xml
324
+ - test/fixtures/xml/ups/shipment_confirm_response.xml
325
+ - test/fixtures/xml/ups/shipment_from_tiger_direct.xml
326
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml
327
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml
328
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml
329
+ - test/fixtures/xml/ups/triple_accept_response.xml
330
+ - test/fixtures/xml/ups/triple_confirm_response.xml
331
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml
332
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml
333
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml
334
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml
335
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml
336
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml
337
+ - test/fixtures/xml/usps/delivered_tracking_response.xml
338
+ - test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml
339
+ - test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml
340
+ - test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml
341
+ - test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml
342
+ - test/fixtures/xml/usps/tracking_request.xml
343
+ - test/fixtures/xml/usps/tracking_response.xml
344
+ - test/fixtures/xml/usps/tracking_response_failure.xml
345
+ - test/fixtures/xml/usps/tracking_response_not_available.xml
346
+ - test/fixtures/xml/usps/tracking_response_test_error.xml
347
+ - test/fixtures/xml/usps/us_rate_request.xml
348
+ - test/fixtures/xml/usps/world_rate_request_with_value.xml
349
+ - test/fixtures/xml/usps/world_rate_request_without_value.xml
350
+ - test/remote/canada_post_pws_platform_test.rb
351
+ - test/remote/canada_post_pws_test.rb
352
+ - test/remote/canada_post_test.rb
353
+ - test/remote/fedex_test.rb
354
+ - test/remote/kunaki_test.rb
355
+ - test/remote/new_zealand_post_test.rb
356
+ - test/remote/shipwire_test.rb
357
+ - test/remote/stamps_test.rb
358
+ - test/remote/ups_test.rb
359
+ - test/remote/usps_test.rb
360
+ - test/test_helper.rb
361
+ - test/unit/carriers/benchmark_test.rb
362
+ - test/unit/carriers/canada_post_pws_rating_test.rb
363
+ - test/unit/carriers/canada_post_pws_register_test.rb
364
+ - test/unit/carriers/canada_post_pws_shipping_test.rb
365
+ - test/unit/carriers/canada_post_pws_tracking_test.rb
366
+ - test/unit/carriers/canada_post_test.rb
367
+ - test/unit/carriers/fedex_test.rb
368
+ - test/unit/carriers/kunaki_test.rb
369
+ - test/unit/carriers/new_zealand_post_test.rb
370
+ - test/unit/carriers/shipwire_test.rb
371
+ - test/unit/carriers/stamps_test.rb
372
+ - test/unit/carriers/ups_test.rb
373
+ - test/unit/carriers/usps_test.rb
374
+ - test/unit/carriers_test.rb
375
+ - test/unit/label_response_test.rb
376
+ - test/unit/location_test.rb
377
+ - test/unit/package_test.rb
378
+ - test/unit/rate_estimate_test.rb
379
+ - test/unit/response_test.rb
380
+ - test/unit/shipment_packer_test.rb
233
381
  homepage: http://github.com/shopify/active_shipping
234
- licenses: []
382
+ licenses:
383
+ - MIT
235
384
  metadata: {}
236
385
  post_install_message:
237
386
  rdoc_options: []
238
387
  require_paths:
239
- - lib
388
+ - - lib
240
389
  required_ruby_version: !ruby/object:Gem::Requirement
241
390
  requirements:
242
391
  - - ">="
@@ -244,13 +393,160 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
393
  version: '0'
245
394
  required_rubygems_version: !ruby/object:Gem::Requirement
246
395
  requirements:
247
- - - ">="
396
+ - - ">"
248
397
  - !ruby/object:Gem::Version
249
- version: 1.3.6
398
+ version: 1.3.1
250
399
  requirements: []
251
- rubyforge_project: active_shipping
400
+ rubyforge_project:
252
401
  rubygems_version: 2.2.2
253
402
  signing_key:
254
403
  specification_version: 4
255
- summary: Shipping API extension for Active Merchant
256
- test_files: []
404
+ summary: Simple shipping abstraction library
405
+ test_files:
406
+ - test/credentials.yml
407
+ - test/fixtures/files/label1.pdf
408
+ - test/fixtures/files/ups-shipping-label.gif
409
+ - test/fixtures/json/newzealandpost/domestic_book.json
410
+ - test/fixtures/json/newzealandpost/domestic_default.json
411
+ - test/fixtures/json/newzealandpost/domestic_error.json
412
+ - test/fixtures/json/newzealandpost/domestic_poster.json
413
+ - test/fixtures/json/newzealandpost/domestic_small_half_pound.json
414
+ - test/fixtures/json/newzealandpost/international_book.json
415
+ - test/fixtures/json/newzealandpost/international_new_zealand_wii.json
416
+ - test/fixtures/json/newzealandpost/international_small_half_pound.json
417
+ - test/fixtures/json/newzealandpost/international_wii.json
418
+ - test/fixtures/xml/canadapost/example_request.xml
419
+ - test/fixtures/xml/canadapost/example_response.xml
420
+ - test/fixtures/xml/canadapost/example_response_error.xml
421
+ - test/fixtures/xml/canadapost/example_response_french.xml
422
+ - test/fixtures/xml/canadapost/example_response_with_nil_value.xml
423
+ - test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml
424
+ - test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml
425
+ - test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml
426
+ - test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml
427
+ - test/fixtures/xml/canadapost_pws/merchant_details_error.xml
428
+ - test/fixtures/xml/canadapost_pws/merchant_details_response.xml
429
+ - test/fixtures/xml/canadapost_pws/option_response.xml
430
+ - test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml
431
+ - test/fixtures/xml/canadapost_pws/rates_info.xml
432
+ - test/fixtures/xml/canadapost_pws/rates_info_error.xml
433
+ - test/fixtures/xml/canadapost_pws/receipt_response.xml
434
+ - test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml
435
+ - test/fixtures/xml/canadapost_pws/register_token_error.xml
436
+ - test/fixtures/xml/canadapost_pws/register_token_response.xml
437
+ - test/fixtures/xml/canadapost_pws/service_options_response.xml
438
+ - test/fixtures/xml/canadapost_pws/services_error.xml
439
+ - test/fixtures/xml/canadapost_pws/services_response.xml
440
+ - test/fixtures/xml/canadapost_pws/shipment_domestic.xml
441
+ - test/fixtures/xml/canadapost_pws/shipment_response.xml
442
+ - test/fixtures/xml/canadapost_pws/shipment_us.xml
443
+ - test/fixtures/xml/canadapost_pws/tracking_details_en.xml
444
+ - test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml
445
+ - test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml
446
+ - test/fixtures/xml/canadapost_pws/tracking_details_fr.xml
447
+ - test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml
448
+ - test/fixtures/xml/fedex/freight_rate_request.xml
449
+ - test/fixtures/xml/fedex/freight_rate_response.xml
450
+ - test/fixtures/xml/fedex/invalid_fedex_reply.xml
451
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml
452
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml
453
+ - test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml
454
+ - test/fixtures/xml/fedex/raterequest_reply.xml
455
+ - test/fixtures/xml/fedex/reply_without_notifications.xml
456
+ - test/fixtures/xml/fedex/tracking_request.xml
457
+ - test/fixtures/xml/fedex/tracking_response.xml
458
+ - test/fixtures/xml/fedex/tracking_response_empty_destination.xml
459
+ - test/fixtures/xml/fedex/tracking_response_no_destination.xml
460
+ - test/fixtures/xml/fedex/tracking_response_no_ship_time.xml
461
+ - test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml
462
+ - test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml
463
+ - test/fixtures/xml/fedex/unknown_fedex_document_reply.xml
464
+ - test/fixtures/xml/kunaki/invalid_state_response.xml
465
+ - test/fixtures/xml/kunaki/no_valid_items_response.xml
466
+ - test/fixtures/xml/kunaki/successful_rates_response.xml
467
+ - test/fixtures/xml/kunaki/unsuccessful_rates_response.xml
468
+ - test/fixtures/xml/shipwire/international_rates_response.xml
469
+ - test/fixtures/xml/shipwire/new_carrier_rate_response.xml
470
+ - test/fixtures/xml/shipwire/no_rates_response.xml
471
+ - test/fixtures/xml/shipwire/rates_response.xml
472
+ - test/fixtures/xml/shipwire/rates_response_no_estimate.xml
473
+ - test/fixtures/xml/stamps/authenticate_user_request.xml
474
+ - test/fixtures/xml/stamps/authenticate_user_response.xml
475
+ - test/fixtures/xml/stamps/cleanse_address_request.xml
476
+ - test/fixtures/xml/stamps/cleanse_address_response.xml
477
+ - test/fixtures/xml/stamps/create_indicium_request.xml
478
+ - test/fixtures/xml/stamps/create_indicium_response.xml
479
+ - test/fixtures/xml/stamps/expired_authenticator_response.xml
480
+ - test/fixtures/xml/stamps/get_account_info_request.xml
481
+ - test/fixtures/xml/stamps/get_account_info_response.xml
482
+ - test/fixtures/xml/stamps/get_purchase_status_request.xml
483
+ - test/fixtures/xml/stamps/get_purchase_status_response.xml
484
+ - test/fixtures/xml/stamps/get_rates_request.xml
485
+ - test/fixtures/xml/stamps/get_rates_response.xml
486
+ - test/fixtures/xml/stamps/purchase_postage_request.xml
487
+ - test/fixtures/xml/stamps/purchase_postage_response.xml
488
+ - test/fixtures/xml/stamps/track_shipment_request.xml
489
+ - test/fixtures/xml/stamps/track_shipment_response.xml
490
+ - test/fixtures/xml/ups/delivered_shipment_with_refund.xml
491
+ - test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml
492
+ - test/fixtures/xml/ups/example_tracking_response.xml
493
+ - test/fixtures/xml/ups/in_transit_shipment.xml
494
+ - test/fixtures/xml/ups/out_for_delivery_shipment.xml
495
+ - test/fixtures/xml/ups/shipment_accept_response.xml
496
+ - test/fixtures/xml/ups/shipment_confirm_response.xml
497
+ - test/fixtures/xml/ups/shipment_from_tiger_direct.xml
498
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml
499
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml
500
+ - test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml
501
+ - test/fixtures/xml/ups/triple_accept_response.xml
502
+ - test/fixtures/xml/ups/triple_confirm_response.xml
503
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml
504
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml
505
+ - test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml
506
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml
507
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml
508
+ - test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml
509
+ - test/fixtures/xml/usps/delivered_tracking_response.xml
510
+ - test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml
511
+ - test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml
512
+ - test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml
513
+ - test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml
514
+ - test/fixtures/xml/usps/tracking_request.xml
515
+ - test/fixtures/xml/usps/tracking_response.xml
516
+ - test/fixtures/xml/usps/tracking_response_failure.xml
517
+ - test/fixtures/xml/usps/tracking_response_not_available.xml
518
+ - test/fixtures/xml/usps/tracking_response_test_error.xml
519
+ - test/fixtures/xml/usps/us_rate_request.xml
520
+ - test/fixtures/xml/usps/world_rate_request_with_value.xml
521
+ - test/fixtures/xml/usps/world_rate_request_without_value.xml
522
+ - test/remote/canada_post_pws_platform_test.rb
523
+ - test/remote/canada_post_pws_test.rb
524
+ - test/remote/canada_post_test.rb
525
+ - test/remote/fedex_test.rb
526
+ - test/remote/kunaki_test.rb
527
+ - test/remote/new_zealand_post_test.rb
528
+ - test/remote/shipwire_test.rb
529
+ - test/remote/stamps_test.rb
530
+ - test/remote/ups_test.rb
531
+ - test/remote/usps_test.rb
532
+ - test/test_helper.rb
533
+ - test/unit/carriers/benchmark_test.rb
534
+ - test/unit/carriers/canada_post_pws_rating_test.rb
535
+ - test/unit/carriers/canada_post_pws_register_test.rb
536
+ - test/unit/carriers/canada_post_pws_shipping_test.rb
537
+ - test/unit/carriers/canada_post_pws_tracking_test.rb
538
+ - test/unit/carriers/canada_post_test.rb
539
+ - test/unit/carriers/fedex_test.rb
540
+ - test/unit/carriers/kunaki_test.rb
541
+ - test/unit/carriers/new_zealand_post_test.rb
542
+ - test/unit/carriers/shipwire_test.rb
543
+ - test/unit/carriers/stamps_test.rb
544
+ - test/unit/carriers/ups_test.rb
545
+ - test/unit/carriers/usps_test.rb
546
+ - test/unit/carriers_test.rb
547
+ - test/unit/label_response_test.rb
548
+ - test/unit/location_test.rb
549
+ - test/unit/package_test.rb
550
+ - test/unit/rate_estimate_test.rb
551
+ - test/unit/response_test.rb
552
+ - test/unit/shipment_packer_test.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,22 +0,0 @@
1
- Copyright (c) 2009 James MacAulay
2
-
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.