active_shipping 0.9.4 → 0.9.5
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.
- data/CHANGELOG +1 -0
- data/lib/active_shipping/shipping/carriers/usps.rb +4 -1
- data/lib/active_shipping/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
* Add fix for updated USPS API to strip any encoded html and trailing asterisks from rate names [dennis]
|
|
1
2
|
* Add carrier CanadaPost [william]
|
|
2
3
|
* Update FedEx rates and added ability to auto-generate rate name from code that gets returned by FedEx [dennis]
|
|
3
4
|
* Assume test_helper is in load path when running tests [cody]
|
|
@@ -315,7 +315,10 @@ module ActiveMerchant
|
|
|
315
315
|
|
|
316
316
|
package_node.each_element(service_node) do |service_response_node|
|
|
317
317
|
service_name = service_response_node.get_text(service_name_node).to_s
|
|
318
|
-
|
|
318
|
+
|
|
319
|
+
# workaround for USPS messing up and including unescaped html and asterisks in their rate names since Jan 2, 2011
|
|
320
|
+
service_name.gsub!(/<sup>®<\/sup>|\*+$/, '')
|
|
321
|
+
|
|
319
322
|
# aggregate specific package rates into a service-centric RateEstimate
|
|
320
323
|
# first package with a given service name will initialize these;
|
|
321
324
|
# later packages with same service will add to them
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_shipping
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 49
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 9
|
|
9
|
-
-
|
|
10
|
-
version: 0.9.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.9.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- James MacAulay
|
|
@@ -18,7 +18,7 @@ autorequire:
|
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
20
|
|
|
21
|
-
date:
|
|
21
|
+
date: 2011-01-10 00:00:00 +01:00
|
|
22
22
|
default_executable:
|
|
23
23
|
dependencies:
|
|
24
24
|
- !ruby/object:Gem::Dependency
|