plurimath 0.9.8 → 0.9.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 275bcf53ad8b9074d9d1057575ea6320b07fd9e38863a1cd233366e675db6025
4
- data.tar.gz: fa3c94e0fe0ed5b26c9ab5d41008b4b7e5f89bbe3d7b743466bf79fb3b8603ab
3
+ metadata.gz: a2daf0b544efc26b15bd562db6b9ccea9fea08b6ad7b085d9315288b84deebc7
4
+ data.tar.gz: 68f7fd796097cc9ad6163342c91ec9db4214edacfa2c0c27c06840e37c80523c
5
5
  SHA512:
6
- metadata.gz: 001075f0cff216589f70a5f79c14b986b1d1ad6b643f2b5234a91d0158e41cf209d756a363c8041628ee2eb7c398864b5b12878fc6687b2bd71c513a48034ac4
7
- data.tar.gz: 94c99c28850ff3a7a3e2c0befefc7e4446ccb8252b6f03cce258b71131fa53c2c076cd0ba19821a1099fb10f7392812e63de60001c07e27fb86acbcb04db97f6
6
+ metadata.gz: d1b5453cf0d8adbecd52d44c10fb98a509e0be7c70e89799e2a34c6a8418271f617143293b0424d9d1e14ca70be5ee8a821d2dfcdd68578be0b38e51b0b53d0f
7
+ data.tar.gz: 106b39d4b3a77e4a4fbc3324c2418060696f731e7adf87fb3c2b4eeb5230e9914af1fb633e0125843472c7cc2cbeafcb7f6e63017dc632ab9a5288ec0c939a04
@@ -842,7 +842,7 @@ module Plurimath
842
842
 
843
843
  while iteration < nodes.length do
844
844
  node = nodes[iteration]
845
- next iteration += 1 unless node.nodes[0].is_a?(Plurimath::XmlEngine::Ox::Element)
845
+ next iteration += 1 unless node.nodes[0].is_a?(Plurimath::XmlEngine::OxEngine::Element)
846
846
 
847
847
  if DERIVATIVE_CONSTS.include?(node.nodes[0]&.nodes&.first)
848
848
  iteration += 1
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "plurimath/xml_engine/ox_engine"
4
+
5
+ Plurimath.xml_engine = Plurimath::XmlEngine::OxEngine
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.9.8"
4
+ VERSION = "0.9.9"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  module Plurimath
2
2
  module XmlEngine
3
- class Ox
3
+ class OxEngine
4
4
  class Element
5
5
  attr_accessor :attributes
6
6
 
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "plurimath/xml_engine"
4
+ require "plurimath/xml_engine/ox_engine/element"
4
5
  require "ox"
5
6
  Ox.default_options = { encoding: "UTF-8" }
6
7
 
7
8
  module Plurimath
8
9
  module XmlEngine
9
- class Ox
10
+ class OxEngine
10
11
  class << self
11
12
  def new_element(name)
12
13
  Element.new(name)
@@ -36,5 +37,3 @@ module Plurimath
36
37
  end
37
38
  end
38
39
  end
39
-
40
- require "plurimath/xml_engine/ox/element"
data/lib/plurimath.rb CHANGED
@@ -15,7 +15,7 @@ elsif ENV['PLURIMATH_OGA']
15
15
  require "plurimath/setup/oga"
16
16
  mml_adapter(:oga)
17
17
  else
18
- require "plurimath/setup/ox"
18
+ require "plurimath/setup/ox_engine"
19
19
  mml_adapter(:ox)
20
20
  end
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plurimath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -1771,7 +1771,7 @@ files:
1771
1771
  - lib/plurimath/omml/transform.rb
1772
1772
  - lib/plurimath/setup/oga.rb
1773
1773
  - lib/plurimath/setup/opal.rb.erb
1774
- - lib/plurimath/setup/ox.rb
1774
+ - lib/plurimath/setup/ox_engine.rb
1775
1775
  - lib/plurimath/unicode_math.rb
1776
1776
  - lib/plurimath/unicode_math/constants.rb
1777
1777
  - lib/plurimath/unicode_math/parse.rb
@@ -1794,8 +1794,8 @@ files:
1794
1794
  - lib/plurimath/xml_engine/oga/element.rb
1795
1795
  - lib/plurimath/xml_engine/oga/node.rb
1796
1796
  - lib/plurimath/xml_engine/oga/wrapper.rb
1797
- - lib/plurimath/xml_engine/ox.rb
1798
- - lib/plurimath/xml_engine/ox/element.rb
1797
+ - lib/plurimath/xml_engine/ox_engine.rb
1798
+ - lib/plurimath/xml_engine/ox_engine/element.rb
1799
1799
  - plurimath.gemspec
1800
1800
  - supported_parens_list.adoc
1801
1801
  - supported_symbols_list.adoc
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "plurimath/xml_engine/ox"
4
-
5
- Plurimath.xml_engine = Plurimath::XmlEngine::Ox