human_number 0.2.0 → 0.2.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: 93e874d0c4c80b94891c99059eea6c14bc1d6f9d3931c6d589559f6282b2b835
4
- data.tar.gz: 4eb1a4bc258bb90a25d4ebb908c115cf2aa2ecca7878cf3faacc028d3e418432
3
+ metadata.gz: b4eb7011e24d691c88bdf4aa042da845c6e2b711c36548afcb5971588a43b5ca
4
+ data.tar.gz: 0aad7570ff87099646d35cf902ba8efbb4c4aa29874e4d07019da6d8cd291436
5
5
  SHA512:
6
- metadata.gz: 1102a52bea931b847a7886904e05497cbab49d4d770fefd9bb0d6b1d6f9538283e0b8a7e99e363a2e76b48d8af40022b56b5791d160e9943ca98df9b6fca355c
7
- data.tar.gz: 5dbffd0891fc1945b8a20b2ed569671aa8836c78a1026711b667a2ab0adebb0d798ec89e8e9f1895da98dd704290a3575454fbc34359db36c1549cd7131b529d
6
+ metadata.gz: cb094ac18860f562f1d63b20c4978bcb217474d583616760ac4746b9aa5a21f7f9fd2e121084fdee7d3330c49f83f89649cbb3d6f80415c0cef558d731bbecf4
7
+ data.tar.gz: d0b2c603911f0c58f33ebe7a220d42f874d04b4a62c51e6e1d71824287ea65351d0abb02ce46d5db3c7ac645a620366c96410156d42a1e0cfed511c29f914577
data/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.1] - 2025-08-25
9
+
10
+ ### Fixed
11
+ - `abbr_units: false` displaying fallback `TEN_THOUSAND` instead of proper locale text
12
+ - KRW currency formatting now correctly shows `"123.5만원"` instead of `"150TEN_THOUSAND원"`
13
+ - Added missing `units` sections to locale files for East Asian and Indian systems
14
+
8
15
  ## [0.2.0] - 2025-08-25
9
16
 
10
17
  ### Added
@@ -55,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55
62
  - 14 custom locale files with rails-i18n integration
56
63
  - Thread-safe implementation
57
64
 
65
+ [0.2.1]: https://github.com/ether-moon/human_number/releases/tag/v0.2.1
58
66
  [0.2.0]: https://github.com/ether-moon/human_number/releases/tag/v0.2.0
59
67
  [0.1.10]: https://github.com/ether-moon/human_number/releases/tag/v0.1.10
60
68
  [0.1.9]: https://github.com/ether-moon/human_number/releases/tag/v0.1.9
@@ -55,7 +55,7 @@ module HumanNumber
55
55
  currency_options[:locale] = precision_locale
56
56
  currency_options[:format] = "%n" # Always format as just the number (no currency symbol)
57
57
 
58
- number_to_currency(number, **currency_options) || NumberSystem::ZERO_STRING
58
+ number_to_currency(number, **currency_options) || ZERO_STRING
59
59
  end
60
60
 
61
61
  # Default options for human number formatting
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HumanNumber
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
data/lib/locales/bn.yml CHANGED
@@ -5,4 +5,7 @@ bn:
5
5
  abbr_units:
6
6
  thousand: "হাজার" # hazar
7
7
  lakh: "লক্ষ" # lakh
8
- crore: "কোটি" # koti
8
+ crore: "কোটি" # koti
9
+ units:
10
+ lakh: "লক্ষ"
11
+ crore: "কোটি"
@@ -5,4 +5,7 @@ en-IN:
5
5
  abbr_units:
6
6
  thousand: "K"
7
7
  lakh: "L" # lakh (100,000)
8
- crore: "Cr" # crore (10,000,000)
8
+ crore: "Cr" # crore (10,000,000)
9
+ units:
10
+ lakh: "lakh"
11
+ crore: "crore"
data/lib/locales/en.yml CHANGED
@@ -7,4 +7,4 @@ en:
7
7
  thousand: "K"
8
8
  million: "M"
9
9
  billion: "B"
10
- trillion: "T"
10
+ trillion: "T"
data/lib/locales/es.yml CHANGED
@@ -5,5 +5,5 @@ es:
5
5
  abbr_units:
6
6
  thousand: "K"
7
7
  million: "M"
8
- billion: "B"
9
- trillion: "T"
8
+ billion: "B"
9
+ trillion: "T"
data/lib/locales/fr.yml CHANGED
@@ -6,4 +6,4 @@ fr:
6
6
  thousand: "k"
7
7
  million: "M"
8
8
  billion: "G" # milliard in French
9
- trillion: "T"
9
+ trillion: "T"
data/lib/locales/hi.yml CHANGED
@@ -5,4 +5,7 @@ hi:
5
5
  abbr_units:
6
6
  thousand: "हज़ार" # hazaar
7
7
  lakh: "लाख" # lakh (100,000)
8
- crore: "करोड़" # crore (10,000,000)
8
+ crore: "करोड़" # crore (10,000,000)
9
+ units:
10
+ lakh: "लाख"
11
+ crore: "करोड़"
data/lib/locales/ja.yml CHANGED
@@ -14,3 +14,6 @@ ja:
14
14
  ten_thousand: "万"
15
15
  hundred_million: "億"
16
16
  trillion: "兆"
17
+ units:
18
+ ten_thousand: "万"
19
+ hundred_million: "億"
data/lib/locales/ko.yml CHANGED
@@ -13,3 +13,6 @@ ko:
13
13
  ten_thousand: "만"
14
14
  hundred_million: "억"
15
15
  trillion: "조"
16
+ units:
17
+ ten_thousand: "만"
18
+ hundred_million: "억"
data/lib/locales/ur.yml CHANGED
@@ -5,4 +5,7 @@ ur:
5
5
  abbr_units:
6
6
  thousand: "ہزار"
7
7
  lakh: "لاکھ"
8
- crore: "کروڑ"
8
+ crore: "کروڑ"
9
+ units:
10
+ lakh: "لاکھ"
11
+ crore: "کروڑ"
@@ -6,4 +6,7 @@ zh-CN:
6
6
  thousand: "千"
7
7
  ten_thousand: "万"
8
8
  hundred_million: "亿" # Simplified Chinese
9
- trillion: "兆"
9
+ trillion: "兆"
10
+ units:
11
+ ten_thousand: "万"
12
+ hundred_million: "亿"
@@ -6,4 +6,7 @@ zh-TW:
6
6
  thousand: "千"
7
7
  ten_thousand: "萬" # Traditional Chinese
8
8
  hundred_million: "億" # Traditional Chinese
9
- trillion: "兆"
9
+ trillion: "兆"
10
+ units:
11
+ ten_thousand: "萬"
12
+ hundred_million: "億"
data/lib/locales/zh.yml CHANGED
@@ -10,3 +10,6 @@ zh:
10
10
  ten_thousand: "万"
11
11
  hundred_million: "亿" # Simplified Chinese
12
12
  trillion: "兆"
13
+ units:
14
+ ten_thousand: "万"
15
+ hundred_million: "亿"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: human_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ether Moon