unitsdb 2.2.11 → 2.2.13
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 +1 -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/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/database/loader.rb +1 -1
- data/lib/unitsdb/quantity.rb +1 -0
- data/lib/unitsdb/quantity_reference.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: 41c5a33f4a96fa77c751deec00d551e105a88497f2cdadd97c175e48badd5793
|
|
4
|
+
data.tar.gz: 86b1174ab7747d93830448281bf9dbe008c23cbcdf9acce2bac5ab3a8a86b9d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bb276f95ba20fd5648a772ec4633a20d3fdb4871b32968635b74ea2811db981fdb51feccf614e1fa8fcaf990e98248fa96096b6a27bae4b55887614a8a7150c
|
|
7
|
+
data.tar.gz: d424b9f794da77a52809b7d40a4a4c6f0d000c41f6ce2161b941edf771fbee532c3e00c2c802bb65f8b37f234e357a1f48bc636e0f38406581d4e0e09b6a1d63
|
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
|
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
|
@@ -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
|