dxsectionx 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fdae4093a1123ad61cb8baf8d6d1b82bc4d36cf7acfd5792ddbf043e548390d
4
- data.tar.gz: b502c0f0c29cec5a3c872e53a2d326462d50a16b9ffe60655fc9cc3f8db903c0
3
+ metadata.gz: d286d7a7f638fc2175b1215b783637b28827c04b0e57e97e354af8f764563fae
4
+ data.tar.gz: 5aea8183251b5ef3801ec635706c0872533c30aedc775f63edf596e27c053067
5
5
  SHA512:
6
- metadata.gz: b5e54219afbac3b7af860df6ded3ebb625b28355ad7e47d034cef60b27f967a167c75b651bb1ef7ba3c55447df3e787f66386cadbfdd197e4f7d36f03ca8c14b
7
- data.tar.gz: f5113de89d1fcd8e6c0db943bab029c87990284e80ebaca0c6d9703da4af43c204294c4be4c7629fa4c5985dbf956c9b637deb02dc7be2f07894946f64f18168
6
+ metadata.gz: 789ba78f21ef7591602360c521320846710f3f19eee05943cc159a062364be759f8f904e838112d3779cd9df80a8fd23ae9a301b9b3d136f96f7d4b718bdac64
7
+ data.tar.gz: 94c92953c731add9bb1c4a6833cd1bd0c437435d00fae5ccd68d2b6d1ea61d945cdd25cb5ddfb6aee69a82b31833c941409d1807951bc3920fea71a76b645fa8
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -25,12 +25,16 @@ class DxSectionX
25
25
  @dx = Dynarex.new
26
26
  @dx.import x
27
27
  puts '@dx.to_s : ' + @dx.to_s if @debug
28
- @doc = @dx.to_doc
28
+
29
29
  transform()
30
30
 
31
31
  end
32
32
 
33
33
  end
34
+
35
+ def create(h)
36
+ @dx.create h
37
+ end
34
38
 
35
39
  def to_doc()
36
40
  @doc
@@ -41,8 +45,10 @@ class DxSectionX
41
45
  end
42
46
 
43
47
  def transform
44
-
45
- @doc.clone.root.xpath('records/section/x') do |x|
48
+
49
+ doc = @dx.doc.clone
50
+
51
+ doc.root.xpath('records/section/x') do |x|
46
52
 
47
53
  s = "=%s\n%s\n=" % [x.text.lines.first[/#\w+$/], x.text.unescape]
48
54
 
@@ -69,6 +75,7 @@ class DxSectionX
69
75
  doc2.root.elements.each {|e2| e.add e2 }
70
76
 
71
77
  end
78
+ @doc = doc
72
79
 
73
80
  if @xsl_url then
74
81
 
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.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file