twitter_cldr 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +8 -8
  2. data/History.txt +4 -0
  3. data/Rakefile +3 -3
  4. data/lib/twitter_cldr/resources/download.rb +4 -0
  5. data/lib/twitter_cldr/version.rb +1 -1
  6. data/resources/collation/tailoring/en-150.yml +4 -0
  7. data/resources/collation/tailoring/es-419.yml +4 -0
  8. data/resources/collation/tries/en-150.dump +0 -0
  9. data/resources/collation/tries/es-419.dump +0 -0
  10. data/resources/locales/en-150/calendars.yml +208 -0
  11. data/resources/locales/en-150/currencies.yml +953 -0
  12. data/resources/locales/en-150/languages.yml +583 -0
  13. data/resources/locales/en-150/layout.yml +5 -0
  14. data/resources/locales/en-150/lists.yml +23 -0
  15. data/resources/locales/en-150/numbers.yml +62 -0
  16. data/resources/locales/en-150/plurals.yml +5 -0
  17. data/resources/locales/en-150/rbnf.yml +4 -0
  18. data/resources/locales/en-150/territories.yml +264 -0
  19. data/resources/locales/en-150/units.yml +108 -0
  20. data/resources/locales/es-419/calendars.yml +290 -0
  21. data/resources/locales/es-419/currencies.yml +953 -0
  22. data/resources/locales/es-419/languages.yml +583 -0
  23. data/resources/locales/es-419/layout.yml +5 -0
  24. data/resources/locales/es-419/lists.yml +23 -0
  25. data/resources/locales/es-419/numbers.yml +62 -0
  26. data/resources/locales/es-419/plurals.yml +4 -0
  27. data/resources/locales/es-419/rbnf.yml +1195 -0
  28. data/resources/locales/es-419/territories.yml +264 -0
  29. data/resources/locales/es-419/units.yml +108 -0
  30. data/spec/formatters/numbers/rbnf/locales/en-150/rbnf_test.yml +1291 -0
  31. data/spec/formatters/numbers/rbnf/locales/es-419/rbnf_test.yml +1642 -0
  32. metadata +28 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDU2MmRkOWM4ZGYzOWVhM2E1M2ZmNWE3ZGMwYWNmOGVjYT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2E4YmI=
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.0.6
2
+
3
+ * Add en-150 and es-419 locales.
4
+
1
5
  == 3.0.5
2
6
 
3
7
  * Fixed short numbers formatting for ru and other locales that use patterns
data/Rakefile CHANGED
@@ -63,7 +63,7 @@ end
63
63
 
64
64
  task :update do
65
65
  tasks = if RUBY_PLATFORM == 'java'
