dxsectionx 0.2.1 → 0.2.2

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: 62c22fb86ac6c48b4dc5229dc87033ed4c396ef89ad3173a1ce6aac9e585fe7d
4
- data.tar.gz: 0b9dc52e3ecef284391ccfe4996bea9167ccb5f48d196b4cf2ba209a30ff0f3e
3
+ metadata.gz: 1fdae4093a1123ad61cb8baf8d6d1b82bc4d36cf7acfd5792ddbf043e548390d
4
+ data.tar.gz: b502c0f0c29cec5a3c872e53a2d326462d50a16b9ffe60655fc9cc3f8db903c0
5
5
  SHA512:
6
- metadata.gz: b61309089e2f244ffd997852bb2090b5d538610fab01bf17a7d7ed5bbea9f22d42ae108df4e249ea31216f2603bc4f3dc0e22765e87c12e6f53360d42e05b120
7
- data.tar.gz: 8b83a2035bf44acd447979257218fade7eef5867fbd5e2a97d1b0091ff9196609e90a44f834b5cf5fd0757556dbb0ace823a9773761ac2eb792b08156f3aeab3
6
+ metadata.gz: b5e54219afbac3b7af860df6ded3ebb625b28355ad7e47d034cef60b27f967a167c75b651bb1ef7ba3c55447df3e787f66386cadbfdd197e4f7d36f03ca8c14b
7
+ data.tar.gz: f5113de89d1fcd8e6c0db943bab029c87990284e80ebaca0c6d9703da4af43c204294c4be4c7629fa4c5985dbf956c9b637deb02dc7be2f07894946f64f18168
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/dxsectionx.rb CHANGED
@@ -9,6 +9,7 @@ require 'kramdown'
9
9
 
10
10
  class DxSectionX
11
11
 
12
+ attr_reader :dx
12
13
  attr_writer :xsl_url, :domain
13
14
 
14
15
 
@@ -21,9 +22,10 @@ class DxSectionX
21
22
  transform()
22
23
  else
23
24
 
24
- dx = Dynarex.new
25
- dx.import x
26
- @doc = dx.to_doc
25
+ @dx = Dynarex.new
26
+ @dx.import x
27
+ puts '@dx.to_s : ' + @dx.to_s if @debug
28
+ @doc = @dx.to_doc
27
29
  transform()
28
30
 
29
31
  end
@@ -34,9 +36,13 @@ class DxSectionX
34
36
  @doc
35
37
  end
36
38
 
39
+ def to_s()
40
+ @dx.to_s
41
+ end
42
+
37
43
  def transform
38
44
 
39
- @doc.root.xpath('records/section/x') do |x|
45
+ @doc.clone.root.xpath('records/section/x') do |x|
40
46
 
41
47
  s = "=%s\n%s\n=" % [x.text.lines.first[/#\w+$/], x.text.unescape]
42
48
 
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  mm/X1FQqr2wBloB+9CWHROsy0KQAs0ulCr1MfEOEijGDIHajgi3qJ3V/0YHWLKMz
36
36
  Odo+ftKrSCwVCcNU9n0Jn42S
37
37
  -----END CERTIFICATE-----
38
- date: 2018-09-14 00:00:00.000000000 Z
38
+ date: 2018-09-15 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: dynarex
@@ -77,6 +77,26 @@ dependencies:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: 0.6.26
80
+ - !ruby/object:Gem::Dependency
81
+ name: kramdown
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.17'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.17.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.17'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 1.17.0
80
100
  description:
81
101
  email: james@jamesrobertson.eu
82
102
  executables: []
metadata.gz.sig CHANGED
Binary file