dynarex 1.7.30 → 1.8.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +10 -3
- metadata +33 -34
- 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: 7014f7317e6237c923812cb12716211ee57e2262
|
4
|
+
data.tar.gz: 685abd6c5694cddce7bb834ee710ba1ca94074d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f9a23d67ea495cd3e777a1c7b9f0fc06ea22e303af104601c1e2b37753191614b11f528aae8968511ba1855b3029d66ae7d040062ff8263569cc8b05a00366
|
7
|
+
data.tar.gz: a5d0ed92f69ff41db4eea9add70bebb5b4a447772f11e81a5dd20d958dba957f3650716c2bfbc3b2d7d9fd9dc968a416fa67797470b3178da0966d556a147b26
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -53,6 +53,7 @@ end
|
|
53
53
|
|
54
54
|
|
55
55
|
class Dynarex
|
56
|
+
include RXFHelperModule
|
56
57
|
|
57
58
|
attr_accessor :format_mask, :delimiter, :xslt_schema, :schema, :linked,
|
58
59
|
:order, :type, :limit, :xslt, :json_out
|
@@ -386,8 +387,8 @@ EOF
|
|
386
387
|
@local_filepath = filepath
|
387
388
|
xml = display_xml(opt)
|
388
389
|
buffer = block_given? ? yield(xml) : xml
|
389
|
-
|
390
|
-
|
390
|
+
FileX.write filepath, buffer
|
391
|
+
FileX.write(filepath.sub(/\.xml$/,'.json'), self.to_json) if @json_out
|
391
392
|
end
|
392
393
|
|
393
394
|
#Parses 1 or more lines of text to create or update existing records.
|
@@ -1268,9 +1269,13 @@ EOF
|
|
1268
1269
|
|
1269
1270
|
a5 = a3.map do |xlines|
|
1270
1271
|
|
1272
|
+
puts 'xlines: ' + xlines.inspect if @debug
|
1273
|
+
|
1271
1274
|
missing_fields = a4 - xlines.scan(/^\w+(?=:)/)
|
1272
1275
|
|
1273
1276
|
r = xlines.split(/\n(\w+:.*)/m)
|
1277
|
+
puts 'r: ' + r.inspect if @debug
|
1278
|
+
|
1274
1279
|
missing_fields.map!{|x| x + ":"}
|
1275
1280
|
key = (abbrv_fields ? @fields[0].to_s[0] : @fields.first.to_s) + ':'
|
1276
1281
|
|
@@ -1283,8 +1288,10 @@ EOF
|
|
1283
1288
|
r.join("\n")
|
1284
1289
|
|
1285
1290
|
end
|
1286
|
-
|
1291
|
+
puts 'a5: ' + a5.inspect if @debug
|
1292
|
+
|
1287
1293
|
xml = RowX.new(a5.join("\n").strip, level: 0).to_xml
|
1294
|
+
puts 'xml: ' + xml.inspect if @debug
|
1288
1295
|
|
1289
1296
|
a2 = Rexle.new(xml).root.xpath('item').inject([]) do |r,x|
|
1290
1297
|
|
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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
nuO5b3MqW2dcBw==
|
13
|
+
MIIDXj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QDyLc/3VAV
|
28
|
+
YOAM3RJavo2fw2V9qv0hAG6ss/hj+7zLp/eXhDTKiz2O32VOfcjL2AelitRQOZU1
|
29
|
+
juByaYeZdIE57Bl4/zTrYX4sKfOg3ipp7nu55G+f/+gD3/6ar9kxFXn+5UuMs+Xo
|
30
|
+
+2pKHQJfU1lEmVoo4afsLMvmq/CZPJba1LR3Z1QJXYCWt9IEZTECStKlK7H6RiIx
|
31
|
+
gRA=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date: 2018-
|
33
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: dynarex-import
|
@@ -62,7 +61,7 @@ dependencies:
|
|
62
61
|
version: '0.3'
|
63
62
|
- - ">="
|
64
63
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.3.
|
64
|
+
version: 0.3.13
|
66
65
|
type: :runtime
|
67
66
|
prerelease: false
|
68
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -72,7 +71,7 @@ dependencies:
|
|
72
71
|
version: '0.3'
|
73
72
|
- - ">="
|
74
73
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3.
|
74
|
+
version: 0.3.13
|
76
75
|
- !ruby/object:Gem::Dependency
|
77
76
|
name: rexslt
|
78
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +161,7 @@ dependencies:
|
|
162
161
|
version: '0.6'
|
163
162
|
- - ">="
|
164
163
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.6.
|
164
|
+
version: 0.6.1
|
166
165
|
type: :runtime
|
167
166
|
prerelease: false
|
168
167
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -172,47 +171,47 @@ dependencies:
|
|
172
171
|
version: '0.6'
|
173
172
|
- - ">="
|
174
173
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.6.
|
174
|
+
version: 0.6.1
|
176
175
|
- !ruby/object:Gem::Dependency
|
177
176
|
name: table-formatter
|
178
177
|
requirement: !ruby/object:Gem::Requirement
|
179
178
|
requirements:
|
180
179
|
- - "~>"
|
181
180
|
- !ruby/object:Gem::Version
|
182
|
-
version: '0.
|
181
|
+
version: '0.5'
|
183
182
|
- - ">="
|
184
183
|
- !ruby/object:Gem::Version
|
185
|
-
version: 0.
|
184
|
+
version: 0.5.0
|
186
185
|
type: :runtime
|
187
186
|
prerelease: false
|
188
187
|
version_requirements: !ruby/object:Gem::Requirement
|
189
188
|
requirements:
|
190
189
|
- - "~>"
|
191
190
|
- !ruby/object:Gem::Version
|
192
|
-
version: '0.
|
191
|
+
version: '0.5'
|
193
192
|
- - ">="
|
194
193
|
- !ruby/object:Gem::Version
|
195
|
-
version: 0.
|
194
|
+
version: 0.5.0
|
196
195
|
- !ruby/object:Gem::Dependency
|
197
196
|
name: kvx
|
198
197
|
requirement: !ruby/object:Gem::Requirement
|
199
198
|
requirements:
|
200
199
|
- - "~>"
|
201
200
|
- !ruby/object:Gem::Version
|
202
|
-
version: '0.
|
201
|
+
version: '0.7'
|
203
202
|
- - ">="
|
204
203
|
- !ruby/object:Gem::Version
|
205
|
-
version: 0.
|
204
|
+
version: 0.7.0
|
206
205
|
type: :runtime
|
207
206
|
prerelease: false
|
208
207
|
version_requirements: !ruby/object:Gem::Requirement
|
209
208
|
requirements:
|
210
209
|
- - "~>"
|
211
210
|
- !ruby/object:Gem::Version
|
212
|
-
version: '0.
|
211
|
+
version: '0.7'
|
213
212
|
- - ">="
|
214
213
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
214
|
+
version: 0.7.0
|
216
215
|
description:
|
217
216
|
email: james@jamesrobertson.eu
|
218
217
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|