human_number 0.1.4 → 0.1.5

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: 7e0d600c4f0ff53b38dcd26865c3b55ef28f3a2f22e3ea69cdea9e22b8f81a41
4
- data.tar.gz: 8da74420bb439d1d5ccc331d9e96b6c0936aefe2f9b5e2df3762201bd5745198
3
+ metadata.gz: 2dd3c82fa866e72f3077c07772ab73d4eff84d48507e763a0d83708d8204803e
4
+ data.tar.gz: 164c8b2890482b306b2bd0054eedb4aad378bbfa57b0653931535b06ff7b95e6
5
5
  SHA512:
6
- metadata.gz: 3a2f779396168c7519591e82e4c79358cd84143dea4c8665e13a16d71ed946b9dc2b7d0790daeaac52b083e1c45c13f767910ca498b36f2943fd6e3be1ead350
7
- data.tar.gz: ac05daeca413e08338aec8b0776accee0abdb3ecfad05cab004d83c31084d4f9faec622e6069d7578256c801882311c6e2f2e64bdaf425711d358ace7339cc1b
6
+ metadata.gz: 2629ec3485c1e040a704447dce110df8327a0b27111e688340601b6bffdfcd34efc17c24f2bbe549fe7b3c238542636f0fca775ce6569bae21b31a7c84d31f51
7
+ data.tar.gz: 825db4efc41b062f7dc8604bc74eb91496e172b2d18acd463a9c3c33895328b5d550163d4166b65b938186bd77788b5297ed77e84922f5fa766ae57cb59a4239
@@ -20,11 +20,8 @@ module HumanNumber
20
20
  def format(formatted_number, currency_code:, locale:)
21
21
  locale = locale.to_sym
22
22
 
23
- # Use shared locale logic to determine display locale
24
- display_locale = HumanNumber::LocaleSupport.primary_locale_for_currency(currency_code, locale)
25
-
26
- # Apply currency formatting to the already formatted number
27
- apply_currency_formatting(formatted_number, currency_code, display_locale)
23
+ # Apply currency formatting using user's locale to determine native vs non-native display
24
+ apply_currency_formatting(formatted_number, currency_code, locale)
28
25
  end
29
26
 
30
27
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HumanNumber
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ether Moon