dxsectionx 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dxsectionx.rb +5 -5
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b91583e590872328ed4baa4e2a9ae37e87280213
|
4
|
+
data.tar.gz: 6cace7dcc0cddcf1d88070bcafd0bbd1c4a13275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
59
|
-
|
60
|
-
|
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.
|
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-
|
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
|