icu4x 0.11.1 → 0.11.2

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: 2a9b92ba2bef768b4da3a975755d109a354aed39ad1d128f05674f8f77d45097
4
- data.tar.gz: 5790ce584155993b7c271e0b0bde6408b822dccf5ddc4d4578e9af42758a2d12
3
+ metadata.gz: 92daa8435d68948c86d3203cf5264b5487ce22fe768e36b1fca7e50a9bb996cf
4
+ data.tar.gz: 57de206ee12dc86ddabbaf8eac52b91904a2df596f3e11a618ddf451ab987125
5
5
  SHA512:
6
- metadata.gz: 8ace4ac40bb1c3483db5722350c6fdc4b2fe2083f9c7cc0779cefa5b3cffefb09b0222cca135fd2d8033eae5f89f32a4ec5f58e6e2c630f2ad52d68da950350c
7
- data.tar.gz: 624ff5eda0acb17b07196513dbff1d62e89a130e6109abe07c36990cedcc947c5004f9da5a115da99af8b2f157d1bf8d22caa9616e147018d3154710a37cbfd5
6
+ metadata.gz: 5da95f0c0491a3ed53d1d6a52b21acdbd0c0f4a6c6771bf8fcccf64edce6b44c81e636a49baa9b086b0c364c01c39653b4e0fc4aa3b2f8158b77dabab50a3a27
7
+ data.tar.gz: 9e75af1a9e8456ae07a4e0fc368733bf0b91d1bfde2aebc1eb0cecc2bac816f5926979b97ae82ee66b2eeaf41dbf2b3e70b75da8ecf067d5dce2b268c3b974a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.11.2] - 2026-05-18
4
+
5
+ ### Fixed
6
+
7
+ - Fix `time_style: :short` being ignored when combined with `date_style` (#162)
8
+
3
9
  ## [0.11.1] - 2026-05-18
4
10
 
5
11
  ### Fixed
data/Cargo.lock CHANGED
@@ -405,7 +405,7 @@ dependencies = [
405
405
 
406
406
  [[package]]
407
407
  name = "icu4x"
408
- version = "0.11.1"
408
+ version = "0.11.2"
409
409
  dependencies = [
410
410
  "fixed_decimal",
411
411
  "icu",
@@ -425,7 +425,7 @@ dependencies = [
425
425
 
426
426
  [[package]]
427
427
  name = "icu4x_macros"
428
- version = "0.11.1"
428
+ version = "0.11.2"
429
429
  dependencies = [
430
430
  "proc-macro2",
431
431
  "quote",
data/ext/icu4x/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "icu4x"
3
- version = "0.11.1"
3
+ version = "0.11.2"
4
4
  edition = "2024"
5
5
  publish = false
6
6
 
@@ -599,11 +599,17 @@ impl DateTimeFormat {
599
599
  ) -> CompositeFieldSet {
600
600
  match (date_style, time_style) {
601
601
  (Some(ds), Some(ts)) => {
602
- // Both date and time
603
- let ymdt = match (ds, ts) {
604
- (DateStyle::Full, _) | (DateStyle::Long, _) => fieldsets::YMDT::long(),
605
- (DateStyle::Medium, _) => fieldsets::YMDT::medium(),
606
- (DateStyle::Short, _) => fieldsets::YMDT::short(),
602
+ // Both date and time; date_style determines length
603
+ let ymdt = match ds {
604
+ DateStyle::Full | DateStyle::Long => fieldsets::YMDT::long(),
605
+ DateStyle::Medium => fieldsets::YMDT::medium(),
606
+ DateStyle::Short => fieldsets::YMDT::short(),
607
+ };
608
+ // short time_style suppresses seconds to match Intl.DateTimeFormat behavior
609
+ let ymdt = if ts == TimeStyle::Short {
610
+ ymdt.with_time_precision(TimePrecision::Minute)
611
+ } else {
612
+ ymdt
607
613
  };
608
614
  let ymdt = if let Some(s) = era { ymdt.with_year_style(s.to_icu_year_style()) } else { ymdt };
609
615
  CompositeDateTimeFieldSet::DateTime(DateAndTimeFieldSet::YMDT(ymdt))
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "icu4x_macros"
3
- version = "0.11.1"
3
+ version = "0.11.2"
4
4
  edition = "2024"
5
5
 
6
6
  [lib]
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.11.1"
4
+ VERSION = "0.11.2"
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icu4x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro