active_shipping 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,3 +1,3 @@
1
1
  module ActiveShipping
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
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: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 4
10
- version: 0.9.4
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: 2010-12-17 00:00:00 -05:00
21
+ date: 2011-01-10 00:00:00 +01:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency