doctor_ninja 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: f3efb5d812b73e86bdffa9691b2fc5771b3e63a9
4
- data.tar.gz: 7634228321fd0a2a191952ddf81cb0b357b7b59e
3
+ metadata.gz: 5a33725d75467cbeaefdf4f19fbe2c6276e40d0f
4
+ data.tar.gz: 498f09c3b37a0b3d487ef0aee06cacc82ec522cd
5
5
  SHA512:
6
- metadata.gz: f50b1af5c84af5c559bc35122b621a34f3917c020ca84d3a4b01301cccdb1a5ac6108a0cd26bd0bbbf186b7498a8e8cfecda23c98b055517ba1c2bbce4feab98
7
- data.tar.gz: c1279f1ac07c93bb93551cd89a3aafa92f835a947a37f6b619f82f13e6409f1f22f527ebbb6cb73b11a5c6f7a413a7ce94ed075ce0b251aa6d643e5b0aa229b8
6
+ metadata.gz: 91a5ec6ebc7d043f0d6f2d6129a24e6b9ba7d1b6197c483e32615ce5d41f8d52552a5cedb1e2cdae1443837510e517192eae16a4711045bf436ea9d97dc6e178
7
+ data.tar.gz: 203f948a66bfdfc1c2b70f03fd83b61a63cd5a99f1c08eacac3263d0772b688ab83e9b4a6d1dd43e6d06d45771365840081b4035247583f36ba4c5494428705a
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DoctorNinja
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-27 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler