sports_direct 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,7 @@ module SportsDirect
50
50
 
51
51
  def normalize_region(region)
52
52
  map = {
53
+ # US states
53
54
  'Alabama' => 'AL',
54
55
  'Alaska' => 'AK',
55
56
  'Arizona' => 'AZ',
@@ -100,7 +101,22 @@ module SportsDirect
100
101
  'Washington' => 'WA',
101
102
  'West Virginia' => 'WV',
102
103
  'Wisconsin' => 'WI',
103
- 'Wyoming' => 'WY'
104
+ 'Wyoming' => 'WY',
105
+
106
+ # CA provinces
107
+ 'Alberta' => 'AB',
108
+ 'British Columbia' => 'BC',
109
+ 'Manitoba' => 'MB',
110
+ 'New Brunswick' => 'NB',
111
+ 'Newfoundland and Labrador' => 'NL',
112
+ 'Northwest Territories' => 'NT',
113
+ 'Nova Scotia' => 'NS',
114
+ 'Nunavut' => 'NU',
115
+ 'Ontario' => 'ON',
116
+ 'Prince Edward Island' => 'PE',
117
+ 'Quebec' => 'QC',
118
+ 'Saskatchewan' => 'SK',
119
+ 'Yukon' => 'YT'
104
120
  }
105
121
 
106
122
  map[region]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Hunt
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-21 00:00:00 -05:00
17
+ date: 2010-12-28 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency