twitter_cldr 6.11.0 → 6.11.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,21 +62,21 @@
62
62
  :tue: ma
63
63
  :wed: me
64
64
  :narrow:
65
- :fri: F
66
- :mon: M
65
+ :fri: V
66
+ :mon: L
67
67
  :sat: S
68
- :sun: S
69
- :thu: T
70
- :tue: T
71
- :wed: W
68
+ :sun: D
69
+ :thu: Ĵ
70
+ :tue: M
71
+ :wed: M
72
72
  :short:
73
- :fri: Fri
74
- :mon: Mon
75
- :sat: Sat
76
- :sun: Sun
77
- :thu: Thu
78
- :tue: Tue
79
- :wed: Wed
73
+ :fri: ve
74
+ :mon: lu
75
+ :sat: sa
76
+ :sun: di
77
+ :thu: ĵa
78
+ :tue: ma
79
+ :wed: me
80
80
  :wide:
81
81
  :fri: vendredo
82
82
  :mon: lundo
@@ -87,13 +87,13 @@
87
87
  :wed: merkredo
88
88
  :stand-alone:
89
89
  :abbreviated:
90
- :fri: Fri
91
- :mon: Mon
92
- :sat: Sat
93
- :sun: Sun
94
- :thu: Thu
95
- :tue: Tue
96
- :wed: Wed
90
+ :fri: ve
91
+ :mon: lu
92
+ :sat: sa
93
+ :sun: di
94
+ :thu: ĵa
95
+ :tue: ma
96
+ :wed: me
97
97
  :narrow:
98
98
  :fri: V
99
99
  :mon: L
@@ -103,13 +103,13 @@
103
103
  :tue: M
104
104
  :wed: M
105
105
  :short:
106
- :fri: Fri
107
- :mon: Mon
108
- :sat: Sat
109
- :sun: Sun
110
- :thu: Thu
111
- :tue: Tue
112
- :wed: Wed
106
+ :fri: ve
107
+ :mon: lu
108
+ :sat: sa
109
+ :sun: di
110
+ :thu: ĵa
111
+ :tue: ma
112
+ :wed: me
113
113
  :wide:
114
114
  :fri: vendredo
115
115
  :mon: lundo
@@ -130,50 +130,50 @@
130
130
  1: KE
131
131
  :fields:
132
132
  :day: tago
133
- :day-narrow: Day
134
- :day-short: Day
133
+ :day-narrow: tago
134
+ :day-short: tago
135
135
  :dayOfYear: "Day Of Year"
136
136
  :dayOfYear-narrow: "Day Of Year"
137
137
  :dayOfYear-short: "Day Of Year"
138
138
  :dayperiod: atm/ptm
139
- :dayperiod-narrow: Dayperiod
140
- :dayperiod-short: Dayperiod
139
+ :dayperiod-narrow: atm/ptm
140
+ :dayperiod-short: atm/ptm
141
141
  :era: erao
142
- :era-narrow: Era
143
- :era-short: Era
142
+ :era-narrow: erao
143
+ :era-short: erao
144
144
  :hour: horo
145
145
  :hour-narrow: h
146
- :hour-short: Hour
146
+ :hour-short: horo
147
147
  :minute: minuto
148
148
  :minute-narrow: m
149
- :minute-short: Minute
149
+ :minute-short: minuto
150
150
  :month: monato
151
- :month-narrow: Month
152
- :month-short: Month
151
+ :month-narrow: monato
152
+ :month-short: monato
153
153
  :quarter: kvaronjaro
154
- :quarter-narrow: Quarter
155
- :quarter-short: Quarter
154
+ :quarter-narrow: kvaronjaro
155
+ :quarter-short: kvaronjaro
156
156
  :second: sekundo
157
157
  :second-narrow: s
158
- :second-short: Second
158
+ :second-short: sekundo
159
159
  :week: semajno
160
- :week-narrow: Week
161
- :week-short: Week
160
+ :week-narrow: semajno
161
+ :week-short: semajno
162
162
  :weekOfMonth: "Week Of Month"
163
163
  :weekOfMonth-narrow: "Week Of Month"
164
164
  :weekOfMonth-short: "Week Of Month"
165
165
  :weekday: "tago de la semajno"
166
- :weekday-narrow: "Day of the Week"
167
- :weekday-short: "Day of the Week"
166
+ :weekday-narrow: "tago de la semajno"
167
+ :weekday-short: "tago de la semajno"
168
168
  :weekdayOfMonth: "Weekday Of Month"
169
169
  :weekdayOfMonth-narrow: "Weekday Of Month"
170
170
  :weekdayOfMonth-short: "Weekday Of Month"
171
171
  :year: jaro
172
- :year-narrow: Year
173
- :year-short: Year
172
+ :year-narrow: jaro
173
+ :year-short: jaro
174
174
  :zone: horzono
175
- :zone-narrow: Zone
176
- :zone-short: Zone
175
+ :zone-narrow: horzono
176
+ :zone-short: horzono
177
177
  :formats:
178
178
  :date:
179
179
  :full:
@@ -218,18 +218,18 @@
218
218
  8: aŭg
219
219
  9: sep
220
220
  :narrow:
221
- 1: "1"
222
- 10: "10"
223
- 11: "11"
224
- 12: "12"
225
- 2: "2"
226
- 3: "3"
227
- 4: "4"
228
- 5: "5"
229
- 6: "6"
230
- 7: "7"
231
- 8: "8"
232
- 9: "9"
221
+ 1: J
222
+ 10: O
223
+ 11: "N"
224
+ 12: D
225
+ 2: F
226
+ 3: M
227
+ 4: A
228
+ 5: M
229
+ 6: J
230
+ 7: J
231
+ 8: A
232
+ 9: S
233
233
  :wide:
234
234
  1: januaro
235
235
  10: oktobro
@@ -245,18 +245,18 @@
245
245
  9: septembro
246
246
  :stand-alone:
247
247
  :abbreviated:
248
- 1: M01
249
- 10: M10
250
- 11: M11
251
- 12: M12
252
- 2: M02
253
- 3: M03
254
- 4: M04
255
- 5: M05
256
- 6: M06
257
- 7: M07
258
- 8: M08
259
- 9: M09
248
+ 1: jan
249
+ 10: okt
250
+ 11: nov
251
+ 12: dec
252
+ 2: feb
253
+ 3: mar
254
+ 4: apr
255
+ 5: maj
256
+ 6: jun
257
+ 7: jul
258
+ 8: aŭg
259
+ 9: sep
260
260
  :narrow:
261
261
  1: J
262
262
  10: O
@@ -296,14 +296,14 @@
296
296
  :pm: ptm
297
297
  :stand-alone:
298
298
  :abbreviated:
299
- :am: AM
300
- :pm: PM
299
+ :am: atm
300
+ :pm: ptm
301
301
  :narrow:
302
- :am: AM
303
- :pm: PM
302
+ :am: atm
303
+ :pm: ptm
304
304
  :wide:
305
- :am: AM
306
- :pm: PM
305
+ :am: atm
306
+ :pm: ptm
307
307
  :quarters:
308
308
  :format:
309
309
  :abbreviated:
@@ -323,10 +323,10 @@
323
323
  4: "4-a kvaronjaro"
324
324
  :stand-alone:
325
325
  :abbreviated:
326
- 1: Q1
327
- 2: Q2
328
- 3: Q3
329
- 4: Q4
326
+ 1: K1
327
+ 2: K2
328
+ 3: K3
329
+ 4: K4
330
330
  :narrow:
331
331
  1: "1"
332
332
  2: "2"
@@ -289,15 +289,15 @@
289
289
  :am: r.n.
290
290
  :pm: i.n.
291
291
  :narrow:
292
- :am: AM
293
- :pm: PM
292
+ :am: r.n.
293
+ :pm: i.n.
294
294
  :wide:
295
295
  :am: r.n.
296
296
  :pm: i.n.
297
297
  :stand-alone:
298
298
  :abbreviated:
299
- :am: AM
300
- :pm: PM
299
+ :am: r.n.
300
+ :pm: i.n.
301
301
  :narrow:
302
302
  :am: r.n.
303
303
  :pm: i.n.
@@ -75,13 +75,13 @@
75
75
  :tue: T
76
76
  :wed: Q
77
77
  :short:
78
- :fri: Fri
79
- :mon: Mon
80
- :sat: Sat
81
- :sun: Sun
82
- :thu: Thu
83
- :tue: Tue
84
- :wed: Wed
78
+ :fri: sex.
79
+ :mon: seg.
80
+ :sat: sáb.
81
+ :sun: dom.
82
+ :thu: qui.
83
+ :tue: ter.
84
+ :wed: qua.
85
85
  :wide:
86
86
  :fri: sexta-feira
87
87
  :mon: segunda-feira
@@ -92,13 +92,13 @@
92
92
  :wed: quarta-feira
93
93
  :stand-alone:
94
94
  :abbreviated:
