human_number 0.1.9 → 0.1.10
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 +12 -0
- data/lib/human_number/formatters/number.rb +1 -1
- data/lib/human_number/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a997b6244948ebded5aa57455a54c930b8ea0f6255e17f620a315e578d0b58
|
4
|
+
data.tar.gz: 5ee0a391c1875a6cde5843535949a7995d87ccbc179ffd7734f315e0292f5c98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d566ce576fbf747a5db5263a4ed8fbe84e20ea11d96d51da4217e80ba9c0046eaa1f4e5b4a0e87494be49444e57ed1f5823354050a28edae15c25403ffbc889a
|
7
|
+
data.tar.gz: 0e2e0b57bba47bcd184990bd3988b4121abc8297246bd8f8a21fb53c32dbb17a3d39d2547c0dd4f7ea202c543265878698e39b918f4e84c1b2465a98089e1bb5
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,17 @@ 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.1.10] - 2025-08-19
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- **BREAKING CHANGE: Default number formatting behavior**: Changed `max_digits` default value from `2` to `nil`
|
13
|
+
- Numbers now display complete breakdown by default (e.g., `"1M 234K 567"` instead of `"1.2M"`)
|
14
|
+
- Previous abbreviated behavior still available by explicitly setting `max_digits: 2`
|
15
|
+
- Affects all methods: `HumanNumber.human_number()`, `HumanNumber.human_currency()`, and Rails helpers
|
16
|
+
- Provides safer default behavior with no information loss
|
17
|
+
- Maintains backward compatibility for explicit `max_digits` parameter usage
|
18
|
+
|
8
19
|
## [0.1.9] - 2025-08-05
|
9
20
|
|
10
21
|
### Changed
|
@@ -110,6 +121,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
110
121
|
- **Formatters::Currency**: Currency symbol and format string application
|
111
122
|
- **Clean separation**: Number formatting independent of currency concerns
|
112
123
|
|
124
|
+
[0.1.10]: https://github.com/ether-moon/human_number/releases/tag/v0.1.10
|
113
125
|
[0.1.9]: https://github.com/ether-moon/human_number/releases/tag/v0.1.9
|
114
126
|
[0.1.8]: https://github.com/ether-moon/human_number/releases/tag/v0.1.8
|
115
127
|
[0.1.0]: https://github.com/ether-moon/human_number/releases/tag/v0.1.0
|
data/lib/human_number/version.rb
CHANGED