unitsdb 2.2.13 → 2.2.14
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/data/currencies.yaml +18 -0
- data/data/schemas/currencies-schema.yaml +4 -0
- data/lib/unitsdb/symbol_presentations.rb +1 -0
- data/lib/unitsdb/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc8319a7f7071aa32927e33ac9bbc733d4a72b57e59b2d34e0eac4deaa248374
|
|
4
|
+
data.tar.gz: e8796f58446055853641ed48b944ff419a36082393ee995ceee4f1b42be1dd5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1411431ed28960026d29ec9bb64b301d34d096419416cb56e2347e847ebe8c55204d89f452a4130f08dc25d46a4ce83e2f11bdc28fc0e774d9631aa300ce595d
|
|
7
|
+
data.tar.gz: 26163de5af38f2696c03fa32db11d36bc7b7c063767d6b7cc9c9de546fd31885a337b42f25a5c7c7b8caa5dfe8be0faee723243b06385da5587a32c110c79ec0
|
data/data/currencies.yaml
CHANGED
|
@@ -521,6 +521,11 @@ currencies:
|
|
|
521
521
|
names:
|
|
522
522
|
- value: "Swiss franc"
|
|
523
523
|
lang: en
|
|
524
|
+
symbols:
|
|
525
|
+
- unicode: "Fr."
|
|
526
|
+
ascii: CHF
|
|
527
|
+
id: CHF-franc
|
|
528
|
+
ambiguous: true
|
|
524
529
|
minor_unit_exponent: 2
|
|
525
530
|
status: active
|
|
526
531
|
unit_system_reference:
|
|
@@ -595,6 +600,14 @@ currencies:
|
|
|
595
600
|
names:
|
|
596
601
|
- value: "Renminbi"
|
|
597
602
|
lang: en
|
|
603
|
+
symbols:
|
|
604
|
+
- unicode: "CN¥"
|
|
605
|
+
ascii: CNY
|
|
606
|
+
id: CNY-yuan
|
|
607
|
+
- unicode: "¥"
|
|
608
|
+
ascii: CNY
|
|
609
|
+
id: CNY-yuan-bare
|
|
610
|
+
ambiguous: true
|
|
598
611
|
minor_unit_exponent: 2
|
|
599
612
|
status: active
|
|
600
613
|
unit_system_reference:
|
|
@@ -1294,6 +1307,7 @@ currencies:
|
|
|
1294
1307
|
- unicode: "¥"
|
|
1295
1308
|
ascii: JPY
|
|
1296
1309
|
id: JPY
|
|
1310
|
+
ambiguous: true
|
|
1297
1311
|
minor_unit_exponent: 0
|
|
1298
1312
|
status: active
|
|
1299
1313
|
unit_system_reference:
|
|
@@ -2707,6 +2721,10 @@ currencies:
|
|
|
2707
2721
|
- unicode: "US$"
|
|
2708
2722
|
ascii: USD
|
|
2709
2723
|
id: USD
|
|
2724
|
+
- unicode: "$"
|
|
2725
|
+
ascii: USD
|
|
2726
|
+
id: USD-dollar
|
|
2727
|
+
ambiguous: true
|
|
2710
2728
|
minor_unit_exponent: 2
|
|
2711
2729
|
status: active
|
|
2712
2730
|
unit_system_reference:
|
|
@@ -98,6 +98,10 @@ definitions:
|
|
|
98
98
|
id:
|
|
99
99
|
type: string
|
|
100
100
|
description: "Stable symbol id"
|
|
101
|
+
ambiguous:
|
|
102
|
+
type: boolean
|
|
103
|
+
default: false
|
|
104
|
+
description: "The presentation is shared across currencies (bare $, the bare yen sign, the franc Fr.) and therefore carries no unambiguous unit semantics; strict-unit consumers skip it, prose style-enforcement consumers match it"
|
|
101
105
|
|
|
102
106
|
Reference:
|
|
103
107
|
type: object
|
data/lib/unitsdb/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Unitsdb
|
|
4
|
-
VERSION = "2.2.
|
|
4
|
+
VERSION = "2.2.14"
|
|
5
5
|
|
|
6
6
|
# The version of the bundled UnitsDB data (from the data/ submodule).
|
|
7
7
|
# This version corresponds to a tag/commit in https://github.com/unitsml/unitsdb.
|
|
8
|
-
UNITS_DATA_VERSION = "2.2.
|
|
8
|
+
UNITS_DATA_VERSION = "2.2.1"
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unitsdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fuzzy_match
|