dynarex 1.6.2 → 1.7.0
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.tar.gz.sig +0 -0
- data/lib/dynarex.rb +24 -15
- metadata +28 -48
- 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: 7e57d6d55278a9ec34c7762852f939dcb5db7ec4
|
4
|
+
data.tar.gz: 81572f47df924245fbd2c62b7a6ead52a8a0774d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30b7a7ededf10686c163b3b04a61458fd9d6878e95675ad68a4a965ff69f5d23dc290fcd8c69aea672ce5e7481e79f88989e9a07440ff90be325e368e0c50249
|
7
|
+
data.tar.gz: af56ec100a0e3eff0d2d1d337a4598c6ba873f6035814359a73627989ba3d2be37ab32b8b219a025f8be0d4c124c39fb0f0c25e91820c13eb985024d09558713
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -13,7 +13,6 @@ require 'recordx'
|
|
13
13
|
require 'rxraw-lineparser'
|
14
14
|
require 'yaml'
|
15
15
|
require 'rowx'
|
16
|
-
require 'nokogiri'
|
17
16
|
require 'ostruct'
|
18
17
|
require 'table-formatter'
|
19
18
|
#require 'rxfhelper'
|
@@ -205,8 +204,9 @@ class Dynarex
|
|
205
204
|
|
206
205
|
def to_html(domain: '')
|
207
206
|
xsl_buffer = RXFHelper.read(domain + @xslt).first
|
208
|
-
xslt = Nokogiri::XSLT(xsl_buffer)
|
209
|
-
xslt.transform(Nokogiri::XML(@doc.to_s)).to_s
|
207
|
+
#jr100316 xslt = Nokogiri::XSLT(xsl_buffer)
|
208
|
+
#jr100316 xslt.transform(Nokogiri::XML(@doc.to_s)).to_s
|
209
|
+
Rexslt.new(xsl_buffer, @doc).to_s
|
210
210
|
end
|
211
211
|
|
212
212
|
def to_s
|
@@ -266,10 +266,12 @@ EOF
|
|
266
266
|
xslt_format = a.join
|
267
267
|
|
268
268
|
xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
|
269
|
-
xslt = Nokogiri::XSLT(xsl_buffer)
|
270
|
-
out = xslt.transform(Nokogiri::XML(@doc.to_s))
|
269
|
+
#jr100316 xslt = Nokogiri::XSLT(xsl_buffer)
|
270
|
+
#jr100316 out = xslt.transform(Nokogiri::XML(@doc.to_s))
|
271
|
+
out = Rexslt.new(xsl_buffer, @doc).to_s
|
271
272
|
|
272
|
-
header + "\n--+\n" + out.text
|
273
|
+
#jr100316 header + "\n--+\n" + out.text
|
274
|
+
header + "\n--+\n" + out
|
273
275
|
elsif self.summary[:rawdoc_type] == 'sectionx' then
|
274
276
|
|
275
277
|
a = (self.fields - [:uid, 'uid']).map do |field|
|
@@ -282,10 +284,13 @@ EOF
|
|
282
284
|
|
283
285
|
xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
|
284
286
|
|
285
|
-
xslt = Nokogiri::XSLT(xsl_buffer)
|
286
|
-
out = xslt.transform(Nokogiri::XML(@doc.to_s))
|
287
|
+
#jr100316 xslt = Nokogiri::XSLT(xsl_buffer)
|
288
|
+
#jr100316 out = xslt.transform(Nokogiri::XML(@doc.to_s))
|
289
|
+
out = Rexslt.new(xsl_buffer, @doc).to_s
|
290
|
+
|
291
|
+
#jr100316 header + "--#\n" + out.text
|
292
|
+
header + "--#\n" + out
|
287
293
|
|
288
|
-
header + "--#\n" + out.text
|
289
294
|
elsif self.delimiter.length > 0 then
|
290
295
|
|
291
296
|
tfo = TableFormatter.new border: false, wrap: false, \
|
@@ -301,10 +306,12 @@ EOF
|
|
301
306
|
.gsub(/\[!(\w+)\]/, '<xsl:value-of select="\1"/>')
|
302
307
|
|
303
308
|
xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
|
304
|
-
xslt = Nokogiri::XSLT(xsl_buffer)
|
309
|
+
#jr100316 xslt = Nokogiri::XSLT(xsl_buffer)
|
305
310
|
|
306
|
-
out = xslt.transform(Nokogiri::XML(self.to_xml))
|
307
|
-
|
311
|
+
#jr100316 out = xslt.transform(Nokogiri::XML(self.to_xml))
|
312
|
+
out = Rexslt.new(xsl_buffer, @doc).to_s
|
313
|
+
#jr100316 header + "\n" + out.text
|
314
|
+
header + "\n" + out
|
308
315
|
end
|
309
316
|
|
310
317
|
#xsl_buffer.sub!(/\[!regex_values\]/, xslt_format)
|
@@ -532,9 +539,11 @@ EOF
|
|
532
539
|
#File.open('dynarex.xml','w'){|f| f.write doc.xml}
|
533
540
|
#xml = Rexslt.new(xslt, doc.xml).to_s
|
534
541
|
#=begin
|
535
|
-
xslt = Nokogiri::XSLT(xslt)
|
536
|
-
out = xslt.transform(Nokogiri::XML(doc.root.xml)).to_xml \
|
537
|
-
|
542
|
+
#jr100316 xslt = Nokogiri::XSLT(xslt)
|
543
|
+
#jr100316 out = xslt.transform(Nokogiri::XML(doc.root.xml)).to_xml \
|
544
|
+
#jr100316 :save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION
|
545
|
+
out = Rexslt.new(xsl_buffer, @doc).to_s(declaration: false)
|
546
|
+
|
538
547
|
#=end
|
539
548
|
|
540
549
|
#Rexle.new("<rss version='2.0'>%s</rss>" % xml).xml(pretty: true)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14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hdD5
|
27
|
+
3jlVqQr6jbgKyHKCGrq5jGvfU5n5MUOSNYL+PtydyZav7qgfLiZwAgT6Trt7LAQu
|
28
|
+
N/moTF+eqMiAvmTHyCIFNpvvHL5uD7GmcdHQtH/qCXBiTdvlu1xsw48k0LfqWqcJ
|
29
|
+
f6zs4TAdZ+T4lwAUauxknc38HnmhwqLT7hYLl1h8KE0rXo+7Bh1afdds/HqAcflZ
|
30
|
+
Eh8/sws6czmm/iSBrjoVkhZ/uHCdttqFwPdke0RlrRt3CDwhwcDSQVQiTH8BQ1XE
|
31
|
+
nP4bxzo6o8Qw40KPcv/n3Vcx8tV8hUOOe4XkImYbeWst9hbbHfbg8daipgkn9NEu
|
32
|
+
YXuVi+EfN14P6g==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex-import
|
@@ -79,20 +79,20 @@ dependencies:
|
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.5'
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.5.0
|
86
86
|
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '0.
|
92
|
+
version: '0.5'
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
95
|
+
version: 0.5.0
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: dynarex-xslt
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,20 +119,20 @@ dependencies:
|
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: '0.
|
122
|
+
version: '0.3'
|
123
123
|
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
125
|
+
version: 0.3.1
|
126
126
|
type: :runtime
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0.
|
132
|
+
version: '0.3'
|
133
133
|
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 0.
|
135
|
+
version: 0.3.1
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: rxraw-lineparser
|
138
138
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +162,7 @@ dependencies:
|
|
162
162
|
version: '0.4'
|
163
163
|
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.4.
|
165
|
+
version: 0.4.3
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -172,27 +172,7 @@ dependencies:
|
|
172
172
|
version: '0.4'
|
173
173
|
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.4.
|
176
|
-
- !ruby/object:Gem::Dependency
|
177
|
-
name: nokogiri
|
178
|
-
requirement: !ruby/object:Gem::Requirement
|
179
|
-
requirements:
|
180
|
-
- - "~>"
|
181
|
-
- !ruby/object:Gem::Version
|
182
|
-
version: '1.6'
|
183
|
-
- - ">="
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: 1.6.7
|
186
|
-
type: :runtime
|
187
|
-
prerelease: false
|
188
|
-
version_requirements: !ruby/object:Gem::Requirement
|
189
|
-
requirements:
|
190
|
-
- - "~>"
|
191
|
-
- !ruby/object:Gem::Version
|
192
|
-
version: '1.6'
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: 1.6.7
|
175
|
+
version: 0.4.3
|
196
176
|
- !ruby/object:Gem::Dependency
|
197
177
|
name: table-formatter
|
198
178
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,5 +244,5 @@ rubygems_version: 2.4.8
|
|
264
244
|
signing_key:
|
265
245
|
specification_version: 4
|
266
246
|
summary: The Dynarex gem can create, read, update or delete rows of Dynarex flavoured
|
267
|
-
|
247
|
+
XML records.
|
268
248
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|