95
- :fri: Fri
96
- :mon: Mon
97
- :sat: Sat
98
- :sun: Sun
99
- :thu: Thu
100
- :tue: Tue
101
- :wed: Wed
95
+ :fri: sex.
96
+ :mon: seg.
97
+ :sat: sáb.
98
+ :sun: dom.
99
+ :thu: qui.
100
+ :tue: ter.
101
+ :wed: qua.
102
102
  :narrow:
103
103
  :fri: S
104
104
  :mon: S
@@ -108,13 +108,13 @@
108
108
  :tue: T
109
109
  :wed: Q
110
110
  :short:
111
- :fri: Fri
112
- :mon: Mon
113
- :sat: Sat
114
- :sun: Sun
115
- :thu: Thu
116
- :tue: Tue
117
- :wed: Wed
111
+ :fri: sex.
112
+ :mon: seg.
113
+ :sat: sáb.
114
+ :sun: dom.
115
+ :thu: qui.
116
+ :tue: ter.
117
+ :wed: qua.
118
118
  :wide:
119
119
  :fri: sexta-feira
120
120
  :mon: segunda-feira
@@ -250,18 +250,18 @@
250
250
  9: setembro
251
251
  :stand-alone:
252
252
  :abbreviated:
253
- 1: M01
254
- 10: M10
255
- 11: M11
256
- 12: M12
257
- 2: M02
258
- 3: M03
259
- 4: M04
260
- 5: M05
261
- 6: M06
262
- 7: M07
263
- 8: M08
264
- 9: M09
253
+ 1: jan.
254
+ 10: out.
255
+ 11: nov.
256
+ 12: dez.
257
+ 2: fev.
258
+ 3: mar.
259
+ 4: abr.
260
+ 5: mai.
261
+ 6: jun.
262
+ 7: jul.
263
+ 8: ago.
264
+ 9: set.
265
265
  :narrow:
266
266
  1: J
267
267
  10: O
@@ -109,13 +109,13 @@
109
109
  :tue: T
110
110
  :wed: Q
111
111
  :short:
112
- :fri: Fri
113
- :mon: Mon
114
- :sat: Sat
115
- :sun: Sun
116
- :thu: Thu
117
- :tue: Tue
118
- :wed: Wed
112
+ :fri: sex.
113
+ :mon: seg.
114
+ :sat: sáb.
115
+ :sun: dom.
116
+ :thu: qui.
117
+ :tue: ter.
118
+ :wed: qua.
119
119
  :wide:
120
120
  :fri: sexta-feira
121
121
  :mon: segunda-feira
@@ -251,18 +251,18 @@
251
251
  9: setembro
252
252
  :stand-alone:
253
253
  :abbreviated:
254
- 1: M01
255
- 10: M10
256
- 11: M11
257
- 12: M12
258
- 2: M02
259
- 3: M03
260
- 4: M04
261
- 5: M05
262
- 6: M06
263
- 7: M07
264
- 8: M08
265
- 9: M09
254
+ 1: jan.
255
+ 10: out.
256
+ 11: nov.
257
+ 12: dez.
258
+ 2: fev.
259
+ 3: mar.
260
+ 4: abr.
261
+ 5: mai.
262
+ 6: jun.
263
+ 7: jul.
264
+ 8: ago.
265
+ 9: set.
266
266
  :narrow:
267
267
  1: J
268
268
  10: O
@@ -64,13 +64,13 @@
64
64
  :tue: вт
65
65
  :wed: ср
66
66
  :narrow:
67
- :fri: F
68
- :mon: M
69
- :sat: S
70
- :sun: S
71
- :thu: T
72
- :tue: T
73
- :wed: W
67
+ :fri: П
68
+ :mon: П
69
+ :sat: С
70
+ :sun: В
71
+ :thu: Ч
72
+ :tue: В
73
+ :wed: С
74
74
  :short:
75
75
  :fri: пт
76
76
  :mon: пн
@@ -70,13 +70,13 @@
70
70
  :tue: T
71
71
  :wed: W
72
72
  :short:
73
- :fri: Fri
74
- :mon: Mon
75
- :sat: Sat
76
- :sun: Sun
77
- :thu: Thu
78
- :tue: Tue
79
- :wed: Wed
73
+ :fri: Hla
74
+ :mon: Mvu
75
+ :sat: Mgq
76
+ :sun: Caw
77
+ :thu: Sin
78
+ :tue: Bin
79
+ :wed: Tha
80
80
  :wide:
81
81
  :fri: Lwesihlanu
82
82
  :mon: Mvulo
@@ -103,13 +103,13 @@
103
103
  :tue: T
104
104
  :wed: W
105
105
  :short:
