ruby-cldr 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +56 -46
  4. data/README.textile +6 -0
  5. data/Rakefile +2 -2
  6. data/VERSION +1 -1
  7. data/lib/cldr/download.rb +1 -1
  8. data/lib/cldr/export.rb +70 -16
  9. data/lib/cldr/export/data.rb +31 -21
  10. data/lib/cldr/export/data/aliases.rb +47 -0
  11. data/lib/cldr/export/data/base.rb +4 -0
  12. data/lib/cldr/export/data/characters.rb +30 -0
  13. data/lib/cldr/export/data/fields.rb +60 -0
  14. data/lib/cldr/export/data/languages.rb +1 -1
  15. data/lib/cldr/export/data/likely_subtags.rb +29 -0
  16. data/lib/cldr/export/data/numbers.rb +48 -6
  17. data/lib/cldr/export/data/parent_locales.rb +23 -0
  18. data/lib/cldr/export/data/plural_rules.rb +70 -0
  19. data/lib/cldr/export/data/rbnf.rb +12 -4
  20. data/lib/cldr/export/data/region_currencies.rb +45 -0
  21. data/lib/cldr/export/data/segments_root.rb +13 -3
  22. data/lib/cldr/export/data/territories.rb +1 -1
  23. data/lib/cldr/export/data/territories_containment.rb +30 -0
  24. data/lib/cldr/export/data/timezones.rb +18 -2
  25. data/lib/cldr/export/data/transforms.rb +76 -0
  26. data/lib/cldr/export/data/variables.rb +42 -0
  27. data/lib/cldr/export/yaml.rb +5 -21
  28. data/lib/cldr/thor.rb +2 -2
  29. data/test/export/data/calendars_test.rb +85 -51
  30. data/test/export/data/currencies_test.rb +29 -25
  31. data/test/export/data/languages_test.rb +69 -51
  32. data/test/export/data/numbers_test.rb +61 -62
  33. data/test/export/data/plurals_test.rb +4 -3
  34. data/test/export/data/territories_containment_test.rb +10 -0
  35. data/test/export/data/territories_test.rb +12 -5
  36. data/test/export/data/timezones_test.rb +5 -8
  37. data/test/export_test.rb +57 -5
  38. data/test/format/time_test.rb +5 -5
  39. metadata +40 -29
