mathml2asciimath 0.0.6 → 0.0.7
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/macos.yml +27 -0
- data/.github/workflows/ubuntu.yml +27 -0
- data/.github/workflows/windows.yml +30 -0
- data/Gemfile.lock +21 -23
- data/README.adoc +4 -3
- data/lib/mathml2asciimath/m2a.rb +3 -0
- data/lib/mathml2asciimath/version.rb +1 -1
- data/spec/mathml_spec.rb +2 -0
- metadata +5 -4
- data/.travis.yml +0 -18
- data/appveyor.yml +0 -37
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 201320b324a9116533778099dce6aa73953335fcfbc18ece842dfed38f48a6fa
|
|
4
|
+
data.tar.gz: 1820b26b022ea4326e2c661deafb54c269f8149158cb5f00554ae55d36dffd70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24a875af7fb68e65c11cb5ee3a7c868edf77de9d29ca13e53a86022c7fa79d9e29f61d231c758399cc5bfa94df4c77473af8c95efe8c9a7a551d48213b0c079e
|
|
7
|
+
data.tar.gz: 14e5b5ceeba1c6d87d2b4dd5c84e21cbb75cca079de00ad9e853505fccca270cff5d69c65b32ae020c407ade843c06440c6086e29e2d8983587c2d406d00219f
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
|
3
|
+
name: macos
|
|
4
|
+
|
|
5
|
+
on: [push]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test-macos:
|
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} macOS
|
|
10
|
+
runs-on: macos-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@master
|
|
16
|
+
- name: Use Ruby
|
|
17
|
+
uses: actions/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
|
20
|
+
architecture: 'x64'
|
|
21
|
+
- name: Update gems
|
|
22
|
+
run: |
|
|
23
|
+
sudo gem install bundler -v "~> 2" --force
|
|
24
|
+
bundle install --jobs 4 --retry 3
|
|
25
|
+
- name: Run specs
|
|
26
|
+
run: |
|
|
27
|
+
bundle exec rake
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
|
3
|
+
name: ubuntu
|
|
4
|
+
|
|
5
|
+
on: [push]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test-linux:
|
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@master
|
|
16
|
+
- name: Use Ruby
|
|
17
|
+
uses: actions/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
|
20
|
+
architecture: 'x64'
|
|
21
|
+
- name: Update gems
|
|
22
|
+
run: |
|
|
23
|
+
gem install bundler -v "~> 2"
|
|
24
|
+
bundle install --jobs 4 --retry 3
|
|
25
|
+
- name: Run specs
|
|
26
|
+
run: |
|
|
27
|
+
bundle exec rake
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
|
3
|
+
name: windows
|
|
4
|
+
|
|
5
|
+
on: [push]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test-windows:
|
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} Windows
|
|
10
|
+
runs-on: windows-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@master
|
|
16
|
+
- name: Use Ruby
|
|
17
|
+
uses: actions/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
|
20
|
+
architecture: 'x64'
|
|
21
|
+
- name: Update gems
|
|
22
|
+
shell: pwsh
|
|
23
|
+
run: |
|
|
24
|
+
gem install bundler -v "~> 2"
|
|
25
|
+
bundle config --local path vendor/bundle
|
|
26
|
+
bundle update
|
|
27
|
+
bundle install --jobs 4 --retry 3
|
|
28
|
+
- name: Run specs
|
|
29
|
+
run: |
|
|
30
|
+
bundle exec rake
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mathml2asciimath (0.0.
|
|
4
|
+
mathml2asciimath (0.0.7)
|
|
5
5
|
htmlentities (~> 4.3.4)
|
|
6
6
|
nokogiri (>= 1.10.4)
|
|
7
7
|
|
|
@@ -13,9 +13,9 @@ GEM
|
|
|
13
13
|
coderay (1.1.2)
|
|
14
14
|
diff-lcs (1.3)
|
|
15
15
|
docile (1.3.2)
|
|
16
|
-
ffi (1.11.
|
|
16
|
+
ffi (1.11.2)
|
|
17
17
|
formatador (0.2.5)
|
|
18
|
-
guard (2.
|
|
18
|
+
guard (2.16.1)
|
|
19
19
|
formatador (>= 0.2.4)
|
|
20
20
|
listen (>= 2.7, < 4.0)
|
|
21
21
|
lumberjack (>= 1.0.12, < 2.0)
|
|
@@ -31,21 +31,20 @@ GEM
|
|
|
31
31
|
rspec (>= 2.99.0, < 4.0)
|
|
32
32
|
htmlentities (4.3.4)
|
|
33
33
|
json (2.2.0)
|
|
34
|
-
listen (3.
|
|
35
|
-
rb-fsevent (~> 0.
|
|
36
|
-
rb-inotify (~> 0.9, >= 0.9.
|
|
37
|
-
ruby_dep (~> 1.2)
|
|
34
|
+
listen (3.2.0)
|
|
35
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
36
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
38
37
|
lumberjack (1.0.13)
|
|
39
38
|
method_source (0.9.2)
|
|
40
39
|
mini_portile2 (2.4.0)
|
|
41
40
|
nenv (0.3.0)
|
|
42
|
-
nokogiri (1.10.
|
|
41
|
+
nokogiri (1.10.5)
|
|
43
42
|
mini_portile2 (~> 2.4.0)
|
|
44
43
|
notiffany (0.1.3)
|
|
45
44
|
nenv (~> 0.1)
|
|
46
45
|
shellany (~> 0.0)
|
|
47
|
-
parallel (1.
|
|
48
|
-
parser (2.6.
|
|
46
|
+
parallel (1.19.0)
|
|
47
|
+
parser (2.6.5.0)
|
|
49
48
|
ast (~> 2.4.0)
|
|
50
49
|
powerpack (0.1.2)
|
|
51
50
|
pry (0.12.2)
|
|
@@ -56,21 +55,21 @@ GEM
|
|
|
56
55
|
rb-fsevent (0.10.3)
|
|
57
56
|
rb-inotify (0.10.0)
|
|
58
57
|
ffi (~> 1.0)
|
|
59
|
-
rspec (3.
|
|
60
|
-
rspec-core (~> 3.
|
|
61
|
-
rspec-expectations (~> 3.
|
|
62
|
-
rspec-mocks (~> 3.
|
|
63
|
-
rspec-core (3.
|
|
64
|
-
rspec-support (~> 3.
|
|
65
|
-
rspec-expectations (3.
|
|
58
|
+
rspec (3.9.0)
|
|
59
|
+
rspec-core (~> 3.9.0)
|
|
60
|
+
rspec-expectations (~> 3.9.0)
|
|
61
|
+
rspec-mocks (~> 3.9.0)
|
|
62
|
+
rspec-core (3.9.0)
|
|
63
|
+
rspec-support (~> 3.9.0)
|
|
64
|
+
rspec-expectations (3.9.0)
|
|
66
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
67
|
-
rspec-support (~> 3.
|
|
66
|
+
rspec-support (~> 3.9.0)
|
|
68
67
|
rspec-match_fuzzy (0.1.3)
|
|
69
68
|
rspec (>= 3.2)
|
|
70
|
-
rspec-mocks (3.
|
|
69
|
+
rspec-mocks (3.9.0)
|
|
71
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
72
|
-
rspec-support (~> 3.
|
|
73
|
-
rspec-support (3.
|
|
71
|
+
rspec-support (~> 3.9.0)
|
|
72
|
+
rspec-support (3.9.0)
|
|
74
73
|
rubocop (0.54.0)
|
|
75
74
|
parallel (~> 1.10)
|
|
76
75
|
parser (>= 2.5)
|
|
@@ -79,9 +78,8 @@ GEM
|
|
|
79
78
|
ruby-progressbar (~> 1.7)
|
|
80
79
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
81
80
|
ruby-progressbar (1.10.1)
|
|
82
|
-
ruby_dep (1.5.0)
|
|
83
81
|
shellany (0.0.1)
|
|
84
|
-
simplecov (0.17.
|
|
82
|
+
simplecov (0.17.1)
|
|
85
83
|
docile (~> 1.1)
|
|
86
84
|
json (>= 1.8, < 3)
|
|
87
85
|
simplecov-html (~> 0.10.0)
|
data/README.adoc
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
= mathml2asciimath
|
|
2
2
|
|
|
3
3
|
image:https://img.shields.io/gem/v/mathml2asciimath.svg["Gem Version", link="https://rubygems.org/gems/mathml2asciimath"]
|
|
4
|
-
image:https://img.shields.io/travis/metanorma/mathml2asciimath/master.svg["Travis Build Status", link="https://travis-ci.
|
|
5
|
-
image:https://ci.appveyor.com/api/projects/status/
|
|
4
|
+
image:https://img.shields.io/travis/metanorma/mathml2asciimath/master.svg["Travis Build Status", link="https://travis-ci.com/metanorma/mathml2asciimath"]
|
|
5
|
+
image:https://ci.appveyor.com/api/projects/status/0vqhxs3swgl3jvwn?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/metanorma/mathml2asciimath"]
|
|
6
6
|
image:https://codeclimate.com/github/metanorma/mathml2asciimath/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/mathml2asciimath"]
|
|
7
|
-
image:https://
|
|
7
|
+
image:https://img.shields.io/github/issues-pr-raw/metanorma/mathml2asciimath.svg["Pull Requests", link="https://github.com/metanorma/mathml2asciimath/pulls"]
|
|
8
|
+
image:https://img.shields.io/github/commits-since/metanorma/mathml2asciimath/latest.svg["Commits since latest",link="https://github.com/metanorma/mathml2asciimath/releases"]
|
|
8
9
|
|
|
9
10
|
Ruby gem to convert MathML into AsciiMath
|
|
10
11
|
|
data/lib/mathml2asciimath/m2a.rb
CHANGED
data/spec/mathml_spec.rb
CHANGED
|
@@ -4,11 +4,13 @@ RSpec.describe MathML2AsciiMath do
|
|
|
4
4
|
it "processes some MathML" do
|
|
5
5
|
expect(MathML2AsciiMath.m2a(<<~INPUT)).to match_fuzzy <<~OUTPUT
|
|
6
6
|
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
|
7
|
+
<mstyle>
|
|
7
8
|
<mrow>
|
|
8
9
|
<mi>a</mi> <mo>⋄</mo> <msup><mi>x</mi><mn>2</mn></msup>
|
|
9
10
|
<mo>+</mo><mi>b</mi><mo>×</mo><mi>x</mi>
|
|
10
11
|
<mo>+</mo><msub><mi>c</mi><mn>3</mn></msub>
|
|
11
12
|
</mrow>
|
|
13
|
+
</mstyle>
|
|
12
14
|
</math>
|
|
13
15
|
INPUT
|
|
14
16
|
a diamond x^2\n + b xx x\n + c_3
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mathml2asciimath
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: htmlentities
|
|
@@ -188,17 +188,18 @@ executables: []
|
|
|
188
188
|
extensions: []
|
|
189
189
|
extra_rdoc_files: []
|
|
190
190
|
files:
|
|
191
|
+
- ".github/workflows/macos.yml"
|
|
192
|
+
- ".github/workflows/ubuntu.yml"
|
|
193
|
+
- ".github/workflows/windows.yml"
|
|
191
194
|
- ".hound.yml"
|
|
192
195
|
- ".rubocop.ribose.yml"
|
|
193
196
|
- ".rubocop.tb.yml"
|
|
194
197
|
- ".rubocop.yml"
|
|
195
|
-
- ".travis.yml"
|
|
196
198
|
- Gemfile
|
|
197
199
|
- Gemfile.lock
|
|
198
200
|
- LICENSE
|
|
199
201
|
- README.adoc
|
|
200
202
|
- Rakefile
|
|
201
|
-
- appveyor.yml
|
|
202
203
|
- bin/m2a.rb
|
|
203
204
|
- bin/rspec
|
|
204
205
|
- lib/mathml2asciimath.rb
|
data/.travis.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Auto-generated !!! Do not edit it manually
|
|
2
|
-
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
|
3
|
-
language: ruby
|
|
4
|
-
cache: bundler
|
|
5
|
-
os:
|
|
6
|
-
- linux
|
|
7
|
-
- osx
|
|
8
|
-
rvm:
|
|
9
|
-
- 2.6
|
|
10
|
-
- 2.5
|
|
11
|
-
- 2.4
|
|
12
|
-
- ruby-head
|
|
13
|
-
before_install:
|
|
14
|
-
- gem install bundler -v "~> 2"
|
|
15
|
-
- bundle update
|
|
16
|
-
matrix:
|
|
17
|
-
allow_failures:
|
|
18
|
-
- rvm: ruby-head
|
data/appveyor.yml
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Auto-generated !!! Do not edit it manually
|
|
2
|
-
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
|
3
|
-
version: '{build}'
|
|
4
|
-
|
|
5
|
-
cache:
|
|
6
|
-
- vendor/bundle
|
|
7
|
-
|
|
8
|
-
environment:
|
|
9
|
-
matrix:
|
|
10
|
-
- RUBY_VERSION: 26
|
|
11
|
-
- RUBY_VERSION: 25
|
|
12
|
-
- RUBY_VERSION: 24
|
|
13
|
-
- RUBY_VERSION: _trunk
|
|
14
|
-
|
|
15
|
-
matrix:
|
|
16
|
-
allow_failures:
|
|
17
|
-
- RUBY_VERSION: _trunk
|
|
18
|
-
|
|
19
|
-
install:
|
|
20
|
-
- ps: . { iwr -useb https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/appveyor.ps1 } | iex
|
|
21
|
-
- refreshenv
|
|
22
|
-
|
|
23
|
-
build_script:
|
|
24
|
-
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
|
25
|
-
- set GIT_TERMINAL_PROMPT=0
|
|
26
|
-
- gem install bundler -v "~> 2"
|
|
27
|
-
- bundle config --local path vendor/bundle
|
|
28
|
-
- bundle update
|
|
29
|
-
- bundle install
|
|
30
|
-
|
|
31
|
-
before_test:
|
|
32
|
-
- ruby -v
|
|
33
|
-
- gem -v
|
|
34
|
-
- bundle -v
|
|
35
|
-
|
|
36
|
-
test_script:
|
|
37
|
-
- bundle exec rake
|