unitsdb 2.2.12 → 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 +19 -1
- data/data/dimensions.yaml +1 -1
- data/data/prefixes.yaml +1 -1
- data/data/quantities.yaml +7 -1
- data/data/scales.yaml +1 -1
- data/data/schemas/currencies-schema.yaml +4 -0
- data/data/schemas/quantities-schema.yaml +3 -0
- data/data/schemas/units-schema.yaml +3 -0
- data/data/unit_systems.yaml +1 -1
- data/data/units.yaml +1372 -3
- data/lib/unitsdb/quantity.rb +1 -0
- data/lib/unitsdb/quantity_reference.rb +1 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=schemas/currencies-schema.yaml
|
|
2
2
|
---
|
|
3
|
-
schema_version: "2.
|
|
3
|
+
schema_version: "2.2.0"
|
|
4
4
|
# ISO 4217 active codes (List One) as first-class entities, verified against
|
|
5
5
|
# the ISO 4217 list one (178 codes: national currencies, funds and units of
|
|
6
6
|
# account, precious-metal codes, bond-market units, supranationals, and the
|
|
@@ -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:
|
data/data/dimensions.yaml
CHANGED
data/data/prefixes.yaml
CHANGED
data/data/quantities.yaml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# yaml-language-server: $schema=schemas/quantities-schema.yaml
|
|
2
2
|
---
|
|
3
|
-
schema_version: 2.
|
|
3
|
+
schema_version: "2.2.0"
|
|
4
4
|
quantities:
|
|
5
5
|
- dimension_reference:
|
|
6
6
|
type: nist
|
|
@@ -1337,6 +1337,7 @@ quantities:
|
|
|
1337
1337
|
authority: qudt
|
|
1338
1338
|
uri: http://qudt.org/vocab/quantitykind/Energy
|
|
1339
1339
|
short: energy
|
|
1340
|
+
equivalence_class: energy
|
|
1340
1341
|
- dimension_reference:
|
|
1341
1342
|
type: nist
|
|
1342
1343
|
id: NISTd4
|
|
@@ -1497,6 +1498,7 @@ quantities:
|
|
|
1497
1498
|
authority: qudt
|
|
1498
1499
|
uri: http://qudt.org/vocab/quantitykind/Work
|
|
1499
1500
|
short: work
|
|
1501
|
+
equivalence_class: energy
|
|
1500
1502
|
- dimension_reference:
|
|
1501
1503
|
type: nist
|
|
1502
1504
|
id: NISTd71
|
|
@@ -1548,6 +1550,7 @@ quantities:
|
|
|
1548
1550
|
authority: qudt
|
|
1549
1551
|
uri: http://qudt.org/vocab/quantitykind/KineticEnergy
|
|
1550
1552
|
short: kinetic_energy
|
|
1553
|
+
equivalence_class: energy
|
|
1551
1554
|
- dimension_reference:
|
|
1552
1555
|
type: nist
|
|
1553
1556
|
id: NISTd15
|
|
@@ -1565,6 +1568,7 @@ quantities:
|
|
|
1565
1568
|
authority: qudt
|
|
1566
1569
|
uri: http://qudt.org/vocab/quantitykind/MechanicalEnergy
|
|
1567
1570
|
short: mechanical_energy
|
|
1571
|
+
equivalence_class: energy
|
|
1568
1572
|
- dimension_reference:
|
|
1569
1573
|
type: nist
|
|
1570
1574
|
id: NISTd15
|
|
@@ -1686,6 +1690,7 @@ quantities:
|
|
|
1686
1690
|
authority: qudt
|
|
1687
1691
|
uri: http://qudt.org/vocab/quantitykind/Heat
|
|
1688
1692
|
short: amount_of_heat
|
|
1693
|
+
equivalence_class: energy
|
|
1689
1694
|
- dimension_reference:
|
|
1690
1695
|
type: nist
|
|
1691
1696
|
id: NISTd96
|
|
@@ -3280,6 +3285,7 @@ quantities:
|
|
|
3280
3285
|
authority: qudt
|
|
3281
3286
|
uri: http://qudt.org/vocab/quantitykind/PotentialEnergy
|
|
3282
3287
|
short: potential_energy
|
|
3288
|
+
equivalence_class: energy
|
|
3283
3289
|
- dimension_reference:
|
|
3284
3290
|
type: nist
|
|
3285
3291
|
id: NISTd38
|
data/data/scales.yaml
CHANGED
|
@@ -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
|
|
@@ -44,6 +44,9 @@ definitions:
|
|
|
44
44
|
short:
|
|
45
45
|
type: string
|
|
46
46
|
description: "Short identifier for the quantity"
|
|
47
|
+
equivalence_class:
|
|
48
|
+
type: string
|
|
49
|
+
description: "L1 equivalence class: quantities in the same class are interchangeable for addition/subtraction arithmetic (work, energy and heat share the energy class). Absent means identity-only gating."
|
|
47
50
|
references:
|
|
48
51
|
type: array
|
|
49
52
|
description: "External references and citations"
|
|
@@ -144,6 +144,9 @@ definitions:
|
|
|
144
144
|
id:
|
|
145
145
|
type: string
|
|
146
146
|
description: "Quantity identifier"
|
|
147
|
+
primary:
|
|
148
|
+
type: boolean
|
|
149
|
+
description: "True for the primary quantity of this unit (SI-definition-derived where the unit has an SI special name; otherwise the explicitly curated default). Consumers select this reference instead of positional order."
|
|
147
150
|
|
|
148
151
|
RootUnit:
|
|
149
152
|
type: object
|