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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b40f4d307a6d79e38dd1e45276c6df0334d28081dfb3cdddce89d943732e9aab
4
- data.tar.gz: f25564f84991e593d68de48fd88b79e1ef64baaa473d962428b5008b61a25c93
3
+ metadata.gz: 25a997b6244948ebded5aa57455a54c930b8ea0f6255e17f620a315e578d0b58
4
+ data.tar.gz: 5ee0a391c1875a6cde5843535949a7995d87ccbc179ffd7734f315e0292f5c98
5
5
  SHA512:
6
- metadata.gz: 030e86e5855e634e6aafb8940834f58a290276a7c2096e1da12b44eb9bbd667803c1a2239822d091f69aa6fb1165c4eb4187268e0911ee6a78a407f80c1ba6c1
7
- data.tar.gz: 612b2da8d6f9abbd5d06695701e5b2943879d4a8610885f717f2acfe28577fba1e082597a1dee03c07464e58e4996cf00a3c78e54b8def050cdfa1750a74395d
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
@@ -74,7 +74,7 @@ module HumanNumber
74
74
  def default_options
75
75
  {
76
76
  abbr_units: true,
77
- max_digits: 2,
77
+ max_digits: nil,
78
78
  min_unit: nil,
79
79
  trim_zeros: true,
80
80
  }.freeze
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HumanNumber
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
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.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ether Moon