i18n_data 0.2.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +3 -7
- data/Gemfile.lock +6 -10
- data/Rakefile +15 -21
- data/Readme.md +1 -1
- data/i18n_data.gemspec +8 -211
- data/lib/i18n_data/live_data_provider.rb +37 -39
- data/lib/i18n_data/version.rb +3 -0
- data/lib/i18n_data.rb +3 -3
- data/spec/spec_helper.rb +1 -2
- metadata +11 -19
- data/CHANGELOG +0 -3
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
i18n_data (0.3.0)
|
5
|
+
|
1
6
|
GEM
|
2
7
|
remote: http://rubygems.org/
|
3
8
|
specs:
|
4
|
-
activesupport (3.1.3)
|
5
|
-
multi_json (~> 1.0)
|
6
9
|
diff-lcs (1.1.3)
|
7
|
-
git (1.2.5)
|
8
|
-
jeweler (1.6.4)
|
9
|
-
bundler (~> 1.0)
|
10
|
-
git (>= 1.2.5)
|
11
|
-
rake
|
12
|
-
multi_json (1.0.4)
|
13
10
|
rake (0.9.2.2)
|
14
11
|
rspec (2.8.0)
|
15
12
|
rspec-core (~> 2.8.0)
|
@@ -24,7 +21,6 @@ PLATFORMS
|
|
24
21
|
ruby
|
25
22
|
|
26
23
|
DEPENDENCIES
|
27
|
-
|
28
|
-
jeweler
|
24
|
+
i18n_data!
|
29
25
|
rake
|
30
26
|
rspec (~> 2)
|
data/Rakefile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
1
2
|
$LOAD_PATH << "lib"
|
2
3
|
require 'i18n_data'
|
3
4
|
|
4
5
|
task :default do
|
5
|
-
sh "
|
6
|
+
sh "rspec spec/"
|
6
7
|
end
|
7
8
|
|
8
9
|
desc "write all languages to output"
|
@@ -64,26 +65,19 @@ task :stats do
|
|
64
65
|
end
|
65
66
|
end
|
66
67
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
end
|
68
|
+
# extracted from https://github.com/grosser/project_template
|
69
|
+
rule /^version:bump:.*/ do |t|
|
70
|
+
sh "git status | grep 'nothing to commit'" # ensure we are not dirty
|
71
|
+
index = ['major', 'minor','patch'].index(t.name.split(':').last)
|
72
|
+
file = 'lib/i18n_data/version.rb'
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
gem.homepage = "https://github.com/grosser/#{project_name}"
|
82
|
-
gem.authors = ["Michael Grosser"]
|
83
|
-
gem.license = "MIT"
|
84
|
-
end
|
74
|
+
version_file = File.read(file)
|
75
|
+
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
|
76
|
+
version_parts[index] = version_parts[index].to_i + 1
|
77
|
+
version_parts[2] = 0 if index < 2 # remove patch for minor
|
78
|
+
version_parts[1] = 0 if index < 1 # remove minor for major
|
79
|
+
new_version = version_parts * '.'
|
80
|
+
File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
|
85
81
|
|
86
|
-
|
87
|
-
rescue LoadError
|
88
|
-
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
|
82
|
+
sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
|
89
83
|
end
|
data/Readme.md
CHANGED
data/i18n_data.gemspec
CHANGED
@@ -1,215 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
#
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
name = "i18n_data"
|
3
|
+
require "#{name}/version"
|
5
4
|
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.
|
8
|
-
s.version = "0.2.8"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
5
|
+
Gem::Specification.new name, I18nData::VERSION do |s|
|
6
|
+
s.summary = "country/language names and 2-letter-code pairs, in 85 languages"
|
11
7
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = "2012-01-25"
|
13
8
|
s.email = "michael@grosser.it"
|
14
|
-
s.
|
15
|
-
|
16
|
-
|
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"
|
196
|
-
]
|
197
|
-
s.homepage = "https://github.com/grosser/i18n_data"
|
198
|
-
s.licenses = ["MIT"]
|
199
|
-
s.require_paths = ["lib"]
|
200
|
-
s.rubygems_version = "1.8.10"
|
201
|
-
s.summary = "country/language names and 2-letter-code pairs, in 85 languages"
|
202
|
-
|
203
|
-
if s.respond_to? :specification_version then
|
204
|
-
s.specification_version = 3
|
205
|
-
|
206
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
207
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
208
|
-
else
|
209
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
210
|
-
end
|
211
|
-
else
|
212
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
213
|
-
end
|
9
|
+
s.homepage = "http://github.com/grosser/#{name}"
|
10
|
+
s.files = `git ls-files`.split("\n")
|
11
|
+
s.license = "MIT"
|
214
12
|
end
|
215
|
-
|
@@ -1,12 +1,9 @@
|
|
1
1
|
require 'open-uri'
|
2
2
|
require 'rexml/document'
|
3
|
-
gem 'activesupport', '> 2.2'
|
4
|
-
require 'active_support'
|
5
3
|
|
6
4
|
module I18nData
|
7
5
|
# fetches data online from debian svn
|
8
6
|
module LiveDataProvider
|
9
|
-
extend ActiveSupport::Memoizable
|
10
7
|
extend self
|
11
8
|
|
12
9
|
ROOT = "http://git.debian.org/?p=iso-codes/iso-codes.git;a=blob_plain;f="
|
@@ -37,61 +34,62 @@ module I18nData
|
|
37
34
|
end
|
38
35
|
|
39
36
|
def translated(type, language_code)
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
37
|
+
@translated ||= {}
|
38
|
+
@translated["#{type}_#{language_code}"] ||= begin
|
39
|
+
Hash[send("english_#{type}").map do |code, name|
|
40
|
+
[code, translate(type, name, language_code) || name]
|
41
|
+
end]
|
44
42
|
end
|
45
|
-
translations
|
46
43
|
end
|
47
|
-
memoize :translated
|
48
44
|
|
49
45
|
def translations(type, language_code)
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
46
|
+
@translations ||= {}
|
47
|
+
@translations["#{type}_#{language_code}"] ||= begin
|
48
|
+
begin
|
49
|
+
url = TRANSLATIONS[type]+"#{language_code.downcase}.po"
|
50
|
+
data = open(url).read
|
51
|
+
rescue
|
52
|
+
raise NoTranslationAvailable, "for #{type} and language code = #{language_code} (#{$!})"
|
53
|
+
end
|
56
54
|
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
data = data.force_encoding('utf-8') if data.respond_to?(:force_encoding) # 1.9
|
56
|
+
data = data.split("\n")
|
57
|
+
po_to_hash data
|
58
|
+
end
|
60
59
|
end
|
61
|
-
memoize :translations
|
62
60
|
|
63
61
|
def english_languages
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
62
|
+
@english_languages ||= begin
|
63
|
+
codes = {}
|
64
|
+
xml(:languages).elements.each('*/iso_639_entry') do |entry|
|
65
|
+
name = entry.attributes['name'].to_s.gsub("'", "\\'")
|
66
|
+
code = entry.attributes['iso_639_1_code'].to_s.upcase
|
67
|
+
next if code.empty? or name.empty?
|
68
|
+
codes[code] = name
|
69
|
+
end
|
70
|
+
codes
|
70
71
|
end
|
71
|
-
codes
|
72
72
|
end
|
73
|
-
memoize :english_languages
|
74
73
|
|
75
74
|
def english_countries
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
75
|
+
@english_countries ||= begin
|
76
|
+
codes = {}
|
77
|
+
xml(:countries).elements.each('*/iso_3166_entry') do |entry|
|
78
|
+
name = entry.attributes['name'].to_s.gsub("'", "\\'")
|
79
|
+
code = entry.attributes['alpha_2_code'].to_s.upcase
|
80
|
+
codes[code] = name
|
81
|
+
end
|
82
|
+
codes
|
81
83
|
end
|
82
|
-
codes
|
83
84
|
end
|
84
|
-
memoize :english_countries
|
85
85
|
|
86
86
|
def po_to_hash(data)
|
87
87
|
names = data.select{|l| l =~ /^msgid/ }.map{|line| line.match(/^msgid "(.*?)"/)[1] }
|
88
88
|
translations = data.select{|l| l =~ /^msgstr/ }.map{|line| line.match(/^msgstr "(.*?)"/)[1] }
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
end
|
94
|
-
translated
|
90
|
+
Hash[names.each_with_index.map do |name,index|
|
91
|
+
[name, translations[index]]
|
92
|
+
end]
|
95
93
|
end
|
96
94
|
|
97
95
|
def xml(type)
|
data/lib/i18n_data.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
require 'i18n_data/version'
|
2
|
+
|
1
3
|
module I18nData
|
2
|
-
VERSION = File.read( File.join(File.dirname(__FILE__), '..', 'VERSION') ).strip
|
3
|
-
|
4
4
|
extend self
|
5
5
|
|
6
6
|
def languages(language_code='EN')
|
@@ -59,4 +59,4 @@ module I18nData
|
|
59
59
|
"NoTranslationAvailable -- #{super}"
|
60
60
|
end
|
61
61
|
end
|
62
|
-
end
|
62
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,31 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: activesupport
|
16
|
-
requirement: &80327590 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *80327590
|
12
|
+
date: 2012-06-20 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
25
14
|
description:
|
26
15
|
email: michael@grosser.it
|
27
16
|
executables: []
|
28
17
|
extensions: []
|
29
18
|
extra_rdoc_files: []
|
30
19
|
files:
|
31
|
-
-
|
20
|
+
- .gitignore
|
32
21
|
- Gemfile
|
33
22
|
- Gemfile.lock
|
34
23
|
- Rakefile
|
35
24
|
- Readme.md
|
36
|
-
- VERSION
|
37
25
|
- cache/file_data_provider/countries-AF.txt
|
38
26
|
- cache/file_data_provider/countries-AM.txt
|
39
27
|
- cache/file_data_provider/countries-AR.txt
|
@@ -205,11 +193,12 @@ files:
|
|
205
193
|
- lib/i18n_data.rb
|
206
194
|
- lib/i18n_data/file_data_provider.rb
|
207
195
|
- lib/i18n_data/live_data_provider.rb
|
196
|
+
- lib/i18n_data/version.rb
|
208
197
|
- spec/i18n_data/file_data_provider_spec.rb
|
209
198
|
- spec/i18n_data/live_data_provider_spec.rb
|
210
199
|
- spec/i18n_data_spec.rb
|
211
200
|
- spec/spec_helper.rb
|
212
|
-
homepage:
|
201
|
+
homepage: http://github.com/grosser/i18n_data
|
213
202
|
licenses:
|
214
203
|
- MIT
|
215
204
|
post_install_message:
|
@@ -224,16 +213,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
213
|
version: '0'
|
225
214
|
segments:
|
226
215
|
- 0
|
227
|
-
hash: -
|
216
|
+
hash: -3572369572745822314
|
228
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
218
|
none: false
|
230
219
|
requirements:
|
231
220
|
- - ! '>='
|
232
221
|
- !ruby/object:Gem::Version
|
233
222
|
version: '0'
|
223
|
+
segments:
|
224
|
+
- 0
|
225
|
+
hash: -3572369572745822314
|
234
226
|
requirements: []
|
235
227
|
rubyforge_project:
|
236
|
-
rubygems_version: 1.8.
|
228
|
+
rubygems_version: 1.8.24
|
237
229
|
signing_key:
|
238
230
|
specification_version: 3
|
239
231
|
summary: country/language names and 2-letter-code pairs, in 85 languages
|
data/CHANGELOG
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.2.8
|