i18n_data 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/Gemfile +9 -0
  2. data/Gemfile.lock +30 -0
  3. data/Rakefile +9 -9
  4. data/{README.markdown → Readme.md} +11 -8
  5. data/VERSION +1 -1
  6. data/cache/file_data_provider/countries-AF.txt +10 -7
  7. data/cache/file_data_provider/countries-AM.txt +8 -5
  8. data/cache/file_data_provider/countries-AR.txt +11 -8
  9. data/cache/file_data_provider/countries-AS.txt +249 -0
  10. data/cache/file_data_provider/countries-AZ.txt +8 -5
  11. data/cache/file_data_provider/countries-BE.txt +79 -76
  12. data/cache/file_data_provider/countries-BG.txt +11 -8
  13. data/cache/file_data_provider/countries-BN.txt +9 -6
  14. data/cache/file_data_provider/countries-BR.txt +8 -5
  15. data/cache/file_data_provider/countries-BS.txt +12 -9
  16. data/cache/file_data_provider/countries-CA.txt +20 -17
  17. data/cache/file_data_provider/countries-CS.txt +32 -29
  18. data/cache/file_data_provider/countries-CY.txt +8 -5
  19. data/cache/file_data_provider/countries-DA.txt +13 -10
  20. data/cache/file_data_provider/countries-DE.txt +34 -31
  21. data/cache/file_data_provider/countries-DZ.txt +11 -8
  22. data/cache/file_data_provider/countries-EL.txt +11 -8
  23. data/cache/file_data_provider/countries-EN.txt +11 -8
  24. data/cache/file_data_provider/countries-EO.txt +8 -5
  25. data/cache/file_data_provider/countries-ES.txt +11 -8
  26. data/cache/file_data_provider/countries-ET.txt +10 -7
  27. data/cache/file_data_provider/countries-EU.txt +64 -61
  28. data/cache/file_data_provider/countries-FA.txt +64 -61
  29. data/cache/file_data_provider/countries-FI.txt +8 -5
  30. data/cache/file_data_provider/countries-FO.txt +8 -5
  31. data/cache/file_data_provider/countries-FR.txt +8 -5
  32. data/cache/file_data_provider/countries-GA.txt +10 -7
  33. data/cache/file_data_provider/countries-GL.txt +11 -8
  34. data/cache/file_data_provider/countries-GU.txt +11 -8
  35. data/cache/file_data_provider/countries-HE.txt +10 -7
  36. data/cache/file_data_provider/countries-HI.txt +8 -5
  37. data/cache/file_data_provider/countries-HR.txt +10 -7
  38. data/cache/file_data_provider/countries-HU.txt +11 -8
  39. data/cache/file_data_provider/countries-HY.txt +8 -5
  40. data/cache/file_data_provider/countries-ID.txt +7 -4
  41. data/cache/file_data_provider/countries-IS.txt +183 -180
  42. data/cache/file_data_provider/countries-IT.txt +9 -6
  43. data/cache/file_data_provider/countries-JA.txt +55 -52
  44. data/cache/file_data_provider/countries-KA.txt +8 -5
  45. data/cache/file_data_provider/countries-KK.txt +9 -6
  46. data/cache/file_data_provider/countries-KM.txt +8 -5
  47. data/cache/file_data_provider/countries-KN.txt +8 -5
  48. data/cache/file_data_provider/countries-KO.txt +13 -10
  49. data/cache/file_data_provider/countries-KU.txt +8 -5
  50. data/cache/file_data_provider/countries-LT.txt +7 -4
  51. data/cache/file_data_provider/countries-LV.txt +56 -53
  52. data/cache/file_data_provider/countries-MI.txt +44 -41
  53. data/cache/file_data_provider/countries-MK.txt +10 -7
  54. data/cache/file_data_provider/countries-ML.txt +8 -5
  55. data/cache/file_data_provider/countries-MN.txt +8 -5
  56. data/cache/file_data_provider/countries-MR.txt +8 -5
  57. data/cache/file_data_provider/countries-MS.txt +8 -5
  58. data/cache/file_data_provider/countries-MT.txt +8 -5
  59. data/cache/file_data_provider/countries-NB.txt +9 -6
  60. data/cache/file_data_provider/countries-NE.txt +13 -10
  61. data/cache/file_data_provider/countries-NL.txt +7 -4
  62. data/cache/file_data_provider/countries-NN.txt +8 -5
  63. data/cache/file_data_provider/countries-OC.txt +8 -5
  64. data/cache/file_data_provider/countries-OR.txt +249 -0
  65. data/cache/file_data_provider/countries-PA.txt +20 -17
  66. data/cache/file_data_provider/countries-PL.txt +9 -6
  67. data/cache/file_data_provider/countries-PS.txt +9 -6
  68. data/cache/file_data_provider/countries-PT.txt +8 -5
  69. data/cache/file_data_provider/countries-RO.txt +44 -41
  70. data/cache/file_data_provider/countries-RU.txt +8 -5
  71. data/cache/file_data_provider/countries-RW.txt +8 -5
  72. data/cache/file_data_provider/countries-SI.txt +249 -0
  73. data/cache/file_data_provider/countries-SK.txt +8 -5
  74. data/cache/file_data_provider/countries-SL.txt +8 -5
  75. data/cache/file_data_provider/countries-SO.txt +8 -5
  76. data/cache/file_data_provider/countries-SQ.txt +8 -5
  77. data/cache/file_data_provider/countries-SR.txt +8 -5
  78. data/cache/file_data_provider/countries-SV.txt +14 -11
  79. data/cache/file_data_provider/countries-SW.txt +9 -6
  80. data/cache/file_data_provider/countries-TA.txt +8 -5
  81. data/cache/file_data_provider/countries-TE.txt +172 -169
  82. data/cache/file_data_provider/countries-TH.txt +7 -4
  83. data/cache/file_data_provider/countries-TI.txt +8 -5
  84. data/cache/file_data_provider/countries-TK.txt +8 -5
  85. data/cache/file_data_provider/countries-TL.txt +8 -5
  86. data/cache/file_data_provider/countries-TR.txt +35 -32
  87. data/cache/file_data_provider/countries-TT.txt +8 -5
  88. data/cache/file_data_provider/countries-UG.txt +249 -0
  89. data/cache/file_data_provider/countries-UK.txt +57 -54
  90. data/cache/file_data_provider/countries-VE.txt +8 -5
  91. data/cache/file_data_provider/countries-VI.txt +8 -5
  92. data/cache/file_data_provider/countries-WA.txt +8 -5
  93. data/cache/file_data_provider/countries-WO.txt +8 -5
  94. data/cache/file_data_provider/countries-XH.txt +8 -5
  95. data/cache/file_data_provider/countries-ZU.txt +8 -5
  96. data/cache/file_data_provider/languages-AF.txt +1 -1
  97. data/cache/file_data_provider/languages-AM.txt +1 -1
  98. data/cache/file_data_provider/languages-AR.txt +1 -1
  99. data/cache/file_data_provider/languages-AS.txt +185 -0
  100. data/cache/file_data_provider/languages-AZ.txt +1 -1
  101. data/cache/file_data_provider/languages-BE.txt +103 -103
  102. data/cache/file_data_provider/languages-BG.txt +103 -103
  103. data/cache/file_data_provider/languages-BR.txt +1 -1
  104. data/cache/file_data_provider/languages-BS.txt +1 -1
  105. data/cache/file_data_provider/languages-CA.txt +14 -14
  106. data/cache/file_data_provider/languages-CS.txt +2 -2
  107. data/cache/file_data_provider/languages-CY.txt +1 -1
  108. data/cache/file_data_provider/languages-DA.txt +1 -1
  109. data/cache/file_data_provider/languages-DE.txt +2 -2
  110. data/cache/file_data_provider/languages-EL.txt +2 -2
  111. data/cache/file_data_provider/languages-EN.txt +1 -1
  112. data/cache/file_data_provider/languages-EO.txt +2 -2
  113. data/cache/file_data_provider/languages-ES.txt +1 -1
  114. data/cache/file_data_provider/languages-ET.txt +1 -1
  115. data/cache/file_data_provider/languages-EU.txt +1 -1
  116. data/cache/file_data_provider/languages-FA.txt +1 -1
  117. data/cache/file_data_provider/languages-FI.txt +1 -1
  118. data/cache/file_data_provider/languages-FR.txt +182 -182
  119. data/cache/file_data_provider/languages-GA.txt +9 -9
  120. data/cache/file_data_provider/languages-GL.txt +73 -73
  121. data/cache/file_data_provider/languages-GU.txt +64 -64
  122. data/cache/file_data_provider/languages-HE.txt +1 -1
  123. data/cache/file_data_provider/languages-HI.txt +1 -1
  124. data/cache/file_data_provider/languages-HR.txt +1 -1
  125. data/cache/file_data_provider/languages-HU.txt +8 -8
  126. data/cache/file_data_provider/languages-ID.txt +1 -1
  127. data/cache/file_data_provider/languages-IS.txt +96 -96
  128. data/cache/file_data_provider/languages-IT.txt +2 -2
  129. data/cache/file_data_provider/languages-JA.txt +2 -2
  130. data/cache/file_data_provider/languages-KN.txt +185 -0
  131. data/cache/file_data_provider/languages-KO.txt +147 -147
  132. data/cache/file_data_provider/languages-LT.txt +1 -1
  133. data/cache/file_data_provider/languages-LV.txt +139 -139
  134. data/cache/file_data_provider/languages-MI.txt +34 -34
  135. data/cache/file_data_provider/languages-MK.txt +1 -1
  136. data/cache/file_data_provider/languages-ML.txt +185 -0
  137. data/cache/file_data_provider/languages-MN.txt +1 -1
  138. data/cache/file_data_provider/languages-MR.txt +2 -2
  139. data/cache/file_data_provider/languages-MS.txt +1 -1
  140. data/cache/file_data_provider/languages-MT.txt +1 -1
  141. data/cache/file_data_provider/languages-NB.txt +1 -1
  142. data/cache/file_data_provider/languages-NL.txt +3 -3
  143. data/cache/file_data_provider/languages-NN.txt +1 -1
  144. data/cache/file_data_provider/languages-OC.txt +1 -1
  145. data/cache/file_data_provider/languages-OR.txt +185 -0
  146. data/cache/file_data_provider/languages-PA.txt +1 -1
  147. data/cache/file_data_provider/languages-PL.txt +5 -5
  148. data/cache/file_data_provider/languages-PS.txt +1 -1
  149. data/cache/file_data_provider/languages-PT.txt +1 -1
  150. data/cache/file_data_provider/languages-RO.txt +134 -134
  151. data/cache/file_data_provider/languages-RU.txt +2 -2
  152. data/cache/file_data_provider/languages-RW.txt +1 -1
  153. data/cache/file_data_provider/languages-SK.txt +5 -5
  154. data/cache/file_data_provider/languages-SL.txt +15 -15
  155. data/cache/file_data_provider/languages-SR.txt +1 -1
  156. data/cache/file_data_provider/languages-SV.txt +1 -1
  157. data/cache/file_data_provider/languages-TA.txt +1 -1
  158. data/cache/file_data_provider/languages-TE.txt +185 -0
  159. data/cache/file_data_provider/languages-TH.txt +15 -15
  160. data/cache/file_data_provider/languages-TI.txt +1 -1
  161. data/cache/file_data_provider/languages-TR.txt +1 -1
  162. data/cache/file_data_provider/languages-TT.txt +1 -1
  163. data/cache/file_data_provider/languages-UK.txt +184 -184
  164. data/cache/file_data_provider/languages-VE.txt +1 -1
  165. data/cache/file_data_provider/languages-VI.txt +1 -1
  166. data/cache/file_data_provider/languages-WA.txt +1 -1
  167. data/cache/file_data_provider/languages-XH.txt +1 -1
  168. data/cache/file_data_provider/languages-ZU.txt +1 -1
  169. data/i18n_data.gemspec +191 -191
  170. data/lib/i18n_data/live_data_provider.rb +5 -3
  171. data/spec/i18n_data/file_data_provider_spec.rb +2 -2
  172. data/spec/i18n_data/live_data_provider_spec.rb +3 -3
  173. data/spec/i18n_data_spec.rb +5 -6
  174. metadata +52 -58
  175. data/.gitignore +0 -3
