carmen 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
1
+ ### 0.2.9
2
+ * Preserve order of priority_countries in country_select (castiglione)
3
+ * Add Finnish localization (marjakapyaho)
4
+ * Update a few contru names to match ISO naming (belt)
5
+ * Fall back to default locale if selected locale is missing (twinge)
6
+ * Added Russian country translations (grlm)
7
+ * Added South Sudan as a country (edshadi)
8
+ * Renamed Libyan Arab Jamahiriya to Libya (mdimas)
9
+ * Fixed an issue where trying find a country for a blank string would
10
+ match everything (smathieu)
11
+ * Added Italian country names (Arkham)
12
+ * Add Polish, slovak and czech translations (Pajk)
13
+ * Various corrections to country names (wolframarnold)
14
+ * Add Chinese counties (liwh)
15
+ * Add Dutch province names (ariejan)
16
+ * Add Saint Barthelemy (BL) and Saint Martin (French Part) (MF) (nengxu)
17
+ * Add Japanese countries localization (bonsaiben)
18
+ * Prevent Carmen::state_name('NO','NO') from crashing (mhourahine)
19
+ * Change "Taiwan, Province of China" to "Taiwan" (camilleroux)
20
+ * Add spanish translation for countries (federomero)
21
+
22
+ ### 0.2.8
23
+ * Use a shorter name for US Armed Forces States (cgs)
24
+ * Added Gujarat to the list of states in India (swaroopch)
25
+ * Added American Samoa to the list of US States
26
+ * Added Dutch country translations (Arie)
27
+ * Added Kosovo to German Translation (Christopher Thorpe)
28
+ * Added the ability to list countries at the top of the list (jjthrash)
29
+ * Added country names in Hindi (sukeerthiadiga)
30
+
31
+ ### 0.2.7
32
+ * Fix a gemspec disaster.
33
+
34
+ ### 0.2.6 (pulled)
35
+ * Suppress a deprecation warning in Rails 3 (anupamc)
36
+ * Remove init.rb altogether and use requires under Rails
37
+ * Added Indian states and union territories (orthodoc)
38
+
39
+ ### 0.2.5
40
+ * Data corrections (mikepinde)
41
+
42
+ ### 0.2.4
43
+ * Fixed autoloading under Rails 3
44
+
45
+ ### 0.2.2
46
+ * Added state and country exclusion (kalafut)
47
+
48
+ ### 0.2.1
49
+ * Added regions for New Zealand (yehezkielbs)
50
+
51
+ ### 0.2.0
52
+ * Merge in Maximilian Schulz's locale fork, refactor internals to better support locales, and update documentation.
53
+ * Remove Carmen::STATES and Carmen::COUNTRIES constants in favor of module instance variables and proper accessors.
54
+ * Add a test_helper and remove dependency on RubyGems.
55
+
56
+ ### 0.1.3
57
+ * DEPRECATE Carmen::COUNTRIES in favor of Carmen.countries
@@ -2,7 +2,7 @@
2
2
 
3
3
  This library will work as a drop in replacement for the official Rails country_select and its various forks. The idea is to provide a single library for all geographic naming concerns, and unify them under a consistent API.
4
4
 
5
- States are supported for the following countries: Australia, Brazil, Canada, Cuba, Denmark, Germany, India, Italy, Mexico, New Zealand, Norway, Spain, Ukraine, and United States.
5
+ States are supported for the following countries: Australia, Brazil, Canada, China, Cuba, Denmark, Germany, India, Italy, Mexico, the Netherlands, New Zealand, Norway, Spain, Ukraine, and United States.
6
6
 
