omml2mathml 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32b7152d111102b734e6ee1fe4c41cbb2379efc408852cdb1ed3966b9f6c62db
4
- data.tar.gz: 96eb1d2c611adb9b932289593e3ef2fa94a51c6cd75c0e0ed44f0d6e1adaada4
3
+ metadata.gz: f7ace8eb8ce776ab6bf79a84a413703233e23af57605ef4314937c8e494c1a5b
4
+ data.tar.gz: a7d16ba5c1036dafd44442de68559ada29024961c6af72d763266a414a9068fe
5
5
  SHA512:
6
- metadata.gz: 25a79cba1de8666521f3366c8f0f9b53d04df71518abc7fd07f73ae74979a0612cf8a3ea9d8bfa3e171afbf410d87cabec184c233fd015430117125a1ac5478d
7
- data.tar.gz: 6b2289d3d6ee2969c5388a26bbdb35df9b4852939e9514bda2d4af71003eb14868d465a6b19d0853aab6c8c16e15e733d178d3a425671e182092de28ceaf1d80
6
+ metadata.gz: 797ad140a03873d956cbc680abf370710d2d4e8a1e2844743063d10fbf6ad11dc5421cf77977e994a3ee7763d14fe0c47456fe87a92566920758dacfa6e77bc8
7
+ data.tar.gz: d6b4919a6941459f2ca62910c631b58cf42283d5615adbf62e4baee34752036450a3851d02a03691dc277f43b9f42eb298cf4f10161400dde6b5ea3ce328070d
@@ -0,0 +1,42 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ name: rake
4
+
5
+ on:
6
+ push:
7
+ branches: [ master, main ]
8
+ tags: [ v* ]
9
+ pull_request:
10
+
11
+ jobs:
12
+ rake:
13
+ name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
14
+ runs-on: ${{ matrix.os }}
15
+ continue-on-error: ${{ matrix.experimental }}
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ ruby: [ '2.7', '2.6', '2.5', '2.4' ]
20
+ os: [ ubuntu-latest, windows-latest, macos-latest ]
21
+ experimental: [ false ]
22
+ include:
23
+ - ruby: '3.0'
24
+ os: 'ubuntu-latest'
25
+ experimental: true
26
+ - ruby: '3.0'
27
+ os: 'windows-latest'
28
+ experimental: true
29
+ - ruby: '3.0'
30
+ os: 'macos-latest'
31
+ experimental: true
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ with:
35
+ submodules: true
36
+
37
+ - uses: ruby/setup-ruby@v1
38
+ with:
39
+ ruby-version: ${{ matrix.ruby }}
40
+ bundler-cache: true
41
+
42
+ - run: bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ .rubocop-https--*
data/.rubocop.yml CHANGED
@@ -1,10 +1,12 @@
1
1
  # This project follows the Ribose OSS style guide.
2
2
  # https://github.com/riboseinc/oss-guides
3
3
  # All project-specific additions and overrides should be specified in this file.
4
-
5
4
  inherit_from:
6
5
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
6
+
7
+ # local repo-specific modifications
8
+
7
9
  AllCops:
8
- TargetRubyVersion: 2.3
9
- Rails:
10
- Enabled: true
10
+ DisplayCopNames: false
11
+ StyleGuideCopsOnly: false
12
+ TargetRubyVersion: 2.4
data/README.adoc CHANGED
@@ -1,12 +1,10 @@
1
1
  = omml2mathml
2
2
 
3
3
  image:https://img.shields.io/gem/v/omml2mathml.svg["Gem Version", link="https://rubygems.org/gems/omml2mathml"]
4
- image:https://github.com/metanorma/omml2mathml/workflows/ubuntu/badge.svg["Ubuntu Build Status", link="https://github.com/metanorma/omml2mathml/actions?query=workflow%3Aubuntu"]
5
- image:https://github.com/metanorma/omml2mathml/workflows/macos/badge.svg["OSX Build Status", link="https://github.com/metanorma/omml2mathml/actions?query=workflow%3Amacos"]
6
- image:https://github.com/metanorma/omml2mathml/workflows/windows/badge.svg["Windows Build Status", link="https://github.com/metanorma/omml2mathml/actions?query=workflow%3Awindows"]
7
- image:https://codeclimate.com/github/metanorma/omml2mathml/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/omml2mathml"]
8
- image:https://img.shields.io/github/issues-pr-raw/metanorma/omml2mathml.svg["Pull Requests", link="https://github.com/metanorma/omml2mathml/pulls"]
9
- image:https://img.shields.io/github/commits-since/metanorma/omml2mathml/latest.svg["Commits since latest",link="https://github.com/metanorma/omml2mathml/releases"]
4
+ image:https://github.com/plurimath/omml2mathml/workflows/rake/badge.svg["Build Status", link="https://github.com/plurimath/omml2mathml/actions?query=workflow%3Arake"]
5
+ image:https://codeclimate.com/github/plurimath/omml2mathml/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/plurimath/omml2mathml"]
6
+ image:https://img.shields.io/github/issues-pr-raw/plurimath/omml2mathml.svg["Pull Requests", link="https://github.com/plurimath/omml2mathml/pulls"]
7
+ image:https://img.shields.io/github/commits-since/plurimath/omml2mathml/latest.svg["Commits since latest",link="https://github.com/plurimath/omml2mathml/releases"]
10
8
 