106
- :fri: Fri
107
- :mon: Mon
108
- :sat: Sat
109
- :sun: Sun
110
- :thu: Thu
111
- :tue: Tue
112
- :wed: Wed
106
+ :fri: Hla
107
+ :mon: Mvu
108
+ :sat: Mgq
109
+ :sun: Caw
110
+ :thu: Sin
111
+ :tue: Bin
112
+ :wed: Tha
113
113
  :wide:
114
114
  :fri: Lwesihlanu
115
115
  :mon: Mvulo
@@ -352,10 +352,10 @@
352
352
  :quarters:
353
353
  :format:
354
354
  :abbreviated:
355
- 1: Q1
356
- 2: Q2
357
- 3: Q3
358
- 4: Q4
355
+ 1: 第1季
356
+ 2: 第2季
357
+ 3: 第3季
358
+ 4: 第4季
359
359
  :narrow:
360
360
  1: "1"
361
361
  2: "2"
@@ -167,7 +167,7 @@
167
167
  :weekday-short: "Usuku evikini"
168
168
  :weekdayOfMonth: "usuku lwenyanga"
169
169
  :weekdayOfMonth-narrow: "usuku lwenyanga"
170
- :weekdayOfMonth-short: "Weekday Of Month"
170
+ :weekdayOfMonth-short: "usuku lwenyanga"
171
171
  :year: Unyaka
172
172
  :year-narrow: Unyaka
173
173
  :year-short: Unyaka
@@ -13,6 +13,7 @@ describe TwitterCldr::Shared::Calendar do
13
13
  # clear cache for each test
14
14
  described_class.send(:class_variable_set, :@@calendar_cache, {})
15
15
  described_class.send(:class_variable_set, :@@field_cache, {})
16
+ described_class.send(:class_variable_set, :@@day_periods_cache, {})
16
17
  end
17
18
 
18
19
  before(:each) { clear_cache }
@@ -62,6 +63,22 @@ describe TwitterCldr::Shared::Calendar do
62
63
  it 'returns nil if invalid names form is passed' do
63
64
  expect(calendar.months(:wat)).to eq(nil)
64
65
  end
66
+
67
+ context 'with English locale' do
68
+ let(:calendar) { described_class.new(:en) }
69
+
70
+ it 'supports wide names form' do
71
+ expect(calendar.months(:wide)).to eq(%w[January February March April May June July August September October November December])
72
+ end
73
+
74
+ it 'supports narrow names form' do
75
+ expect(calendar.months(:narrow)).to eq(%w[J F M A M J J A S O N D])
76
+ end
77
+
78
+ it 'supports abbreviated names form' do
79
+ expect(calendar.months(:abbreviated)).to eq(%w[Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec])
80
+ end
81
+ end
65
82
  end
66
83
 
67
84
  context 'when some data is missing' do
@@ -23,7 +23,7 @@ describe TwitterCldr::Shared::Currencies do
23
23
  data = described_class.for_code("PEN")
24
24
  expect(data).to be_a(Hash)
25
25
  expect(data).to include(
26
- name: "Peruvian sol",
26
+ name: "Peruvian Sol",
27
27
  currency: :PEN,
28
28
  symbol: "S/.",
29
29
  cldr_symbol: "PEN"
@@ -34,7 +34,7 @@ describe TwitterCldr::Shared::Currencies do
34
34
  data = described_class.for_code("CAD")
35
35
  expect(data).to be_a(Hash)
36
36
  expect(data).to include(
37
- name: "Canadian dollar",
37
+ name: "Canadian Dollar",
38
38
  currency: :CAD,
39
39
  symbol: "$",
40
40
  cldr_symbol: "CA$"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_cldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.11.0
4
+ version: 6.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-29 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camertron-eprun
@@ -3987,7 +3987,7 @@ homepage: https://twitter.com
3987
3987
  licenses:
3988
3988
  - Apache-2.0
3989
3989
  metadata: {}
3990
- post_install_message:
3990
+ post_install_message:
3991
3991
  rdoc_options: []
3992
3992
  require_paths:
3993
3993
  - lib
@@ -4002,9 +4002,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4002
4002
  - !ruby/object:Gem::Version
4003
4003
  version: '0'
4004
4004
  requirements: []
4005
- rubyforge_project:
4006
- rubygems_version: 2.7.6.3
4007
- signing_key:
4005
+ rubygems_version: 3.3.3
4006
+ signing_key:
4008
4007
  specification_version: 4
4009
4008
  summary: Ruby implementation of the ICU (International Components for Unicode) that
4010
4009
  uses the Common Locale Data Repository to format dates, plurals, and more.