7
7
  {API documentation}[http://www.rubydoc.info/github/jim/carmen/master/frames] is available.
8
8
 
@@ -79,7 +79,7 @@ Methods that return country names also take an optional options hash as the last
79
79
  Carmen::country_name('US') => 'United States'
80
80
  Carmen::country_name('US', :locale => :de) => 'Vereinigte Staaten von Amerika'
81
81
 
82
- Currently included localizations are: English (:en), German (:de), Hindi (:hi), Netherlands (:nl)
82
+ Currently included localizations are: English (:en), Finnish(:fi), German (:de), Hindi (:hi), Netherlands (:nl) and Brazilian Portuguese (:pt)
83
83
 
84
84
  = Rails view helpers
85
85
 
@@ -98,34 +98,8 @@ Carmen ships with replacements for state_select and country_select. Usage is sim
98
98
  * Move regex matching into an optional module.
99
99
 
100
100
  == Changelog
101
- === 0.2.8
102
- * Use a shorter name for US Armed Forces States (cgs)
103
- * Added Gujarat to the list of states in India (swaroopch)
104
- * Added American Samoa to the list of US States
105
- * Added Dutch country translations (Arie)
106
- * Added Kosovo to German Translation (Christopher Thorpe)
107
- * Added the ability to list countries at the top of the list (jjthrash)
108
- * Added country names in Hindi (sukeerthiadiga)
109
- === 0.2.7
110
- * Fix a gemspec disaster.
111
- === 0.2.6 (pulled)
112
- * Suppress a deprecation warning in Rails 3 (anupamc)
113
- * Remove init.rb altogether and use requires under Rails
114
- * Added Indian states and union territories (orthodoc)
115
- === 0.2.5
116
- * Data corrections (mikepinde)
117
- === 0.2.4
118
- * Fixed autoloading under Rails 3
119
- === 0.2.2
120
- * Added state and country exclusion (kalafut)
121
- === 0.2.1
122
- * Added regions for New Zealand (yehezkielbs)
123
- === 0.2.0
124
- * Merge in Maximilian Schulz's locale fork, refactor internals to better support locales, and update documentation.
125
- * Remove Carmen::STATES and Carmen::COUNTRIES constants in favor of module instance variables and proper accessors.
126
- * Add a test_helper and remove dependency on RubyGems.
127
- === 0.1.3
128
- * DEPRECATE Carmen::COUNTRIES in favor of Carmen.countries
101
+
102
+ See CHANGELOG.md
129
103
 
130
104
 
131
105
  == Development notes
@@ -135,33 +109,4 @@ The plugin does not require rubygems anywhere in the test or libraries, so if yo
135
109
 
136
110
  == Credits
137
111
 
138
- These fine characters have contributed state lists, or patches:
139
-
140
- * Jose Angel Cortinas (jacortinas)
141
- * Domizio Demichelis (ddnexus)
142
- * Thiago Jackiw (railsfreaks)
143
- * Russ Johnson (russjohnson)
144
- * Henrik Hodne (dvyjones)
145
- * Yuval Kordov (uberllama)
146
- * Alberto Molpeceres (molpe)
147
- * Dimas Priyanto (dimaspriyanto)
148
- * Wojtek Ogrodowczyk (sharnik)
149
- * Tobias Schmidt (grobie)
150
- * Maximilian Schulz (namxam)
151
- * Mani Tadayon (bowsersenior)
152
- * Andriy Tyurnikov (andriytyurnikov)
153
- * Anupam Choudhury (anupamc)
154
- * Biswajit Dutta Baruah (orthodoc)
155
- * Chris Sepic (cgs)
156
- * Swaroop C H (swaroopch)
157
- * Gerhard Lazu (gerhard)
158
- * Arie (Arie)
159
- * Christopher Thorpe (ChristopherThorpe)
160
- * Jimmy Thrasher (jjthrash)
161
- * Sukeerthi Adiga (sukeerthiadiga)
162
- * lonestarsoftware
163
- * mikepinde
164
- * kalafut
165
- * yehezkielbs
166
-
167
- If I missed your name in this list, please let me know and I will add it. I tried to find everyone that has sent in patches or found bugs, but I may have missed a few folks.
112
+ This project is only possible because of the work of {many fine developers from around the world}[https://github.com/jim/carmen/contributors].
data/Rakefile CHANGED
@@ -11,7 +11,6 @@ begin
11
11
  gem.email = "jim@autonomousmachine.com"
12
12
  gem.homepage = "http://github.com/jim/carmen"
13
13
  gem.authors = ["Jim Benton"]
14
-
15
14
  end
16
15
  Jeweler::RubygemsDotOrgTasks.new
17
16
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -4,28 +4,40 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{carmen}
8
- s.version = "0.2.8"
7
+ s.name = "carmen"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jim Benton"]
12
- s.date = %q{2011-06-01}
13
- s.description = %q{A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins}
14
- s.email = %q{jim@autonomousmachine.com}
12
+ s.date = "2011-12-20"
13
+ s.description = "A collection of geographic country and state names for Ruby. Also includes replacements for Rails' country_select and state_select plugins"
14
+ s.email = "jim@autonomousmachine.com"
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
+ "CHANGELOG.md",
19
20
  "Gemfile",
20
21
  "MIT-LICENSE",
21
22
  "README.rdoc",
22
23
  "Rakefile",
23
24
  "VERSION",
24
25
  "carmen.gemspec",
26
+ "data/countries/cn.yml",
27
+ "data/countries/cs.yml",
25
28
  "data/countries/de.yml",
26
29
  "data/countries/en.yml",
30
+ "data/countries/es.yml",
31
+ "data/countries/fi.yml",
27
32
  "data/countries/hi.yml",
33
+ "data/countries/it.yml",
34
+ "data/countries/jp.yml",
28
35
  "data/countries/nl.yml",
36
+ "data/countries/pl.yml",
37
+ "data/countries/pt.yml",
38
+ "data/countries/ru.yml",
39
+ "data/countries/sk.yml",
40
+ "data/countries/sv.yml",
29
41
  "data/states/au.yml",
30
42
  "data/states/br.yml",
31
43
  "data/states/ca.yml",
@@ -37,6 +49,7 @@ Gem::Specification.new do |s|
37
49
  "data/states/in.yml",
38
50
  "data/states/it.yml",
39
51
  "data/states/mx.yml",
52
+ "data/states/nl.yml",
40
53
  "data/states/no.yml",
41
54
  "data/states/nz.yml",
42
55
  "data/states/ua.yml",
@@ -48,10 +61,10 @@ Gem::Specification.new do |s|
48
61
  "test/carmen_view_helper_test.rb",
49
62
  "test/test_helper.rb"
50
63
  ]
51
- s.homepage = %q{http://github.com/jim/carmen}
64
+ s.homepage = "http://github.com/jim/carmen"
52
65
  s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.6.2}
54
- s.summary = %q{A collection of geographic country and state names for Ruby}
66
+ s.rubygems_version = "1.8.10"
67
+ s.summary = "A collection of geographic country and state names for Ruby"
55
68
 
56
69
  if s.respond_to? :specification_version then
57
70
  s.specification_version = 3
@@ -0,0 +1,481 @@
1
+ ---
2
+ - - 阿尔巴尼亚
3
+ - AL
4
+ - - 阿尔及利亚
5
+ - DZ
6
+ - - 阿富汗
7
+ - AF
8
+ - - 阿根廷
9
+ - AR
10
+ - - 阿拉伯利比亚共和国
11
+ - LY
12
+ - - 阿拉伯联合酋长国
13
+ - AE
14
+ - - 阿拉伯叙利亚共和国
15
+ - SY
16
+ - - 阿鲁巴岛
17
+ - AW
18
+ - - 阿曼
19
+ - OM
20
+ - - 阿塞拜疆
21
+ - AZ
22
+ - - 埃及
23
+ - EG
24
+ - - 埃塞俄比亚
25
+ - ET
26
+ - - 爱尔兰
27
+ - IE
28
+ - - 爱沙尼亚
29
+ - EE
30
+ - - 安道尔共和国
31
+ - AD
32
+ - - 安哥拉
33
+ - AO
34
+ - - 安圭拉岛
35
+ - AI
36
+ - - 安提瓜和巴布达
37
+ - AG
38
+ - - 奥地利
39
+ - AT
40
+ - - 奥兰群岛
41
+ - AX
42
+ - - 澳大利亚
43
+ - AU
44
+ - - 澳门
45
+ - MO
46
+ - - 巴巴多斯岛
47
+ - BB
48
+ - - 巴布亚新几内亚
49
+ - PG
50
+ - - 巴哈马群岛
51
+ - BS
52
+ - - 巴基斯坦
53
+ - PK
54
+ - - 巴拉圭
55
+ - PY
56
+ - - 巴林
57
+ - BH
58
+ - - 巴拿马
59
+ - PA
60
+ - - 巴西
61
+ - BR
62
+ - - 白俄罗斯
63
+ - BY
64
+ - - 百慕大群岛
65
+ - BM
66
+ - - 保加利亚
67
+ - BG
68
+ - - 北马利亚纳群岛
69
+ - MP
70
+ - - 贝宁
71
+ - BJ
72
+ - - 比利时
73
+ - BE
74
+ - - 冰岛
75
+ - IS
76
+ - - 玻利维亚
77
+ - BO
78
+ - - 波多黎各
79
+ - PR
80
+ - - 波黑
81
+ - BA
82
+ - - 波兰
83
+ - PL
84
+ - - 博茨瓦纳
85
+ - BW
86
+ - - 伯利兹城
87
+ - BZ
88
+ - - 不丹
89
+ - BT
90
+ - - 布基纳法索
91
+ - BF
92
+ - - 布隆迪
93
+ - BI
94
+ - - 布维岛
95
+ - BV
96
+ - - 赤道几内亚
97
+ - GQ
98
+ - - 丹麦
99
+ - DK
100
+ - - 德国
101
+ - DE
102
+ - - 东帝汶
103
+ - TL
104
+ - - 多哥
105
+ - TG
106
+ - - 多米尼加
107
+ - DM
108
+ - - 多米尼加共和国
109
+ - DO
110
+ - - 俄罗斯联邦
111
+ - RU
112
+ - - 厄瓜多尔
113
+ - EC
114
+ - - 厄立特里亚
115
+ - ER
116
+ - - 法国
117
+ - FR
118
+ - - 法国南部领土
119
+ - TF
120
+ - - 法罗群岛
121
+ - FO
122
+ - - 法属波利尼西亚
123
+ - PF
124
+ - - 法属圭亚那
125
+ - GF
126
+ - - 菲律宾
127
+ - PH
128
+ - - 芬兰
129
+ - FI
130
+ - - 佛得角
131
+ - CV
132
+ - - 福克兰群岛
133
+ - FK
134
+ - - 冈比亚
135
+ - GM
136
+ - - 刚果
137
+ - CG
138
+ - - 哥伦比亚
139
+ - CO
140
+ - - 哥斯达黎加
141
+ - CR
142
+ - - 格恩西
143
+ - GG
144
+ - - 格林纳达
145
+ - GD
146
+ - - 格陵兰
147
+ - GL
148
+ - - 格鲁吉亚
149
+ - GE
150
+ - - 古巴
151
+ - CU
152
+ - - 瓜德罗普
153
+ - GP
154
+ - - 关岛
155
+ - GU
156
+ - - 圭亚那
157
+ - GY
158
+ - - 哈萨克斯坦
159
+ - KZ
160
+ - - 海底
161
+ - HT
162
+ - - 韩国
163
+ - KP
164
+ - - 荷兰
165
+ - NL
166
+ - - 荷属安德烈斯群岛
167
+ - AN
168
+ - - 赫德岛和麦克唐纳群岛
169
+ - HM
170
+ - - 洪都拉斯
171
+ - HN
172
+ - - 基里巴斯
173
+ - KI
174
+ - - 吉布提
175
+ - DJ
176
+ - - 吉尔吉斯斯坦
177
+ - KG
178
+ - - 几内亚
179
+ - GN
180
+ - - 几内亚比绍
181
+ - GW
182
+ - - 加拿大
183
+ - CA
184
+ - - 加纳
185
+ - GH
186
+ - - 加蓬
187
+ - GA
188
+ - - 柬埔寨
189
+ - KH
190
+ - - 捷克共和国
191
+ - CZ
192
+ - - 津巴布韦
193
+ - ZW
194
+ - - 喀麦隆
195
+ - CM
196
+ - - 卡塔尔
197
+ - QA
198
+ - - 开曼群岛
199
+ - KY
200
+ - - 科科斯(基林)群岛
201
+ - CC
202
+ - - 科摩罗
203
+ - KM
204
+ - - 科索沃
205
+ - KV
206
+ - - 科特迪瓦
207
+ - CI
208
+ - - 科威特
209
+ - KW
210
+ - - 克罗地亚
211
+ - HR
212
+ - - 肯尼亚
213
+ - KE
214
+ - - 库克群岛
215
+ - CK
216
+ - - 拉脱维亚
217
+ - LV
218
+ - - 莱索托
219
+ - LS
220
+ - - 老挝人民民主共和国
221
+ - LA
222
+ - - 黎巴嫩
223
+ - LB
224
+ - - 利比里亚
225
+ - LR
226
+ - - 立陶宛
227
+ - LT
228
+ - - 列支敦士登
229
+ - LI
230
+ - - 留尼旺
231
+ - RE
232
+ - - 卢森堡
233
+ - LU
234
+ - - 卢旺达
235
+ - RW
236
+ - - 罗马教廷
237
+ - VA
238
+ - - 罗马尼亚
239
+ - RO
240
+ - - 马达加斯加
241
+ - MG
242
+ - - 马恩岛
243
+ - IM
244
+ - - 马耳他
245
+ - MT
246
+ - - 马尔代夫
247
+ - MV
248
+ - - 马拉维
249
+ - MW
250
+ - - 马来西亚
251
+ - MY
252
+ - - 马里
253
+ - ML
254
+ - - 马其顿
255
+ - MK
256
+ - - 马绍尔群岛
257
+ - MH
258
+ - - 马提尼克
259
+ - MQ
260
+ - - 马约特
261
+ - YT
262
+ - - 毛里求斯
263
+ - MU
264
+ - - 毛里塔尼亚
265
+ - MR
266
+ - - 美国
267
+ - US
268
+ - - 美国本土外小岛屿
269
+ - UM
270
+ - - 美属萨摩亚
271
+ - AS
272
+ - - 美属维尔京群岛
273
+ - VI
274
+ - - 蒙特内哥罗
275
+ - ME
276
+ - - 蒙特塞拉特
277
+ - MS
278
+ - - 孟加拉国
279
+ - BD
280
+ - - 秘鲁
281
+ - PE
282
+ - - 密克罗尼西亚联邦
283
+ - FM
284
+ - - 缅甸
285
+ - MM
286
+ - - 摩尔多瓦共和国
287
+ - MD
288
+ - - 摩洛哥
289
+ - MA
290
+ - - 摩纳哥
291
+ - MC
292
+ - - 莫桑比克
293
+ - MZ
294
+ - - 墨西哥
295
+ - MX
296
+ - - 纳米比亚
297
+ - NA
298
+ - - 南非
299
+ - ZA
300
+ - - 南极洲
301
+ - AQ
302
+ - - 南乔治亚岛和南桑威奇群岛
303
+ - GS
304
+ - - 尼泊尔
305
+ - NP
306
+ - - 尼加拉瓜
307
+ - NI
308
+ - - 尼日尔
309
+ - NE
310
+ - - 尼日利亚
311
+ - NG
312
+ - - 纽埃
313
+ - NU
314
+ - - 挪威
315
+ - 'NO'
316
+ - - 诺福克到
317
+ - NF
318
+ - - 帕劳
319
+ - PW
320
+ - - 皮特凯恩
321
+ - PN
322
+ - - 葡萄牙
323
+ - PT
324
+ - - 日本
325
+ - JP
326
+ - - 瑞典
327
+ - SE
328
+ - - 瑞士
329
+ - CH
330
+ - - 萨尔瓦多
331
+ - SV
332
+ - - 萨摩亚
333
+ - WS
334
+ - - 塞尔维亚
335
+ - RS
336
+ - - 塞拉利昂
337
+ - SL
338
+ - - 塞内加尔
339
+ - SN
340
+ - - 塞浦路斯
341
+ - CY
342
+ - - 塞舌尔
343
+ - SC
344
+ - - 沙特阿拉伯
345
+ - SA
346
+ - - 圣巴泰勒米
347
+ - BL
348
+ - - 圣诞岛
349
+ - CX
350
+ - - 圣多美和普林西比
351
+ - ST
352
+ - - 圣赫勒拿
353
+ - SH
354
+ - - 圣基茨和尼维斯
355
+ - KN
356
+ - - 圣卢西亚
357
+ - LC
358
+ - - 圣马丁
359
+ - MF
360
+ - - 圣马力诺
361
+ - SM
362
+ - - 圣皮埃尔和密克隆
363
+ - PM
364
+ - - 圣文森特和格林纳丁斯
365
+ - VC
366
+ - - 斯里兰卡
367
+ - LK
368
+ - - 斯洛文尼亚
369
+ - SI
370
+ - - 斯诺伐克
371
+ - SK
372
+ - - 斯瓦尔巴岛和扬马延岛
373
+ - SJ
374
+ - - 斯威士兰
375
+ - SZ
376
+ - - 苏丹
377
+ - SD
378
+ - - 苏里南
379
+ - SR
380
+ - - 索马里
381
+ - SO
382
+ - - 所罗门群岛
383
+ - SB
384
+ - - 塔吉克斯坦
385
+ - TJ
386
+ - - 台湾
387
+ - TW
388
+ - - 泰国
389
+ - TH
390
+ - - 坦桑尼亚共和国
391
+ - TZ
392
+ - - 汤加
393
+ - TO
394
+ - - 特克斯和凯克斯群岛
395
+ - TC
396
+ - - 特里尼达和多巴哥
397
+ - TT
398
+ - - 突尼斯
399
+ - TN
400
+ - - 图瓦卢
401
+ - TV
402
+ - - 土耳其
403
+ - TR
404
+ - - 土库曼斯坦
405
+ - TM
406
+ - - 托克劳
407
+ - TK
408
+ - - 瓦努阿图
409
+ - VU
410
+ - - 危地马拉
411
+ - GT
412
+ - - 委内瑞拉
413
+ - VE
414
+ - - 文莱
415
+ - BN
416
+ - - 乌干达
417
+ - UG
418
+ - - 乌克兰
419
+ - UA
420
+ - - 乌拉圭
421
+ - UY
422
+ - - 乌兹别克斯坦
423
+ - UZ
424
+ - - 西班牙
425
+ - ES
426
+ - - 西撒哈拉
427
+ - EH
428
+ - - 希腊
429
+ - GR
430
+ - - 香港
431
+ - HK
432
+ - - 新加坡
433
+ - SG
434
+ - - 新喀里多尼亚
435
+ - NC
436
+ - - 新西兰
437
+ - NZ
438
+ - - 匈牙利
439
+ - HU
440
+ - - 牙买加
441
+ - JM
442
+ - - 亚美尼亚
443
+ - AM
444
+ - - 也门
445
+ - YE
446
+ - - 伊拉克
447
+ - IQ
448
+ - - 以色列
449
+ - IL
450
+ - - 意大利
451
+ - IT
452
+ - - 印度
453
+ - IN
454
+ - - 印度尼西亚
455
+ - ID
456
+ - - 英国
457
+ - GB
458
+ - - 英属维京群岛
459
+ - VG
460
+ - - 约旦
461
+ - JO
462
+ - - 越南
463
+ - VN
464
+ - - 赞比亚
465
+ - ZM
466
+ - - 泽西
467
+ - JE
468
+ - - 乍得
469
+ - TD
470
+ - - 直布罗陀
471
+ - GI
472
+ - - 智利
473
+ - CL
474
+ - - 中非共和国
475
+ - CF
476
+ - - 中国
477
+ - CN
478
+ - - 瑙鲁
479
+ - NR
480
+ - - 斐济
481
+ - FJ