11
9
  Convert Office Math Markup to MathML
12
10
 
@@ -1,4 +1,4 @@
1
1
  module Omml2Mathml
2
- VERSION = "0.0.7".freeze
2
+ VERSION = "0.0.8".freeze
3
3
  end
4
4
 
data/omml2mathml.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  This is a Ruby gem for converting Office Math Markup (OMML) into MathML within Word HTML documents.
15
15
  DESCRIPTION
16
16
 
17
- spec.homepage = "https://github.com/metanorma/omml2mathml"
17
+ spec.homepage = "https://github.com/plurimath/omml2mathml"
18
18
  spec.license = "BSD-2-Clause"
19
19
 
20
20
  spec.bindir = "bin"
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.test_files = `git ls-files -- {spec}/*`.split("\n")
24
24
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
25
25
 
26
- spec.add_dependency "nokogiri", ">= 1.10.4"
26
+ spec.add_dependency "nokogiri", "~> 1.11"
27
27
 
28
28
  spec.add_development_dependency "bundler"
29
29
  spec.add_development_dependency "byebug", "~> 9.1"
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency "guard-rspec", "~> 4.7"
33
33
  spec.add_development_dependency "rake", "~> 12.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.6"
35
- spec.add_development_dependency "rubocop", "= 0.54.0"
35
+ spec.add_development_dependency "rubocop", "~> 1.5.2"
36
36
  spec.add_development_dependency "simplecov", "~> 0.15"
37
37
  spec.add_development_dependency "timecop", "~> 0.9"
38
38
  end
@@ -8,7 +8,7 @@ RSpec.describe Omml2Mathml do
8
8
  it "processes a document" do
9
9
  html = Omml2Mathml.convert("spec/test.html").sub(/<\?xml[^>]+>/, "").sub(/<!DOCTYPE[^>]+>/, "")
10
10
  expect(html).to be_equivalent_to <<~"OUTPUT"
11
- <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml">
11
+ <html xmlns="http://www.w3.org/TR/REC-html40" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml">
12
12
 
13
13
  <head>
14
14
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
@@ -19,11 +19,11 @@ RSpec.describe Omml2Mathml do
19
19
  <link rel="Edit-Time-Data" href="Part%201_General.fld/editdata.mso"/>
20
20
  </head>
21
21
 
22
- <body lang="EL" link="blue" vlink="purple" style="tab-interval:20.0pt" xml:lang="EL">
22
+ <body lang="EL" link="blue" vlink="purple" style="tab-interval:20.0pt">
23
23
 
24
24
  <div class="WordSection3">
25
25
 
26
- <p class="MsoNormal"><span lang="EN-US" style="mso-fareast-font-family:SimSun;&#10;mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:&#10;ZH-CN" xml:lang="EN-US">This standard applies to the elliptic curves over the finite field </span><mml:math>
26
+ <p class="MsoNormal"><span lang="EN-US" style="mso-fareast-font-family:SimSun;&#10;mso-fareast-theme-font:minor-fareast;mso-ansi-language:EN-US;mso-fareast-language:&#10;ZH-CN">This standard applies to the elliptic curves over the finite field </span><mml:math>
27
27
  <mml:msub>
28
28
  <mml:mrow>
29
29
  <mml:mrow>
@@ -36,8 +36,10 @@ RSpec.describe Omml2Mathml do
36
36
  </mml:mrow>
37
37
  </mml:mrow>
38
38
  </mml:msub>
39
- </mml:math><span lang="EN-US" style="mso-fareast-font-family:SimSun;mso-fareast-theme-font:minor-fareast;&#10;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN" xml:lang="EN-US"><span style="mso-spacerun:yes">&#xA0;</span>(the prime </span><mml:math>
40
- <mml:mi>p</mml:mi><mml:msup>
39
+ </mml:math><span lang="EN-US" style="mso-fareast-font-family:SimSun;mso-fareast-theme-font:minor-fareast;&#10;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN"><span style="mso-spacerun:yes">&#xA0;</span>(the prime </span><mml:math>
40
+ <mml:mi>p</mml:mi>
41
+ <mml:mo>&gt;</mml:mo>
42
+ <mml:msup>
41
43
  <mml:mrow>
