icu4x 0.7.0-arm64-darwin → 0.8.1-arm64-darwin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/icu4x/3.2/icu4x.bundle +0 -0
- data/lib/icu4x/3.3/icu4x.bundle +0 -0
- data/lib/icu4x/3.4/icu4x.bundle +0 -0
- data/lib/icu4x/4.0/icu4x.bundle +0 -0
- data/lib/icu4x/version.rb +1 -1
- data/lib/icu4x/yard_docs.rb +68 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da721ee4b8a8263580b6b122a66ed2b7c8496c2543dc5f8103cbaf311f6c7019
|
|
4
|
+
data.tar.gz: 3dc8cbe83a16cfa33788e54303e05aaadfbe164eb014282bab182cba49bb2be0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 915ae142ec3122af66a975ab6c581ed98b6a775d8e84378289c2bb55aa27a67f38b6f42b8609602b6d2370322ff44c283810513828f8c8633e1a9751f4717616
|
|
7
|
+
data.tar.gz: f8b57aee72e4e2b1c8397ad65530bfff9d5d73c6b0e75dad7bd878109d47bd3b2907330db34dfe4a11b43c58826c869d38d5fea76d845b37d8692e9049dccb89
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.8.1] - 2026-01-12
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add Ruby 4.0 prebuilt binary support (#101)
|
|
8
|
+
|
|
9
|
+
## [0.8.0] - 2026-01-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `ICU4X::Locale#maximize!` and `#maximize` methods to expand locale using Likely Subtags algorithm (UTS #35)
|
|
14
|
+
- `ICU4X::Locale#minimize!` and `#minimize` methods to remove redundant subtags
|
|
15
|
+
|
|
3
16
|
## [0.7.0] - 2026-01-09
|
|
4
17
|
|
|
5
18
|
### Added
|
data/lib/icu4x/3.2/icu4x.bundle
CHANGED
|
Binary file
|
data/lib/icu4x/3.3/icu4x.bundle
CHANGED
|
Binary file
|
data/lib/icu4x/3.4/icu4x.bundle
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/icu4x/version.rb
CHANGED
data/lib/icu4x/yard_docs.rb
CHANGED
|
@@ -274,6 +274,74 @@
|
|
|
274
274
|
# # @return [Integer] hash code
|
|
275
275
|
# #
|
|
276
276
|
# def hash; end
|
|
277
|
+
#
|
|
278
|
+
# # Maximizes the locale in place using the Add Likely Subtags algorithm (UTS #35).
|
|
279
|
+
# #
|
|
280
|
+
# # Adds likely script and region subtags based on the language.
|
|
281
|
+
# # This is useful for language negotiation.
|
|
282
|
+
# #
|
|
283
|
+
# # @return [self, nil] self if the locale was modified, nil if already maximized
|
|
284
|
+
# #
|
|
285
|
+
# # @example
|
|
286
|
+
# # locale = ICU4X::Locale.parse("en")
|
|
287
|
+
# # locale.maximize! #=> locale
|
|
288
|
+
# # locale.to_s #=> "en-Latn-US"
|
|
289
|
+
# #
|
|
290
|
+
# # @example Already maximized
|
|
291
|
+
# # locale = ICU4X::Locale.parse("en-Latn-US")
|
|
292
|
+
# # locale.maximize! #=> nil
|
|
293
|
+
# #
|
|
294
|
+
# # @see https://unicode.org/reports/tr35/#Likely_Subtags
|
|
295
|
+
# #
|
|
296
|
+
# def maximize!; end
|
|
297
|
+
#
|
|
298
|
+
# # Returns a new locale with likely subtags added.
|
|
299
|
+
# #
|
|
300
|
+
# # Non-destructive version of {#maximize!}. The original locale is unchanged.
|
|
301
|
+
# #
|
|
302
|
+
# # @return [Locale] a new locale with likely subtags added
|
|
303
|
+
# #
|
|
304
|
+
# # @example
|
|
305
|
+
# # locale = ICU4X::Locale.parse("zh")
|
|
306
|
+
# # expanded = locale.maximize
|
|
307
|
+
# # locale.to_s #=> "zh" (unchanged)
|
|
308
|
+
# # expanded.to_s #=> "zh-Hans-CN"
|
|
309
|
+
# #
|
|
310
|
+
# def maximize; end
|
|
311
|
+
#
|
|
312
|
+
# # Minimizes the locale in place using the Remove Likely Subtags algorithm (UTS #35).
|
|
313
|
+
# #
|
|
314
|
+
# # Removes redundant script and region subtags that can be inferred.
|
|
315
|
+
# # This is useful for language negotiation.
|
|
316
|
+
# #
|
|
317
|
+
# # @return [self, nil] self if the locale was modified, nil if already minimal
|
|
318
|
+
# #
|
|
319
|
+
# # @example
|
|
320
|
+
# # locale = ICU4X::Locale.parse("ja-Jpan-JP")
|
|
321
|
+
# # locale.minimize! #=> locale
|
|
322
|
+
# # locale.to_s #=> "ja"
|
|
323
|
+
# #
|
|
324
|
+
# # @example Already minimal
|
|
325
|
+
# # locale = ICU4X::Locale.parse("en")
|
|
326
|
+
# # locale.minimize! #=> nil
|
|
327
|
+
# #
|
|
328
|
+
# # @see https://unicode.org/reports/tr35/#Likely_Subtags
|
|
329
|
+
# #
|
|
330
|
+
# def minimize!; end
|
|
331
|
+
#
|
|
332
|
+
# # Returns a new locale with redundant subtags removed.
|
|
333
|
+
# #
|
|
334
|
+
# # Non-destructive version of {#minimize!}. The original locale is unchanged.
|
|
335
|
+
# #
|
|
336
|
+
# # @return [Locale] a new locale with redundant subtags removed
|
|
337
|
+
# #
|
|
338
|
+
# # @example
|
|
339
|
+
# # locale = ICU4X::Locale.parse("zh-Hans-CN")
|
|
340
|
+
# # minimal = locale.minimize
|
|
341
|
+
# # locale.to_s #=> "zh-Hans-CN" (unchanged)
|
|
342
|
+
# # minimal.to_s #=> "zh"
|
|
343
|
+
# #
|
|
344
|
+
# def minimize; end
|
|
277
345
|
# end
|
|
278
346
|
#
|
|
279
347
|
# # Provides locale-aware plural rules for cardinal and ordinal numbers.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: icu4x
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
platform: arm64-darwin
|
|
6
6
|
authors:
|
|
7
7
|
- OZAWA Sakuro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-configurable
|
|
@@ -41,6 +41,7 @@ files:
|
|
|
41
41
|
- lib/icu4x/3.2/icu4x.bundle
|
|
42
42
|
- lib/icu4x/3.3/icu4x.bundle
|
|
43
43
|
- lib/icu4x/3.4/icu4x.bundle
|
|
44
|
+
- lib/icu4x/4.0/icu4x.bundle
|
|
44
45
|
- lib/icu4x/data_gem_task.rb
|
|
45
46
|
- lib/icu4x/rake_task.rb
|
|
46
47
|
- lib/icu4x/version.rb
|
|
@@ -65,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
65
66
|
version: '3.2'
|
|
66
67
|
- - "<"
|
|
67
68
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
69
|
+
version: 4.1.dev
|
|
69
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
71
|
requirements:
|
|
71
72
|
- - ">="
|