latexmath 0.1.4 → 1.0.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/CHANGELOG.md +50 -0
- data/LICENSE.md +33 -0
- data/README.adoc +133 -14
- data/artifacts/latex.bindings.python.json +1 -0
- data/artifacts/latex.bindings.rs.json +1 -0
- data/artifacts/latex.bindings.ruby.json +1 -0
- data/artifacts/latex.bindings.ts.json +1 -0
- data/artifacts/latex.checksums.txt +19 -0
- data/artifacts/latex.json +1 -0
- data/data/latex-symbols.json +3301 -0
- data/docs/model-contract.adoc +125 -0
- data/docs/parser-contract.adoc +349 -0
- data/docs/testsuite-pin.adoc +76 -0
- data/grammars/latex.wrappers.json +17 -0
- data/lib/latexmath/model/nodes.rb +918 -0
- data/lib/latexmath/model.rb +44 -0
- data/lib/latexmath/parser/artifact.rb +80 -0
- data/lib/latexmath/parser/configuration.rb +35 -0
- data/lib/latexmath/parser/engine.rb +161 -0
- data/lib/latexmath/parser/errors.rb +51 -0
- data/lib/latexmath/parser/native_recursion_guard.rb +43 -0
- data/lib/latexmath/parser/preprocessor.rb +77 -0
- data/lib/latexmath/parser/raw_parser.rb +84 -0
- data/lib/latexmath/parser/source_map.rb +121 -0
- data/lib/latexmath/parser/unwrap.rb +91 -0
- data/lib/latexmath/parser.rb +97 -0
- data/lib/latexmath/symbols.rb +74 -0
- data/lib/latexmath/version.rb +1 -1
- data/lib/latexmath.rb +5 -87
- data/model/latex.lml.checksums.txt +36 -0
- data/model/latex.lml.json +3350 -0
- metadata +60 -71
- data/.editorconfig +0 -14
- data/.github/workflows/test.yml +0 -80
- data/.gitignore +0 -22
- data/.rspec +0 -3
- data/.rubocop.yml +0 -129
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -79
- data/Rakefile +0 -95
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/exe/latexmath +0 -8
- data/latexmath.gemspec +0 -34
- data/lib/latexmath/aggregator.rb +0 -351
- data/lib/latexmath/converter.rb +0 -424
- data/lib/latexmath/equation.rb +0 -13
- data/lib/latexmath/ext.rb +0 -9
- data/lib/latexmath/symbol.rb +0 -21
- data/lib/latexmath/tokenizer.rb +0 -82
- data/lib/latexmath/xml/builder.rb +0 -4
- data/lib/latexmath/xml/element.rb +0 -25
- data/lib/unimathsymbols.js.erb +0 -4
- data/lib/unimathsymbols.txt +0 -2864
- data/opal/latexmath-opal.rb +0 -40
- data/opal/ox.rb +0 -64
- data/opal/pseudoenumerator.rb +0 -19
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: latexmath
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
|
-
autorequire:
|
|
9
|
-
bindir:
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: htmlentities
|
|
@@ -25,106 +25,95 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: lutaml-model
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '0.8'
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: 0.8.162
|
|
34
37
|
type: :runtime
|
|
35
38
|
prerelease: false
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
40
|
requirements:
|
|
38
41
|
- - "~>"
|
|
39
42
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: equivalent-xml
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ">="
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
43
|
+
version: '0.8'
|
|
52
44
|
- - ">="
|
|
53
45
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
46
|
+
version: 0.8.162
|
|
55
47
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
48
|
+
name: parsanol
|
|
57
49
|
requirement: !ruby/object:Gem::Requirement
|
|
58
50
|
requirements:
|
|
59
|
-
- - "
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
51
|
+
- - "~>"
|
|
67
52
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: opal
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
53
|
+
version: '1.3'
|
|
73
54
|
- - ">="
|
|
74
55
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
76
|
-
type: :
|
|
56
|
+
version: 1.3.131
|
|
57
|
+
type: :runtime
|
|
77
58
|
prerelease: false
|
|
78
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
60
|
requirements:
|
|
61
|
+
- - "~>"
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '1.3'
|
|
80
64
|
- - ">="
|
|
81
65
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
83
|
-
description:
|
|
66
|
+
version: 1.3.131
|
|
67
|
+
description: |
|
|
68
|
+
LaTeX math parser that runs a compiled Parsanol grammar artifact and
|
|
69
|
+
returns a typed LaTeX model declared with LutaML Model. Used by
|
|
70
|
+
Plurimath.
|
|
84
71
|
email:
|
|
85
72
|
- open.source@ribose.com
|
|
86
|
-
executables:
|
|
87
|
-
- latexmath
|
|
73
|
+
executables: []
|
|
88
74
|
extensions: []
|
|
89
75
|
extra_rdoc_files: []
|
|
90
76
|
files:
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
- ".gitignore"
|
|
94
|
-
- ".rspec"
|
|
95
|
-
- ".rubocop.yml"
|
|
96
|
-
- CODE_OF_CONDUCT.md
|
|
97
|
-
- Gemfile
|
|
98
|
-
- Gemfile.lock
|
|
77
|
+
- CHANGELOG.md
|
|
78
|
+
- LICENSE.md
|
|
99
79
|
- README.adoc
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
80
|
+
- artifacts/latex.bindings.python.json
|
|
81
|
+
- artifacts/latex.bindings.rs.json
|
|
82
|
+
- artifacts/latex.bindings.ruby.json
|
|
83
|
+
- artifacts/latex.bindings.ts.json
|
|
84
|
+
- artifacts/latex.checksums.txt
|
|
85
|
+
- artifacts/latex.json
|
|
86
|
+
- data/latex-symbols.json
|
|
87
|
+
- docs/model-contract.adoc
|
|
88
|
+
- docs/parser-contract.adoc
|
|
89
|
+
- docs/testsuite-pin.adoc
|
|
90
|
+
- grammars/latex.wrappers.json
|
|
105
91
|
- lib/latexmath.rb
|
|
106
|
-
- lib/latexmath/
|
|
107
|
-
- lib/latexmath/
|
|
108
|
-
- lib/latexmath/
|
|
109
|
-
- lib/latexmath/
|
|
110
|
-
- lib/latexmath/
|
|
111
|
-
- lib/latexmath/
|
|
92
|
+
- lib/latexmath/model.rb
|
|
93
|
+
- lib/latexmath/model/nodes.rb
|
|
94
|
+
- lib/latexmath/parser.rb
|
|
95
|
+
- lib/latexmath/parser/artifact.rb
|
|
96
|
+
- lib/latexmath/parser/configuration.rb
|
|
97
|
+
- lib/latexmath/parser/engine.rb
|
|
98
|
+
- lib/latexmath/parser/errors.rb
|
|
99
|
+
- lib/latexmath/parser/native_recursion_guard.rb
|
|
100
|
+
- lib/latexmath/parser/preprocessor.rb
|
|
101
|
+
- lib/latexmath/parser/raw_parser.rb
|
|
102
|
+
- lib/latexmath/parser/source_map.rb
|
|
103
|
+
- lib/latexmath/parser/unwrap.rb
|
|
104
|
+
- lib/latexmath/symbols.rb
|
|
112
105
|
- lib/latexmath/version.rb
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
- lib/unimathsymbols.js.erb
|
|
116
|
-
- lib/unimathsymbols.txt
|
|
117
|
-
- opal/latexmath-opal.rb
|
|
118
|
-
- opal/ox.rb
|
|
119
|
-
- opal/pseudoenumerator.rb
|
|
106
|
+
- model/latex.lml.checksums.txt
|
|
107
|
+
- model/latex.lml.json
|
|
120
108
|
homepage: https://github.com/plurimath/latexmath
|
|
121
109
|
licenses:
|
|
122
110
|
- BSD-2-Clause
|
|
123
111
|
metadata:
|
|
124
112
|
homepage_uri: https://github.com/plurimath/latexmath
|
|
125
113
|
source_code_uri: https://github.com/plurimath/latexmath
|
|
126
|
-
changelog_uri: https://github.com/plurimath/latexmath/blob/
|
|
127
|
-
|
|
114
|
+
changelog_uri: https://github.com/plurimath/latexmath/blob/main/CHANGELOG.md
|
|
115
|
+
rubygems_mfa_required: 'true'
|
|
116
|
+
post_install_message:
|
|
128
117
|
rdoc_options: []
|
|
129
118
|
require_paths:
|
|
130
119
|
- lib
|
|
@@ -132,15 +121,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
132
121
|
requirements:
|
|
133
122
|
- - ">="
|
|
134
123
|
- !ruby/object:Gem::Version
|
|
135
|
-
version: 2.
|
|
124
|
+
version: 3.2.0
|
|
136
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
126
|
requirements:
|
|
138
127
|
- - ">="
|
|
139
128
|
- !ruby/object:Gem::Version
|
|
140
129
|
version: '0'
|
|
141
130
|
requirements: []
|
|
142
|
-
rubygems_version: 3.
|
|
143
|
-
signing_key:
|
|
131
|
+
rubygems_version: 3.5.22
|
|
132
|
+
signing_key:
|
|
144
133
|
specification_version: 4
|
|
145
|
-
summary:
|
|
134
|
+
summary: LaTeX math parser by Plurimath.
|
|
146
135
|
test_files: []
|
data/.editorconfig
DELETED
data/.github/workflows/test.yml
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
name: test
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
pull_request:
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build:
|
|
10
|
-
name: Run specs on ${{ matrix.os }} ruby ${{ matrix.ruby }}
|
|
11
|
-
runs-on: ${{ matrix.os }}
|
|
12
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
17
|
-
ruby: ['2.6', '2.5', '2.4']
|
|
18
|
-
experimental: [false]
|
|
19
|
-
include:
|
|
20
|
-
- ruby: '2.7'
|
|
21
|
-
os: ubuntu-latest
|
|
22
|
-
experimental: true
|
|
23
|
-
- ruby: '2.7'
|
|
24
|
-
os: macos-latest
|
|
25
|
-
experimental: true
|
|
26
|
-
- ruby: '2.7'
|
|
27
|
-
os: windows-latest
|
|
28
|
-
experimental: true
|
|
29
|
-
|
|
30
|
-
steps:
|
|
31
|
-
- name: Use Ruby
|
|
32
|
-
uses: actions/setup-ruby@v1
|
|
33
|
-
with:
|
|
34
|
-
ruby-version: ${{ matrix.ruby }}
|
|
35
|
-
|
|
36
|
-
- uses: actions/checkout@master
|
|
37
|
-
|
|
38
|
-
- name: Install gems
|
|
39
|
-
run: |
|
|
40
|
-
gem install bundler -v "~> 2"
|
|
41
|
-
bundle install --jobs 4 --retry 5
|
|
42
|
-
|
|
43
|
-
- name: Install LaTeXML on Ubuntu
|
|
44
|
-
if: matrix.os == 'ubuntu-latest'
|
|
45
|
-
run: |
|
|
46
|
-
sudo snap install latexml --edge
|
|
47
|
-
echo "::add-path::/snap/bin"
|
|
48
|
-
|
|
49
|
-
- name: Install LaTeXML on macOS
|
|
50
|
-
if: matrix.os == 'macos-latest'
|
|
51
|
-
run: |
|
|
52
|
-
brew install libxml2 cpanminus
|
|
53
|
-
env PATH=$(brew --prefix libxml2)/bin:$PATH \
|
|
54
|
-
cpanm --notest XML::LibXSLT@1.96 git://github.com/brucemiller/LaTeXML.git@9a0e7dc5
|
|
55
|
-
|
|
56
|
-
- name: Install LaTeXML on Windows
|
|
57
|
-
if: matrix.os == 'windows-latest'
|
|
58
|
-
shell: cmd
|
|
59
|
-
run: |
|
|
60
|
-
cinst -y latexml
|
|
61
|
-
refreshenv
|
|
62
|
-
set PATH=C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
|
|
63
|
-
where latexmlmath
|
|
64
|
-
|
|
65
|
-
- name: Run RSpecs
|
|
66
|
-
if: matrix.os == 'ubuntu-latest'
|
|
67
|
-
run: |
|
|
68
|
-
bundle exec rake
|
|
69
|
-
|
|
70
|
-
- name: Run RSpecs
|
|
71
|
-
if: matrix.os == 'macos-latest'
|
|
72
|
-
run: |
|
|
73
|
-
env PATH=$(brew --prefix perl)/bin:$PATH bundle exec rake
|
|
74
|
-
|
|
75
|
-
- name: Run specs
|
|
76
|
-
if: matrix.os == 'windows-latest'
|
|
77
|
-
shell: pwsh
|
|
78
|
-
run: |
|
|
79
|
-
$env:Path = "C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;$env:Path"
|
|
80
|
-
bundle exec rake
|
data/.gitignore
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/.bundle/
|
|
2
|
-
/.yardoc
|
|
3
|
-
/_yardoc/
|
|
4
|
-
/coverage/
|
|
5
|
-
/doc/
|
|
6
|
-
/pkg/
|
|
7
|
-
/spec/reports/
|
|
8
|
-
/tmp/
|
|
9
|
-
|
|
10
|
-
# ignore generated file via Rakefile
|
|
11
|
-
/lib/latexmath/constants/symbols.rb
|
|
12
|
-
|
|
13
|
-
# rspec failure tracking
|
|
14
|
-
.rspec_status
|
|
15
|
-
|
|
16
|
-
# ignore byebug history
|
|
17
|
-
.byebug_history
|
|
18
|
-
|
|
19
|
-
# ignore MacOS system file
|
|
20
|
-
.DS_Store
|
|
21
|
-
|
|
22
|
-
/dist/
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
Layout/EndAlignment:
|
|
2
|
-
Exclude:
|
|
3
|
-
- 'lib/latexmath/converter.rb'
|
|
4
|
-
- 'lib/latexmath/tokenizer.rb'
|
|
5
|
-
|
|
6
|
-
# Offense count: 1
|
|
7
|
-
# Configuration parameters: AllowSafeAssignment.
|
|
8
|
-
Lint/AssignmentInCondition:
|
|
9
|
-
Exclude:
|
|
10
|
-
- 'lib/latexmath/tokenizer.rb'
|
|
11
|
-
|
|
12
|
-
# Offense count: 2
|
|
13
|
-
Lint/ImplicitStringConcatenation:
|
|
14
|
-
Exclude:
|
|
15
|
-
- 'spec/tokenizer_spec.rb'
|
|
16
|
-
|
|
17
|
-
# Offense count: 1
|
|
18
|
-
# Configuration parameters: AllowKeywordBlockArguments.
|
|
19
|
-
Lint/UnderscorePrefixedVariableName:
|
|
20
|
-
Exclude:
|
|
21
|
-
- 'lib/latexmath/converter.rb'
|
|
22
|
-
|
|
23
|
-
# Offense count: 2
|
|
24
|
-
Lint/UselessAssignment:
|
|
25
|
-
Exclude:
|
|
26
|
-
- 'lib/latexmath/converter.rb'
|
|
27
|
-
|
|
28
|
-
# Offense count: 7
|
|
29
|
-
# Configuration parameters: IgnoredMethods.
|
|
30
|
-
Metrics/AbcSize:
|
|
31
|
-
Max: 32
|
|
32
|
-
|
|
33
|
-
# Offense count: 1
|
|
34
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
|
35
|
-
# ExcludedMethods: refine
|
|
36
|
-
Metrics/BlockLength:
|
|
37
|
-
Max: 35
|
|
38
|
-
|
|
39
|
-
# Offense count: 1
|
|
40
|
-
# Configuration parameters: CountBlocks.
|
|
41
|
-
Metrics/BlockNesting:
|
|
42
|
-
Max: 4
|
|
43
|
-
|
|
44
|
-
# Offense count: 1
|
|
45
|
-
# Configuration parameters: CountComments, CountAsOne.
|
|
46
|
-
Metrics/ClassLength:
|
|
47
|
-
Max: 157
|
|
48
|
-
|
|
49
|
-
# Offense count: 6
|
|
50
|
-
# Configuration parameters: IgnoredMethods.
|
|
51
|
-
Metrics/CyclomaticComplexity:
|
|
52
|
-
Max: 13
|
|
53
|
-
|
|
54
|
-
# Offense count: 9
|
|
55
|
-
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
|
|
56
|
-
Metrics/MethodLength:
|
|
57
|
-
Max: 39
|
|
58
|
-
|
|
59
|
-
# Offense count: 6
|
|
60
|
-
# Configuration parameters: IgnoredMethods.
|
|
61
|
-
Metrics/PerceivedComplexity:
|
|
62
|
-
Max: 14
|
|
63
|
-
|
|
64
|
-
# Offense count: 1
|
|
65
|
-
Naming/ConstantName:
|
|
66
|
-
Exclude:
|
|
67
|
-
- 'lib/latexmath.rb'
|
|
68
|
-
|
|
69
|
-
# Offense count: 2
|
|
70
|
-
# Cop supports --auto-correct.
|
|
71
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
72
|
-
# SupportedStyles: nested, compact
|
|
73
|
-
Style/ClassAndModuleChildren:
|
|
74
|
-
Exclude:
|
|
75
|
-
- 'lib/latexmath/xml/builder.rb'
|
|
76
|
-
- 'lib/latexmath/xml/element.rb'
|
|
77
|
-
|
|
78
|
-
# Offense count: 7
|
|
79
|
-
Style/Documentation:
|
|
80
|
-
Exclude:
|
|
81
|
-
- 'spec/**/*'
|
|
82
|
-
- 'test/**/*'
|
|
83
|
-
- 'lib/latexmath.rb'
|
|
84
|
-
- 'lib/latexmath/aggregator.rb'
|
|
85
|
-
- 'lib/latexmath/converter.rb'
|
|
86
|
-
- 'lib/latexmath/equation.rb'
|
|
87
|
-
- 'lib/latexmath/tokenizer.rb'
|
|
88
|
-
|
|
89
|
-
# Offense count: 18
|
|
90
|
-
# Cop supports --auto-correct.
|
|
91
|
-
# Configuration parameters: EnforcedStyle.
|
|
92
|
-
# SupportedStyles: always, always_true, never
|
|
93
|
-
Style/FrozenStringLiteralComment:
|
|
94
|
-
Enabled: false
|
|
95
|
-
|
|
96
|
-
# Offense count: 2
|
|
97
|
-
# Configuration parameters: MinBodyLength.
|
|
98
|
-
Style/GuardClause:
|
|
99
|
-
Exclude:
|
|
100
|
-
- 'lib/latexmath/aggregator.rb'
|
|
101
|
-
|
|
102
|
-
# Offense count: 5
|
|
103
|
-
Style/IdenticalConditionalBranches:
|
|
104
|
-
Exclude:
|
|
105
|
-
- 'lib/latexmath/converter.rb'
|
|
106
|
-
|
|
107
|
-
# Offense count: 1
|
|
108
|
-
# Cop supports --auto-correct.
|
|
109
|
-
Style/LineEndConcatenation:
|
|
110
|
-
Exclude:
|
|
111
|
-
- 'spec/tokenizer_spec.rb'
|
|
112
|
-
|
|
113
|
-
# Offense count: 5
|
|
114
|
-
# Cop supports --auto-correct.
|
|
115
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
|
116
|
-
# SupportedStyles: predicate, comparison
|
|
117
|
-
Style/NumericPredicate:
|
|
118
|
-
Exclude:
|
|
119
|
-
- 'spec/**/*'
|
|
120
|
-
- 'lib/latexmath/aggregator.rb'
|
|
121
|
-
- 'lib/latexmath/converter.rb'
|
|
122
|
-
|
|
123
|
-
# Offense count: 2
|
|
124
|
-
# Cop supports --auto-correct.
|
|
125
|
-
Style/ZeroLengthPredicate:
|
|
126
|
-
Exclude:
|
|
127
|
-
- 'lib/latexmath/converter.rb'
|
|
128
|
-
|
|
129
|
-
|
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at ronald.tse@ribose.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: https://contributor-covenant.org
|
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
latexmath (0.1.4)
|
|
5
|
-
htmlentities (~> 4.3)
|
|
6
|
-
ox (~> 2.13)
|
|
7
|
-
|
|
8
|
-
GEM
|
|
9
|
-
remote: https://rubygems.org/
|
|
10
|
-
specs:
|
|
11
|
-
ast (2.4.1)
|
|
12
|
-
byebug (11.1.3)
|
|
13
|
-
coderay (1.1.3)
|
|
14
|
-
diff-lcs (1.4.4)
|
|
15
|
-
equivalent-xml (0.6.0)
|
|
16
|
-
nokogiri (>= 1.4.3)
|
|
17
|
-
execjs (2.7.0)
|
|
18
|
-
htmlentities (4.3.4)
|
|
19
|
-
method_source (1.0.0)
|
|
20
|
-
mini_portile2 (2.4.0)
|
|
21
|
-
nokogiri (1.10.10)
|
|
22
|
-
mini_portile2 (~> 2.4.0)
|
|
23
|
-
opal (1.0.3)
|
|
24
|
-
ast (>= 2.3.0)
|
|
25
|
-
parser (~> 2.6)
|
|
26
|
-
ox (2.13.3)
|
|
27
|
-
parallel (1.19.2)
|
|
28
|
-
parser (2.7.1.4)
|
|
29
|
-
ast (~> 2.4.1)
|
|
30
|
-
pry (0.13.1)
|
|
31
|
-
coderay (~> 1.1)
|
|
32
|
-
method_source (~> 1.0)
|
|
33
|
-
rainbow (3.0.0)
|
|
34
|
-
rake (12.3.3)
|
|
35
|
-
regexp_parser (1.7.1)
|
|
36
|
-
rexml (3.2.4)
|
|
37
|
-
rspec (3.9.0)
|
|
38
|
-
rspec-core (~> 3.9.0)
|
|
39
|
-
rspec-expectations (~> 3.9.0)
|
|
40
|
-
rspec-mocks (~> 3.9.0)
|
|
41
|
-
rspec-core (3.9.2)
|
|
42
|
-
rspec-support (~> 3.9.3)
|
|
43
|
-
rspec-expectations (3.9.2)
|
|
44
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
|
-
rspec-support (~> 3.9.0)
|
|
46
|
-
rspec-mocks (3.9.1)
|
|
47
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
48
|
-
rspec-support (~> 3.9.0)
|
|
49
|
-
rspec-support (3.9.3)
|
|
50
|
-
rubocop (0.90.0)
|
|
51
|
-
parallel (~> 1.10)
|
|
52
|
-
parser (>= 2.7.1.1)
|
|
53
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
54
|
-
regexp_parser (>= 1.7)
|
|
55
|
-
rexml
|
|
56
|
-
rubocop-ast (>= 0.3.0, < 1.0)
|
|
57
|
-
ruby-progressbar (~> 1.7)
|
|
58
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
|
59
|
-
rubocop-ast (0.3.0)
|
|
60
|
-
parser (>= 2.7.1.4)
|
|
61
|
-
ruby-progressbar (1.10.1)
|
|
62
|
-
unicode-display_width (1.7.0)
|
|
63
|
-
|
|
64
|
-
PLATFORMS
|
|
65
|
-
ruby
|
|
66
|
-
|
|
67
|
-
DEPENDENCIES
|
|
68
|
-
byebug
|
|
69
|
-
equivalent-xml
|
|
70
|
-
execjs
|
|
71
|
-
latexmath!
|
|
72
|
-
opal
|
|
73
|
-
pry
|
|
74
|
-
rake (~> 12.0)
|
|
75
|
-
rspec (~> 3.0)
|
|
76
|
-
rubocop
|
|
77
|
-
|
|
78
|
-
BUNDLED WITH
|
|
79
|
-
2.1.4
|