gaku 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/admin/app/assets/javascripts/gaku/admin/base.js.coffee +12 -1
  4. data/admin/app/controllers/gaku/admin/campuses/addresses_controller.rb +2 -0
  5. data/admin/app/controllers/gaku/admin/presets_controller.rb +18 -1
  6. data/admin/app/controllers/gaku/admin/states_list_controller.rb +20 -0
  7. data/admin/app/helpers/gaku/shared_helper.rb +14 -4
  8. data/admin/app/views/gaku/admin/campuses/addresses/_addresses.html.slim +1 -1
  9. data/admin/app/views/gaku/admin/campuses/addresses/_form_fields.html.slim +10 -11
  10. data/admin/app/views/gaku/admin/home/index.html.slim +4 -3
  11. data/admin/app/views/gaku/admin/presets/_address.html.slim +4 -2
  12. data/admin/app/views/gaku/admin/presets/_no_states_select.html.slim +1 -0
  13. data/admin/app/views/gaku/admin/presets/_states_select.html.slim +3 -0
  14. data/admin/app/views/gaku/admin/presets/edit.js.erb +7 -1
  15. data/admin/app/views/gaku/admin/presets/states_list.js.erb +5 -0
  16. data/admin/app/views/gaku/admin/states_list/_no_states_select.html.slim +4 -0
  17. data/admin/app/views/gaku/admin/states_list/_states_select.html.slim +3 -0
  18. data/admin/app/views/gaku/admin/states_list/index.js.erb +5 -0
  19. data/admin/config/routes.rb +5 -3
  20. data/admin/gaku_admin.gemspec +2 -2
  21. data/admin/lib/tasks/admin_user.rake +3 -2
  22. data/admin/spec/features/presets/address_preset_spec.rb +6 -6
  23. data/admin/spec/features/schools/campuses/addresses_spec.rb +3 -3
  24. data/common_gaku_dependencies.rb +1 -1
  25. data/core/app/controllers/gaku/core_controller.rb +3 -0
  26. data/core/app/models/gaku/country.rb +11 -1
  27. data/core/app/models/gaku/preset.rb +17 -0
  28. data/core/app/models/gaku/state.rb +14 -1
  29. data/core/db/default/gaku/countries.rb +14 -0
  30. data/core/db/default/gaku/presets.rb +1 -1
  31. data/core/db/default/gaku/states.rb +9 -0
  32. data/core/db/migrate/20150213095508_improve_countries_and_states.rb +5 -0
  33. data/core/gaku_core.gemspec +1 -0
  34. data/core/lib/gaku/core.rb +1 -0
  35. data/frontend/app/assets/javascripts/gaku/frontend/base.js.coffee +12 -1
  36. data/frontend/app/controllers/gaku/addresses_controller.rb +3 -2
  37. data/{admin/app/controllers/gaku/states_controller.rb → frontend/app/controllers/gaku/states_list_controller.rb} +6 -4
  38. data/frontend/app/views/gaku/addresses/_form_fields.html.slim +2 -3
  39. data/frontend/app/views/gaku/addresses/edit.js.erb +1 -1
  40. data/frontend/app/views/gaku/home/index.html.slim +1 -3
  41. data/frontend/app/views/gaku/states_list/_no_states_select.html.slim +4 -0
  42. data/frontend/app/views/gaku/states_list/_states_select.html.slim +3 -0
  43. data/frontend/app/views/gaku/states_list/index.js.erb +5 -0
  44. data/frontend/config/routes.rb +2 -0
  45. data/frontend/gaku_frontend.gemspec +2 -2
  46. data/sample/lib/shared_sample_data.rb +1 -1
  47. metadata +27 -23
  48. data/admin/app/views/gaku/states/_no_states_select.html.slim +0 -1
  49. data/admin/app/views/gaku/states/_states_select.html.slim +0 -1
  50. data/admin/app/views/gaku/states/index.js.erb +0 -5
  51. data/core/db/default/gaku/countries.yml +0 -1357
  52. data/core/db/default/gaku/states.yml +0 -494
  53. data/frontend/app/controllers/gaku/states_controller.rb +0 -17
  54. data/frontend/app/views/gaku/states/_no_states_select.html.slim +0 -1
  55. data/frontend/app/views/gaku/states/_states_select.html.slim +0 -1
  56. data/frontend/app/views/gaku/states/index.js.erb +0 -5