data/i18n_data.gemspec CHANGED
@@ -1,209 +1,209 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{i18n_data}
8
- s.version = "0.2.7"
7
+ s.name = "i18n_data"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2010-03-22}
13
- s.email = %q{grosser.michael@gmail.com}
14
- s.extra_rdoc_files = [
15
- "README.markdown"
16
- ]
12
+ s.date = "2012-01-25"
13
+ s.email = "michael@grosser.it"
17
14
  s.files = [
18
- ".gitignore",
19
- "CHANGELOG",
20
- "README.markdown",
21
- "Rakefile",
22
- "VERSION",
23
- "cache/file_data_provider/countries-AF.txt",
24
- "cache/file_data_provider/countries-AM.txt",
25
- "cache/file_data_provider/countries-AR.txt",
26
- "cache/file_data_provider/countries-AZ.txt",
27
- "cache/file_data_provider/countries-BE.txt",
28
- "cache/file_data_provider/countries-BG.txt",
29
- "cache/file_data_provider/countries-BN.txt",
30
- "cache/file_data_provider/countries-BR.txt",
31
- "cache/file_data_provider/countries-BS.txt",
32
- "cache/file_data_provider/countries-CA.txt",
33
- "cache/file_data_provider/countries-CS.txt",
34
- "cache/file_data_provider/countries-CY.txt",
35
- "cache/file_data_provider/countries-DA.txt",
36
- "cache/file_data_provider/countries-DE.txt",
37
- "cache/file_data_provider/countries-DZ.txt",
38
- "cache/file_data_provider/countries-EL.txt",
39
- "cache/file_data_provider/countries-EN.txt",
40
- "cache/file_data_provider/countries-EO.txt",
41
- "cache/file_data_provider/countries-ES.txt",
42
- "cache/file_data_provider/countries-ET.txt",
43
- "cache/file_data_provider/countries-EU.txt",
44
- "cache/file_data_provider/countries-FA.txt",
45
- "cache/file_data_provider/countries-FI.txt",
46
- "cache/file_data_provider/countries-FO.txt",
47
- "cache/file_data_provider/countries-FR.txt",
48
- "cache/file_data_provider/countries-GA.txt",
49
- "cache/file_data_provider/countries-GL.txt",
50
- "cache/file_data_provider/countries-GU.txt",
51
- "cache/file_data_provider/countries-HE.txt",
52
- "cache/file_data_provider/countries-HI.txt",
53
- "cache/file_data_provider/countries-HR.txt",
54
- "cache/file_data_provider/countries-HU.txt",
55
- "cache/file_data_provider/countries-HY.txt",
56
- "cache/file_data_provider/countries-ID.txt",
57
- "cache/file_data_provider/countries-IS.txt",
58
- "cache/file_data_provider/countries-IT.txt",
59
- "cache/file_data_provider/countries-JA.txt",
60
- "cache/file_data_provider/countries-KA.txt",
61
- "cache/file_data_provider/countries-KK.txt",
62
- "cache/file_data_provider/countries-KM.txt",
63
- "cache/file_data_provider/countries-KN.txt",
64
- "cache/file_data_provider/countries-KO.txt",
65
- "cache/file_data_provider/countries-KU.txt",
66
- "cache/file_data_provider/countries-LT.txt",
67
- "cache/file_data_provider/countries-LV.txt",
68
- "cache/file_data_provider/countries-MI.txt",
69
- "cache/file_data_provider/countries-MK.txt",
70
- "cache/file_data_provider/countries-ML.txt",
71
- "cache/file_data_provider/countries-MN.txt",
72
- "cache/file_data_provider/countries-MR.txt",
73
- "cache/file_data_provider/countries-MS.txt",
74
- "cache/file_data_provider/countries-MT.txt",
75
- "cache/file_data_provider/countries-NB.txt",
76
- "cache/file_data_provider/countries-NE.txt",
77
- "cache/file_data_provider/countries-NL.txt",
78
- "cache/file_data_provider/countries-NN.txt",
79
- "cache/file_data_provider/countries-OC.txt",
80
- "cache/file_data_provider/countries-PA.txt",
81
- "cache/file_data_provider/countries-PL.txt",
82
- "cache/file_data_provider/countries-PS.txt",
83
- "cache/file_data_provider/countries-PT.txt",
84
- "cache/file_data_provider/countries-RO.txt",
85
- "cache/file_data_provider/countries-RU.txt",
86
- "cache/file_data_provider/countries-RW.txt",
87
- "cache/file_data_provider/countries-SK.txt",
88
- "cache/file_data_provider/countries-SL.txt",
89
- "cache/file_data_provider/countries-SO.txt",
90
- "cache/file_data_provider/countries-SQ.txt",
91
- "cache/file_data_provider/countries-SR.txt",
92
- "cache/file_data_provider/countries-SV.txt",
93
- "cache/file_data_provider/countries-SW.txt",
94
- "cache/file_data_provider/countries-TA.txt",
95
- "cache/file_data_provider/countries-TE.txt",
96
- "cache/file_data_provider/countries-TH.txt",
97
- "cache/file_data_provider/countries-TI.txt",
98
- "cache/file_data_provider/countries-TK.txt",
99
- "cache/file_data_provider/countries-TL.txt",
100
- "cache/file_data_provider/countries-TR.txt",
101
- "cache/file_data_provider/countries-TT.txt",
102
- "cache/file_data_provider/countries-UK.txt",
103
- "cache/file_data_provider/countries-VE.txt",
104
- "cache/file_data_provider/countries-VI.txt",
105
- "cache/file_data_provider/countries-WA.txt",
106
- "cache/file_data_provider/countries-WO.txt",
107
- "cache/file_data_provider/countries-XH.txt",
108
- "cache/file_data_provider/countries-ZU.txt",
109
- "cache/file_data_provider/languages-AF.txt",
110
- "cache/file_data_provider/languages-AM.txt",
111
- "cache/file_data_provider/languages-AR.txt",
112
- "cache/file_data_provider/languages-AZ.txt",
113
- "cache/file_data_provider/languages-BE.txt",
114
- "cache/file_data_provider/languages-BG.txt",
115
- "cache/file_data_provider/languages-BR.txt",
116
- "cache/file_data_provider/languages-BS.txt",
117
- "cache/file_data_provider/languages-CA.txt",
118
- "cache/file_data_provider/languages-CS.txt",
119
- "cache/file_data_provider/languages-CY.txt",
120
- "cache/file_data_provider/languages-DA.txt",
121
- "cache/file_data_provider/languages-DE.txt",
122
- "cache/file_data_provider/languages-EL.txt",
123
- "cache/file_data_provider/languages-EN.txt",
124
- "cache/file_data_provider/languages-EO.txt",
125
- "cache/file_data_provider/languages-ES.txt",
126
- "cache/file_data_provider/languages-ET.txt",
127
- "cache/file_data_provider/languages-EU.txt",
128
- "cache/file_data_provider/languages-FA.txt",
129
- "cache/file_data_provider/languages-FI.txt",
130
- "cache/file_data_provider/languages-FR.txt",
131
- "cache/file_data_provider/languages-GA.txt",
132
- "cache/file_data_provider/languages-GL.txt",
133
- "cache/file_data_provider/languages-GU.txt",
134
- "cache/file_data_provider/languages-HE.txt",
135
- "cache/file_data_provider/languages-HI.txt",
136
- "cache/file_data_provider/languages-HR.txt",
137
- "cache/file_data_provider/languages-HU.txt",
138
- "cache/file_data_provider/languages-ID.txt",
139
- "cache/file_data_provider/languages-IS.txt",
140
- "cache/file_data_provider/languages-IT.txt",
141
- "cache/file_data_provider/languages-JA.txt",
142
- "cache/file_data_provider/languages-KO.txt",
143
- "cache/file_data_provider/languages-LT.txt",
144
- "cache/file_data_provider/languages-LV.txt",
145
- "cache/file_data_provider/languages-MI.txt",
146
- "cache/file_data_provider/languages-MK.txt",
147
- "cache/file_data_provider/languages-MN.txt",
148
- "cache/file_data_provider/languages-MR.txt",
149
- "cache/file_data_provider/languages-MS.txt",
150
- "cache/file_data_provider/languages-MT.txt",
151
- "cache/file_data_provider/languages-NB.txt",
152
- "cache/file_data_provider/languages-NL.txt",
153
- "cache/file_data_provider/languages-NN.txt",
154
- "cache/file_data_provider/languages-OC.txt",
155
- "cache/file_data_provider/languages-PA.txt",
156
- "cache/file_data_provider/languages-PL.txt",
157
- "cache/file_data_provider/languages-PS.txt",
158
- "cache/file_data_provider/languages-PT.txt",
159
- "cache/file_data_provider/languages-RO.txt",
160
- "cache/file_data_provider/languages-RU.txt",
161
- "cache/file_data_provider/languages-RW.txt",
162
- "cache/file_data_provider/languages-SK.txt",
163
- "cache/file_data_provider/languages-SL.txt",
164
- "cache/file_data_provider/languages-SR.txt",
165
- "cache/file_data_provider/languages-SV.txt",
166
- "cache/file_data_provider/languages-TA.txt",
167
- "cache/file_data_provider/languages-TH.txt",
168
- "cache/file_data_provider/languages-TI.txt",
169
- "cache/file_data_provider/languages-TR.txt",
170
- "cache/file_data_provider/languages-TT.txt",
171
- "cache/file_data_provider/languages-UK.txt",
172
- "cache/file_data_provider/languages-VE.txt",
173
- "cache/file_data_provider/languages-VI.txt",
174
- "cache/file_data_provider/languages-WA.txt",
175
- "cache/file_data_provider/languages-XH.txt",
176
- "cache/file_data_provider/languages-ZU.txt",
177
- "example_output/all_names_for_DE.txt",
178
- "example_output/all_names_for_FR.txt",
179
- "example_output/all_names_for_GB.txt",
180
- "example_output/all_names_for_US.txt",
181
- "i18n_data.gemspec",
182
- "lib/i18n_data.rb",
183
- "lib/i18n_data/file_data_provider.rb",
184
- "lib/i18n_data/live_data_provider.rb",
185
- "spec/i18n_data/file_data_provider_spec.rb",
186
- "spec/i18n_data/live_data_provider_spec.rb",
187
- "spec/i18n_data_spec.rb",
188
- "spec/spec_helper.rb"
15
+ "CHANGELOG",
16
+ "Gemfile",
17
+ "Gemfile.lock",
18
+ "Rakefile",
19
+ "Readme.md",
20
+ "VERSION",
21
+ "cache/file_data_provider/countries-AF.txt",
22
+ "cache/file_data_provider/countries-AM.txt",
23
+ "cache/file_data_provider/countries-AR.txt",
24
+ "cache/file_data_provider/countries-AS.txt",
25
+ "cache/file_data_provider/countries-AZ.txt",
26
+ "cache/file_data_provider/countries-BE.txt",
27
+ "cache/file_data_provider/countries-BG.txt",
28
+ "cache/file_data_provider/countries-BN.txt",
29
+ "cache/file_data_provider/countries-BR.txt",
30
+ "cache/file_data_provider/countries-BS.txt",
31
+ "cache/file_data_provider/countries-CA.txt",
32
+ "cache/file_data_provider/countries-CS.txt",
33
+ "cache/file_data_provider/countries-CY.txt",
34
+ "cache/file_data_provider/countries-DA.txt",
35
+ "cache/file_data_provider/countries-DE.txt",
36
+ "cache/file_data_provider/countries-DZ.txt",
37
+ "cache/file_data_provider/countries-EL.txt",
38
+ "cache/file_data_provider/countries-EN.txt",
39
+ "cache/file_data_provider/countries-EO.txt",
40
+ "cache/file_data_provider/countries-ES.txt",
41
+ "cache/file_data_provider/countries-ET.txt",
42
+ "cache/file_data_provider/countries-EU.txt",
43
+ "cache/file_data_provider/countries-FA.txt",
44
+ "cache/file_data_provider/countries-FI.txt",
45
+ "cache/file_data_provider/countries-FO.txt",
46
+ "cache/file_data_provider/countries-FR.txt",
47
+ "cache/file_data_provider/countries-GA.txt",
48
+ "cache/file_data_provider/countries-GL.txt",
49
+ "cache/file_data_provider/countries-GU.txt",
50
+ "cache/file_data_provider/countries-HE.txt",
51
+ "cache/file_data_provider/countries-HI.txt",
52
+ "cache/file_data_provider/countries-HR.txt",
53
+ "cache/file_data_provider/countries-HU.txt",
54
+ "cache/file_data_provider/countries-HY.txt",
55
+ "cache/file_data_provider/countries-ID.txt",
56
+ "cache/file_data_provider/countries-IS.txt",
57
+ "cache/file_data_provider/countries-IT.txt",
58
+ "cache/file_data_provider/countries-JA.txt",
59
+ "cache/file_data_provider/countries-KA.txt",
60
+ "cache/file_data_provider/countries-KK.txt",
61
+ "cache/file_data_provider/countries-KM.txt",
62
+ "cache/file_data_provider/countries-KN.txt",
63
+ "cache/file_data_provider/countries-KO.txt",
64
+ "cache/file_data_provider/countries-KU.txt",
65
+ "cache/file_data_provider/countries-LT.txt",
66
+ "cache/file_data_provider/countries-LV.txt",
67
+ "cache/file_data_provider/countries-MI.txt",
68
+ "cache/file_data_provider/countries-MK.txt",
69
+ "cache/file_data_provider/countries-ML.txt",
70
+ "cache/file_data_provider/countries-MN.txt",
71
+ "cache/file_data_provider/countries-MR.txt",
72
+ "cache/file_data_provider/countries-MS.txt",
73
+ "cache/file_data_provider/countries-MT.txt",
74
+ "cache/file_data_provider/countries-NB.txt",
75
+ "cache/file_data_provider/countries-NE.txt",
76
+ "cache/file_data_provider/countries-NL.txt",
77
+ "cache/file_data_provider/countries-NN.txt",
78
+ "cache/file_data_provider/countries-OC.txt",
79
+ "cache/file_data_provider/countries-OR.txt",
80
+ "cache/file_data_provider/countries-PA.txt",
81
+ "cache/file_data_provider/countries-PL.txt",
82
+ "cache/file_data_provider/countries-PS.txt",
83
+ "cache/file_data_provider/countries-PT.txt",
84
+ "cache/file_data_provider/countries-RO.txt",
85
+ "cache/file_data_provider/countries-RU.txt",
86
+ "cache/file_data_provider/countries-RW.txt",
87
+ "cache/file_data_provider/countries-SI.txt",
88
+ "cache/file_data_provider/countries-SK.txt",
89
+ "cache/file_data_provider/countries-SL.txt",
90
+ "cache/file_data_provider/countries-SO.txt",
91
+ "cache/file_data_provider/countries-SQ.txt",
92
+ "cache/file_data_provider/countries-SR.txt",
93
+ "cache/file_data_provider/countries-SV.txt",
94
+ "cache/file_data_provider/countries-SW.txt",
95
+ "cache/file_data_provider/countries-TA.txt",
96
+ "cache/file_data_provider/countries-TE.txt",
97
+ "cache/file_data_provider/countries-TH.txt",
98
+ "cache/file_data_provider/countries-TI.txt",
99
+ "cache/file_data_provider/countries-TK.txt",
100
+ "cache/file_data_provider/countries-TL.txt",
101
+ "cache/file_data_provider/countries-TR.txt",
102
+ "cache/file_data_provider/countries-TT.txt",
103
+ "cache/file_data_provider/countries-UG.txt",
104
+ "cache/file_data_provider/countries-UK.txt",
105
+ "cache/file_data_provider/countries-VE.txt",
106
+ "cache/file_data_provider/countries-VI.txt",
107
+ "cache/file_data_provider/countries-WA.txt",
108
+ "cache/file_data_provider/countries-WO.txt",
109
+ "cache/file_data_provider/countries-XH.txt",
110
+ "cache/file_data_provider/countries-ZU.txt",
111
+ "cache/file_data_provider/languages-AF.txt",
112
+ "cache/file_data_provider/languages-AM.txt",
113
+ "cache/file_data_provider/languages-AR.txt",
114
+ "cache/file_data_provider/languages-AS.txt",
115
+ "cache/file_data_provider/languages-AZ.txt",
116
+ "cache/file_data_provider/languages-BE.txt",
117
+ "cache/file_data_provider/languages-BG.txt",
118
+ "cache/file_data_provider/languages-BR.txt",
119
+ "cache/file_data_provider/languages-BS.txt",
120
+ "cache/file_data_provider/languages-CA.txt",
121
+ "cache/file_data_provider/languages-CS.txt",
122
+ "cache/file_data_provider/languages-CY.txt",
123
+ "cache/file_data_provider/languages-DA.txt",
124
+ "cache/file_data_provider/languages-DE.txt",
125
+ "cache/file_data_provider/languages-EL.txt",
126
+ "cache/file_data_provider/languages-EN.txt",
127
+ "cache/file_data_provider/languages-EO.txt",
128
+ "cache/file_data_provider/languages-ES.txt",
129
+ "cache/file_data_provider/languages-ET.txt",
130
+ "cache/file_data_provider/languages-EU.txt",
131
+ "cache/file_data_provider/languages-FA.txt",
132
+ "cache/file_data_provider/languages-FI.txt",
133
+ "cache/file_data_provider/languages-FR.txt",
134
+ "cache/file_data_provider/languages-GA.txt",
135
+ "cache/file_data_provider/languages-GL.txt",
136
+ "cache/file_data_provider/languages-GU.txt",
137
+ "cache/file_data_provider/languages-HE.txt",
138
+ "cache/file_data_provider/languages-HI.txt",
139
+ "cache/file_data_provider/languages-HR.txt",
140
+ "cache/file_data_provider/languages-HU.txt",
141
+ "cache/file_data_provider/languages-ID.txt",
142
+ "cache/file_data_provider/languages-IS.txt",
143
+ "cache/file_data_provider/languages-IT.txt",
144
+ "cache/file_data_provider/languages-JA.txt",
145
+ "cache/file_data_provider/languages-KN.txt",
146
+ "cache/file_data_provider/languages-KO.txt",
147
+ "cache/file_data_provider/languages-LT.txt",
148
+ "cache/file_data_provider/languages-LV.txt",
149
+ "cache/file_data_provider/languages-MI.txt",
150
+ "cache/file_data_provider/languages-MK.txt",
151
+ "cache/file_data_provider/languages-ML.txt",
152
+ "cache/file_data_provider/languages-MN.txt",
153
+ "cache/file_data_provider/languages-MR.txt",
154
+ "cache/file_data_provider/languages-MS.txt",
155
+ "cache/file_data_provider/languages-MT.txt",
156
+ "cache/file_data_provider/languages-NB.txt",
157
+ "cache/file_data_provider/languages-NL.txt",
158
+ "cache/file_data_provider/languages-NN.txt",
159
+ "cache/file_data_provider/languages-OC.txt",
160
+ "cache/file_data_provider/languages-OR.txt",
161
+ "cache/file_data_provider/languages-PA.txt",
162
+ "cache/file_data_provider/languages-PL.txt",
163
+ "cache/file_data_provider/languages-PS.txt",
164
+ "cache/file_data_provider/languages-PT.txt",
165
+ "cache/file_data_provider/languages-RO.txt",
166
+ "cache/file_data_provider/languages-RU.txt",
167
+ "cache/file_data_provider/languages-RW.txt",
168
+ "cache/file_data_provider/languages-SK.txt",
169
+ "cache/file_data_provider/languages-SL.txt",
170
+ "cache/file_data_provider/languages-SR.txt",
171
+ "cache/file_data_provider/languages-SV.txt",
172
+ "cache/file_data_provider/languages-TA.txt",
173
+ "cache/file_data_provider/languages-TE.txt",
174
+ "cache/file_data_provider/languages-TH.txt",
175
+ "cache/file_data_provider/languages-TI.txt",
176
+ "cache/file_data_provider/languages-TR.txt",
177
+ "cache/file_data_provider/languages-TT.txt",
178
+ "cache/file_data_provider/languages-UK.txt",
179
+ "cache/file_data_provider/languages-VE.txt",
180
+ "cache/file_data_provider/languages-VI.txt",
181
+ "cache/file_data_provider/languages-WA.txt",
182
+ "cache/file_data_provider/languages-XH.txt",
183
+ "cache/file_data_provider/languages-ZU.txt",
184
+ "example_output/all_names_for_DE.txt",
185
+ "example_output/all_names_for_FR.txt",
186
+ "example_output/all_names_for_GB.txt",
187
+ "example_output/all_names_for_US.txt",
188
+ "i18n_data.gemspec",
189
+ "lib/i18n_data.rb",
190
+ "lib/i18n_data/file_data_provider.rb",
191
+ "lib/i18n_data/live_data_provider.rb",
192
+ "spec/i18n_data/file_data_provider_spec.rb",
193
+ "spec/i18n_data/live_data_provider_spec.rb",
194
+ "spec/i18n_data_spec.rb",
195
+ "spec/spec_helper.rb"
189
196
  ]