42
44
  <mml:mrow>
43
45
  <mml:mn>2</mml:mn>
@@ -49,7 +51,7 @@ RSpec.describe Omml2Mathml do
49
51
  </mml:mrow>
50
52
  </mml:mrow>
51
53
  </mml:msup>
52
- </mml:math><span lang="EN-US" style="mso-fareast-font-family:SimSun;mso-fareast-theme-font:minor-fareast;&#10;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN" xml:lang="EN-US">).<p/></span></p>
54
+ </mml:math><span lang="EN-US" style="mso-fareast-font-family:SimSun;mso-fareast-theme-font:minor-fareast;&#10;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN">).<p/></span></p>
53
55
 
54
56
  </div>
55
57
  </body>
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omml2mathml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-23 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.10.4
19
+ version: '1.11'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.10.4
26
+ version: '1.11'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -126,16 +126,16 @@ dependencies:
126
126
  name: rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.54.0
131
+ version: 1.5.2
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.54.0
138
+ version: 1.5.2
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -174,13 +174,11 @@ executables: []
174
174
  extensions: []
175
175
  extra_rdoc_files: []
176
176
  files:
177
- - ".github/workflows/macos.yml"
178
- - ".github/workflows/ubuntu.yml"
179
- - ".github/workflows/windows.yml"
177
+ - ".github/workflows/rake.yml"
178
+ - ".gitignore"
180
179
  - ".hound.yml"
181
180
  - ".rubocop.yml"
182
181
  - Gemfile
183
- - Gemfile.lock
184
182
  - LICENSE.txt
185
183
  - README.adoc
186
184
  - Rakefile
@@ -196,7 +194,7 @@ files:
196
194
  - spec/omml2mathml_spec.rb
197
195
  - spec/spec_helper.rb
198
196
  - spec/test.html
199
- homepage: https://github.com/metanorma/omml2mathml
197
+ homepage: https://github.com/plurimath/omml2mathml
200
198
  licenses:
201
199
  - BSD-2-Clause
202
200
  metadata: {}
@@ -215,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
213
  - !ruby/object:Gem::Version
216
214
  version: '0'
217
215
  requirements: []
218
- rubygems_version: 3.0.3
216
+ rubygems_version: 3.1.4
219
217
  signing_key:
220
218
  specification_version: 4
221
219
  summary: Convert Office Math Markup to MathML
