active_shipping 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/active_shipping.gemspec +2 -2
- data/lib/active_shipping/shipping/carriers/fedex.rb +3 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/active_shipping.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_shipping}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James MacAulay", "Tobias Luetke", "Cody Fauser", "Jimmy Baker"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-04-20}
|
13
13
|
s.description = %q{Shipping API extension for Active Merchant.}
|
14
14
|
s.email = %q{jmacaulay@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -446,8 +446,9 @@ module ActiveMerchant
|
|
446
446
|
tracking_number = tracking_details.get_text('TrackingNumber').to_s
|
447
447
|
|
448
448
|
destination_node = tracking_details.elements['DestinationAddress']
|
449
|
+
|
449
450
|
destination = Location.new(
|
450
|
-
:country => destination_node.get_text('CountryCode').to_s,
|
451
|
+
:country => destination_node.get_text('CountryCode').to_s.blank? ? 'US' : destination_node.get_text('CountryCode').to_s,
|
451
452
|
:province => destination_node.get_text('StateOrProvinceCode').to_s,
|
452
453
|
:city => destination_node.get_text('City').to_s
|
453
454
|
)
|
@@ -457,7 +458,7 @@ module ActiveMerchant
|
|
457
458
|
:city => event.elements['Address'].get_text('City').to_s,
|
458
459
|
:state => event.elements['Address'].get_text('StateOrProvinceCode').to_s,
|
459
460
|
:postal_code => event.elements['Address'].get_text('PostalCode').to_s,
|
460
|
-
:country => event.elements['Address'].get_text('CountryCode').to_s)
|
461
|
+
:country => event.elements['Address'].get_text('CountryCode').to_s.blank? ? 'US' : destination_node.get_text('CountryCode').to_s)
|
461
462
|
description = event.get_text('EventDescription').to_s
|
462
463
|
|
463
464
|
time = Time.parse(event.get_text('Timestamp').to_s)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- James MacAulay
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-04-20 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|