@@ -5,83 +5,82 @@ require File.expand_path(File.join(File.dirname(__FILE__) + '/../../test_helper'
5
5
  class TestCldrDataNumbers < Test::Unit::TestCase
6
6
  test "number symbols :de" do
7
7
  expected = {
8
- :nan => "NaN",
9
- :decimal => ",",
10
- :plus_sign => "+",
11
- :minus_sign => "-",
12
- :group => ".",
13
- :exponential => "E",
14
- :percent_sign => "%",
15
- :list => ";",
16
- :per_mille => "",
17
- :infinity => "",
18
- :superscripting_exponent => "·"
8
+ :decimal => ",",
9
+ :exponential => "E",
10
+ :group => ".",
11
+ :infinity => "",
12
+ :list => ";",
13
+ :minus_sign => "-",
14
+ :nan => "NaN",
15
+ :per_mille => "",
16
+ :percent_sign => "%",
17
+ :plus_sign => "+",
18
+ :superscripting_exponent => "·",
19
+ :time_separator => ":",
19
20
  }
20
21
  assert_equal expected, Cldr::Export::Data::Numbers.new('de')[:numbers][:symbols]
21
22
  end
22
23
 
23
24
  test "number formats :de" do
24
25
  expected = {
26
+ :currency => {
27
+ :number_system => "latn",
28
+ :patterns => {
29
+ :default => "#,##0.00 ¤",
30
+ "short" => {
31
+ "1000" => { "one" => "0", "other" => "0" },
32
+ "10000" => { "one" => "0", "other" => "0" },
33
+ "100000" => { "one" => "0", "other" => "0" },
34
+ "1000000" => { "one" => "0 Mio'.' ¤", "other" => "0 Mio'.' ¤" },
35
+ "10000000" => { "one" => "00 Mio'.' ¤", "other" => "00 Mio'.' ¤" },
36
+ "100000000" => { "one" => "000 Mio'.' ¤", "other" => "000 Mio'.' ¤" },
37
+ "1000000000" => { "one" => "0 Mrd'.' ¤", "other" => "0 Mrd'.' ¤" },
38
+ "10000000000" => { "one" => "00 Mrd'.' ¤", "other" => "00 Mrd'.' ¤" },
39
+ "100000000000" => { "one" => "000 Mrd'.' ¤", "other" => "000 Mrd'.' ¤" },
40
+ "1000000000000" => { "one" => "0 Bio'.' ¤", "other" => "0 Bio'.' ¤" },
41
+ "10000000000000" => { "one" => "00 Bio'.' ¤", "other" => "00 Bio'.' ¤" },
42
+ "100000000000000" => { "one" => "000 Bio'.' ¤", "other" => "000 Bio'.' ¤" } } },
43
+ :unit => { "one" => "{0} {1}", "other" => "{0} {1}" } },
25
44
  :decimal => {
26
45
  :number_system => "latn",
27
46
  :patterns => {
28
47
  :default => "#,##0.###",
29
48
  "long" => {
30
- "1000" => "0 Tausend",
31
- "10000" => "00 Tausend",
32
- "100000" => "000 Tausend",
33
- "1000000" => "0 Millionen",
34
- "10000000" => "00 Millionen",
35
- "100000000" => "000 Millionen",
36
- "1000000000" => "0 Milliarden",
37
- "10000000000" => "00 Milliarden",
38
- "100000000000" => "000 Milliarden",
39
- "1000000000000" => "0 Billionen",
40
- "10000000000000" => "00 Billionen",
41
- "100000000000000" => "000 Billionen"
42
- },
49
+ "1000" => { "one" => "0 Tausend", "other" => "0 Tausend" },
50
+ "10000" => { "one" => "00 Tausend", "other" => "00 Tausend" },
51
+ "100000" => { "one" => "000 Tausend", "other" => "000 Tausend" },
52
+ "1000000" => { "one" => "0 Million", "other" => "0 Millionen" },
53
+ "10000000" => { "one" => "00 Millionen", "other" => "00 Millionen" },
54
+ "100000000" => { "one" => "000 Millionen", "other" => "000 Millionen" },
55
+ "1000000000" => { "one" => "0 Milliarde", "other" => "0 Milliarden" },
56
+ "10000000000" => { "one" => "00 Milliarden", "other" => "00 Milliarden" },
57
+ "100000000000" => { "one" => "000 Milliarden", "other" => "000 Milliarden" },
58
+ "1000000000000" => { "one" => "0 Billion", "other" => "0 Billionen" },
59
+ "10000000000000" => { "one" => "00 Billionen", "other" => "00 Billionen" },
60
+ "100000000000000" => { "one" => "000 Billionen", "other" => "000 Billionen" } },
43
61
  "short" => {
44
- "1000" => "0 Tsd",
45
- "10000" => "00 Tsd",
46
- "100000" => "000 Tsd",
47
- "1000000" => "0 Mio",
48
- "10000000" => "00 Mio",
49
- "100000000" => "000 Mio",
50
- "1000000000" => "0 Mrd",
51
- "10000000000" => "00 Mrd",
52
- "100000000000" => "000 Mrd",
53
- "1000000000000" => "0 Bio",
54
- "10000000000000" => "00 Bio",
55
- "100000000000000" => "000 Bio"
56
- }
57
- }
58
- },
59
- :scientific => {
60
- :number_system => "latn",
61
- :patterns => {
62
- :default => "#E0"
63
- }
64
- },
65
- :percent => {
66
- :number_system => "latn",
67
- :patterns => {
68
- :default => "#,##0 %" # includes a non-breaking space (\302\240)
69
- }
70
- },
71
- :currency => {
72
- :number_system => "latn",
73
- :patterns => {
74
- :default => "#,##0.00 ¤", # includes a non-breaking space (\302\240)
75
- },
76
- :unit => {
77
- "one" => "{0} {1}",
78
- "other" => "{0} {1}"
79
- }
80
- }
81
- }
62
+ "1000" => { "one" => "0", "other" => "0" },
63
+ "10000" => { "one" => "0", "other" => "0" },
64
+ "100000" => { "one" => "0", "other" => "0" },
65
+ "1000000" => { "one" => "0 Mio'.'", "other" => "0 Mio'.'" },
66
+ "10000000" => { "one" => "00 Mio'.'", "other" => "00 Mio'.'" },
67
+ "100000000" => { "one" => "000 Mio'.'", "other" => "000 Mio'.'" },
68
+ "1000000000" => { "one" => "0 Mrd'.'", "other" => "0 Mrd'.'" },
69
+ "10000000000" => { "one" => "00 Mrd'.'", "other" => "00 Mrd'.'" },
70
+ "100000000000" => { "one" => "000 Mrd'.'", "other" => "000 Mrd'.'" },
71
+ "1000000000000" => { "one" => "0 Bio'.'", "other" => "0 Bio'.'" },
72
+ "10000000000000" => { "one" => "00 Bio'.'", "other" => "00 Bio'.'" },
73
+ "100000000000000" => { "one" => "000 Bio'.'", "other" => "000 Bio'.'" } } } },
74
+ :percent => { :number_system => "latn", :patterns => { :default => "#,##0 %" } },
75
+ :scientific => { :number_system => "latn", :patterns => { :default => "#E0" } } }
82
76
  assert_equal expected, Cldr::Export::Data::Numbers.new('de')[:numbers][:formats]