190
- s.homepage = %q{http://github.com/grosser/i18n_data}
191
- s.rdoc_options = ["--charset=UTF-8"]
197
+ s.homepage = "https://github.com/grosser/i18n_data"
198
+ s.licenses = ["MIT"]
192
199
  s.require_paths = ["lib"]
193
- s.rubygems_version = %q{1.3.6}
194
- s.summary = %q{country/language names and 2-letter-code pairs, in 85 languages}
195
- s.test_files = [
196
- "spec/spec_helper.rb",
197
- "spec/i18n_data/file_data_provider_spec.rb",
198
- "spec/i18n_data/live_data_provider_spec.rb",
199
- "spec/i18n_data_spec.rb"
200
- ]
200
+ s.rubygems_version = "1.8.10"
201
+ s.summary = "country/language names and 2-letter-code pairs, in 85 languages"
201
202
 
202
203
  if s.respond_to? :specification_version then
203
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
204
204
  s.specification_version = 3
205
205
 
206
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
206
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
207
207
  s.add_runtime_dependency(%q<activesupport>, [">= 0"])
208
208
  else
209
209
  s.add_dependency(%q<activesupport>, [">= 0"])
@@ -49,11 +49,13 @@ module I18nData
49
49
  def translations(type, language_code)
50
50
  begin
51
51
  url = TRANSLATIONS[type]+"#{language_code.downcase}.po"
52
- data = open(url).readlines
52
+ data = open(url).read
53
53
  rescue
54
- raise NoTranslationAvailable, "for #{type} and language code = #{language_code}"
54
+ raise NoTranslationAvailable, "for #{type} and language code = #{language_code} (#{$!})"
55
55
  end
56
56
 
57
+ data = data.force_encoding('utf-8') if data.respond_to?(:force_encoding) # 1.9
58
+ data = data.split("\n")
57
59
  po_to_hash data
58
60
  end
59
61
  memoize :translations
@@ -97,4 +99,4 @@ module I18nData
97
99
  REXML::Document.new(xml)
98
100
  end
99
101
  end
100
- end
102
+ end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__),'..',"spec_helper")
1
+ require "spec_helper"
2
2
  require 'i18n_data/file_data_provider'
