doctor_ninja 0.2.0 → 0.2.1

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: fe8fd91a3de8937deab6a585f38d76743898aa4f
4
- data.tar.gz: 27a1aeaa6bcc3dfb5e229afc445eb5e76ad958c9
3
+ metadata.gz: 2921481a3396a0717131168ad086b2a488085758
4
+ data.tar.gz: 4d3d327ffe2fd66ec8bd6623061653cf56b67535
5
5
  SHA512:
6
- metadata.gz: b655b1e2c22c566245f9d48c790b3269f721213dc280c927516ba9e6211ba259511173764863781f798588fcdf81d7b10e84d151d8d765851b7576f7db2e8d93
7
- data.tar.gz: 67adfd6175c4d8492397ac2658bca650c3083359147307b6a92dde97a1b5e94a00994776dd261755909b89919d0bc972ffe77910b7341fef673e495841d589b1
6
+ metadata.gz: ee7148bb8d153b386df243a276126069b0197975c2c3a91cb5821dd423993fc948cb4d544f62f0662de8a22297805521d81d8e45967e275fd3cd87d3999a01ee
7
+ data.tar.gz: a67c98ce38d274e637764e96f67431d02a7f0485ea5d73ad6711704ac635c4b0fd4ff46c6caf9294c9de48376daaf958a9ee1804198866b9474352e342926573
@@ -22,7 +22,7 @@ class DoctorNinja::Parsers::List < DoctorNinja::Parsers::Base
22
22
  else
23
23
  ""
24
24
  end
25
- typeAttr = type == "" ? "" : "type='#{type}'"
25
+ typeAttr = type == "" ? "" : " type='#{type}'"
26
26
 
27
27
  num_id_query = ".//w:numId/@w:val=\"#{num_id}\""
28
28
 
@@ -1,3 +1,3 @@
1
1
  module DoctorNinja
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -38,9 +38,9 @@ class ListsTest < MiniTest::Test
38
38
  result = parse_file "test/fixtures/ordered_list_types.docx"
39
39
  result = strip_spaces(result)
40
40
  assert_includes result, "<ol><li>Decimal</li></ol>"
41
- assert_includes result, "<oltype='i'><li>LowerRoman</li></ol>"
42
- assert_includes result, "<oltype='I'><li>UpperRoman</li></ol>"
43
- assert_includes result, "<oltype='a'><li>LowerAlpha</li></ol>"
44
- assert_includes result, "<oltype='A'><li>UpperAlpha</li></ol>"
41
+ assert_includes result, "<ol type='i'><li>Lower Roman</li></ol>"
42
+ assert_includes result, "<ol type='I'><li>Upper Roman</li></ol>"
43
+ assert_includes result, "<ol type='a'><li>Lower Alpha</li></ol>"
44
+ assert_includes result, "<ol type='A'><li>Upper Alpha</li></ol>"
45
45
  end
46
46
  end
@@ -11,6 +11,6 @@ class MiniTest::Test
11
11
  end
12
12
 
13
13
  def strip_spaces str
14
- str.gsub(/[\n ]/,"")
14
+ str.gsub(/[\n ]+/," ").gsub("> ",">").gsub(" <","<")
15
15
  end
16
16
  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.0
4
+ version: 0.2.1
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-24 00:00:00.000000000 Z
11
+ date: 2014-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler