asciimath2unitsml 0.1.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +2 -0
- data/.gitmodules +4 -0
- data/README.adoc +163 -6
- data/asciimath2unitsml.gemspec +24 -2
- data/lib/asciimath2unitsml.rb +1 -0
- data/lib/asciimath2unitsml/conv.rb +117 -149
- data/lib/asciimath2unitsml/parse.rb +144 -33
- 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 +10077 -1715
- data/lib/unitsdb_ruby/unitsdb.rb +164 -0
- data/spec/conv_spec.rb +716 -111
- metadata +22 -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.4
|
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-17 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
|
'
|
@@ -216,6 +230,7 @@ extensions: []
|
|
216
230
|
extra_rdoc_files: []
|
217
231
|
files:
|
218
232
|
- ".github/workflows/rake.yml"
|
233
|
+
- ".gitmodules"
|
219
234
|
- Gemfile
|
220
235
|
- LICENSE
|
221
236
|
- README.adoc
|
@@ -225,11 +240,16 @@ files:
|
|
225
240
|
- lib/asciimath2unitsml.rb
|
226
241
|
- lib/asciimath2unitsml/conv.rb
|
227
242
|
- lib/asciimath2unitsml/parse.rb
|
243
|
+
- lib/asciimath2unitsml/render.rb
|
228
244
|
- lib/asciimath2unitsml/string.rb
|
245
|
+
- lib/asciimath2unitsml/unit.rb
|
229
246
|
- lib/asciimath2unitsml/version.rb
|
247
|
+
- lib/unitsdb/dimensions.yaml
|
230
248
|
- lib/unitsdb/prefixes.yaml
|
231
249
|
- lib/unitsdb/quantities.yaml
|
250
|
+
- lib/unitsdb/unit_systems.yaml
|
232
251
|
- lib/unitsdb/units.yaml
|
252
|
+
- lib/unitsdb_ruby/unitsdb.rb
|
233
253
|
- spec/conv_spec.rb
|
234
254
|
- spec/spec_helper.rb
|
235
255
|
homepage: https://github.com/plurimath/asciimath2unitsml
|