83
77
  end
84
78
 
79
+ test "redirects in root locale" do
80
+ assert_equal :"numbers.formats.decimal.patterns.short",
81
+ Cldr::Export::Data::Numbers.new('root')[:numbers][:formats][:decimal][:patterns]['long']
82
+ end
83
+
85
84
  # Cldr::Export::Data.locales.each do |locale|
86
85
  # test "extract number_symbols for #{locale}" do
87
86
  # assert_nothing_raised do
@@ -210,9 +210,10 @@ class TestCldrDataPluralParser < Test::Unit::TestCase
210
210
  assert_equal :one, fn.call("1")
211
211
  assert_equal :one, fn.call("0.00100")
212
212
  assert_equal :one, fn.call("-0.01")
213
- assert_equal :other, fn.call("0")
214
- assert_equal :other, fn.call("1.1")
215
- assert_equal :other, fn.call("0.21")
213
+ assert_equal :one, fn.call("0")
214
+ assert_equal :one, fn.call("1.1")
215
+ assert_equal :one, fn.call("0.21")
216
+ assert_equal :other, fn.call("2")
216
217
  end
217
218
 
218
219
  def test_n_mod
@@ -0,0 +1,10 @@
1
+ # encoding: utf-8
2
+
3
+ require File.expand_path(File.join(File.dirname(__FILE__) + '/../../test_helper'))
4
+
5
+ class TestCldrDataTerritoriesContainment < Test::Unit::TestCase
6
+ test 'territories containment' do
7
+ territories = Cldr::Export::Data::TerritoriesContainment.new[:territories]
8
+ assert_equal(%w[BG BY CZ HU MD PL RO RU SK SU UA], territories['151'][:contains])
9
+ end
10
+ end
@@ -7,8 +7,8 @@ class TestCldrDataTerritories < Test::Unit::TestCase
7
7
  codes = [:"001", :"002", :"003", :"005", :"009", :"011", :"013", :"014",
8
8
  :"015", :"017", :"018", :"019", :"021", :"029", :"030", :"034",
9
9
  :"035", :"039", :"053", :"054", :"057", :"061", :"142", :"143",
10
- :"145", :"150", :"151", :"154", :"155", :"419", :AC, :AD, :AE,
11
- :AF, :AG, :AI, :AL, :AM, :AN, :AO, :AQ, :AR, :AS, :AT, :AU, :AW,
10
+ :"145", :"150", :"151", :"154", :"155", :"202", :"419", :AC, :AD,
11
+ :AE, :AF, :AG, :AI, :AL, :AM, :AO, :AQ, :AR, :AS, :AT, :AU, :AW,
12
12
  :AX, :AZ, :BA, :BB, :BD, :BE, :BF, :BG, :BH, :BI, :BJ, :BL, :BM,
13
13
  :BN, :BO, :BQ, :BR, :BS, :BT, :BV, :BW, :BY, :BZ, :CA, :CC, :CD,
14
14
  :CF, :CG, :CH, :CI, :CK, :CL, :CM, :CN, :CO, :CP, :CR, :CU, :CV,
@@ -26,14 +26,21 @@ class TestCldrDataTerritories < Test::Unit::TestCase
26
26
  :RU, :RW, :SA, :SB, :SC, :SD, :SE, :SG, :SH, :SI, :SJ, :SK, :SL,
27
27
  :SM, :SN, :SO, :SR, :SS, :ST, :SV, :SX, :SY, :SZ, :TA, :TC, :TD,
28
28
  :TF, :TG, :TH, :TJ, :TK, :TL, :TM, :TN, :TO, :TR, :TT, :TV, :TW,
29
- :TZ, :UA, :UG, :UM, :US, :UY, :UZ, :VA, :VC, :VE, :VG, :VI, :VN,
30
- :VU, :WF, :WS, :XK, :YE, :YT, :ZA, :ZM, :ZW, :ZZ]
29
+ :TZ, :UA, :UG, :UN, :UM, :US, :UY, :UZ, :VA, :VC, :VE, :VG, :VI,
30
+ :VN, :VU, :WF, :WS, :XK, :YE, :YT, :ZA, :ZM, :ZW, :ZZ, :EZ]
31
31
 