66
- # these should be run using JRuby 1.7 in 1.9 mode and CLDR v23 (v24 collation rules syntax is not supported yet)
66
+ # these should be run using JRuby 1.7 in 1.9 mode, ICU4J v51.2, and CLDR v23.1 (v24 collation rules syntax is not supported yet)
67
67
  [
68
68
  "update:tailoring_data", # per locale
69
69
  "update:collation_tries", # per locale, must come after update:tailoring_data
@@ -73,7 +73,7 @@ task :update do
73
73
  puts "You might also want to run this rake task using JRuby 1.7 (in 1.9 mode) to update collation data and RBNF tests."
74
74
 
75
75
  [
76
- "update:locales_resources", # per locale
76
+ "update:locales_resources", # per locale (+ units resources using different CLDR and ruby-cldr, see LocalesResourcesImporter)
77
77
  "update:unicode_data",
78
78
  "update:unicode_properties",
79
79
  "update:generate_casefolder", # must come after unicode data
@@ -96,7 +96,7 @@ end
96
96
  # TODO: 'add_locale' task that creates a new directory and runs all necessary 'update' tasks (+ suggests to run those that depend on JRuby)
97
97
 
98
98
  namespace :update do
99
- ICU_JAR = './vendor/icu4j-51_2.jar'
99
+ ICU_JAR = './vendor/icu4j-52_1.jar'
100
100
 
101
101
  desc 'Import locales resources'
102
102
  task :locales_resources, :cldr_path do |_, args|
@@ -9,6 +9,10 @@ module TwitterCldr
9
9
  CLDR_URL = 'http://unicode.org/Public/cldr/24/core.zip'
10
10
  ICU4J_URL = 'http://download.icu-project.org/files/icu4j/52.1/icu4j-52_1.jar'
11
11
 
12
+ # Use these instead to update collation and tailoring data
13
+ # CLDR_URL = 'http://unicode.org/Public/cldr/23.1/core.zip'
14
+ # ICU4J_URL = 'http://download.icu-project.org/files/icu4j/51.2/icu4j-51_2.jar'
15
+
12
16
  class << self
13
17
 
14
18
  def download_if_necessary(path, url)
@@ -4,5 +4,5 @@
4
4
  # http://www.apache.org/licenses/LICENSE-2.0
5
5
 
6
6
  module TwitterCldr
7
- VERSION = "3.0.5"
7
+ VERSION = "3.0.6"
8
8
  end
@@ -0,0 +1,4 @@
1
+ ---
2
+ :collator_options: {}
3
+ :tailored_table: ''
4
+ :suppressed_contractions: ''
@@ -0,0 +1,4 @@
1
+ ---
2
+ :collator_options: {}
3
+ :tailored_table: ''
4
+ :suppressed_contractions: ''
@@ -0,0 +1,208 @@
1
+ ---
2
+ :en-150:
3
+ :calendars:
4
+ :gregorian:
5
+ :additional_formats:
6
+ :EHm: "E HH:mm"
7
+ :EHms: "E HH:mm:ss"
8
+ :Ed: "d E"
9
+ :Ehm: "E h:mm a"
10
+ :Ehms: "E h:mm:ss a"
11
+ :Gy: "y G"
12
+ :GyMMM: "MMM y G"
13
+ :GyMMMEd: "E, MMM d, y G"
14
+ :GyMMMd: "MMM d, y G"
15
+ :H: "HH"
16
+ :Hm: "HH:mm"
17
+ :Hms: "HH:mm:ss"
18
+ :M: "L"
19
+ :MEd: "E d/M"
20
+ :MMM: "LLL"
21
+ :MMMEd: "E, MMM d"
22
+ :MMMd: "MMM d"
23
+ :Md: "d/M"
24
+ :d: "d"
25
+ :h: "h a"
26
+ :hm: "h:mm a"
27
+ :hms: "h:mm:ss a"
28
+ :ms: "mm:ss"
29
+ ? !ruby/symbol "y"
30
+ : "y"
31
+ :yM: "M/y"
32
+ :yMEd: "E, d/M/y"
33
+ :yMMM: "MMM y"
34
+ :yMMMEd: "E d MMM y"
35
+ :yMMMd: "MMM d, y"
36
+ :yMd: "d/M/y"
37
+ :yQQQ: "QQQ y"
38
+ :yQQQQ: "QQQQ y"
39
+ :days:
40
+ :format:
41
+ :abbreviated:
42
+ :fri: "Fri"
43
+ :mon: "Mon"
44
+ :sat: "Sat"
45
+ :sun: "Sun"
46
+ :thu: "Thu"
47
+ :tue: "Tue"
48
+ :wed: "Wed"
49
+ :narrow: :calendars.gregorian.days.stand-alone.narrow
50
+ :short:
51
+ :fri: "Fr"
52
+ :mon: "Mo"
53
+ :sat: "Sa"
54
+ :sun: "Su"
55
+ :thu: "Th"
56
+ :tue: "Tu"
57
+ :wed: "We"
58
+ :wide:
59
+ :fri: "Friday"
60
+ :mon: "Monday"
61
+ :sat: "Saturday"
62
+ :sun: "Sunday"
63
+ :thu: "Thursday"
64
+ :tue: "Tuesday"
65
+ :wed: "Wednesday"
66
+ :stand-alone:
67
+ :abbreviated: :calendars.gregorian.days.format.abbreviated
68
+ :narrow:
69
+ :fri: "F"
70
+ :mon: "M"
71
+ :sat: "S"
72
+ :sun: "S"
73
+ :thu: "T"
74
+ :tue: "T"
75
+ :wed: "W"
76
+ :short: :calendars.gregorian.days.format.short
77
+ :wide: :calendars.gregorian.days.format.wide
78
+ :eras:
79
+ :abbr:
80
+ 0: "BCE"
81
+ 1: "CE"
82
+ :name:
83
+ 0: "Before Common Era"
84
+ 1: "Common Era"
85
+ :narrow:
86
+ 0: "B"
87
+ 1: "A"
88
+ :fields:
89
+ :day: "Day"
90
+ :dayperiod: "AM/PM"
91
+ :era: "Era"
92
+ :hour: "Hour"
93
+ :minute: "Minute"
94
+ :month: "Month"
95
+ :second: "Second"
96
+ :week: "Week"
97
+ :weekday: "Day of the Week"
98
+ :year: "Year"
99
+ :zone: "Time Zone"
100
+ :formats:
101
+ :date:
102
+ :full:
103
+ :pattern: "EEEE d MMMM y"
104
+ :long:
105
+ :pattern: "d MMM y"
106
+ :medium:
107
+ :pattern: "dd MMM y"
108
+ :short:
109
+ :pattern: "dd/MM/yy"
110
+ :datetime:
111
+ :full:
112
+ :pattern: "{{date}} 'at' {{time}}"
113
+ :long:
114
+ :pattern: "{{date}} 'at' {{time}}"
115
+ :medium:
116
+ :pattern: "{{date}}, {{time}}"
117
+ :short:
118
+ :pattern: "{{date}}, {{time}}"
119
+ :time:
120
+ :full:
121
+ :pattern: "HH 'h' mm 'min' ss 's' zzzz"
122
+ :long:
123
+ :pattern: "HH:mm:ss z"
124
+ :medium:
125
+ :pattern: "HH:mm:ss"
126
+ :short:
127
+ :pattern: "HH:mm"
128
+ :months:
129
+ :format:
130
+ :abbreviated:
131
+ 1: "Jan"
132
+ 10: "Oct"
133
+ 11: "Nov"
134
+ 12: "Dec"
135
+ 2: "Feb"
136
+ 3: "Mar"
137
+ 4: "Apr"
138
+ 5: "May"
139
+ 6: "Jun"
140
+ 7: "Jul"
141
+ 8: "Aug"
142
+ 9: "Sep"
143
+ :narrow: :calendars.gregorian.months.stand-alone.narrow
144
+ :wide:
145
+ 1: "January"
146
+ 10: "October"
147
+ 11: "November"
148
+ 12: "December"
149
+ 2: "February"
150
+ 3: "March"
151
+ 4: "April"
152
+ 5: "May"
153
+ 6: "June"
154
+ 7: "July"
155
+ 8: "August"
156
+ 9: "September"
157
+ :stand-alone:
158
+ :abbreviated: :calendars.gregorian.months.format.abbreviated
159
+ :narrow:
160
+ 1: "J"
161
+ 10: "O"
162
+ 11: "N"
163
+ 12: "D"
164
+ 2: "F"
165
+ 3: "M"
166
+ 4: "A"
167
+ 5: "M"
168
+ 6: "J"
169
+ 7: "J"
170
+ 8: "A"
171
+ 9: "S"
172
+ :wide: :calendars.gregorian.months.format.wide
173
+ :periods:
174
+ :format:
175
+ :abbreviated: :calendars.gregorian.dayPeriods.format.wide
176
+ :narrow:
177
+ :am: "a"
178
+ :noon: "n"
179
+ :pm: "p"
180
+ :wide:
181
+ :am: "AM"
182
+ :noon: "noon"
183
+ :pm: "PM"
184
+ :variant:
185
+ :am: "a.m."
186
+ :pm: "p.m."
187
+ :stand-alone: {}
188
+ :quarters:
189
+ :format:
190
+ :abbreviated:
191
+ 1: "Q1"
192
+ 2: "Q2"
193
+ 3: "Q3"
194
+ 4: "Q4"
195
+ :narrow: :calendars.gregorian.quarters.stand-alone.narrow
196
+ :wide:
197
+ 1: "1st quarter"
198
+ 2: "2nd quarter"
199
+ 3: "3rd quarter"
200
+ 4: "4th quarter"
201
+ :stand-alone:
202
+ :abbreviated: :calendars.gregorian.quarters.format.abbreviated
203
+ :narrow:
204
+ 1: 1
205
+ 2: 2
206
+ 3: 3
207
+ 4: 4
208
+ :wide: :calendars.gregorian.quarters.format.wide