@@ -1,494 +0,0 @@
1
- ---
2
- ###########
3
- # USA
4
- ###########
5
- states_043:
6
- name: Michigan
7
- country_iso: US
8
- abbr: MI
9
- states_032:
10
- name: South Dakota
11
- country_iso: US
12
- abbr: SD
13
- states_021:
14
- name: Washington
15
- country_iso: US
16
- abbr: WA
17
- states_010:
18
- name: Wisconsin
19
- country_iso: US
20
- abbr: WI
21
- states_044:
22
- name: Arizona
23
- country_iso: US
24
- abbr: AZ
25
- states_033:
26
- name: Illinois
27
- country_iso: US
28
- abbr: IL
29
- states_022:
30
- name: New Hampshire
31
- country_iso: US
32
- abbr: NH
33
- states_011:
34
- name: North Carolina
35
- country_iso: US
36
- abbr: NC
37
- states_045:
38
- name: Kansas
39
- country_iso: US
40
- abbr: KS
41
- states_034:
42
- name: Missouri
43
- country_iso: US
44
- abbr: MO
45
- states_023:
46
- name: Arkansas
47
- country_iso: US
48
- abbr: AR
49
- states_012:
50
- name: Nevada
51
- country_iso: US
52
- abbr: NV
53
- states_001:
54
- name: District of Columbia
55
- country_iso: US
56
- abbr: DC
57
- states_046:
58
- name: Idaho
59
- country_iso: US
60
- abbr: ID
61
- states_035:
62
- name: Nebraska
63
- country_iso: US
64
- abbr: NE
65
- states_024:
66
- name: Pennsylvania
67
- country_iso: US
68
- abbr: PA
69
- states_013:
70
- name: Hawaii
71
- country_iso: US
72
- abbr: HI
73
- states_002:
74
- name: Utah
75
- country_iso: US
76
- abbr: UT
77
- states_047:
78
- name: Vermont
79
- country_iso: US
80
- abbr: VT
81
- states_036:
82
- name: Delaware
83
- country_iso: US
84
- abbr: DE
85
- states_025:
86
- name: Rhode Island
87
- country_iso: US
88
- abbr: RI
89
- states_014:
90
- name: Oklahoma
91
- country_iso: US
92
- abbr: OK
93
- states_003:
94
- name: Louisiana
95
- country_iso: US
96
- abbr: LA
97
- states_048:
98
- name: Montana
99
- country_iso: US
100
- abbr: MT
101
- states_037:
102
- name: Tennessee
103
- country_iso: US
104
- abbr: TN
105
- states_026:
106
- name: Maryland
107
- country_iso: US
108
- abbr: MD
109
- states_015:
110
- name: Florida
111
- country_iso: US
112
- abbr: FL
113
- states_004:
114
- name: Virginia
115
- country_iso: US
116
- abbr: VA
117
- states_049:
118
- name: Minnesota
119
- country_iso: US
120
- abbr: MN
121
- states_038:
122
- name: New Jersey
123
- country_iso: US
124
- abbr: NJ
125
- states_027:
126
- name: Ohio
127
- country_iso: US
128
- abbr: OH
129
- states_016:
130
- name: California
131
- country_iso: US
132
- abbr: CA
133
- states_005:
134
- name: North Dakota
135
- country_iso: US
136
- abbr: ND
137
- states_050:
138
- name: Maine
139
- country_iso: US
140
- abbr: ME
141
- states_039:
142
- name: Indiana
143
- country_iso: US
144
- abbr: IN
145
- states_028:
146
- name: Texas
147
- country_iso: US
148
- abbr: TX
149
- states_017:
150
- name: Oregon
151
- country_iso: US
152
- abbr: OR
153
- states_006:
154
- name: Wyoming
155
- country_iso: US
156
- abbr: WY
157
- states_051:
158
- name: Alabama
159
- country_iso: US
160
- abbr: AL
161
- states_040:
162
- name: Iowa
163
- country_iso: US
164
- abbr: IA
165
- states_029:
166
- name: Mississippi
167
- country_iso: US
168
- abbr: MS
169
- states_018:
170
- name: Kentucky
171
- country_iso: US
172
- abbr: KY
173
- states_007:
174
- name: New Mexico
175
- country_iso: US
176
- abbr: NM
177
- states_041:
178
- name: Georgia
179
- country_iso: US
180
- abbr: GA
181
- states_030:
182
- name: Colorado
183
- country_iso: US
184
- abbr: CO
185
- states_019:
186
- name: Massachusetts
187
- country_iso: US
188
- abbr: MA
189
- states_008:
190
- name: Connecticut
191
- country_iso: US
192
- abbr: CT
193
- states_042:
194
- name: New York
195
- country_iso: US
196
- abbr: NY
197
- states_031:
198
- name: South Carolina
199
- country_iso: US
200
- abbr: SC
201
- states_020:
202
- name: Alaska
203
- country_iso: US
204
- abbr: AK
205
- states_009:
206
- name: West Virginia
207
- country_iso: US
208
- abbr: WV
209
- ###########
210
- # Japan
211
- ###########
212
- states_39201:
213
- name: 北海道
214
- code: 1
215
- name_ascii: Hokkaido
216
- country_iso: JP
217
- abbr: HK
218
- states_39202:
219
- name: 青森県
220
- code: 2
221
- name_ascii: Aomori
222
- country_iso: JP
223
- abbr: AM
224
- states_39203:
225
- name: 岩手県
226
- code: 3
227
- name_ascii: Iwate
228
- country_iso: JP
229
- abbr: IT
230
- states_39204:
231
- name: 宮城県
232
- code: 4
233
- name_ascii: Miyagi
234
- country_iso: JP
235
- abbr: MG
236
- states_39205:
237
- name: 秋田県
238
- code: 5
239
- name_ascii: Akita
240
- country_iso: JP
241
- abbr: AK
242
- states_39206:
243
- name: 山形県
244
- code: 6
245
- name_ascii: Yamagata
246
- country_iso: JP
247
- abbr: YG
248
- states_39207:
249
- name: 福島県
250
- code: 7
251
- name_ascii: Fukushima
252
- country_iso: JP
253
- abbr: FS
254
- states_39208:
255
- name: 茨城県
256
- code: 8
257
- name_ascii: Ibaraki
258
- country_iso: JP
259
- abbr: IG
260
- states_39209:
261
- name: 栃木県
262
- code: 9
263
- name_ascii: Tochigi
264
- country_iso: JP
265
- abbr: TG
266
- states_39210:
267
- name: 群馬県
268
- code: 10
269
- name_ascii: Gunma
270
- country_iso: JP
271
- abbr: GM
272
- states_39211:
273
- name: 埼玉県
274
- code: 11
275
- name_ascii: Saitama
276
- country_iso: JP
277
- abbr: ST
278
- states_39212:
279
- name: 千葉県
280
- code: 12
281
- name_ascii: Chiba
282
- country_iso: JP
283
- abbr: CB
284
- states_39213:
285
- name: 東京都
286
- code: 13
287
- name_ascii: Tokyo
288
- country_iso: JP
289
- abbr: TK
290
- states_39214:
291
- name: 神奈川県
292
- code: 14
293
- name_ascii: Kanagawa
294
- country_iso: JP
295
- abbr: KG
296
- states_39215:
297
- name: 新潟県
298
- code: 15
299
- name_ascii: Niigata
300
- country_iso: JP
301
- abbr: NG
302
- states_39216:
303
- name: 富山県
304
- code: 16
305
- name_ascii: Toyama
306
- country_iso: JP
307
- abbr: TY
308
- states_39217:
309
- name: 石川県
310
- code: 17
311
- name_ascii: Ishikawa
312
- country_iso: JP
313
- abbr: IK
314
- states_39218:
315
- name: 福井県
316
- code: 18
317
- name_ascii: Fukui
318
- country_iso: JP
319
- abbr: FI
320
- states_39219:
321
- name: 山梨県
322
- code: 19
323
- name_ascii: Yamanashi
324
- country_iso: JP
325
- abbr: YN
326
- states_39220:
327
- name: 長野県
328
- code: 20
329
- name_ascii: Nagano
330
- country_iso: JP
331
- abbr: NN
332
- states_39221:
333
- name: 岐阜県
334
- code: 21
335
- name_ascii: Gifu
336
- country_iso: JP
337
- abbr: GF
338
- states_39222:
339
- name: 静岡県
340
- code: 22
341
- name_ascii: Shizuoka
342
- country_iso: JP
343
- abbr: SO
344
- states_39223:
345
- name: 愛知県
346
- code: 23
347
- name_ascii: Aichi
348
- country_iso: JP
349
- abbr: AC
350
- states_39224:
351
- name: 三重県
352
- code: 24
353
- name_ascii: Mie
354
- country_iso: JP
355
- abbr: ME
356
- states_39225:
357
- name: 滋賀県
358
- code: 25
359
- name_ascii: Shiga
360
- country_iso: JP
361
- abbr: SG
362
- states_39226:
363
- name: 京都府
364
- code: 26
365
- name_ascii: Kyoto
366
- country_iso: JP
367
- abbr: KT
368
- states_39227:
369
- name: 大阪府
370
- code: 27
371
- name_ascii: Osaka
372
- country_iso: JP
373
- abbr: OS
374
- states_39228:
375
- name: 兵庫県
376
- code: 28
377
- name_ascii: Hyogo
378
- country_iso: JP
379
- abbr: HG
380
- states_39229:
381
- name: 奈良県
382
- code: 29
383
- name_ascii: Nara
384
- country_iso: JP
385
- abbr: NR
386
- states_39230:
387
- name: 和歌山県
388
- code: 30
389
- name_ascii: Wakayama
390
- country_iso: JP
391
- abbr: WY
392
- states_39231:
393
- name: 鳥取県
394
- code: 31
395
- name_ascii: Tottori
396
- country_iso: JP
397
- abbr: TT
398
- states_39232:
399
- name: 島根県
400
- code: 32
401
- name_ascii: Shimane
402
- country_iso: JP
403
- abbr: SN
404
- states_39233:
405
- name: 岡山県
406
- code: 33
407
- name_ascii: Okayama
408
- country_iso: JP
409
- abbr: OY
410
- states_39234:
411
- name: 広島県
412
- code: 34
413
- name_ascii: Hiroshima
414
- country_iso: JP
415
- abbr: HS
416
- states_39235:
417
- name: 山口県
418
- code: 35
419
- name_ascii: Yamaguchi
420
- country_iso: JP
421
- abbr: YG
422
- states_39236:
423
- name: 徳島県
424
- code: 36
425
- name_ascii: Tokushima
426
- country_iso: JP
427
- abbr: TS
428
- states_39237:
429
- name: 香川県
430
- code: 37
431
- name_ascii: Kagawa
432
- country_iso: JP
433
- abbr: KG
434
- states_39238:
435
- name: 愛媛県
436
- code: 38
437
- name_ascii: Ehime
438
- country_iso: JP
439
- abbr: EH
440
- states_39239:
441
- name: 高知県
442
- code: 39
443
- name_ascii: Kochi
444
- country_iso: JP
445
- abbr: KC
446
- states_39240:
447
- name: 福岡県
448
- code: 40
449
- name_ascii: Fukuoka
450
- country_iso: JP
451
- abbr: FO
452
- states_39241:
453
- name: 佐賀県
454
- code: 41
455
- name_ascii: Saga
456
- country_iso: JP
457
- abbr: SG
458
- states_39242:
459
- name: 長崎県
460
- code: 42
461
- name_ascii: Nagasaki
462
- country_iso: JP
463
- abbr: NS
464
- states_39243:
465
- name: 熊本県
466
- code: 43
467
- name_ascii: Kumamoto
468
- country_iso: JP
469
- abbr: KM
470
- states_39244:
471
- name: 大分県
472
- code: 44
473
- name_ascii: Oita
474
- country_iso: JP
475
- abbr: OI
476
- states_39245:
477
- name: 宮崎県
478
- code: 45
479
- name_ascii: Miyazaki
480
- country_iso: JP
481
- abbr: MZ
482
- states_39246:
483
- name: 鹿児島県
484
- code: 46
485
- name_ascii: Kagoshima
486
- country_iso: JP
487
- abbr: KS
488
- states_39247:
489
- name: 沖縄県
490
- code: 47
491
- name_ascii: Okinawa
492
- country_iso: JP
493
- abbr: ON
494
-