unitsml 0.6.12 → 0.6.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/.github/workflows/rake.yml +3 -0
- data/Gemfile +0 -1
- data/docs/README.adoc +221 -1
- data/lib/unitsml/compose/builder.rb +341 -0
- data/lib/unitsml/compose/composable.rb +118 -0
- data/lib/unitsml/compose/composite.rb +145 -0
- data/lib/unitsml/compose/term_tree.rb +48 -0
- data/lib/unitsml/compose.rb +151 -0
- data/lib/unitsml/conversion/definition.rb +117 -0
- data/lib/unitsml/conversion.rb +97 -41
- data/lib/unitsml/dimension.rb +30 -3
- data/lib/unitsml/errors/base_error.rb +11 -0
- data/lib/unitsml/errors/empty_composition_error.rb +14 -0
- data/lib/unitsml/errors/invalid_power_error.rb +37 -0
- data/lib/unitsml/errors/invalid_unit_entry_error.rb +44 -0
- data/lib/unitsml/errors/misplaced_extender_error.rb +18 -0
- data/lib/unitsml/errors/mixed_terms_error.rb +15 -0
- data/lib/unitsml/errors/parse_error.rb +18 -0
- data/lib/unitsml/errors/unknown_dimension_error.rb +18 -0
- data/lib/unitsml/errors/unknown_prefix_error.rb +15 -0
- data/lib/unitsml/errors/unknown_unit_error.rb +16 -0
- data/lib/unitsml/errors.rb +11 -0
- data/lib/unitsml/formula.rb +65 -4
- data/lib/unitsml/model/unit.rb +2 -0
- data/lib/unitsml/model/units/conversion_note.rb +19 -0
- data/lib/unitsml/model/units/conversions.rb +25 -0
- data/lib/unitsml/model/units/float64_conversion_from.rb +62 -0
- data/lib/unitsml/model/units/special_conversion_from.rb +27 -0
- data/lib/unitsml/model/units/wsdl_conversion_from.rb +26 -0
- data/lib/unitsml/model/units.rb +5 -0
- data/lib/unitsml/number.rb +5 -1
- data/lib/unitsml/opal/database_payload.rb +1 -1
- data/lib/unitsml/opal.rb +22 -0
- data/lib/unitsml/parser.rb +32 -11
- data/lib/unitsml/power_numerator.rb +72 -0
- data/lib/unitsml/quantity.rb +95 -23
- data/lib/unitsml/unit.rb +58 -10
- data/lib/unitsml/unitsdb/quantities.rb +21 -0
- data/lib/unitsml/unitsdb/units.rb +6 -0
- data/lib/unitsml/utility.rb +61 -10
- data/lib/unitsml/version.rb +1 -1
- data/lib/unitsml.rb +10 -0
- metadata +23 -2
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unitsml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.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-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciiunits
|
|
@@ -107,16 +107,31 @@ files:
|
|
|
107
107
|
- docs/README.adoc
|
|
108
108
|
- docs/navigation.adoc
|
|
109
109
|
- lib/unitsml.rb
|
|
110
|
+
- lib/unitsml/compose.rb
|
|
111
|
+
- lib/unitsml/compose/builder.rb
|
|
112
|
+
- lib/unitsml/compose/composable.rb
|
|
113
|
+
- lib/unitsml/compose/composite.rb
|
|
114
|
+
- lib/unitsml/compose/term_tree.rb
|
|
110
115
|
- lib/unitsml/configuration.rb
|
|
111
116
|
- lib/unitsml/conversion.rb
|
|
117
|
+
- lib/unitsml/conversion/definition.rb
|
|
112
118
|
- lib/unitsml/dimension.rb
|
|
113
119
|
- lib/unitsml/errors.rb
|
|
114
120
|
- lib/unitsml/errors/base_error.rb
|
|
121
|
+
- lib/unitsml/errors/empty_composition_error.rb
|
|
115
122
|
- lib/unitsml/errors/invalid_model_error.rb
|
|
123
|
+
- lib/unitsml/errors/invalid_power_error.rb
|
|
124
|
+
- lib/unitsml/errors/invalid_unit_entry_error.rb
|
|
125
|
+
- lib/unitsml/errors/misplaced_extender_error.rb
|
|
126
|
+
- lib/unitsml/errors/mixed_terms_error.rb
|
|
116
127
|
- lib/unitsml/errors/opal_payload_not_bundled_error.rb
|
|
117
128
|
- lib/unitsml/errors/parg_load_error.rb
|
|
129
|
+
- lib/unitsml/errors/parse_error.rb
|
|
118
130
|
- lib/unitsml/errors/plurimath_load_error.rb
|
|
119
131
|
- lib/unitsml/errors/quantity_errors.rb
|
|
132
|
+
- lib/unitsml/errors/unknown_dimension_error.rb
|
|
133
|
+
- lib/unitsml/errors/unknown_prefix_error.rb
|
|
134
|
+
- lib/unitsml/errors/unknown_unit_error.rb
|
|
120
135
|
- lib/unitsml/errors/unsupported_payload_type_error.rb
|
|
121
136
|
- lib/unitsml/extender.rb
|
|
122
137
|
- lib/unitsml/fenced.rb
|
|
@@ -144,11 +159,16 @@ files:
|
|
|
144
159
|
- lib/unitsml/model/quantity.rb
|
|
145
160
|
- lib/unitsml/model/unit.rb
|
|
146
161
|
- lib/unitsml/model/units.rb
|
|
162
|
+
- lib/unitsml/model/units/conversion_note.rb
|
|
163
|
+
- lib/unitsml/model/units/conversions.rb
|
|
147
164
|
- lib/unitsml/model/units/enumerated_root_unit.rb
|
|
165
|
+
- lib/unitsml/model/units/float64_conversion_from.rb
|
|
148
166
|
- lib/unitsml/model/units/name.rb
|
|
149
167
|
- lib/unitsml/model/units/root_units.rb
|
|
168
|
+
- lib/unitsml/model/units/special_conversion_from.rb
|
|
150
169
|
- lib/unitsml/model/units/symbol.rb
|
|
151
170
|
- lib/unitsml/model/units/system.rb
|
|
171
|
+
- lib/unitsml/model/units/wsdl_conversion_from.rb
|
|
152
172
|
- lib/unitsml/namespace.rb
|
|
153
173
|
- lib/unitsml/number.rb
|
|
154
174
|
- lib/unitsml/opal.rb
|
|
@@ -157,6 +177,7 @@ files:
|
|
|
157
177
|
- lib/unitsml/parg.rb
|
|
158
178
|
- lib/unitsml/parg/tree_mapper.rb
|
|
159
179
|
- lib/unitsml/parser.rb
|
|
180
|
+
- lib/unitsml/power_numerator.rb
|
|
160
181
|
- lib/unitsml/prefix.rb
|
|
161
182
|
- lib/unitsml/prefix_adapter.rb
|
|
162
183
|
- lib/unitsml/quantity.rb
|