doctor_ninja 0.2.2 → 0.2.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 +4 -4
- data/lib/doctor_ninja/parser.rb +7 -0
- data/lib/doctor_ninja/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a33725d75467cbeaefdf4f19fbe2c6276e40d0f
|
4
|
+
data.tar.gz: 498f09c3b37a0b3d487ef0aee06cacc82ec522cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a5ec6ebc7d043f0d6f2d6129a24e6b9ba7d1b6197c483e32615ce5d41f8d52552a5cedb1e2cdae1443837510e517192eae16a4711045bf436ea9d97dc6e178
|
7
|
+
data.tar.gz: 203f948a66bfdfc1c2b70f03fd83b61a63cd5a99f1c08eacac3263d0772b688ab83e9b4a6d1dd43e6d06d45771365840081b4035247583f36ba4c5494428705a
|
data/lib/doctor_ninja/parser.rb
CHANGED
@@ -12,6 +12,13 @@ module DoctorNinja
|
|
12
12
|
def initialize(doc)
|
13
13
|
@docx = doc
|
14
14
|
@xmldoc = Nokogiri::XML @docx.read "word/document.xml"
|
15
|
+
|
16
|
+
# This will remove "vanished" word runs.
|
17
|
+
# Maybe this sould be treated separatly, but as
|
18
|
+
# we use xslt for math transformation this is the only
|
19
|
+
# way I can think to solve it. Preprocessing it...
|
20
|
+
@xmldoc.xpath("//w:vanish/ancestor::m:r[1]").remove
|
21
|
+
@xmldoc.xpath("//w:vanish/ancestor::w:r[1]").remove
|
15
22
|
end
|
16
23
|
|
17
24
|
def parse
|
data/lib/doctor_ninja/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doctor_ninja
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernardo Amorim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|