dxsectionx 0.1.6 → 0.1.7

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: cf6a0ba9c053c8b791ad561b427d6277b6e052a7
4
- data.tar.gz: 0bf62333849e418b3fdc58272a840db86decf54c
3
+ metadata.gz: b91583e590872328ed4baa4e2a9ae37e87280213
4
+ data.tar.gz: 6cace7dcc0cddcf1d88070bcafd0bbd1c4a13275
5
5
  SHA512:
6
- metadata.gz: 819302d19ca831d2031784194ee08c7a9f953b84bbccc52e13259b7a5080704beb47fb02697adfd4e84afb774b2d3a4cdc8df98ef027990c3633be6e95412106
7
- data.tar.gz: cc8ca01d3ac4e1639085740693052314025f8eab95085e4ccde4397d5843a6b02a50af8749abca90db4a0533e7ae99147b594de8da3ddedfadcf5e6c8d1af9a2
6
+ metadata.gz: 489d99ca0518a9090955c835d58cb0494a84cfc5d978e2309820e8532c42ed737c03ef4b70d427823b2ee353bb9eec15e71e90d27e23b78d518fc78e1cccbd76
7
+ data.tar.gz: f38ffef078d8b82a81f6f791a31f2b0fae24e2725c381f3fea49e2e869d16a89d5f8ed81f2cc1ba3240feb779afb594d885daa40dc1b71add17109efdffa1ce6
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/dxsectionx.rb CHANGED
@@ -37,7 +37,7 @@ class DxSectionX
37
37
 
38
38
  @doc.root.xpath('records/section/x') do |x|
39
39
 
40
- s = "=%s\n%s\n=" % [x.text.lines.first[/#\w+$/], x.text]
40
+ s = "=%s\n%s\n=" % [x.text.lines.first[/#\w+$/], x.text.unescape]
41
41
 
42
42
  html = Martile.new(s, ignore_domainlabel: @domain).to_html
43
43
  #
@@ -45,7 +45,7 @@ class DxSectionX
45
45
  e.attributes.merge x.attributes
46
46
  x.delete
47
47
  doc2 = Rexle.new(html)
48
-
48
+
49
49
  h1 = doc2.root.element('h1')
50
50
  details = Rexle::Element.new('details')
51
51
  details.attributes[:open] = 'open'
@@ -55,9 +55,9 @@ class DxSectionX
55
55
  details.add summary
56
56
  doc2.root.xpath('.').each {|x| details.add x }
57
57
  doc2.root.add details
58
- doc2.root.elements.each do |e2|
59
- e.add e2
60
- end
58
+
59
+ doc2.root.elements.each {|e2| e.add e2 }
60
+
61
61
  end
62
62
 
63
63
  if @xsl_url then
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dxsectionx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  HhOKrYa1ZXzGZXzzuW+g4Kgr48elktpRmyANrU2SRv15+aT17JIHdTXpbWK6eB0X
32
32
  6kiGexYQCkyt+Q==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-12-03 00:00:00.000000000 Z
34
+ date: 2015-12-04 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
metadata.gz.sig CHANGED
Binary file