canada_post 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/canada_post.gemspec +1 -1
- data/lib/canada_post.rb +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -30,7 +30,7 @@ Then set the Customer address in the format shown below, again in associative ar
|
|
30
30
|
|
31
31
|
customer = {
|
32
32
|
:city => 'Brampton',
|
33
|
-
:provOrState => 'Ontario,
|
33
|
+
:provOrState => 'Ontario',
|
34
34
|
:country => 'CA',
|
35
35
|
:postalCode => 'L1JK9'
|
36
36
|
}
|
@@ -56,4 +56,4 @@ Then, invoke the method below (returns XML format of details from Canada Post Se
|
|
56
56
|
|
57
57
|
The gem is based on {CanadaPost PHP class}[http://github.com/itsalif/CanadaPost].
|
58
58
|
|
59
|
-
The script has been released under MIT License.
|
59
|
+
The script has been released under MIT License.
|
data/canada_post.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.name = 'canada_post'
|
6
|
-
s.version = '0.1.
|
6
|
+
s.version = '0.1.2'
|
7
7
|
s.author = 'Alex Tsokurov'
|
8
8
|
s.email = 'me@ximik.net'
|
9
9
|
s.summary = 'A Simple Ruby Class that communicates with Canada Post Server and provides a shipping estimate.'
|
data/lib/canada_post.rb
CHANGED
@@ -74,7 +74,7 @@ class CanadaPost
|
|
74
74
|
xml.eparcel do
|
75
75
|
xml.language 'en'
|
76
76
|
xml.ratesAndServicesRequest do
|
77
|
-
buildTags(xml, [:merchantCPCID, :fromPostalCode, :turnAroundTime, :itemsPrice], @merchantInfo
|
77
|
+
buildTags(xml, [:merchantCPCID, :fromPostalCode, :turnAroundTime, :itemsPrice], @merchantInfo)
|
78
78
|
xml.lineItems do
|
79
79
|
@items.each do |item|
|
80
80
|
xml.item do
|
@@ -83,7 +83,7 @@ class CanadaPost
|
|
83
83
|
xml.readyToShip if item[:readyToShip]
|
84
84
|
end
|
85
85
|
end
|
86
|
-
buildTags(xml, [:city, :provOrState, :country, :postalCode], @customerInfo
|
86
|
+
buildTags(xml, [:city, :provOrState, :country, :postalCode], @customerInfo)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
return xml.target!
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canada_post
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Tsokurov
|