human_number 0.2.0 → 0.2.1

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: 640f25eea39d66d28a79be7612896b88052b090e80ec704f7d0ae7a0fd93a8a7
4
+ data.tar.gz: 3d328389e35e2e5c199029557ecbe7b7df2ec1aa3727edf712e5b0b540c001c3
5
5
  SHA512:
6
- metadata.gz: 1102a52bea931b847a7886904e05497cbab49d4d770fefd9bb0d6b1d6f9538283e0b8a7e99e363a2e76b48d8af40022b56b5791d160e9943ca98df9b6fca355c
7
- data.tar.gz: 5dbffd0891fc1945b8a20b2ed569671aa8836c78a1026711b667a2ab0adebb0d798ec89e8e9f1895da98dd704290a3575454fbc34359db36c1549cd7131b529d
6
+ metadata.gz: 2c42af2e46c77bd2258cd2b6a5a26520022f394d27aa5b082c2acca2e21da3ed90e37197194f5df005893757655934a00a7508328aaa9195399bd1b839435610
7
+ data.tar.gz: 6dae26caf8f22d3340ff6115f677402d1a3c2a90ee6eca5dcdbac689010375e5ddbdf4f8b7a3e9bcbdcfa1b645c14f91b7499ba4f78a131f74cfb13f8db6069f
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
@@ -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.1"
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ether Moon