asciimath2unitsml 0.2.3 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +14 -0
- data/README.adoc +4 -1
- data/asciimath2unitsml.gemspec +1 -1
- data/lib/asciimath2unitsml/conv.rb +80 -50
- data/lib/asciimath2unitsml/parse.rb +56 -79
- data/lib/asciimath2unitsml/render.rb +3 -2
- data/lib/asciimath2unitsml/validate.rb +57 -0
- data/lib/asciimath2unitsml/version.rb +1 -1
- data/lib/unitsdb/units.yaml +2 -2
- data/spec/conv_spec.rb +453 -130
- metadata +9 -6
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.2
|
4
|
+
version: 0.3.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-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: rubocop
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 1.5.2
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 1.5.2
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +230,9 @@ extensions: []
|
|
230
230
|
extra_rdoc_files: []
|
231
231
|
files:
|
232
232
|
- ".github/workflows/rake.yml"
|
233
|
+
- ".gitignore"
|
233
234
|
- ".gitmodules"
|
235
|
+
- ".rubocop.yml"
|
234
236
|
- Gemfile
|
235
237
|
- LICENSE
|
236
238
|
- README.adoc
|
@@ -243,6 +245,7 @@ files:
|
|
243
245
|
- lib/asciimath2unitsml/render.rb
|
244
246
|
- lib/asciimath2unitsml/string.rb
|
245
247
|
- lib/asciimath2unitsml/unit.rb
|
248
|
+
- lib/asciimath2unitsml/validate.rb
|
246
249
|
- lib/asciimath2unitsml/version.rb
|
247
250
|
- lib/unitsdb/dimensions.yaml
|
248
251
|
- lib/unitsdb/prefixes.yaml
|