icu4x 0.6.2-aarch64-linux → 0.8.0-aarch64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1762aff3510af0a3e76a7862852ca9a60e0c2c31944565f919b9f92fc194b33e
4
- data.tar.gz: 6a21401383c1b9afcbd1b2af39a041385b146a27e2ab196fb81c944ff74e940f
3
+ metadata.gz: 1e3c42e3a03667faafa90e8318c9ef2b29d34acd095354a2db877b9c2461e978
4
+ data.tar.gz: 11b5b08dbec23a67d60872e2b26a57000fbaf11c6f056fbf1bd6ed0a6a57ba89
5
5
  SHA512:
6
- metadata.gz: 9a9156462d13aa5a57c78c97f35a6b7fce237a561734d1f100472ceb9bed4d7ae12b5302974fd470c9c2bd9c06053855d1c51f3af194cdca73414095226c2ca0
7
- data.tar.gz: d997d4366e2a8cd59a306c8959663b25d168a862f647e95d092c4a143d68c6ff9a26e2c7927e55481ca88bd3f69746528007f98c1dcf3a9d0c7095dcfc075a39
6
+ metadata.gz: 64f67fec759e509bff9aae5788c0646a55b04f5c98b3bb2e1c76331905aa02de5a93f5911eb133d318508f4f8eaeba79b3e6777b615c267695e0ae484d3beef5
7
+ data.tar.gz: 4ee0fff6478384556c70a395dc5e8cc823366e196adb5b6396ffc5a8d81dd820a8befaca480346fddc1b6fd36984f9dc354a43a3cbb907f7da3df03f59ef5fd9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.8.0] - 2026-01-10
4
+
5
+ ### Added
6
+
7
+ - `ICU4X::Locale#maximize!` and `#maximize` methods to expand locale using Likely Subtags algorithm (UTS #35)
8
+ - `ICU4X::Locale#minimize!` and `#minimize` methods to remove redundant subtags
9
+
10
+ ## [0.7.0] - 2026-01-09
11
+
12
+ ### Added
13
+
14
+ - `DateTimeFormat#format` now accepts any object responding to `#to_time` (e.g., `Date`, `DateTime`)
15
+
3
16
  ## [0.6.2] - 2026-01-02
4
17
 
5
18
  ### Fixed
Binary file
Binary file
Binary file
data/lib/icu4x/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ICU4X
4
- VERSION = "0.6.2"
4
+ VERSION = "0.8.0"
5
5
  public_constant :VERSION
6
6
  end
@@ -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.
@@ -441,7 +509,7 @@
441
509
  #
442
510
  # # Formats a time value according to the configured options.
443
511
  # #
444
- # # @param time [Time] the time to format
512
+ # # @param time [Time, #to_time] the time to format (or any object responding to #to_time)
445
513
  # # @return [String] the formatted date/time string
446
514
  # #
447
515
  # def format(time); end
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.6.2
4
+ version: 0.8.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - OZAWA Sakuro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-02 00:00:00.000000000 Z
11
+ date: 2026-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -24,7 +24,10 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
- description: icu4x
27
+ description: |-
28
+ ICU4X provides Ruby bindings for the ICU4X library, offering Unicode
29
+ internationalization support including locale handling, number formatting,
30
+ date/time formatting, collation, segmentation, and more.
28
31
  email:
29
32
  - 10973+sakuro@users.noreply.github.com
30
33
  executables: []
@@ -72,5 +75,5 @@ requirements: []
72
75
  rubygems_version: 3.5.23
73
76
  signing_key:
74
77
  specification_version: 4
75
- summary: icu4x
78
+ summary: Ruby bindings for ICU4X Unicode internationalization library
76
79
  test_files: []