asciimath2unitsml 0.3.3 → 0.4.0
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 +1 -1
- data/.rubocop.yml +1 -1
- data/README.adoc +19 -1
- data/asciimath2unitsml.gemspec +1 -1
- data/lib/asciimath2unitsml/conv.rb +26 -83
- data/lib/asciimath2unitsml/dimensions.rb +117 -0
- data/lib/asciimath2unitsml/parse.rb +79 -73
- data/lib/asciimath2unitsml/read.rb +42 -0
- data/lib/asciimath2unitsml/render.rb +29 -18
- data/lib/asciimath2unitsml/unit.rb +10 -8
- data/lib/asciimath2unitsml/validate.rb +18 -16
- data/lib/asciimath2unitsml/version.rb +1 -1
- data/lib/unitsdb/dimensions.yaml +65 -8
- data/lib/unitsdb_ruby/unitsdb.rb +83 -61
- data/spec/conv_spec.rb +1325 -1249
- metadata +5 -3
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.4.0
|
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-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -242,7 +242,9 @@ files:
|
|
242
242
|
- bin/rspec
|
243
243
|
- lib/asciimath2unitsml.rb
|
244
244
|
- lib/asciimath2unitsml/conv.rb
|
245
|
+
- lib/asciimath2unitsml/dimensions.rb
|
245
246
|
- lib/asciimath2unitsml/parse.rb
|
247
|
+
- lib/asciimath2unitsml/read.rb
|
246
248
|
- lib/asciimath2unitsml/render.rb
|
247
249
|
- lib/asciimath2unitsml/string.rb
|
248
250
|
- lib/asciimath2unitsml/unit.rb
|
@@ -268,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
268
270
|
requirements:
|
269
271
|
- - ">="
|
270
272
|
- !ruby/object:Gem::Version
|
271
|
-
version: 2.
|
273
|
+
version: 2.5.0
|
272
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
275
|
requirements:
|
274
276
|
- - ">="
|