mathtype_to_mathml 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 17cab52ea3c308d35a1e56d0e58b715f8aa4c4be
4
- data.tar.gz: db696399f4eab83c8c150871b3ef197c6de71815
3
+ metadata.gz: 86e1892851c0f155e597a31f3fda79307f8b26fd
4
+ data.tar.gz: 25cc035a98c6e87f51bc0e6c4888180622cef578
5
5
  SHA512:
6
- metadata.gz: afdcbf5a2544b53472abf222084128d93a11f90e66a46efe2d557eb218daa28e7ae3f341a404d7ff6acdfc1d8a21fbe7bd9864eb74455d0eef29a0b3f304d615
7
- data.tar.gz: 4add42ec2b72a89b36e099e58b98a6954acd22503c5510d5416b0989afaa93d5ab14e1b48b12d5f01c2d7f35087f61f69167c42be4d487212e26b51e4df39eaf
6
+ metadata.gz: b755aec266e3717b31bede80d4b1b79c1f660e7e10d1cdb4a6eac87647f46603a86dbffe4ac0a908897470bc3dde9a925ab12ccef1c38b0d399a75c424b84c99
7
+ data.tar.gz: ffa60e12f05dadd22fefb991b1a333ac356ac13d61c60b3e342a6d53ff4e8ada1b238b0fd5d24139432606352982edff0978212c013b92ba70cf1a4fdad52564
@@ -8,7 +8,7 @@ require "pry"
8
8
  module MathTypeToMathML
9
9
  class Converter
10
10
  def initialize(mathtype)
11
- @xslt = Nokogiri::XSLT(File.open("lib/transform.xsl"))
11
+ @xslt = Nokogiri::XSLT(File.open(path_to_xslt))
12
12
 
13
13
  @mathtype = Mathtype::Converter.new(mathtype).xml.doc
14
14
 
@@ -24,5 +24,9 @@ module MathTypeToMathML
24
24
  def convert
25
25
  @xslt.transform(@mathtype).to_s
26
26
  end
27
+
28
+ def path_to_xslt
29
+ File.join(File.dirname(File.expand_path(__FILE__)), "transform.xsl")
30
+ end
27
31
  end
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module MathTypeToMathML
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mathtype_to_mathml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PLOS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler