mathml2asciimath 0.0.8 → 0.0.12
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 +32 -0
- data/.gitignore +1 -0
- data/.hound.yml +3 -1
- data/.rubocop.yml +7 -7
- data/Gemfile +1 -2
- data/README.adoc +6 -5
- data/Rakefile +1 -1
- data/bin/m2a.rb +5 -7
- data/bin/rspec +1 -1
- data/lib/mathml2asciimath/m2a.rb +284 -252
- data/lib/mathml2asciimath/version.rb +1 -2
- data/mathml2asciimath.gemspec +7 -7
- data/spec/mathml_spec.rb +341 -251
- data/spec/spec_helper.rb +6 -7
- metadata +36 -41
- data/.github/workflows/macos.yml +0 -27
- data/.github/workflows/ubuntu.yml +0 -27
- data/.github/workflows/windows.yml +0 -30
- data/.rubocop.ribose.yml +0 -65
- data/.rubocop.tb.yml +0 -650
- data/Gemfile.lock +0 -108
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
require
|
1
|
+
require "simplecov"
|
2
2
|
|
3
|
-
SimpleCov.profiles.define
|
4
|
-
add_filter
|
5
|
-
add_filter
|
6
|
-
add_group
|
3
|
+
SimpleCov.profiles.define "gem" do
|
4
|
+
add_filter "/spec/"
|
5
|
+
add_filter "/autotest/"
|
6
|
+
add_group "Libraries", "/lib/"
|
7
7
|
end
|
8
|
-
SimpleCov.start
|
8
|
+
SimpleCov.start "gem"
|
9
9
|
|
10
10
|
require "rspec/match_fuzzy"
|
11
11
|
require "mathml2asciimath"
|
12
|
-
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: '1.12'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: '1.12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '9.1'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec-match_fuzzy
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.1.3
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.1.3
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: guard
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,20 +122,34 @@ dependencies:
|
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '3.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-match_fuzzy
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.1.3
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.1.3
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 1.5.2
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 1.5.2
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,15 +188,11 @@ executables: []
|
|
188
188
|
extensions: []
|
189
189
|
extra_rdoc_files: []
|
190
190
|
files:
|
191
|
-
- ".github/workflows/
|
192
|
-
- ".
|
193
|
-
- ".github/workflows/windows.yml"
|
191
|
+
- ".github/workflows/rake.yml"
|
192
|
+
- ".gitignore"
|
194
193
|
- ".hound.yml"
|
195
|
-
- ".rubocop.ribose.yml"
|
196
|
-
- ".rubocop.tb.yml"
|
197
194
|
- ".rubocop.yml"
|
198
195
|
- Gemfile
|
199
|
-
- Gemfile.lock
|
200
196
|
- LICENSE
|
201
197
|
- README.adoc
|
202
198
|
- Rakefile
|
@@ -208,11 +204,11 @@ files:
|
|
208
204
|
- mathml2asciimath.gemspec
|
209
205
|
- spec/mathml_spec.rb
|
210
206
|
- spec/spec_helper.rb
|
211
|
-
homepage: https://github.com/
|
207
|
+
homepage: https://github.com/plurimath/mathml2asciimath
|
212
208
|
licenses:
|
213
209
|
- BSD-2-Clause
|
214
210
|
metadata: {}
|
215
|
-
post_install_message:
|
211
|
+
post_install_message:
|
216
212
|
rdoc_options: []
|
217
213
|
require_paths:
|
218
214
|
- lib
|
@@ -220,16 +216,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
216
|
requirements:
|
221
217
|
- - ">="
|
222
218
|
- !ruby/object:Gem::Version
|
223
|
-
version: 2.
|
219
|
+
version: 2.5.0
|
224
220
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
221
|
requirements:
|
226
222
|
- - ">="
|
227
223
|
- !ruby/object:Gem::Version
|
228
224
|
version: '0'
|
229
225
|
requirements: []
|
230
|
-
|
231
|
-
|
232
|
-
signing_key:
|
226
|
+
rubygems_version: 3.1.4
|
227
|
+
signing_key:
|
233
228
|
specification_version: 4
|
234
229
|
summary: Convert MathML to AsciiMath
|
235
230
|
test_files: []
|
data/.github/workflows/macos.yml
DELETED
@@ -1,27 +0,0 @@
|
|
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
|
@@ -1,27 +0,0 @@
|
|
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
|
@@ -1,30 +0,0 @@
|
|
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/.rubocop.ribose.yml
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
Include:
|
3
|
-
- "**/*.rake"
|
4
|
-
- "**/Gemfile"
|
5
|
-
- "**/*.gemfile"
|
6
|
-
- "**/Rakefile"
|
7
|
-
Exclude:
|
8
|
-
- "vendor/**/*"
|
9
|
-
- "db/**/*"
|
10
|
-
- "tmp/**/*"
|
11
|
-
DisplayCopNames: false
|
12
|
-
StyleGuideCopsOnly: false
|
13
|
-
Rails:
|
14
|
-
Enabled: true
|
15
|
-
Metrics/AbcSize:
|
16
|
-
Description: A calculated magnitude based on number of assignments, branches, and
|
17
|
-
conditions.
|
18
|
-
Enabled: true
|
19
|
-
Max: 15
|
20
|
-
Metrics/BlockLength:
|
21
|
-
Exclude:
|
22
|
-
- "spec/**/*"
|
23
|
-
Metrics/BlockNesting:
|
24
|
-
Description: Avoid excessive block nesting
|
25
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
|
26
|
-
Enabled: true
|
27
|
-
Max: 3
|
28
|
-
Metrics/ClassLength:
|
29
|
-
Description: Avoid classes longer than 100 lines of code.
|
30
|
-
Enabled: false
|
31
|
-
CountComments: false
|
32
|
-
Max: 100
|
33
|
-
Metrics/CyclomaticComplexity:
|
34
|
-
Description: A complexity metric that is strongly correlated to the number of test
|
35
|
-
cases needed to validate a method.
|
36
|
-
Enabled: true
|
37
|
-
Max: 6
|
38
|
-
Metrics/LineLength:
|
39
|
-
Description: Limit lines to 80 characters.
|
40
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
|
41
|
-
Enabled: true
|
42
|
-
Max: 80
|
43
|
-
AllowURI: true
|
44
|
-
URISchemes:
|
45
|
-
- http
|
46
|
-
- https
|
47
|
-
Metrics/MethodLength:
|
48
|
-
Description: Avoid methods longer than 10 lines of code.
|
49
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
|
50
|
-
Enabled: true
|
51
|
-
CountComments: true
|
52
|
-
Max: 10
|
53
|
-
Exclude:
|
54
|
-
- "spec/**/*"
|
55
|
-
Metrics/ParameterLists:
|
56
|
-
Description: Avoid long parameter lists.
|
57
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
|
58
|
-
Enabled: true
|
59
|
-
Max: 5
|
60
|
-
CountKeywordArgs: true
|
61
|
-
Metrics/PerceivedComplexity:
|
62
|
-
Description: A complexity metric geared towards measuring complexity for a human
|
63
|
-
reader.
|
64
|
-
Enabled: true
|
65
|
-
Max: 7
|