32
32
  territories = Cldr::Export::Data::Territories.new(:de)[:territories]
33
- assert (territories.keys - codes).empty? && (codes - territories.keys).empty?
33
+ assert_empty codes - territories.keys, "Unexpected missing territories"
34
+ assert_empty territories.keys - codes, "Unexpected extra territories"
34
35
  assert_equal('Deutschland', territories[:DE])
35
36
  end
36
37
 
38
+ test 'territories does not overwrite long form with the short one' do
39
+ territories = Cldr::Export::Data::Territories.new(:en)[:territories]
40
+
41
+ assert_equal "United States", territories[:US]
42
+ end
43
+
37
44
  # Cldr::Export::Data.locales.each do |locale|
38
45
  # test "extract territories for #{locale}" do
39
46
  # assert_nothing_raised do
@@ -4,13 +4,11 @@ require File.expand_path(File.join(File.dirname(__FILE__) + '/../../test_helper'
4
4
 
5
5
  class TestCldrDataTimezones < Test::Unit::TestCase
6
6
  test 'timezones :de' do
7
- codes = [:"Etc/Unknown", :"Europe/Tirane", :"Asia/Yerevan",
8
- :"Antarctica/South_Pole", :"Antarctica/Vostok",
7
+ codes_subset = [:"Etc/Unknown", :"Europe/Tirane", :"Asia/Yerevan", :"Antarctica/Vostok",
9
8
  :"Antarctica/DumontDUrville", :"Europe/Vienna", :"Europe/Brussels",
10
9
  :"Africa/Ouagadougou", :"Africa/Porto-Novo", :"America/St_Barthelemy",
11
10
  :"Atlantic/Bermuda", :"America/Sao_Paulo", :"America/Coral_Harbour",
12
- :"America/St_Johns", :"Europe/Zurich", :"Pacific/Easter",
13
- :"Asia/Kashgar", :"America/Bogota", :"America/Havana",
11
+ :"America/St_Johns", :"Europe/Zurich", :"Pacific/Easter", :"America/Bogota", :"America/Havana",
14
12
  :"Atlantic/Cape_Verde", :"America/Curacao", :"Indian/Christmas",
15
13
  :"Asia/Nicosia", :"Europe/Prague", :"Europe/Busingen",
16
14
  :"Africa/Djibouti", :"Europe/Copenhagen", :"Africa/Algiers",
@@ -44,16 +42,15 @@ class TestCldrDataTimezones < Test::Unit::TestCase
44
42
  :"America/Indiana/Winamac", :"America/Indiana/Marengo",
45
43
  :"America/Indiana/Vevay", :"America/Kentucky/Monticello",
46
44
  :"Asia/Tashkent", :"Europe/Vatican", :"America/St_Vincent",
47
- :"America/St_Thomas", :"Asia/Saigon"]
48
-
45
+ :"America/St_Thomas", :"Asia/Saigon", :"America/Santa_Isabel"]
49
46
  timezones = Cldr::Export::Data::Timezones.new(:de)[:timezones]
50
- assert (timezones.keys - codes).empty? && (codes - timezones.keys).empty?
47
+ assert_empty codes_subset - timezones.keys, "Could not find some timezones"
51
48
  assert_equal({ :city => 'Wien' }, timezones[:"Europe/Vienna"])
52
49
  end
53
50
 
54
51
  test 'timezone daylight' do
55
52
  london = Cldr::Export::Data::Timezones.new(:de)[:timezones][:'Europe/London']
56
- assert_equal({ :long => { :daylight => 'Britische Sommerzeit'} }, london)
53
+ assert_equal({ :city=>"London", :long => { :daylight => 'Britische Sommerzeit'} }, london)
57
54
  end
58
55
 
59
56
  test 'metazone :de Europe_Western' do
data/test/export_test.rb CHANGED
@@ -26,6 +26,11 @@ class TestExtract < Test::Unit::TestCase
26
26
  assert_equal 'NaN', data[:numbers][:symbols][:nan]
27
27
  end
28
28
 
29
+ test 'the merge option respects parentLocales' do
30
+ data = Cldr::Export.data('calendars', 'en-GB', :merge => true)
31
+ assert_equal 'dd/MM/y', data[:calendars][:gregorian][:additional_formats]['yMd']
32
+ end
33
+
29
34
  test "exports data to files" do
30
35
  Cldr::Export.export(:locales => %w(de), :components => %w(calendars))
31
36
  assert File.exists?(Cldr::Export.path('de', 'calendars', 'yml'))
@@ -40,11 +45,58 @@ class TestExtract < Test::Unit::TestCase
40
45
  assert data['de']
41
46
  end
42
47
 
43
- test "writes dot-separated symbols to yaml" do
44
- data = { :format => { :narrow => :"calendars.gregorian.months.stand-alone.narrow" } }
45
- yaml = %(\nformat: \n narrow: :"calendars.gregorian.months.stand-alone.narrow")
48
+ test "writes dot-separated symbols to yaml in a way that can be loaded back" do
49
+ data = { 'format' => { 'narrow' => :"calendars.gregorian.months.stand-alone.narrow" } }
50
+ yaml = Cldr::Export::Yaml.new.yaml(data.deep_stringify_keys)
51
+
52
+ assert_equal data, YAML.load(yaml)
53
+ end
54
+
55
+ test "escapes data in a way that can be properly loaded back" do
56
+ data = ['017', '017b', '019', '0', '1', 'AAA', 1, 101]
57
+ yaml = Cldr::Export::Yaml.new.yaml(data)
58
+ new_data = YAML.load(yaml)
59
+
60
+ assert_equal data, new_data
61
+ end
62
+
63
+ test "escapes keys in a way that can be properly parsed back" do
64
+ data = {
65
+ '017' =>17,
66
+ 15 => 9,
67
+ 9 =>'009',
68
+ }
69
+ yaml = Cldr::Export::Yaml.new.yaml(data)
70
+ new_data = YAML.load(yaml)
71
+
72
+ assert_equal data, new_data
73
+ end
74
+
75
+ test "escapes unicode in a way that can be properly parsed back" do
76
+ space = '\u2009'.encode('utf-8')
77
+ data = {
78
+ 'a' => 'ä',
79
+ 'space' => space,
80
+ 'o' => 'ø',
81
+ 'vowel' => 'ৃ',
82
+ }
83
+ yaml = Cldr::Export::Yaml.new.yaml(data)
84
+ new_data = YAML.load(yaml)
85
+
86
+ assert_equal data, new_data
87
+ assert_include yaml, 'ৃ'
88
+ assert_include yaml, 'ø'
89
+ assert_include yaml, space
90
+ end
91
+
92
+ test "#locales does not fall back to English (unless the locale is English based)" do
93
+ assert_equal [:ko, :root], Cldr::Export.locales('ko', 'numbers', :merge => true)
94
+ assert_equal [:'pt-br', :pt, :root], Cldr::Export.locales('pt-br', 'numbers', :merge => true)
95
+ assert_equal [:'en-gb', :en, :root], Cldr::Export.locales('en-gb', 'numbers', :merge => true)
96
+ end
46
97
 
47
- assert_equal yaml, Cldr::Export::Yaml.new.emit(data.deep_stringify_keys)
98
+ test "#locales does not fall back if :merge option is false" do
99
+ assert_equal [:'pt-br'], Cldr::Export.locales('pt-br', 'numbers', :merge => false)
48
100
  end
49
101
 
50
102
  # Cldr::Export::Data.locales.each do |locale|
@@ -57,4 +109,4 @@ class TestExtract < Test::Unit::TestCase
57
109
  # end
58
110
  # end
59
111
  # end
60
- end
112
+ end
@@ -36,16 +36,16 @@ class TestCldrDateTimeFormat < Test::Unit::TestCase
36
36
  # TIMEZONE
37
37
 
38
38
  test "z, zz, zzz" do # TODO is this what's meant by the spec?
39
- assert_equal 'CET', format(Time.local(2000, 1, 1, 1, 1, 1), 'z')
40
- assert_equal 'CET', format(Time.local(2000, 1, 1, 1, 1, 1), 'zz')
41
- assert_equal 'CET', format(Time.local(2000, 1, 1, 1, 1, 1), 'zzz')
39
+ assert_equal 'UTC', format(Time.utc(2000, 1, 1, 1, 1, 1), 'z')
40
+ assert_equal 'UTC', format(Time.utc(2000, 1, 1, 1, 1, 1), 'zz')
41
+ assert_equal 'UTC', format(Time.utc(2000, 1, 1, 1, 1, 1), 'zzz')
42
42
  end
43
43
 
44
44
  # PERIOD
45
45
 
46
46
  test "period" do
47
- assert_equal 'vorm.', format(Time.local(2000, 1, 1, 1, 1, 1), 'a')
48
- assert_equal 'nachm.', format(Time.local(2000, 1, 1, 15, 1, 1), 'a')
47
+ assert_equal 'AM', format(Time.local(2000, 1, 1, 1, 1, 1), 'a')
48
+ assert_equal 'PM', format(Time.local(2000, 1, 1, 15, 1, 1), 'a')
49
49
  end
50
50
 
51
51
  # HOUR
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-cldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Fuchs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-16 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: i18n
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: ya2yaml
42
+ name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: nokogiri
56
+ name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- type: :runtime
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubyzip
70
+ name: jeweler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: jeweler
84
+ name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pry
98
+ name: pry-nav
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: pry-nav
112
+ name: test-unit
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: Ruby library for exporting and using data from CLDR, see http://cldr.unicode.org
@@ -146,28 +146,38 @@ files:
146
146
  - lib/cldr/export/code.rb
147
147
  - lib/cldr/export/code/numbers.rb
148
148
  - lib/cldr/export/data.rb
149
+ - lib/cldr/export/data/aliases.rb
149
150
  - lib/cldr/export/data/base.rb
150
151
  - lib/cldr/export/data/calendars.rb
151
152
  - lib/cldr/export/data/calendars/gregorian.rb
153
+ - lib/cldr/export/data/characters.rb
152
154
  - lib/cldr/export/data/currencies.rb
153
155
  - lib/cldr/export/data/currency_digits_and_rounding.rb
154
156
  - lib/cldr/export/data/delimiters.rb
157
+ - lib/cldr/export/data/fields.rb
155
158
  - lib/cldr/export/data/languages.rb
156
159
  - lib/cldr/export/data/layout.rb
160
+ - lib/cldr/export/data/likely_subtags.rb
157
161
  - lib/cldr/export/data/lists.rb
158
162
  - lib/cldr/export/data/metazones.rb
159
163
  - lib/cldr/export/data/numbering_systems.rb
160
164
  - lib/cldr/export/data/numbers.rb
165
+ - lib/cldr/export/data/parent_locales.rb
166
+ - lib/cldr/export/data/plural_rules.rb
161
167
  - lib/cldr/export/data/plurals.rb
162
168
  - lib/cldr/export/data/plurals/cldr_grammar.treetop
163
169
  - lib/cldr/export/data/plurals/grammar.rb
164
170
  - lib/cldr/export/data/plurals/rules.rb
165
171
  - lib/cldr/export/data/rbnf.rb
166
172
  - lib/cldr/export/data/rbnf_root.rb
173
+ - lib/cldr/export/data/region_currencies.rb
167
174
  - lib/cldr/export/data/segments_root.rb
168
175
  - lib/cldr/export/data/territories.rb
176
+ - lib/cldr/export/data/territories_containment.rb
169
177
  - lib/cldr/export/data/timezones.rb
178
+ - lib/cldr/export/data/transforms.rb
170
179
  - lib/cldr/export/data/units.rb
180
+ - lib/cldr/export/data/variables.rb
171
181
  - lib/cldr/export/data/windows_zones.rb
172
182
  - lib/cldr/export/ruby.rb
173
183
  - lib/cldr/export/yaml.rb
@@ -199,6 +209,7 @@ files:
199
209
  - test/export/data/metazones_test.rb
200
210
  - test/export/data/numbers_test.rb
201
211
  - test/export/data/plurals_test.rb
212
+ - test/export/data/territories_containment_test.rb
202
213
  - test/export/data/territories_test.rb
203
214
  - test/export/data/timezones_test.rb
204
215
  - test/export/data/units_test.rb
@@ -216,7 +227,7 @@ files:
216
227
  - test/format/time_test.rb
217
228
  - test/test_autotest.rb
218
229
  - test/test_helper.rb
219
- homepage: http://github.com/svenfuchs/ruby-cldr
230
+ homepage: http://github.com/ruby-i18n/ruby-cldr
220
231
  licenses: []
221
232
  metadata: {}
222
233
  post_install_message:
@@ -225,17 +236,17 @@ require_paths:
225
236
  - lib
226
237
  required_ruby_version: !ruby/object:Gem::Requirement
227
238
  requirements:
228
- - - '>='
239
+ - - ">="
229
240
  - !ruby/object:Gem::Version
230
241
  version: '0'
231
242
  required_rubygems_version: !ruby/object:Gem::Requirement
232
243
  requirements:
233
- - - '>='
244
+ - - ">="
234
245
  - !ruby/object:Gem::Version
235
246
  version: '0'
236
247
  requirements: []
237
248
  rubyforge_project:
238
- rubygems_version: 2.1.11
249
+ rubygems_version: 2.7.9
239
250
  signing_key:
240
251
  specification_version: 4
241
252
  summary: Ruby library for exporting and using data from CLDR