asciimath2unitsml 0.1.1 → 0.2.2
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 +53 -0
- data/.gitmodules +4 -0
- data/README.adoc +163 -5
- data/asciimath2unitsml.gemspec +24 -2
- data/lib/asciimath2unitsml.rb +1 -0
- data/lib/asciimath2unitsml/conv.rb +117 -128
- data/lib/asciimath2unitsml/parse.rb +168 -32
- data/lib/asciimath2unitsml/render.rb +83 -0
- data/lib/asciimath2unitsml/unit.rb +81 -0
- data/lib/asciimath2unitsml/version.rb +1 -1
- data/lib/unitsdb/dimensions.yaml +802 -0
- data/lib/unitsdb/prefixes.yaml +154 -27
- data/lib/unitsdb/quantities.yaml +2274 -440
- data/lib/unitsdb/unit_systems.yaml +16 -0
- data/lib/unitsdb/units.yaml +10073 -1715
- data/lib/unitsdb_ruby/unitsdb.rb +163 -0
- data/spec/conv_spec.rb +798 -97
- metadata +23 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciimath2unitsml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -206,6 +206,20 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0.9'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rexml
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
209
223
|
description: 'Convert Asciimath via MathML to UnitsML
|
210
224
|
|
211
225
|
'
|
@@ -215,6 +229,8 @@ executables: []
|
|
215
229
|
extensions: []
|
216
230
|
extra_rdoc_files: []
|
217
231
|
files:
|
232
|
+
- ".github/workflows/rake.yml"
|
233
|
+
- ".gitmodules"
|
218
234
|
- Gemfile
|
219
235
|
- LICENSE
|
220
236
|
- README.adoc
|
@@ -224,11 +240,16 @@ files:
|
|
224
240
|
- lib/asciimath2unitsml.rb
|
225
241
|
- lib/asciimath2unitsml/conv.rb
|
226
242
|
- lib/asciimath2unitsml/parse.rb
|
243
|
+
- lib/asciimath2unitsml/render.rb
|
227
244
|
- lib/asciimath2unitsml/string.rb
|
245
|
+
- lib/asciimath2unitsml/unit.rb
|
228
246
|
- lib/asciimath2unitsml/version.rb
|
247
|
+
- lib/unitsdb/dimensions.yaml
|
229
248
|
- lib/unitsdb/prefixes.yaml
|
230
249
|
- lib/unitsdb/quantities.yaml
|
250
|
+
- lib/unitsdb/unit_systems.yaml
|
231
251
|
- lib/unitsdb/units.yaml
|
252
|
+
- lib/unitsdb_ruby/unitsdb.rb
|
232
253
|
- spec/conv_spec.rb
|
233
254
|
- spec/spec_helper.rb
|
234
255
|
homepage: https://github.com/plurimath/asciimath2unitsml
|