dynarex 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/dynarex.rb +24 -15
  5. metadata +28 -48
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 324076e6701c0e10ed0af9b60a7d53722323f520
4
- data.tar.gz: 318429b788da222089c5c3bcb1295e27d83dd718
3
+ metadata.gz: 7e57d6d55278a9ec34c7762852f939dcb5db7ec4
4
+ data.tar.gz: 81572f47df924245fbd2c62b7a6ead52a8a0774d
5
5
  SHA512:
6
- metadata.gz: 59a1e8b93a605e82396c6f6283fceed0cacfb440369f47aff93c7b5af72fcf0ec24970a4c4abe8e95d24818e3f1f537752649d336b3d5c02f0c20cf6481aa198
7
- data.tar.gz: 9d291dc5469ad7901e1559e06ec35a409fd21f5b90aa6b89d4e6468e45f4b448a2aa5718fcfb3ae58c88b52a0bb3dab4e147528db247b725207dfdfb6c661347
6
+ metadata.gz: 30b7a7ededf10686c163b3b04a61458fd9d6878e95675ad68a4a965ff69f5d23dc290fcd8c69aea672ce5e7481e79f88989e9a07440ff90be325e368e0c50249
7
+ data.tar.gz: af56ec100a0e3eff0d2d1d337a4598c6ba873f6035814359a73627989ba3d2be37ab32b8b219a025f8be0d4c124c39fb0f0c25e91820c13eb985024d09558713
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- header + "\n" + out.text
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
- :save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION
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.6.2
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
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE1MDMwNTE0NTMzOVoXDTE2MDMwNDE0NTMzOVowSDESMBAG
15
+ 8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 Z
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.4'
82
+ version: '0.5'
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- version: 0.4.2
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.4'
92
+ version: '0.5'
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 0.4.2
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.2'
122
+ version: '0.3'
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: 0.2.4
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.2'
132
+ version: '0.3'
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- version: 0.2.4
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.2
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.2
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
- XMLrecords.
247
+ XML records.
268
248
  test_files: []
metadata.gz.sig CHANGED
Binary file