@@ -1,38 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: macos
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/ubuntu.yml
11
- - .github/workflows/windows.yml
12
-
13
- jobs:
14
- test-macos:
15
- name: Test on Ruby ${{ matrix.ruby }} macOS
16
- runs-on: macos-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- run: |
34
- sudo gem install bundler --force
35
- bundle install --jobs 4 --retry 3
36
- - name: Run specs
37
- run: |
38
- bundle exec rake
@@ -1,56 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: ubuntu
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- tags:
9
- - '*'
10
- pull_request:
11
- paths-ignore:
12
- - .github/workflows/macos.yml
13
- - .github/workflows/windows.yml
14
-
15
- jobs:
16
- test-linux:
17
- name: Test on Ruby ${{ matrix.ruby }} Ubuntu
18
- runs-on: ubuntu-latest
19
- continue-on-error: ${{ matrix.experimental }}
20
- strategy:
21
- fail-fast: false
22
- matrix:
23
- ruby: [ '2.6', '2.5', '2.4' ]
24
- experimental: [false]
25
- include:
26
- - ruby: '2.7'
27
- experimental: true
28
- steps:
29
- - uses: actions/checkout@master
30
- - name: Use Ruby
31
- uses: actions/setup-ruby@v1
32
- with:
33
- ruby-version: ${{ matrix.ruby }}
34
- - name: Update gems
35
- run: |
36
- gem install bundler
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake
41
- - name: Trigger repositories
42
- if: matrix.ruby == '2.6'
43
- env:
44
- GH_USERNAME: metanorma-ci
45
- GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
46
- run: |
47
- curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
48
- [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
49
- CLIENT_PAYLOAD=$(cat <<EOF
50
- "{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
51
- EOF
52
- )
53
- for repo in $REPOS
54
- do
55
- sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
56
- done
@@ -1,40 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: windows
4
-
5
- on:
6
- push:
7
- branches: [ master ]
8
- pull_request:
9
- paths-ignore:
10
- - .github/workflows/macos.yml
11
- - .github/workflows/ubuntu.yml
12
-
13
- jobs:
14
- test-windows:
15
- name: Test on Ruby ${{ matrix.ruby }} Windows
16
- runs-on: windows-latest
17
- continue-on-error: ${{ matrix.experimental }}
18
- strategy:
19
- fail-fast: false
20
- matrix:
21
- ruby: [ '2.6', '2.5', '2.4' ]
22
- experimental: [false]
23
- include:
24
- - ruby: '2.7'
25
- experimental: true
26
- steps:
27
- - uses: actions/checkout@master
28
- - name: Use Ruby
29
- uses: actions/setup-ruby@v1
30
- with:
31
- ruby-version: ${{ matrix.ruby }}
32
- - name: Update gems
33
- shell: pwsh
34
- run: |
35
- gem install bundler
36
- bundle config --local path vendor/bundle
37
- bundle install --jobs 4 --retry 3
38
- - name: Run specs
39
- run: |
40
- bundle exec rake
data/Gemfile.lock DELETED
@@ -1,107 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- omml2mathml (0.0.7)
5
- nokogiri (>= 1.10.4)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.1)
11
- byebug (9.1.0)
12
- coderay (1.1.3)
13
- diff-lcs (1.4.4)
14
- docile (1.3.2)
15
- equivalent-xml (0.6.0)
16
- nokogiri (>= 1.4.3)
17
- ffi (1.13.1)
18
- formatador (0.2.5)
19
- guard (2.16.2)
20
- formatador (>= 0.2.4)
21
- listen (>= 2.7, < 4.0)
22
- lumberjack (>= 1.0.12, < 2.0)
23
- nenv (~> 0.1)
24
- notiffany (~> 0.0)
25
- pry (>= 0.9.12)
26
- shellany (~> 0.0)
27
- thor (>= 0.18.1)
28
- guard-compat (1.2.1)
29
- guard-rspec (4.7.3)
30
- guard (~> 2.1)
31
- guard-compat (~> 1.1)
32
- rspec (>= 2.99.0, < 4.0)
33
- listen (3.2.1)
34
- rb-fsevent (~> 0.10, >= 0.10.3)
35
- rb-inotify (~> 0.9, >= 0.9.10)
36
- lumberjack (1.2.6)
37
- method_source (1.0.0)
38
- mini_portile2 (2.4.0)
39
- nenv (0.3.0)
40
- nokogiri (1.10.10)
41
- mini_portile2 (~> 2.4.0)
42
- notiffany (0.1.3)
43
- nenv (~> 0.1)
44
- shellany (~> 0.0)
45
- parallel (1.19.2)
46
- parser (2.7.1.4)
47
- ast (~> 2.4.1)
48
- powerpack (0.1.2)
49
- pry (0.13.1)
50
- coderay (~> 1.1)
51
- method_source (~> 1.0)
52
- rainbow (3.0.0)
53
- rake (12.3.3)
54
- rb-fsevent (0.10.4)
55
- rb-inotify (0.10.1)
56
- ffi (~> 1.0)
57
- rspec (3.9.0)
58
- rspec-core (~> 3.9.0)
59
- rspec-expectations (~> 3.9.0)
60
- rspec-mocks (~> 3.9.0)
61
- rspec-core (3.9.2)
62
- rspec-support (~> 3.9.3)
63
- rspec-expectations (3.9.2)
64
- diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.9.0)
66
- rspec-match_fuzzy (0.1.3)
67
- rspec (>= 3.2)
68
- rspec-mocks (3.9.1)
69
- diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.9.0)
71
- rspec-support (3.9.3)
72
- rubocop (0.54.0)
73
- parallel (~> 1.10)
74
- parser (>= 2.5)
75
- powerpack (~> 0.1)
76
- rainbow (>= 2.2.2, < 4.0)
77
- ruby-progressbar (~> 1.7)
78
- unicode-display_width (~> 1.0, >= 1.0.1)
79
- ruby-progressbar (1.10.1)
80
- shellany (0.0.1)
81
- simplecov (0.18.5)
82
- docile (~> 1.1)
83
- simplecov-html (~> 0.11)
84
- simplecov-html (0.12.2)
85
- thor (1.0.1)
86
- timecop (0.9.1)
87
- unicode-display_width (1.7.0)
88
-
89
- PLATFORMS
90
- ruby
91
-
92
- DEPENDENCIES
93
- bundler
94
- byebug (~> 9.1)
95
- equivalent-xml (~> 0.6)
96
- guard (~> 2.14)
97
- guard-rspec (~> 4.7)
98
- omml2mathml!
99
- rake (~> 12.0)
100
- rspec
101
- rspec-match_fuzzy
102
- rubocop (= 0.54.0)
103
- simplecov (~> 0.15)
104
- timecop (~> 0.9)
105
-
106
- BUNDLED WITH
107
- 2.1.4