3
3
 
4
4
  describe I18nData::FileDataProvider do
@@ -21,4 +21,4 @@ describe I18nData::FileDataProvider do
21
21
  I18nData::FileDataProvider.send(:write_to_file,{}, @cache_file)
22
22
  lambda{read("XX","YY")}.should raise_error I18nData::NoTranslationAvailable
23
23
  end
24
- end
24
+ end
@@ -1,10 +1,10 @@
1
- require File.join(File.dirname(__FILE__),'..',"spec_helper")
1
+ require "spec_helper"
2
2
  require 'i18n_data/live_data_provider'
3
3
 
4
4
  describe I18nData::LiveDataProvider do
5
5
  describe :po_to_hash do
6
6
  def po_to_hash(text)
7
- I18nData::LiveDataProvider.send(:po_to_hash,text)
7
+ I18nData::LiveDataProvider.send(:po_to_hash,text.split("\n"))
8
8
  end
9
9
 
10
10
  it "parses po file into translations" do
@@ -41,4 +41,4 @@ EOF
41
41
  po_to_hash(text)[long_name].should == "Kirchenslavisch"
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -1,7 +1,8 @@
1
- require File.expand_path("spec_helper", File.dirname(__FILE__))
1
+ # encoding: utf-8
2
+ require "spec_helper"
2
3
 
3
4
  NUM_2_LETTER_LANGUAGES = 185
4
- NUM_COUNTRIES = 246
5
+ NUM_COUNTRIES = 249
5
6
 
6
7
  describe I18nData do
7
8
  require "i18n_data/live_data_provider"
@@ -11,9 +12,7 @@ describe I18nData do
11
12
  hash.detect{|k,v| k.to_s.empty? or v.to_s.empty?}
12
13
  end
13
14
 
14
- providers = [I18nData::FileDataProvider]
15
- providers << I18nData::LiveDataProvider unless ENV['RUN_CODE_RUN']
16
- providers.each do |provider|
15
+ [I18nData::FileDataProvider, I18nData::LiveDataProvider].each do |provider|
17
16
  describe "using #{provider}" do
18
17
  before :all do
19
18
  I18nData.data_provider = provider
@@ -145,4 +144,4 @@ describe I18nData do
145
144
  it "has a VERSION" do
146
145
  I18nData::VERSION.should =~ /^\d+\.\d+\.\d+$/
147
146
  end
148
- end
147
+ end