jazminschroeder/fedex — pull request #29 by jordanbyron (2013-01-28 20:29:55+00:00)
Title: Tracking Fixes

Currently the package tracking feature does not handle duplicate waybills (more than one package with the same tracking number). I've fixed `Fedex::Request::TrackingInformation#process_request` so it correctly parses these results.

There were also a few other minor bugs which I've fixed:

- `Fedex::Request::TrackingInformation` had a bug which prevented loading tracking information using `TrackingNumberUniqueIdentifier`.
- `Fedex::TrackingInformation#initialize` would fail if no events were returned
- `Fedex::TrackingInformation` didn't have an accessor for `unique_tracking_number`

Please note this is an API breaking change. `Fedex::Shipment#track` now returns an array of `Fedex::TrackingInformation` objects as opposed to a single `Fedex::TrackingInformation` object. I decided to do this to keep the interface consistent. The README has been updated to reflect this change, but you might want to consider doing a major version bump when you cut a new gem release. Hopefully that will prevent people from encountering unexpected problems.

Thanks! :smile: