dynarex 1.8.13 → 1.8.14
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 +9 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 783236378d8f65f5a83d7f21f323eb02de5e2cadc9c2e25ba38dab020d0ded69
|
4
|
+
data.tar.gz: 54f3a794777225109df9ef1756aa950c56235228ae33e9a163208c4e67a59dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 691d89696acd06d44bbbf12d231068c56fdd3cac11b42e4b72ccd95c5423c9c6b4e3cc49e9e24cfc052fcddbdb4c3df33203134a7b67d8aec3dcd62aee18c2c4
|
7
|
+
data.tar.gz: 2d5bb4e611afeda3e9538343e5e87f650e71c346a561c6468fb6710948642e57faac5cb6850d577e66c9bfb4bbd79ec14f6e520756fa4226e340f00aa8f30882
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -107,6 +107,8 @@ class Dynarex
|
|
107
107
|
openx(rawx.clone)
|
108
108
|
|
109
109
|
end
|
110
|
+
|
111
|
+
self.order = @order unless @order.to_sym == :ascending
|
110
112
|
|
111
113
|
end
|
112
114
|
|
@@ -457,7 +459,7 @@ EOF
|
|
457
459
|
|
458
460
|
opt = {pretty: true}.merge options
|
459
461
|
|
460
|
-
@local_filepath = filepath
|
462
|
+
@local_filepath = filepath || 'dx.xml'
|
461
463
|
xml = display_xml(opt)
|
462
464
|
buffer = block_given? ? yield(xml) : xml
|
463
465
|
|
@@ -1028,7 +1030,7 @@ EOF
|
|
1028
1030
|
@summary[:recordx_type] = 'dynarex'
|
1029
1031
|
@summary[:schema] = @schema
|
1030
1032
|
@summary[:format_mask] = @format_mask
|
1031
|
-
@summary[:unique] = @unique
|
1033
|
+
@summary[:unique] = @unique if @unique
|
1032
1034
|
|
1033
1035
|
raw_lines.shift while raw_lines.first.strip.empty?
|
1034
1036
|
|
@@ -1323,12 +1325,14 @@ EOF
|
|
1323
1325
|
end
|
1324
1326
|
|
1325
1327
|
def load_records
|
1326
|
-
|
1328
|
+
|
1329
|
+
puts 'inside load_records'.info if @debug
|
1330
|
+
|
1327
1331
|
@dirty_flag = false
|
1328
1332
|
|
1329
1333
|
if @summary[:order] then
|
1330
1334
|
orderfield = @summary[:order][/(\w+)\s+(?:ascending|descending)/,1]
|
1331
|
-
|
1335
|
+
sort_records_by! {|x| x.element(orderfield).text } if orderfield
|
1332
1336
|
end
|
1333
1337
|
|
1334
1338
|
@records = records_to_h
|
@@ -1343,6 +1347,7 @@ EOF
|
|
1343
1347
|
@flat_records = @records.values.map{|x| x[:body]}
|
1344
1348
|
|
1345
1349
|
end
|
1350
|
+
|
1346
1351
|
|
1347
1352
|
def display()
|
1348
1353
|
puts @doc.to_s
|
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.8.
|
4
|
+
version: 1.8.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
+2pKHQJfU1lEmVoo4afsLMvmq/CZPJba1LR3Z1QJXYCWt9IEZTECStKlK7H6RiIx
|
31
31
|
gRA=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2019-01-
|
33
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
Binary file
|