spree 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +5 -1
- data/INSTALL +3 -6
- data/app/controllers/application.rb +63 -59
- data/app/controllers/products_controller.rb +10 -3
- data/app/controllers/users_controller.rb +5 -0
- data/app/helpers/taxons_helper.rb +0 -1
- data/config/environment.rb +1 -1
- data/config/locales/de.yml +1 -0
- data/config/locales/en-GB.yml +1 -0
- data/config/locales/en-US.yml +2 -1
- data/config/locales/es.yml +1 -0
- data/config/locales/fr-FR.yml +1 -0
- data/config/locales/it.yml +1 -0
- data/config/locales/nb-NO.yml +1 -0
- data/config/locales/nl-BE.yml +1 -0
- data/config/locales/pl.yml +1 -0
- data/config/locales/pt-BR.yml +1 -0
- data/config/locales/pt-PT.yml +1 -0
- data/config/locales/ru-RU.yml +1 -0
- data/db/default/countries.yml +1583 -0
- data/db/default/roles.yml +7 -0
- data/db/default/states.yml +256 -0
- data/db/default/zone_members.yml +181 -0
- data/db/default/zones.yml +13 -0
- data/db/migrate/20080630152702_add_iso_country_information.rb +0 -229
- data/db/migrate/20080703184654_update_country_rename_name.rb +0 -5
- data/db/migrate/20090401223217_create_eu_vat_zone_again.rb +17 -17
- data/db/schema.rb +406 -0
- data/db/seeds.rb +10 -0
- data/lib/spree.rb +1 -1
- data/lib/spree/setup.rb +30 -13
- data/lib/tasks/database.rake +39 -22
- data/lib/tasks/release.rake +1 -2
- data/vendor/plugins/attribute_fu/test/db/schema.rb +16 -0
- data/vendor/plugins/resource_controller/test/db/schema.rb +78 -0
- metadata +12 -4
- data/db/sample/roles.yml +0 -3
- data/db/sample/states.yml +0 -204
@@ -0,0 +1,256 @@
|
|
1
|
+
---
|
2
|
+
states_043:
|
3
|
+
name: Michigan
|
4
|
+
country_id: "214"
|
5
|
+
id: "931624400"
|
6
|
+
abbr: MI
|
7
|
+
states_032:
|
8
|
+
name: South Dakota
|
9
|
+
country_id: "214"
|
10
|
+
id: "615306087"
|
11
|
+
abbr: SD
|
12
|
+
states_021:
|
13
|
+
name: Washington
|
14
|
+
country_id: "214"
|
15
|
+
id: "414569975"
|
16
|
+
abbr: WA
|
17
|
+
states_010:
|
18
|
+
name: Wisconsin
|
19
|
+
country_id: "214"
|
20
|
+
id: "103680699"
|
21
|
+
abbr: WI
|
22
|
+
states_044:
|
23
|
+
name: Arizona
|
24
|
+
country_id: "214"
|
25
|
+
id: "948208802"
|
26
|
+
abbr: AZ
|
27
|
+
states_033:
|
28
|
+
name: Illinois
|
29
|
+
country_id: "214"
|
30
|
+
id: "625629523"
|
31
|
+
abbr: IL
|
32
|
+
states_022:
|
33
|
+
name: New Hampshire
|
34
|
+
country_id: "214"
|
35
|
+
id: "426832442"
|
36
|
+
abbr: NH
|
37
|
+
states_011:
|
38
|
+
name: North Carolina
|
39
|
+
country_id: "214"
|
40
|
+
id: "177087202"
|
41
|
+
abbr: NC
|
42
|
+
states_045:
|
43
|
+
name: Kansas
|
44
|
+
country_id: "214"
|
45
|
+
id: "969722173"
|
46
|
+
abbr: KS
|
47
|
+
states_034:
|
48
|
+
name: Missouri
|
49
|
+
country_id: "214"
|
50
|
+
id: "653576146"
|
51
|
+
abbr: MO
|
52
|
+
states_023:
|
53
|
+
name: Arkansas
|
54
|
+
country_id: "214"
|
55
|
+
id: "471470972"
|
56
|
+
abbr: AR
|
57
|
+
states_012:
|
58
|
+
name: Nevada
|
59
|
+
country_id: "214"
|
60
|
+
id: "179539703"
|
61
|
+
abbr: NV
|
62
|
+
states_001:
|
63
|
+
name: District of Columbia
|
64
|
+
country_id: "214"
|
65
|
+
id: "6764998"
|
66
|
+
abbr: DC
|
67
|
+
states_046:
|
68
|
+
name: Idaho
|
69
|
+
country_id: "214"
|
70
|
+
id: "982433740"
|
71
|
+
abbr: ID
|
72
|
+
states_035:
|
73
|
+
name: Nebraska
|
74
|
+
country_id: "214"
|
75
|
+
id: "673350891"
|
76
|
+
abbr: NE
|
77
|
+
states_024:
|
78
|
+
name: Pennsylvania
|
79
|
+
country_id: "214"
|
80
|
+
id: "471711976"
|
81
|
+
abbr: PA
|
82
|
+
states_013:
|
83
|
+
name: Hawaii
|
84
|
+
country_id: "214"
|
85
|
+
id: "199950338"
|
86
|
+
abbr: HI
|
87
|
+
states_002:
|
88
|
+
name: Utah
|
89
|
+
country_id: "214"
|
90
|
+
id: "17199670"
|
91
|
+
abbr: UT
|
92
|
+
states_047:
|
93
|
+
name: Vermont
|
94
|
+
country_id: "214"
|
95
|
+
id: "989115415"
|
96
|
+
abbr: VT
|
97
|
+
states_036:
|
98
|
+
name: Delaware
|
99
|
+
country_id: "214"
|
100
|
+
id: "721598219"
|
101
|
+
abbr: DE
|
102
|
+
states_025:
|
103
|
+
name: Rhode Island
|
104
|
+
country_id: "214"
|
105
|
+
id: "474001862"
|
106
|
+
abbr: RI
|
107
|
+
states_014:
|
108
|
+
name: Oklahoma
|
109
|
+
country_id: "214"
|
110
|
+
id: "248548169"
|
111
|
+
abbr: OK
|
112
|
+
states_003:
|
113
|
+
name: Louisiana
|
114
|
+
country_id: "214"
|
115
|
+
id: "37199952"
|
116
|
+
abbr: LA
|
117
|
+
states_048:
|
118
|
+
name: Montana
|
119
|
+
country_id: "214"
|
120
|
+
id: "999156632"
|
121
|
+
abbr: MT
|
122
|
+
states_037:
|
123
|
+
name: Tennessee
|
124
|
+
country_id: "214"
|
125
|
+
id: "726305632"
|
126
|
+
abbr: TN
|
127
|
+
states_026:
|
128
|
+
name: Maryland
|
129
|
+
country_id: "214"
|
130
|
+
id: "480368357"
|
131
|
+
abbr: MD
|
132
|
+
states_015:
|
133
|
+
name: Florida
|
134
|
+
country_id: "214"
|
135
|
+
id: "267271847"
|
136
|
+
abbr: FL
|
137
|
+
states_004:
|
138
|
+
name: Virginia
|
139
|
+
country_id: "214"
|
140
|
+
id: "41111624"
|
141
|
+
abbr: VA
|
142
|
+
states_049:
|
143
|
+
name: Minnesota
|
144
|
+
country_id: "214"
|
145
|
+
id: "1032288924"
|
146
|
+
abbr: MN
|
147
|
+
states_038:
|
148
|
+
name: New Jersey
|
149
|
+
country_id: "214"
|
150
|
+
id: "750950030"
|
151
|
+
abbr: NJ
|
152
|
+
states_027:
|
153
|
+
name: Ohio
|
154
|
+
country_id: "214"
|
155
|
+
id: "485193526"
|
156
|
+
abbr: OH
|
157
|
+
states_016:
|
158
|
+
name: California
|
159
|
+
country_id: "214"
|
160
|
+
id: "276110813"
|
161
|
+
abbr: CA
|
162
|
+
states_005:
|
163
|
+
name: North Dakota
|
164
|
+
country_id: "214"
|
165
|
+
id: "51943165"
|
166
|
+
abbr: ND
|
167
|
+
states_050:
|
168
|
+
name: Maine
|
169
|
+
country_id: "214"
|
170
|
+
id: "1055056709"
|
171
|
+
abbr: ME
|
172
|
+
states_039:
|
173
|
+
name: Indiana
|
174
|
+
country_id: "214"
|
175
|
+
id: "769938586"
|
176
|
+
abbr: IN
|
177
|
+
states_028:
|
178
|
+
name: Texas
|
179
|
+
country_id: "214"
|
180
|
+
id: "525212995"
|
181
|
+
abbr: TX
|
182
|
+
states_017:
|
183
|
+
name: Oregon
|
184
|
+
country_id: "214"
|
185
|
+
id: "298914262"
|
186
|
+
abbr: OR
|
187
|
+
states_006:
|
188
|
+
name: Wyoming
|
189
|
+
country_id: "214"
|
190
|
+
id: "66390489"
|
191
|
+
abbr: WY
|
192
|
+
states_051:
|
193
|
+
name: Alabama
|
194
|
+
country_id: "214"
|
195
|
+
id: "1061493585"
|
196
|
+
abbr: AL
|
197
|
+
states_040:
|
198
|
+
name: Iowa
|
199
|
+
country_id: "214"
|
200
|
+
id: "825306985"
|
201
|
+
abbr: IA
|
202
|
+
states_029:
|
203
|
+
name: Mississippi
|
204
|
+
country_id: "214"
|
205
|
+
id: "532363768"
|
206
|
+
abbr: MS
|
207
|
+
states_018:
|
208
|
+
name: Kentucky
|
209
|
+
country_id: "214"
|
210
|
+
id: "308473843"
|
211
|
+
abbr: KY
|
212
|
+
states_007:
|
213
|
+
name: New Mexico
|
214
|
+
country_id: "214"
|
215
|
+
id: "69729944"
|
216
|
+
abbr: NM
|
217
|
+
states_041:
|
218
|
+
name: Georgia
|
219
|
+
country_id: "214"
|
220
|
+
id: "876916760"
|
221
|
+
abbr: GA
|
222
|
+
states_030:
|
223
|
+
name: Colorado
|
224
|
+
country_id: "214"
|
225
|
+
id: "536031023"
|
226
|
+
abbr: CO
|
227
|
+
states_019:
|
228
|
+
name: Massachusetts
|
229
|
+
country_id: "214"
|
230
|
+
id: "385551075"
|
231
|
+
abbr: MA
|
232
|
+
states_008:
|
233
|
+
name: Connecticut
|
234
|
+
country_id: "214"
|
235
|
+
id: "69870734"
|
236
|
+
abbr: CT
|
237
|
+
states_042:
|
238
|
+
name: New York
|
239
|
+
country_id: "214"
|
240
|
+
id: "889445952"
|
241
|
+
abbr: NY
|
242
|
+
states_031:
|
243
|
+
name: South Carolina
|
244
|
+
country_id: "214"
|
245
|
+
id: "597434151"
|
246
|
+
abbr: SC
|
247
|
+
states_020:
|
248
|
+
name: Alaska
|
249
|
+
country_id: "214"
|
250
|
+
id: "403740659"
|
251
|
+
abbr: AK
|
252
|
+
states_009:
|
253
|
+
name: West Virginia
|
254
|
+
country_id: "214"
|
255
|
+
id: "91367981"
|
256
|
+
abbr: WV
|
@@ -0,0 +1,181 @@
|
|
1
|
+
---
|
2
|
+
zone_members_030:
|
3
|
+
zoneable_id: "213"
|
4
|
+
created_at: 2009-06-04 17:22:41
|
5
|
+
updated_at: 2009-06-04 17:22:41
|
6
|
+
zone_id: "284254445"
|
7
|
+
zoneable_type: Country
|
8
|
+
zone_members_019:
|
9
|
+
zoneable_id: "162"
|
10
|
+
created_at: 2009-06-04 13:22:26
|
11
|
+
updated_at: 2009-06-04 13:22:26
|
12
|
+
zone_id: "1"
|
13
|
+
zoneable_type: Country
|
14
|
+
zone_members_008:
|
15
|
+
zoneable_id: "67"
|
16
|
+
created_at: 2009-06-04 13:22:26
|
17
|
+
updated_at: 2009-06-04 13:22:26
|
18
|
+
zone_id: "1"
|
19
|
+
zoneable_type: Country
|
20
|
+
zone_members_020:
|
21
|
+
zoneable_id: "163"
|
22
|
+
created_at: 2009-06-04 13:22:26
|
23
|
+
updated_at: 2009-06-04 13:22:26
|
24
|
+
zone_id: "1"
|
25
|
+
zoneable_type: Country
|
26
|
+
zone_members_021:
|
27
|
+
zoneable_id: "167"
|
28
|
+
created_at: 2009-06-04 13:22:26
|
29
|
+
updated_at: 2009-06-04 13:22:26
|
30
|
+
zone_id: "1"
|
31
|
+
zoneable_type: Country
|
32
|
+
zone_members_010:
|
33
|
+
zoneable_id: "74"
|
34
|
+
created_at: 2009-06-04 13:22:26
|
35
|
+
updated_at: 2009-06-04 13:22:26
|
36
|
+
zone_id: "1"
|
37
|
+
zoneable_type: Country
|
38
|
+
zone_members_009:
|
39
|
+
zoneable_id: "68"
|
40
|
+
created_at: 2009-06-04 13:22:26
|
41
|
+
updated_at: 2009-06-04 13:22:26
|
42
|
+
zone_id: "1"
|
43
|
+
zoneable_type: Country
|
44
|
+
zone_members_022:
|
45
|
+
zoneable_id: "183"
|
46
|
+
created_at: 2009-06-04 13:22:26
|
47
|
+
updated_at: 2009-06-04 13:22:26
|
48
|
+
zone_id: "1"
|
49
|
+
zoneable_type: Country
|
50
|
+
zone_members_011:
|
51
|
+
zoneable_id: "90"
|
52
|
+
created_at: 2009-06-04 13:22:26
|
53
|
+
updated_at: 2009-06-04 13:22:26
|
54
|
+
zone_id: "1"
|
55
|
+
zoneable_type: Country
|
56
|
+
zone_members_023:
|
57
|
+
zoneable_id: "184"
|
58
|
+
created_at: 2009-06-04 13:22:26
|
59
|
+
updated_at: 2009-06-04 13:22:26
|
60
|
+
zone_id: "1"
|
61
|
+
zoneable_type: Country
|
62
|
+
zone_members_012:
|
63
|
+
zoneable_id: "96"
|
64
|
+
created_at: 2009-06-04 13:22:26
|
65
|
+
updated_at: 2009-06-04 13:22:26
|
66
|
+
zone_id: "1"
|
67
|
+
zoneable_type: Country
|
68
|
+
zone_members_001:
|
69
|
+
zoneable_id: "13"
|
70
|
+
created_at: 2009-06-04 13:22:26
|
71
|
+
updated_at: 2009-06-04 13:22:26
|
72
|
+
zone_id: "1"
|
73
|
+
zoneable_type: Country
|
74
|
+
zone_members_024:
|
75
|
+
zoneable_id: "188"
|
76
|
+
created_at: 2009-06-04 13:22:26
|
77
|
+
updated_at: 2009-06-04 13:22:26
|
78
|
+
zone_id: "1"
|
79
|
+
zoneable_type: Country
|
80
|
+
zone_members_013:
|
81
|
+
zoneable_id: "98"
|
82
|
+
created_at: 2009-06-04 13:22:26
|
83
|
+
updated_at: 2009-06-04 13:22:26
|
84
|
+
zone_id: "1"
|
85
|
+
zoneable_type: Country
|
86
|
+
zone_members_002:
|
87
|
+
zoneable_id: "20"
|
88
|
+
created_at: 2009-06-04 13:22:26
|
89
|
+
updated_at: 2009-06-04 13:22:26
|
90
|
+
zone_id: "1"
|
91
|
+
zoneable_type: Country
|
92
|
+
zone_members_025:
|
93
|
+
zoneable_id: "194"
|
94
|
+
created_at: 2009-06-04 13:22:26
|
95
|
+
updated_at: 2009-06-04 13:22:26
|
96
|
+
zone_id: "1"
|
97
|
+
zoneable_type: Country
|
98
|
+
zone_members_014:
|
99
|
+
zoneable_id: "110"
|
100
|
+
created_at: 2009-06-04 13:22:26
|
101
|
+
updated_at: 2009-06-04 13:22:26
|
102
|
+
zone_id: "1"
|
103
|
+
zoneable_type: Country
|
104
|
+
zone_members_003:
|
105
|
+
zoneable_id: "30"
|
106
|
+
created_at: 2009-06-04 13:22:26
|
107
|
+
updated_at: 2009-06-04 13:22:26
|
108
|
+
zone_id: "1"
|
109
|
+
zoneable_type: Country
|
110
|
+
zone_members_026:
|
111
|
+
zoneable_id: "213"
|
112
|
+
created_at: 2009-06-04 13:22:26
|
113
|
+
updated_at: 2009-06-04 13:22:26
|
114
|
+
zone_id: "1"
|
115
|
+
zoneable_type: Country
|
116
|
+
zone_members_015:
|
117
|
+
zoneable_id: "116"
|
118
|
+
created_at: 2009-06-04 13:22:26
|
119
|
+
updated_at: 2009-06-04 13:22:26
|
120
|
+
zone_id: "1"
|
121
|
+
zoneable_type: Country
|
122
|
+
zone_members_004:
|
123
|
+
zoneable_id: "51"
|
124
|
+
created_at: 2009-06-04 13:22:26
|
125
|
+
updated_at: 2009-06-04 13:22:26
|
126
|
+
zone_id: "1"
|
127
|
+
zoneable_type: Country
|
128
|
+
zone_members_027:
|
129
|
+
zoneable_id: "212"
|
130
|
+
created_at: 2009-06-04 17:22:41
|
131
|
+
updated_at: 2009-06-04 17:22:41
|
132
|
+
zone_id: "284254445"
|
133
|
+
zoneable_type: Country
|
134
|
+
zone_members_016:
|
135
|
+
zoneable_id: "117"
|
136
|
+
created_at: 2009-06-04 13:22:26
|
137
|
+
updated_at: 2009-06-04 13:22:26
|
138
|
+
zone_id: "1"
|
139
|
+
zoneable_type: Country
|
140
|
+
zone_members_005:
|
141
|
+
zoneable_id: "52"
|
142
|
+
created_at: 2009-06-04 13:22:26
|
143
|
+
updated_at: 2009-06-04 13:22:26
|
144
|
+
zone_id: "1"
|
145
|
+
zoneable_type: Country
|
146
|
+
zone_members_028:
|
147
|
+
zoneable_id: "214"
|
148
|
+
created_at: 2009-06-04 17:22:41
|
149
|
+
updated_at: 2009-06-04 17:22:41
|
150
|
+
zone_id: "690863446"
|
151
|
+
zoneable_type: Country
|
152
|
+
zone_members_017:
|
153
|
+
zoneable_id: "125"
|
154
|
+
created_at: 2009-06-04 13:22:26
|
155
|
+
updated_at: 2009-06-04 13:22:26
|
156
|
+
zone_id: "1"
|
157
|
+
zoneable_type: Country
|
158
|
+
zone_members_006:
|
159
|
+
zoneable_id: "53"
|
160
|
+
created_at: 2009-06-04 13:22:26
|
161
|
+
updated_at: 2009-06-04 13:22:26
|
162
|
+
zone_id: "1"
|
163
|
+
zoneable_type: Country
|
164
|
+
zone_members_029:
|
165
|
+
zoneable_id: "35"
|
166
|
+
created_at: 2009-06-04 17:22:41
|
167
|
+
updated_at: 2009-06-04 17:22:41
|
168
|
+
zone_id: "690863446"
|
169
|
+
zoneable_type: Country
|
170
|
+
zone_members_018:
|
171
|
+
zoneable_id: "142"
|
172
|
+
created_at: 2009-06-04 13:22:26
|
173
|
+
updated_at: 2009-06-04 13:22:26
|
174
|
+
zone_id: "1"
|
175
|
+
zoneable_type: Country
|
176
|
+
zone_members_007:
|
177
|
+
zoneable_id: "62"
|
178
|
+
created_at: 2009-06-04 13:22:26
|
179
|
+
updated_at: 2009-06-04 13:22:26
|
180
|
+
zone_id: "1"
|
181
|
+
zoneable_type: Country
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
zones_001:
|
3
|
+
name: EU_VAT
|
4
|
+
created_at: 2009-06-04 17:22:26
|
5
|
+
updated_at: 2009-06-04 17:22:26
|
6
|
+
id: "1"
|
7
|
+
description: Countries that make up the EU VAT zone.
|
8
|
+
zones_002:
|
9
|
+
name: North America
|
10
|
+
created_at: 2009-06-04 17:22:41
|
11
|
+
updated_at: 2009-06-04 17:22:41
|
12
|
+
id: "2"
|
13
|
+
description: USA + Canada
|