snail 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/snail/constants.rb +17 -0
- metadata +6 -6
data/lib/snail/constants.rb
CHANGED
@@ -306,4 +306,21 @@ class Snail
|
|
306
306
|
"Armed Forces Middle East" => "AE",
|
307
307
|
"Armed Forces Pacific" => "AP",
|
308
308
|
}
|
309
|
+
|
310
|
+
# see http://en.wikipedia.org/wiki/Canadian_subnational_postal_abbreviations
|
311
|
+
CA_PROVINCES = {
|
312
|
+
"Alberta" => "AB",
|
313
|
+
"British Columbia" => "BC",
|
314
|
+
"Manitoba" => "MB",
|
315
|
+
"New Brunswick" => "NB",
|
316
|
+
"Newfoundland and Labrador" => "NL",
|
317
|
+
"Nova Scotia" => "NS",
|
318
|
+
"Northwest Territories" => "NT",
|
319
|
+
"Nunavut" => "NU",
|
320
|
+
"Ontario" => "ON",
|
321
|
+
"Prince Edward Island" => "PE",
|
322
|
+
"Quebec" => "QC",
|
323
|
+
"Saskatchewan" => "SK",
|
324
|
+
"Yukon" => "YT"
|
325
|
+
}
|
309
326
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 4
|
10
|
+
version: 0.5.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lance Ivy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-05-06 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -30,10 +30,10 @@ extra_rdoc_files: []
|
|
30
30
|
files:
|
31
31
|
- lib/snail/constants.rb
|
32
32
|
- lib/snail/configurable.rb
|
33
|
-
- lib/snail_helpers.rb
|
34
33
|
- lib/snail.rb
|
35
|
-
-
|
34
|
+
- lib/snail_helpers.rb
|
36
35
|
- test/test_helper.rb
|
36
|
+
- test/snail_test.rb
|
37
37
|
- README.rdoc
|
38
38
|
- MIT-LICENSE
|
39
39
|
- rails/init.rb
|